Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475210 - dev-lang/fpc-2.6.2 with fails in make -C fastcgi all
Summary: dev-lang/fpc-2.6.2 with fails in make -C fastcgi all
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amy Liffey
Whiteboard: [ignore-for-stabilization]
Depends on:
Blocks: gold-tracker
  Show dependency tree
Reported: 2013-06-29 12:32 UTC by Maks Verver
Modified: 2020-04-17 14:56 UTC (History)
3 users (show)

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

build.log (build.log,681.04 KB, text/x-log)
2013-06-29 12:33 UTC, Maks Verver
Details (,2.08 KB, patch)
2015-09-26 05:46 UTC, Greg Turner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maks Verver 2013-06-29 12:32:31 UTC
Free Pascal doesn't compile correctly when linking with GNU gold, but since the error doesn't appear at link time, this creates a rather obscure build failure (a segfault in fpmake).

A workaround is to switch back to the libbfd-based linker temporarily, but since that can't be done automatically from the ebuild, it would be helpful if the ebuild would detect when Gold is being used, and print an error message (like is done for the grub-2 ebuilds, for example).  That could save users a lot of time hunting down the cause of the build failure.

Reproducible: Always

Steps to Reproduce:
binutils-config --linker
emerge dev-lang/fpc
Actual Results:  
Build fails invoking fpmake (see attached build.log)

Expected Results:  
Build succeeds.

Portage (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.8.13-gentoo x86_64)
System uname: Linux-3.8.13-gentoo-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-2.2
KiB Mem:     2054640 total,     80516 free
KiB Swap:     522076 total,    233076 free
Timestamp of tree: Fri, 28 Jun 2013 20:15:01 +0000
ld GNU gold (GNU Binutils 2.23.1) 1.11
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5, 3.3.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8::pentoo
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-portage-crossdev spring gentoo-haskell sunrise java-overlay pentoo local
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Q3AEULA RTCW-ETEULA dlj-1.1 Oracle-BCLA-JavaSE skype- AdobeFlash-11.x"
CFLAGS="-O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage-crossdev /var/lib/layman/Spring /var/lib/layman/haskell /var/lib/layman/sunrise /var/lib/layman/java-overlay /var/lib/layman/pentoo /usr/local/portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 apng audioscrobbler berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups curl cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran ftp gdbm gif glut gnutls gpm gtk iconv imap ipod ipv6 jabber jpeg jpeg2k kpathsea lame latex lcms libnotify lm_sensors mad matroska mmx mmxext mng mod modplug modules mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz ncurses network nls nptl nsplugin ogg openal opengl openmp pam pango pcre pdf perl pic png policykit ppds python qt3support qt4 readline samba sdl session sndfile spell sqlite sse sse2 ssl startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower usb v4l2 vorbis win32codecs wxwidgets x264 xcb xine xinerama xml xv xvid zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 1 Maks Verver 2013-06-29 12:33:36 UTC
Created attachment 352234 [details]
Comment 2 Julian Ospald 2013-07-29 19:56:42 UTC
is 2.6.2 affected?
Comment 3 Julian Ospald 2013-07-29 20:14:08 UTC
+  29 Jul 2013; Julian Ospald <> fpc-2.6.2.ebuild:
+  die hard on gnu gold linker wrt #475210

Comment 4 Greg Turner 2015-09-26 05:46:53 UTC
Created attachment 412928 [details, diff]

This is a good-enough solution for now imo.  But see the attachment: I think we should really fix by adding similar to toolchain-functions.eclass (actually it already has the code to do it; it just rarely runs, plus, when it does run, it doesn't finish the job by modifying and exporting PATH).
Comment 5 Pacho Ramos gentoo-dev 2019-12-13 16:07:57 UTC
is 3.0.4 able to get built with gold?