[fpc-devel] compile fpc for i386 from a 64 bit machine

Daniël Mantione daniel.mantione at freepascal.org
Thu Nov 29 17:28:40 CET 2007



Op Thu, 29 Nov 2007, schreef Alvise Nicoletti:

> I added a /usr/lib32 link to the fpc.cfg, however I have no "crti.o" in the
> /usr/lib32/ folder.
> I got the same error trying to cross-compile to a i386 target.
> 
> /usr/lib/crti.o is a "ELF 64-bit LSB relocatable, AMD x86-64, version 1
> (SYSV), not stripped"
> 
> Who should compile/provide that library at 32 bits?

Your distro.

Daniël

> p.s. so I will have to change the fpc.cfg every time I want to crosscompile?
> or there is a IFDEF(initive) solution?

You can add both directories, the linker will skip the unusable one. If 
constructions are also possible by the way.

Daniël


More information about the fpc-devel mailing list