/usr/bin/ld: warning: link.res contains output sections; did you forget -T? /usr/bin/ld: /var/tmp/portage/dev-lang/fpc-3.0.4/work/fpcbuild-3.0.4/fpcsrc/rtl/units/x86_64-linux/cprt0.o: in function _start: (.text+0x3c): undefined reference to __libc_csu_init /usr/bin/ld: (.text+0x43): undefined reference to __libc_csu_fini fpmake.pp(47,1) Error: Error while linking fpmake.pp(47,1) Fatal: There were 1 errors compiling module, stopping ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl-20200311-204810 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-gentoo-linux-musl-9.2.0 * [2] x86_64-gentoo-linux-musl-9.3.0 clang version 10.0.0 Target: x86_64-gentoo-linux-musl Thread model: posix InstalledDir: /usr/lib/llvm/10/bin /usr/lib/llvm/10 10.0.0 Available Python interpreters, in order of preference: [1] python3.8 [2] python3.7 [3] python3.6 [4] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * Available Rust versions: [1] rust-1.41.1 * The following VMs are available for generation-2: repository: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Sat, 14 Mar 2020 19:38:56 +0000 emerge -qpvO dev-lang/fpc [ebuild N ] dev-lang/fpc-3.0.4 USE="-doc -ide -source"
Created attachment 619214 [details] emerge-info.txt
Created attachment 619216 [details] dev-lang:fpc-3.0.4:20200314-205846.log
Created attachment 619218 [details] emerge-history.txt
Created attachment 619220 [details] environment
Created attachment 619222 [details] etc.portage.tbz2
Created attachment 619224 [details] logs.tbz2
The first attempt to tinderbox a musl image failed at all. I'll mass close therefore all filed bug reports of the last days related to this tinderbox image. Please feel free to re-open if you think that the bug is real in musl and not fixed by the musl overlay.
tinderbox_x86 has reproduced this issue with version 3.2.2 - Updating summary.
*** Bug 919869 has been marked as a duplicate of this bug. ***
hit the same on x86 and arm64 (both glibc)
Created attachment 907897 [details] fpc-3.2.2 build log log of fpc build on aarch64/pinebook.
i also have this problem on aarch64 with glibc system. however when i download binary aarch64 fpc 3.2.2 from freepascal.org, it works well.
now when i used fpc binary version, lazarus doesn't build with the same --libc_csu_fini error.
We need this to fix build on x86 and >=glibc-2.34: https://gitlab.com/freepascal.org/fpc/source/-/commit/cb2704dfb22c30aca8cd64b171d47e3a740f12bc
(In reply to Norayr Chilingarian from comment #12) > i also have this problem on aarch64 with glibc system. > > however when i download binary aarch64 fpc 3.2.2 from freepascal.org, it > works well. Does this patch help? https://gitlab.com/freepascal.org/fpc/source/-/commit/a20a7e3497bccf3415bf47ccc55f133eb9d6d6a0
(In reply to Alexander Tsoy from comment #15) > (In reply to Norayr Chilingarian from comment #12) > > i also have this problem on aarch64 with glibc system. > > > > however when i download binary aarch64 fpc 3.2.2 from freepascal.org, it > > works well. > Does this patch help? > https://gitlab.com/freepascal.org/fpc/source/-/commit/ > a20a7e3497bccf3415bf47ccc55f133eb9d6d6a0 i have applied that patch manually, but alas, no. same error while building: -------- pmake.pp -n -Fu/mnt/mmc/gentoo/tmp/portage/dev-lang/fpc-3.2.2/work/fpcbuild-3.2.2/fpcsrc/packages/fpmkunit/units_bs/aarch64-linux -Fu/mnt/mmc/gentoo/tmp/portage/dev-lang/fpc-3.2.2/work/fpcbuild-3.2.2/fpcsrc/rtl/units/aarch64-linux /usr/bin/ld: /mnt/mmc/gentoo/tmp/portage/dev-lang/fpc-3.2.2/work/fpcbuild-3.2.2/fpcsrc/rtl/units/aarch64-linux/cprt0.o: in function `_start': (.text+0x54): undefined reference to `__libc_csu_init' /usr/bin/ld: (.text+0x58): undefined reference to `__libc_csu_init' /usr/bin/ld: (.text+0x5c): undefined reference to `__libc_csu_fini' /usr/bin/ld: (.text+0x60): undefined reference to `__libc_csu_fini' fpmake.pp(60) Error: Error while linking fpmake.pp(60) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted -----------------------