[fpc-pascal] Problem compiling new compiler

Koenraad Lelong fpascal at brouwerij.homelinux.net
Fri Sep 30 17:46:41 CEST 2005


Marco van de Voort wrote:
>>I downloaded both the 2.1 and the 2.0 daily snapshots. When I try to 
>>compile either one I get an error :
>>
...
>>I think the error is the linker complaining about "cannot find -lc", but 
>>I can't find out what is actually wrong. Any pointers ?
> 
> 
> It can't find libc. Since nearly every linux distro has libc, this probably
> means some symlink isn't set. (from libc-x.y.z.a.b.so to libc.so or so in
> /usr/lib or /lib or both)
> 
> Some distributions only install the symlink when the corresponding -devel
> package is installed, but that package can be huge, so setting the symlink
> manually might help
This worked but after making links for libm and libdl and installing gcc 
+ gcc-devel I get the following error :
make testgdb
make[4]: Entering directory `/home/koenraad/fpc/fpc/ide'
LibGDB found in /home/koenraad/fpc/fpc/libgdb/linux/i386/libgdb.a
make[4]: Leaving directory `/home/koenraad/fpc/fpc/ide'
make fpc_all
make[4]: Entering directory `/home/koenraad/fpc/fpc/ide'
/home/koenraad/fpc/fpc/compiler/ppc386 
-Fl/home/koenraad/fpc/fpc/libgdb/linux/i386 -Ur -Xs -OG2p3 -n -Sg 
-Fu/home/koenraad/fpc/fpc/rtl/units/i386-linux 
-Fu/home/koenraad/fpc/fpc/fv/units/i386-linux 
-Fu/home/koenraad/fpc/fpc/packages/base/gdbint/units/i386-linux 
-Fu/home/koenraad/fpc/fpc/packages/base/regexpr/units/i386-linux -FE. 
-FUunits/i386-linux -Fl/usr/lib/gcc-lib/i586-suse-linux/3.3.5 
-Fl/usr/X11R6/lib/Xaw95 -Fl/usr/X11R6/lib/Xaw3d -Fl/usr/X11R6/lib 
-Fl/usr/i486-linux/lib -Fl/usr/i486-linux-libc5/lib=libc5 
-Fl/usr/i486-linux-libc6/lib=libc6 -Fl/usr/i486-linuxaout/lib 
-Fl/usr/i386-suse-linux/lib -Fl/usr/local/lib -Fl/usr/openwin/lib 
-Fl/opt/kde/lib -Fl/opt/kde2/lib -Fl/opt/kde3/lib -Fl/opt/gnome/lib 
-Fl/opt/gnome2/lib -Flinclude -Fl/etc/ld.so.conf.d/*.conf -di386 
-dRELEASE fp.pas
/usr/bin/ld: Warning: alignment 4 of symbol `xdb_commands' in 
/home/koenraad/fpc/fpc/libgdb/linux/i386/libgdb.a(main.o) is smaller 
than 16 in 
/home/koenraad/fpc/fpc/packages/base/gdbint/units/i386-linux/gdbint.o
/usr/bin/ld: Warning: alignment 4 of symbol `dbx_commands' in 
/home/koenraad/fpc/fpc/libgdb/linux/i386/libgdb.a(main.o) is smaller 
than 16 in 
/home/koenraad/fpc/fpc/packages/base/gdbint/units/i386-linux/gdbint.o
/usr/bin/ld: Warning: alignment 4 of symbol `gdb_sysroot' in 
/home/koenraad/fpc/fpc/libgdb/linux/i386/libgdb.a(main.o) is smaller 
than 16 in 
/home/koenraad/fpc/fpc/packages/base/gdbint/units/i386-linux/gdbint.o
/usr/bin/ld: Warning: alignment 4 of symbol `watchdog' in 
/home/koenraad/fpc/fpc/libgdb/linux/i386/libgdb.a(maint.o) is smaller 
than 16 in 
/home/koenraad/fpc/fpc/packages/base/gdbint/units/i386-linux/gdbint.o
/home/koenraad/fpc/fpc/libgdb/linux/i386/libgdb.a(maint.o)(.text+0xeb3): 
In function `maintenance_set_profile_cmd':
maint.c: undefined reference to `atexit'
/home/koenraad/fpc/fpc/libgdb/linux/i386/libgdb.a(tui-interp.o)(.text+0x1e): 
In function `tui_init':
tui-interp.c: undefined reference to `atexit'
fp.pas(494,1) Error: Error while linking
make[4]: *** [fp] Fout 1
make[4]: Leaving directory `/home/koenraad/fpc/fpc/ide'
make[3]: *** [buildfp] Fout 2
make[3]: Leaving directory `/home/koenraad/fpc/fpc/ide'
make[2]: *** [gdb] Fout 2
make[2]: Leaving directory `/home/koenraad/fpc/fpc/ide'
make[1]: *** [ide_all] Fout 2
make[1]: Leaving directory `/home/koenraad/fpc/fpc'
make: *** [build-stamp.i386-linux] Fout 2
koenraad at lace2:~/fpc/fpc>

Can you give more hints ?
TIA
Koenraad Lelong



More information about the fpc-pascal mailing list