View Issue Details

IDProjectCategoryView StatusLast Update
0038893FPCCompilerpublic2021-05-16 11:25
ReporterKarl-Michael Schindler Assigned ToFlorian  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformdarwinOSMac OS X 
Product Version3.3.1 
Fixed in Version3.3.1 
Summary0038893: commit 49328 breaks cross building the target riscv32-linux on macOS
DescriptionError message:
...
/BlaBla/FreePascal/compiler/ppcrossrv32 -Tlinux -Priscv32 -XPriscv32-linux- -Ur -Xs -O2 -n -Furiscv32 -Fusystems -Fu/BlaBla/FreePascal/rtl/units/riscv32-linux -Firiscv32 -FEriscv32/bin/riscv32-linux -FUriscv32/units/riscv32-linux -dRELEASE -ap -v0 -Fl/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -driscv32 -dGDB -Furiscv -Sew -driscv32 -dGDB -Furiscv -Sew pp.pas
/opt/sw/bin/riscv32-linux-ld: /BlaBla/FreePascal/rtl/units/riscv32-linux/system.o: in function `.Lj4115':
system.pp:(.text.n_fpc_ln_real+0xa0): undefined reference to `FPC_THROWFPUEXCEPTION'
/opt/sw/bin/riscv32-linux-ld: /BlaBla/FreePascal/rtl/units/riscv32-linux/system.o: in function `.Lj4119':
system.pp:(.text.n_fpc_ln_real+0xc4): undefined reference to `FPC_THROWFPUEXCEPTION'
/opt/sw/bin/riscv32-linux-ld: /BlaBla/FreePascal/rtl/units/riscv32-linux/system.o: in function `.Lj4121':
system.pp:(.text.n_fpc_ln_real+0xe4): undefined reference to `FPC_THROWFPUEXCEPTION'
/opt/sw/bin/riscv32-linux-ld: /BlaBla/FreePascal/rtl/units/riscv32-linux/system.o: in function `.Lj4123':
system.pp:(.text.n_fpc_ln_real+0x114): undefined reference to `FPC_THROWFPUEXCEPTION'
/opt/sw/bin/riscv32-linux-ld: /BlaBla/FreePascal/rtl/units/riscv32-linux/system.o: in function `.Lj4127':
system.pp:(.text.n_fpc_ln_real+0x154): undefined reference to `FPC_THROWFPUEXCEPTION'
pp.pas(288,36) Error: Error while linking
pp.pas(288,36) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[3]: *** [ppcrv32] Error 1
make[2]: *** [cycle] Error 2
make[1]: *** [compiler_cycle] Error 2
make: *** [build-stamp.riscv32-linux] Error 2
Steps To Reproducesvn up -r 49328

make all OPT="-ap -Fl/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib" OS_TARGET=linux CPU_TARGET=riscv32
Additional InformationNo other out of about 40 targets is affected, not even riscv32-embedded.

I do not think that this should matter, but for the sake of completeness:

macOS: 11.3.1
Xcode: 12.5
Bootstrap fpc compiler: fpc 3.2.0 64 bit installed using fink
TagsNo tags attached.
Fixed in Revision49374
FPCOldBugId
FPCTarget-
Attached Files

Activities

Karl-Michael Schindler

2021-05-16 11:25

reporter   ~0130916

Thanks. Great work.

Issue History

Date Modified Username Field Change
2021-05-15 11:18 Karl-Michael Schindler New Issue
2021-05-15 20:54 Florian Assigned To => Florian
2021-05-15 20:54 Florian Status new => resolved
2021-05-15 20:54 Florian Resolution open => fixed
2021-05-15 20:54 Florian Fixed in Version => 3.3.1
2021-05-15 20:54 Florian Fixed in Revision => 49374
2021-05-15 20:54 Florian FPCTarget => -
2021-05-16 11:25 Karl-Michael Schindler Status resolved => closed
2021-05-16 11:25 Karl-Michael Schindler Note Added: 0130916