I built fpc and lazarus from source, and can crosscompile to either:
Linux 64-bit and Windows 64-bit
or
Linux 32-bit and Windows 32-bit.
But not both.
I know I'm missing something obvious, but being a linux beginner, I know not what.
Currently, my fpc -i outputs:
Compiler CPU target: x86_64
and my make info outputs:
fpc ...... /usr/bin/ppcx64
I have executed the make all and crosscompile CPU_TARGET=i386 for linux and win32, also CPU_TARGET= x86_64 and the libraries are there for fpc.
I just can't get all the linux 32-bit/64-bit and Windows 32-bit and 64-bit targets to work. It's SOO close, but I'm missing something simple, I'm sure.
My current configuration compiles linux x64 and Windows x64 with no problems.
FPC.......... /usr/bin/ppcx64
But.. When I try to compile for linux32 for example, I get the error:
Compile Project, Mode: Linux32, CPU: i386, Target: crossall_linux32: Exit code 256, Errors: 1
/usr/bin/ld: skipping incompatible //usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible //usr/lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib//libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib//libpthread.a when searching for -lpthread
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: skipping incompatible //usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible //usr/lib/libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib//libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib//libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
crossall.lpr(20,1) Error: Error while linking
I have no idea how to fix it.
I also have no idea what output/config files to show in order to diagnose my problem, so I'm hoping for an information request as a reply.
==edit== more info:
My Linux OS is 'tahr Puppy', which is an Ubuntu-compatible distro. It's running on an x86_64 system.
The only Ubuntu Lazarus distribution was an older version, so I downloaded the Laz 1.6RC2 and fpc 3.0.0 sources, and compiled them.