[fpc-pascal] Cross-compiling from 64-bit Linux to 32-bit Linux

Osvaldo Filho arquivostcf at gmail.com
Mon Feb 8 18:32:52 CET 2010


I have the same problem (or not?) :

-------
Free Pascal Compiler version 2.4.1 [2010/02/03] for i386
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for i386
Compiling lazarus.pp
Compiling resource ../units/i386-linux/lazarus.or
Linking ../lazarus
ld: warning: ../link.res contains output sections; did you forget -T?
ld: skipping incompatible /usr/lib/crti.o when searching for /usr/lib/crti.o
ld: skipping incompatible /usr/lib/crti.o when searching for /usr/lib/crti.o
ld: cannot find /usr/lib/crti.o
lazarus.pp(127,1) Error: Error while linking
lazarus.pp(127,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did
not specify a source file to be compiled)
make[2]: ** [lazarus] Erro 1
make[2]: Saindo do diretório
`/home/deskx/desenvolvimento/instaladores/lazarus/ide'
make[1]: ** [ide] Erro 2
make[1]: Saindo do diretório
`/home/deskx/desenvolvimento/instaladores/lazarus/ide'
make: ** [ide] Erro 2
-------

2010/2/8 Patrick Chevalley <pchevalley at gmail.com>:
> Install the ia32-libs package.
>
> also check if your fpc.cfg contain the following lines, I not remember
> if I add them:
> #ifdef cpui386
> -Fl/usr/lib32
> -Xd
> #endif
>
> Patrick
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



More information about the fpc-pascal mailing list