[fpc-pascal] Compiling FPC for SPARC
Tomas Hajny
XHajT03 at mbox.vol.cz
Thu Aug 3 12:46:50 CEST 2006
Mark Morgan Lloyd wrote:
> Jonas Maebe wrote:
>
>> > The only thing that bothers me here is that while this is the
>> > correct solution
>> > it might not be possible. With the major caveat that I'm a beginner
>> > at this but
>> > I've demonstrated that 2.0.0 can't compile 2.0.2, and I suspect
>> > that once I've
>> > fixed the missing syscall I still might be left with something that
>> > the existing
>> > compiler can't process :-(
>>
>> This is not a case of something the existing compiler cannot process,
>> but a platform-specific include file which was not updated while
>> others were. The SPARC exit_group syscall is 188 according to
>> http://lxr.linux.no/source/include/asm-sparc/unistd.h#L207
>>
>> But yes, it's possible you'll find a few more things like this before
>> everything compiles, since the SPARC/Linux port has not been
>> maintained for a while.
>
> Working on it. I know that this particular problem is not related to a
> compiler
> problem, but I've already (I think) demonstrated that the 2.0.0 compiler
> on
> SPARC has problems with the 2.0.2 sources. I've got a horrid feeling that
> once
> the missing stuff is fixed I'll hit the same problem :-(
Even if you hit the same problem with 2.0.4, you should still better try
it with the latest available compiler (e.g. 2.0.4-rc2 or snapshot compiled
from the current SVN sources) and try to fix possibly existing issues in
that one (either directly yourself or by discussing with other people who
can provide more insight in the technical details) rather than trying to
create non-existing 2.0.2 SPARC compiler, because the problem might still
exist in 2.0.2, but could be e.g. resolved in 2.0.4 or the current 2.1.1
sources. Trying to fix the history usually doesn't work very well, you
know. ;-)
Tomas
More information about the fpc-pascal
mailing list