[fpc-pascal] Failed cross compilation

patspiper patspiper at gmail.com
Fri Oct 19 21:13:51 CEST 2012


I am able to compile FPC 2.6.1 (rev 22778) under Ubuntu 11.04 32 bits. 
However cross compiling to win32 fails with the error: /usr/bin/ld: 
cannot find -lgcc

I was able to cross compile successfully about 2 weeks ago.

The relevant part of the log:
make -C fastcgi smart
make[3]: Entering directory 
/home/me/Programs/fpc/fpsrc/exported/2.6.1/compiler/ppc fpmake.pp -n 
-Xd -Xt -gl
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
In function `LOADPTHREADS':
warning: Using 'dlopen' in statically linked applications requires at 
runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: cannot find -lgcc
fpmake.pp(34,1) Error: Error while linking
fpmake.pp(34,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[3]: *** [fpmake] Error 1
make[3]: Leaving directory 
make[2]: *** [fastcgi_smart] Error 2
make[2]: Leaving directory 
make[1]: *** [packages_smart] Error 2
make[1]: Leaving directory `/home/me/Programs/fpc/fpsrc/exported/2.6.1'
make: *** [build-stamp.i386-win32] Error 2

What could have gone wrong?


More information about the fpc-pascal mailing list