[fpc-pascal] Compiling FPC for SPARC

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Thu Aug 3 16:10:59 CEST 2006


OK, 4x calls missing as below

1 1>markMLl at pye-dev-04:~/pascal/src/fpcsrc/rtl/linux/sparc$ diff -u sysnr.inc~
sysnr.inc
--- sysnr.inc~  2006-02-15 07:19:26.000000000 +0000
+++ sysnr.inc   2006-08-03 13:49:10.000000000 +0000
@@ -207,14 +207,14 @@
       syscall_nr_setpgid          = 185 ; // Common
 //       syscall_nr_pathconf      = 186    SunOS Specific
       syscall_nr_tkill            = 187 ; // SunOS: fpathconf
-//       syscall_nr_sysconf       = 188    SunOS Specific
+      syscall_nr_exit_group       = 188 ; // SunOS sysconf
       syscall_nr_uname            = 189 ; // Linux Specific
       syscall_nr_init_module      = 190 ; // Linux Specific
       syscall_nr_personality      = 191 ; // Linux Specific
 //       syscall_nr_prof          = 192    Linux Specific
-//       syscall_nr_break         = 193    Linux Specific
-//       syscall_nr_lock          = 194    Linux Specific
-//       syscall_nr_mpx           = 195    Linux Specific
+      syscall_nr_epoll_create     = 193 ; // Linux Specific - was break
+      syscall_nr_epoll_ctl        = 194 ; // Linux Specific - was lock
+      syscall_nr_epoll_wait       = 195 ; // Linux Specific - was mpx
 //       syscall_nr_ulimit        = 196    Linux Specific
       syscall_nr_getppid          = 197 ; // Linux Specific
       syscall_nr_sigaction        = 198 ; // Linux Specific

I think I've got those right, I was referring to
/usr/include/asm-sparc/unistd.h. Can't find them in the 2.4 kernel tree so I
assume they're 2.6-specific.


Compilation (make cycle) now progresses beyond that one and gets to this:

/home/markMLl/pascal/src/fpcsrc/compiler/ppc1 -Fi../inc -Fi../sparc -Fi../unix
-Fisparc -FE. -FU../../rtl/units/sparc-linux -dsparc -Us -Sg system.pp
Free Pascal Compiler version 2.0.4-rc2 [2006/08/03] for sparc
Copyright (c) 1993-2006 by Florian Klaempfl
Target OS: Linux for SPARC
Compiling system.pp
generic.inc(559,13) Warning: Mixing signed expressions and longwords gives a
64bit result
genmath.inc(286,9) Warning: unreachable code
genmath.inc(299,8) Warning: unreachable code
astrings.inc(157,5) Fatal: Internal error 200310092
astrings.inc(157,5) Fatal: Compilation aborted
make[5]: *** [system.ppu] Error 1
make[5]: Leaving directory `/home/markMLl/pascal/src/fpcsrc/rtl/linux'
make[4]: *** [linux_all] Error 2

As discussed earlier I was starting off with the released 2.0.0 compiler. Source
files from fpcbuild_2_0_4_rc2.zip downloaded about 24 hours ago- I've got
limited free bandwidth here.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list