[fpc-pascal] Compiling FPC for SPARC

Florian Klaempfl florian at freepascal.org
Sun Aug 6 10:39:59 CEST 2006


Tomas Hajny wrote:
> On 5 Aug 06, at 21:03, Florian Klaempfl wrote:
>> Tomas Hajny wrote:
>>> Peter Vreman wrote:
>>>>>> on't bother with Solaris in 2.0.x, it won't work at all. None of
>>>>>> the Solaris fixes from 2.1.1 have been merged
>>>>> On a positive note, Sparc/Solaris works fine in 2.1.1
>>>> I tried to merge it in the past but aborted it. The Solaris RTL
>>>> changes had a too much conflicts to qualify for a merge to 2.0.x. The
>>>> sparc compiler codegenerator in 2.0.x and 2.1.1 are almost identical
>>>> so there is not much of a difference between 2.0.x and 2.1.1 for the
>>>> sparc. And therefor it is recommended to use 2.1.1.
>>> Right. On the other hand, the start would be probably easier if there's at
>>> least 2.0.4 sparc-linux available as starting compiler for further working
>>> with 2.1.1 (considering the fact that the existing 2.0.0 binary apparently
>>> fails with IE when building the current sources).
>> Cross compiling is easy, you need only to rip the following files from
>> the used solaris:
>> libaio.so
>> libc.so
>> libelf.so
>> libm.so
>> libmd5.so
>> librt.so
>> libucb.so
>> and put them in fpc/compiler, after that a cross build should work.
> 
> That still requires at least some compiler for 
> SPARC processor available (e.g. sparc-linux) - 
> that's why I suggested that having 2.0.4 sparc-
> linux would be probably useful (although I 
> understand that one can build a cross-compiler, 
> but nevertheless).

Why? Get sparc-solaris binutils, put these libs in the compiler dir and do
cd fpc; make clean all OS_TARGET=solaris CPU_TARGET=sparc

[...]
make[3]: Leaving directory `C:/fpc/utils/fpdoc'
make[2]: Leaving directory `C:/fpc/utils'
make[1]: Leaving directory `C:/fpc'

echo Build > build-stamp.sparc-solaris

and get a native compiler in fpc/compiler:

C:\fpc>dir compiler\ppcsparc
 Datenträger in Laufwerk C: ist 6Y120PO PRI
 Volumeseriennummer: 12E3-1449

 Verzeichnis von C:\fpc\compiler

06.08.2006  10:35         2.036.816 ppcsparc
               1 Datei(en)      2.036.816 Bytes
               0 Verzeichnis(se),  1.752.629.248 Bytes frei

This was on win32.

> 
> BTW, is the list above available somewhere in 
> Wiki or so?
> 

Hmm, don't know :)



More information about the fpc-pascal mailing list