Open mnalis opened 3 years ago
In addition to warning aborting compilation (reported in https://github.com/mnalis/ironseed_fpc/issues/87) this has issues as fpc
does not seem to link libgcc_s
, which is needed on some architectures do divide double precision floating point numbers.
Also, just adding -lgcc_s
does not work as it then breaks on x86_64, for example.
Linking only when needed with --as-needed
also does not work due to position in linker script where fpc
puts it.
More related information:
now it compiles as we manually bruteforce calculated library path and force linking with libgcc_s
, but that makes required shared lib that should not be needed (on other architectures, like armhf
, dpkg-shlibdeps
warns against it.)
Ideally, we'd find out how to sort libraries so -lgcc_s
is only --as-needed
.
Alternatively, but less cleanly, we can modify makefile to detect hardcoded architectures that need libgcc_s
and set FORCE_LIBGCC=1
and add it to linker flags only if required (and add the error to the docs so people compiling will know if they need it elsewhere).
Fails to build from source: https://buildd.debian.org/status/package.php?p=ironseed This has extra error in comparison to
armhf
&arm64