[fpc-devel] fp IDE and gdbint on Debian Wheezy/testing

Tomas Hajny XHajT03 at hajny.biz
Fri Oct 26 15:48:00 CEST 2012


On Fri, October 26, 2012 12:29, Mark Morgan Lloyd wrote:
> Over the last few days I've brought my first Debian "Wheezy" (currently
> AKA "testing") system up and find I can no longer compile gdbint. This
> prevents build completing on both 2.6.0 and trunk, even with NOGDB=1,
> fiddling with ./Makefile.fpc and ./packages/Makefile.fpc to remove ide
> and gdbint allows the build to complete.
>
> If gdbint is only used by the ide, shouldn't it be excluded if NOGDB is
> defined or if ide is removed at the top level?

gdbint is an import library package (similarly to packages like gtk2,
httpd22, libgd, libpng, etc.). As it stands, it may be used not only by
the IDE but possibly also by something created on the user side.


> I'm reluctant to bug-report the build failure since at present I'm
> testing on SPARC/Linux, and the build failure (as distinct from the
> dependency) could be platform-specific. For the record the failure point
> is as below with 2.6.0:
>
> ..
> make -C gdbint smart
> make[3]: Entering directory
> `/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/packages/gdbint'
> make all LINKSMART=1 CREATESMART=1
> make[4]: Entering directory
> `/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/packages/gdbint'
> /bin/mkdir -p units/sparc-linux
> /usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/compiler/ppcsparc -XX -CX -Ur
> -Xs -O2 -n
> -Fu/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/rtl/units/sparc-linux
> -Fl/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/libgdb/linux/sparc
> -Fo/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/libgdb/linux/sparc
> -Fi/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/libgdb/linux/sparc -Fisrc
> -FE. -FUunits/sparc-linux -Fl/usr/lib/gcc/sparc-linux-gnu/4.6 -Flinclude
> -Fl/etc/ld.so.conf.d/*.conf -O- -gl -vt -dsparc -dRELEASE src/gdbver.pp
> Using assembler: /usr/bin/as
> /usr/bin/ld: warning: ./link.res contains output sections; did you
> forget -T?
> /usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/rtl/units/sparc-linux/cprt0.o:
> In function `_start':
> (.text+0x58): undefined reference to `_init'
> /usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/rtl/units/sparc-linux/cprt0.o:
> In function `_start':
> (.text+0x5c): undefined reference to `_fini'
> /usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/rtl/units/sparc-linux/cprt0.o:
> In function `_start':
> (.text+0x64): undefined reference to `_init'
> /usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/rtl/units/sparc-linux/cprt0.o:
> In function `_start':
> (.text+0x68): undefined reference to `_fini'
> gdbver.pp(95,33) Error: Error while linking
> gdbver.pp(95,33) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
> make[4]: *** [gdbver] Error 1
> make[4]: Leaving directory
> `/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/packages/gdbint'
> make[3]: *** [fpc_smart] Error 2
> make[2]: *** [gdbint_smart] Error 2
> make[3]: Leaving directory
> `/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/packages/gdbint'
>
> There is no error on older Debian systems. I believe that I've got all
> prerequisites installed, noting that a build without ide and gdbint is OK.

If I understand the error message correctly, the error message is related
to cprt0.o not finding symbols expected there. These errors would probably
appear when trying to compile any program using libc - if it is not
gdbver, it would happen with something else, e.g. any program using
cthreads or cwstring. From this point of view it seems to be completely
unrelated to libgdb and having debugging support in the FP IDE or not.

Tomas





More information about the fpc-devel mailing list