Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712580 - dev-lang/fpc-3.2.2 : (.text+<snip>): undefined reference to _libc_csu_init
Summary: dev-lang/fpc-3.2.2 : (.text+<snip>): undefined reference to _libc_csu_init
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords:
: 919869 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-03-14 22:31 UTC by Toralf Förster
Modified: 2024-11-08 21:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.40 KB, text/plain)
2020-03-14 22:31 UTC, Toralf Förster
Details
dev-lang:fpc-3.0.4:20200314-205846.log (dev-lang:fpc-3.0.4:20200314-205846.log,364.68 KB, text/plain)
2020-03-14 22:31 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,88.39 KB, text/plain)
2020-03-14 22:31 UTC, Toralf Förster
Details
environment (environment,46.27 KB, text/plain)
2020-03-14 22:31 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.71 KB, application/x-bzip)
2020-03-14 22:31 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,2.30 KB, application/x-bzip)
2020-03-14 22:31 UTC, Toralf Förster
Details
fpc-3.2.2 build log (fpc-3.2.2:20241104-193449.log,494.11 KB, text/plain)
2024-11-04 22:18 UTC, Norayr Chilingarian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-03-14 22:31:13 UTC
/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"
Comment 1 Toralf Förster gentoo-dev 2020-03-14 22:31:16 UTC
Created attachment 619214 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-14 22:31:19 UTC
Created attachment 619216 [details]
dev-lang:fpc-3.0.4:20200314-205846.log
Comment 3 Toralf Förster gentoo-dev 2020-03-14 22:31:21 UTC
Created attachment 619218 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-14 22:31:25 UTC
Created attachment 619220 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-14 22:31:28 UTC
Created attachment 619222 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-14 22:31:31 UTC
Created attachment 619224 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-16 16:12:27 UTC
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.
Comment 8 Agostino Sarubbo gentoo-dev 2024-02-21 08:17:13 UTC
tinderbox_x86 has reproduced this issue with version 3.2.2 - Updating summary.
Comment 9 Agostino Sarubbo gentoo-dev 2024-02-21 08:17:49 UTC
*** Bug 919869 has been marked as a duplicate of this bug. ***
Comment 10 Agostino Sarubbo gentoo-dev 2024-03-04 08:57:25 UTC
hit the same on x86 and arm64 (both glibc)
Comment 11 Norayr Chilingarian 2024-11-04 22:18:44 UTC
Created attachment 907897 [details]
fpc-3.2.2 build log

log of fpc build on aarch64/pinebook.
Comment 12 Norayr Chilingarian 2024-11-04 22:20:17 UTC
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.
Comment 13 Norayr Chilingarian 2024-11-08 21:05:57 UTC
now when i used fpc binary version, lazarus doesn't build with the same --libc_csu_fini error.