[fpc-pascal] Failed cross compilation
patspiper
patspiper at gmail.com
Sat Oct 20 13:09:54 CEST 2012
On 19/10/12 23:27, Marco van de Voort wrote:
> In our previous episode, patspiper said:
>> 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/packages/fastcgi'
>> /home/me/Programs/fpc/fpsrc/exported/2.6.1/compiler/ppc fpmake.pp -n
>> -Fu/home/me/Programs/fpc/fpsrc/exported/2.6.1/rtl/units/i386-linux
>> -Fu/home/me/Programs/fpc/fpsrc/exported/2.6.1/packages/hash
>> -Fu/home/me/Programs/fpc/fpsrc/exported/2.6.1/packages/paszlib
>> -Fu/home/me/Programs/fpc/fpsrc/exported/2.6.1/packages/fcl-process
>> -Fu/home/me/Programs/fpc/fpsrc/exported/2.6.1/packages/fpmkunit/units_bs/i386-linux
>> -Xd -Xt -gl
>> /usr/bin/ld: warning: link.res contains output sections; did you forget -T?
>> /home/me/Programs/fpc/fpsrc/exported/2.6.1/rtl/units/i386-linux/cthreads.o:
>> In function `LOADPTHREADS':
>> /home/me/Programs/fpc/fpsrc/exported/2.6.1/rtl/linux/pthread.inc:261:
>> 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
>> `/home/me/Programs/fpc/fpsrc/exported/2.6.1/packages/fastcgi'
>> make[2]: *** [fastcgi_smart] Error 2
>> make[2]: Leaving directory
>> `/home/me/Programs/fpc/fpsrc/exported/2.6.1/packages'
>> 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?
> There were changes merged. I wonder however how a crosscompile to win32 can
> reach "fastcgi" still being target linux.
>
> Could you post your build cmdline please?
revision 22761 cross-compiles fine, and hence 22765 is the culprit.
Stephano
More information about the fpc-pascal
mailing list