[fpc-pascal] Cross compiling x86_64 on i386 Linux.

Bruce Tulloch bruce at causal.com
Wed May 30 01:50:37 CEST 2012

Thanks Jonas,

I tried --with-sysroot for configure in buildcrossbinutils and it does
not appear to make any difference. I still get the error
"/usr/local/opt/binutils/bin/x86_64-linux-ld: skipping incompatible
/lib/libpthread.so.0 when searching for /lib/libpthread.so.0" at the
link phase.

I'm thinking that ld should be looking at:


but according to the error message it's looking at:


which read literally would explain the error. FWIW I have attached the
buildcrossbinutils build log in case there's a clue in there.

Unless you have any other suggestions I might just give up and upgrade
my mobile development environment to an x86_64 capable netbook and run a
mixed 64/32 bit system to build 64 bit (and 32 bit) targets.

I'm guessing not many people attempt to do it the other way around these
days so I might as well join the 64 bit party...

Cheers, Bruce.

On 29/05/12 18:45, Jonas Maebe wrote:
> Bruce Tulloch wrote on Tue, 29 May 2012:
>> Closer, but not quite there yet...
> [...]
>>   fpcfixes_2.6/cross/buildcrossbinutils
> Try adding --with-sysroot to the configure flags in that script.
> Jonas
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log-x86_64-linux.gz
Type: application/gzip
Size: 19359 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120530/810fc847/attachment.gz>

More information about the fpc-pascal mailing list