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

Mark Morgan Lloyd markMLl.fpc-devel at telemetry.co.uk
Fri Oct 26 19:13:00 CEST 2012


Florian Klämpfl wrote:
> Am 26.10.2012 12:29, schrieb Mark Morgan Lloyd:
>> (.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.
>>
> 
> It is probably the problem that debian moved .o files to be prepared for
> multiarch support. Please compile a simple hello world c program with
> gcc --verbose ... and post the output.

0 1>markMLl at pye-dev-04:~$ gcc --verbose test.c
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/sparc-linux-gnu/4.6/lto-wrapper
Target: sparc-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-11' 
--with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr 
--program-suffix=-4.6 --enable-shared --enable-linker-build-id 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes 
--enable-gnu-unique-object --enable-plugin --enable-objc-gc 
--enable-targets=all --with-long-double-128 --enable-checking=release 
--build=sparc-linux-gnu --host=sparc-linux-gnu --target=sparc-linux-gnu
Thread model: posix
gcc version 4.6.3 (Debian 4.6.3-11)
COLLECT_GCC_OPTIONS='-v' '-mcpu=ultrasparc'
  /usr/lib/gcc/sparc-linux-gnu/4.6/cc1 -quiet -v -imultilib . 
-imultiarch sparc-linux-gnu -D__sparc_v9__ test.c -quiet -dumpbase 
test.c -mcpu=ultrasparc -auxbase test -version -o /tmp/ccSBAdgX.s
GNU C (Debian 4.6.3-11) version 4.6.3 (sparc-linux-gnu)
         compiled by GNU C version 4.6.3, GMP version 5.0.5, MPFR 
version 3.1.0-p10, MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include/sparc-linux-gnu"
ignoring nonexistent directory 
"/usr/lib/gcc/sparc-linux-gnu/4.6/../../../../sparc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
  /usr/lib/gcc/sparc-linux-gnu/4.6/include
  /usr/local/include
  /usr/lib/gcc/sparc-linux-gnu/4.6/include-fixed
  /usr/include/sparc-linux-gnu
  /usr/include
End of search list.
GNU C (Debian 4.6.3-11) version 4.6.3 (sparc-linux-gnu)
         compiled by GNU C version 4.6.3, GMP version 5.0.5, MPFR 
version 3.1.0-p10, MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 74f975d3998f132de369d57192c84870
test.c: In function ‘main’:
test.c:3:9: warning: incompatible implicit declaration of built-in 
function ‘printf’ [enabled by default]
COLLECT_GCC_OPTIONS='-v' '-mcpu=ultrasparc'
  as -s -Av9a -32 -relax -o /tmp/ccwVPByX.o /tmp/ccSBAdgX.s
COMPILER_PATH=/usr/lib/gcc/sparc-linux-gnu/4.6/:/usr/lib/gcc/sparc-linux-gnu/4.6/:/usr/lib/gcc/sparc-linux-gnu/:/usr/lib/gcc/sparc-linux-gnu/4.6/:/usr/lib/gcc/sparc-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/sparc-linux-gnu/4.6/:/usr/lib/gcc/sparc-linux-gnu/4.6/../../../sparc-linux-gnu/:/usr/lib/gcc/sparc-linux-gnu/4.6/../../../../lib/:/lib/sparc-linux-gnu/:/lib/../lib/:/usr/lib/sparc-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/sparc-linux-gnu/4.6/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-mcpu=ultrasparc'
  /usr/lib/gcc/sparc-linux-gnu/4.6/collect2 --sysroot=/ --build-id 
--no-add-needed --eh-frame-hdr -m elf32_sparc -Y P,//usr/lib 
-dynamic-linker /lib/ld-linux.so.2 -relax 
/usr/lib/gcc/sparc-linux-gnu/4.6/../../../sparc-linux-gnu/crt1.o 
/usr/lib/gcc/sparc-linux-gnu/4.6/../../../sparc-linux-gnu/crti.o 
/usr/lib/gcc/sparc-linux-gnu/4.6/crtbegin.o 
-L/usr/lib/gcc/sparc-linux-gnu/4.6 
-L/usr/lib/gcc/sparc-linux-gnu/4.6/../../../sparc-linux-gnu 
-L/usr/lib/gcc/sparc-linux-gnu/4.6/../../../../lib 
-L/lib/sparc-linux-gnu -L/lib/../lib -L/usr/lib/sparc-linux-gnu 
-L/usr/lib/../lib -L/usr/lib/gcc/sparc-linux-gnu/4.6/../../.. 
/tmp/ccwVPByX.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc 
--as-needed -lgcc_s --no-as-needed 
/usr/lib/gcc/sparc-linux-gnu/4.6/crtend.o 
/usr/lib/gcc/sparc-linux-gnu/4.6/../../../sparc-linux-gnu/crtn.o

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-devel mailing list