Opened 9 months ago
Last modified 9 months ago
#69315 assigned defect
fpc: add support for i386
Reported by: | barracuda156 | Owned by: | kamischi (Karl-Michael Schindler) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.9.1 |
Keywords: | i386 | Cc: | |
Port: | fpc |
Description
Just to track the issue for now. I have rewritten extract phase (dmg is different, PowerPC implementation does not work), but build fails quickly. It also asks for clang as assembler, which should not be forced on older systems.
/bin/rm -f /opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/units/i386-darwin/math.rst /opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/units/i386-darwin/typinfo.rst /opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/units/i386-darwin/classes.rst /opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/units/i386-darwin/sysconst.rst /opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/units/i386-darwin/rtlconsts.rst /bin/rm -f fpcmade.i386-darwin Package.fpc ./ppas.sh script.res link.res /bin/rm -f *.s *_ppas.sh ppas.sh ppaslink.sh make[7]: Leaving directory `/opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/darwin' make[6]: Leaving directory `/opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl' /usr/bin/make -C /opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl 'OPT=-v0 -ap -WM10.5 -Aas ' all make[6]: Entering directory `/opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl' /usr/bin/make -C darwin all make[7]: Entering directory `/opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/darwin' /opt/local/bin/gmkdir -p /opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/units/i386-darwin /opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/ppc386 -Ur -dFPC_USE_LIBC -Ur -Xs -O2 -n -Fi../inc -Fi../i386 -Fi../unix -Fi../bsd -Fi../bsd/i386 -Fi../darwin/i386 -FE. -FU/opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/units/i386-darwin -v0 -ap -WM10.5 -Aas -di386 -dRELEASE -Us -Sg ../bsd/system.pp system.inc(721,40) Warning: Comparison might be always false due to range of constant and expression system.inc(722,5) Warning: unreachable code dynlib.inc(173,10) Warning: Function result does not seem to be set dynlib.inc(178,10) Warning: Function result does not seem to be set dynlib.inc(183,10) Warning: Function result does not seem to be set dynlib.inc(188,10) Warning: Function result does not seem to be set dynlib.inc(193,10) Warning: Function result does not seem to be set dynlib.inc(198,10) Warning:/bin/sh: clang: command not found Function result does not seem to be set system.pp(395) Error: Assembler clang not found, switching to external assembling system.pp(395) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[7]: *** [system.ppu] Error 1 make[7]: Leaving directory `/opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/darwin' make[6]: *** [darwin_all] Error 2 make[6]: Leaving directory `/opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl' make[5]: *** [rtl] Error 2
Attachments (1)
Change History (3)
Changed 9 months ago by barracuda156
Attachment: | Portfile_fpc_wip_i386.txt added |
---|
comment:1 Changed 9 months ago by barracuda156
Using -Aas-darwin
picks the right assembler, but then it fails on:
make[7]: Entering directory `/opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/darwin' /opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/compiler/ppc1 -Ur -dFPC_USE_LIBC -Ur -Xs -O2 -n -Fi../inc -Fi../i386 -Fi../unix -Fi../bsd -Fi../bsd/i386 -Fi../darwin/i386 -FE. -FU/opt/local/var/macports/build/_opt_SnowLeopardPorts_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/units/i386-darwin -v0 -ap -WM10.5 -Aas-darwin -di386 -dRELEASE -Us -Sg ../bsd/system.pp ustrings.inc(2364,66) Warning: function result variable of a managed type does not seem to be initialized ustrings.inc(2374,56) Warning: function result variable of a managed type does not seem to be initialized dynarr.inc(313,39) Warning: function result variable of a managed type does not seem to be initialized dynarr.inc(796,21) Warning: function result variable of a managed type does not seem to be initialized variant.inc(110,38) Warning: function result variable of a managed type does not seem to be initialized variant.inc(117,42) Warning: function result variable of a managed type does not seem to be initialized variant.inc(123,36) Warning: function result variable of a managed type does not seem to be initialized variant.inc(129,38) Warning: function result variable of a managed type does not seem to be initialized variant.inc(135,36) Warning: function result variable of a managed type does not seem to be initialized variant.inc(141,38) Warning: function result variable of a managed type does not seem to be initialized variant.inc(161,33) Warning: function result variable of a managed type does not seem to be initialized variant.inc(167,33) Warning: function result variable of a managed type does not seem to be initialized variant.inc(173,33) Warning: function result variable of a managed type does not seem to be initialized variant.inc(179,33) Warning: function result variable of a managed type does not seem to be initialized variant.inc(185,33) Warning: function result variable of a managed type does not seem to be initialized variant.inc(191,33) Warning: function result variable of a managed type does not seem to be initialized variant.inc(197,36) Warning: function result variable of a managed type does not seem to be initialized variant.inc(203,35) Warning: function result variable of a managed type does not seem to be initialized variant.inc(210,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(216,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(222,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(230,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(239,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(246,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(252,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(258,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(264,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(270,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(286,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(294,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(302,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(310,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(318,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(326,36) Warning: function result variable of a managed type does not seem to be initialized variant.inc(333,41) Warning: function result variable of a managed type does not seem to be initialized variant.inc(340,35) Warning: function result variable of a managed type does not seem to be initialized variant.inc(451,32) Warning: function result variable of a managed type does not seem to be initialized variant.inc(457,32) Warning: function result variable of a managed type does not seem to be initialized variant.inc(548,38) Warning: function result variable of a managed type does not seem to be initialized variant.inc(806,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(812,34) Warning: function result variable of a managed type does not seem to be initialized variant.inc(896,38) Warning: function result variable of a managed type does not seem to be initialized variant.inc(902,38) Warning: function result variable of a managed type does not seem to be initialized variant.inc(908,38) Warning: function result variable of a managed type does not seem to be initialized variant.inc(914,38) Warning: function result variable of a managed type does not seem to be initialized variant.inc(920,38) Warning: function result variable of a managed type does not seem to be initialized variant.inc(926,38) Warning: function result variable of a managed type does not seem to be initialized variant.inc(932,38) Warning: function result variable of a managed type does not seem to be initialized variant.inc(938,38) Warning: function result variable of a managed type does not seem to be initialized variant.inc(944,53) Warning: function result variable of a managed type does not seem to be initialized variant.inc(950,53) Warning: function result variable of a managed type does not seem to be initialized variant.inc(956,53) Warning: function result variable of a managed type does not seem to be initialized variant.inc(963,39) Warning: function result variable of a managed type does not seem to be initialized variant.inc(969,53) Warning: function result variable of a managed type does not seem to be initialized variant.inc(976,39) Warning: function result variable of a managed type does not seem to be initialized variant.inc(982,39) Warning: function result variable of a managed type does not seem to be initialized variant.inc(988,53) Warning: function result variable of a managed type does not seem to be initialized variant.inc(1004,53) Warning: function result variable of a managed type does not seem to be initialized variant.inc(1012,53) Warning: function result variable of a managed type does not seem to be initialized variant.inc(1020,53) Warning: function result variable of a managed type does not seem to be initialized variant.inc(1028,53) Warning: function result variable of a managed type does not seem to be initialized variant.inc(1036,53) Warning: function result variable of a managed type does not seem to be initialized variant.inc(1044,53) Warning: function result variable of a managed type does not seem to be initialized variant.inc(1051,58) Warning: function result variable of a managed type does not seem to be initialized variant.inc(1058,38) Warning: function result variable of a managed type does not seem to be initialized variant.inc(1064,31) Warning: function result variable of a managed type does not seem to be initialized variant.inc(1071,33) Warning: functio{standard input}:6:Unknown pseudo-op: .cfi_startproc {standard input}:21:Unknown pseudo-op: .cfi_endproc {standard input}:27:Unknown pseudo-op: .cfi_startproc {standard input}:29:Unknown pseudo-op: .cfi_def_cfa_offset {standard input}:29:Rest of line ignored. 1st junk character valued 56 (8). {standard input}:30:Unknown pseudo-op: .cfi_offset {standard input}:30:Rest of line ignored. 1st junk character valued 37 (%). {standard input}:32:Unknown pseudo-op: .cfi_def_cfa_register {standard input}:32:Rest of line ignored. 1st junk character valued 37 (%). {standard input}:58:Unknown pseudo-op: .cfi_endproc {standard input}:64:Unknown pseudo-op: .cfi_startproc {standard input}:66:Unknown pseudo-op: .cfi_def_cfa_offset {standard input}:66:Rest of line ignored. 1st junk character valued 56 (8). {standard input}:67:Unknown pseudo-op: .cfi_offset {standard input}:67:Rest of line ignored. 1st junk character valued 37 (%). {standard input}:69:Unknown pseudo-op: .cfi_def_cfa_register {standard input}:69:Rest of line ignored. 1st junk character valued 37 (%). {standard input}:86:Unknown pseudo-op: .cfi_endproc {standard input}:92:Unknown pseudo-op: .cfi_startproc {standard input}:94:Unknown pseudo-op: .cfi_def_cfa_offset {standard input}:94:Rest of line ignored. 1st junk character valued 56 (8). {standard input}:95:Unknown pseudo-op: .cfi_offset {standard input}:95:Rest of line ignored. 1st junk character valued 37 (%). {standard input}:97:Unknown pseudo-op: .cfi_def_cfa_register {standard input}:97:Rest of line ignored. 1st junk character valued 37 (%). {standard input}:126:Unknown pseudo-op: .cfi_endproc {standard input}:132:Unknown pseudo-op: .cfi_startproc {standard input}:134:Unknown pseudo-op: .cfi_def_cfa_offset {standard input}:134:Rest of line ignored. 1st junk character valued 56 (8). {standard input}:135:Unknown pseudo-op: .cfi_offset {standard input}:135:Rest of line ignored. 1st junk character valued 37 (%). {standard input}:137:Unknown pseudo-op: .cfi_def_cfa_register {standard input}:137:Rest of line ignored. 1st junk character valued 37 (%). {standard input}:166:Unknown pseudo-op: .cfi_endproc {standard input}:172:Unknown pseudo-op: .cfi_startproc {standard input}:245:Unknown pseudo-op: .cfi_endproc {standard input}:251:Unknown pseudo-op: .cfi_startproc {standard input}:300:Unknown pseudo-op: .cfi_endproc {standard input}:306:Unknown pseudo-op: .cfi_startproc {standard input}:308:Unknown pseudo-op: .cfi_def_cfa_offset {standard input}:308:Rest of line ignored. 1st junk character valued 56 (8). {standard input}:309:Unknown pseudo-op: .cfi_offset {standard input}:309:Rest of line ignored. 1st junk character valued 37 (%). {standard input}:311:Unknown pseudo-op: .cfi_def_cfa_register {standard input}:311:Rest of line ignored. 1st junk character valued 37 (%). {standard input}:343:Unknown pseudo-op: .cfi_endproc {standard input}:353:Unknown pseudo-op: .cfi_startproc {standard input}:355:Unknown pseudo-op: .cfi_def_cfa_offset {standard input}:355:Rest of line ignored. 1st junk character valued 56 (8). {standard input}:356:Unknown pseudo-op: .cfi_offset {standard input}:356:Rest of line ignored. 1st junk character valued 37 (%). {standard input}:358:Unknown pseudo-op: .cfi_def_cfa_register {standard input}:358:Rest of line ignored. 1st junk character valued 37 (%).
cfi directives are indeed not supported, AFAIK.
comment:2 Changed 9 months ago by kencu (Ken)
you need to use clang as the assembler on older systems to get cfi directive support.
Note: See
TracTickets for help on using
tickets.
This merely introduces basic support for i386, it will not build, as of now: