[fpc-devel] compile fpc for i386 from a 64 bit machine
Marc Weustink
marc.weustink at cuperus.nl
Thu Nov 29 13:56:13 CET 2007
Alvise Nicoletti wrote:
> Daniƫl Mantione ha scritto:
>> Op Thu, 29 Nov 2007, schreef Alvise Nicoletti:
>>
>>
>>> Yes, I have the packages needed to open a 32 bit file in my 64 bits
>>> distro
>>> (ubuntu-server): .
>>> linux32 ia32-libs lib32gcc1 lib32stdc++6 lib32z1 libc6-dev-i386
>>> lib32bz2-dev
>>>
>>> But the fpc compiler version I'm using have bugfixes introduced by
>>> Joost that
>>> are needed in my application, so I will also need a 32 bit fpc
>>> compiler with
>>> that inside it...
>>> ... or I am wrong?
>>>
>>
>> Nothing stops you from compiling a 2.2.1 i386 compiler on an x86_64
>> system. It just needs to be bootstrapped with a ppc386, simply do:
>>
>> make FPC=/path/to/ppc386 CPU_SOURCE=i386
>>
>> ... and voila.
>>
> Honestly I had some problems to understand the mechanism in this,
> however, giving that command suppose that you have a "/path/to/ppc386"
> somewhere, and I hadn't.
> I copyed the binary of my other 32 bit server in the 64 bit server, in
> the path: /usr/local/lib/fpc/2.2.1/ppc386
> And I did, as you said, a:
> make all FPC=/usr/local/lib/fpc/2.2.1/ppc386 CPU_SOURCE=i386
>
> That seemed to work, it compiled everything, but now I suppose I have to
> do a "make install"...
>
> But both:
> make install CPU_TARGET=i386
> make install CPU_SOURCE=i386
try
make install CPU_SOURCE=i386 FPC=/path/to/your/fresh/compiled/ppc386
Marc
More information about the fpc-devel
mailing list