[fpc-pascal] Compiling FPC for SPARC

Peter Vreman peter at freepascal.org
Thu Aug 3 08:03:46 CEST 2006


> Tomas Hajny wrote:
>
>> I propose to check with the 2.0.4-rc2 sources. You can get these from
>> ftp://ftp.freepascal.org/pub/fpc/beta/2.0.4-rc2/source/,
>
> That builds (make cycle) OK on/for linux-i386 using FPC 2.0.2, but on
> linux-sparc using FPC 2.0.0 I get:
>
> Target OS: Linux for SPARC
> Compiling system.pp
> ..
> rtti.inc(268,9) Warning: Comment level 2 found
> ossysc.inc(192,14) Error: Identifier not found "syscall_nr_exit_group"
> system.pp(271) Fatal: There were 1 errors compiling module, stopping
> system.pp(271) Error: Compilation aborted
> make[5]: *** [system.ppu] Error 1
> make[5]: Leaving directory
> `/home/markMLl/pascal/src/fpcbuild_2_0_4_rc2_exp/fpcsrc/rtl/linux'
> make[4]: *** [linux_all] Error 2
>
> I seem to have three choices:
>
> i)   Find the file in the 2.0.2 sources that SPARC 2.0.0 couldn't compile,
> and
>      see if there's some hack that will fix this.
>
> ii)  Ditto for 2.0.4 sources (possibly easier since the compiler isn't
> bombing).
>
> iii) Compile 2.0.2 on i386 to target SPARC, and see if that will compile
> the
>      2.0.2 source.
>
> My gut feeling is (iii), but any suggestions would be appreciated.

There is only one correct solution: Fix the building of the 2.0.4 by
looking up the correct syscall in the C headers.

Forget about old stable releases like 2.0.2, only work with current svn
(2.0.4 or 2.1.1).







More information about the fpc-pascal mailing list