Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489942 - net-firewall/xtables-addons-2.{1,3} with gold linker - /usr/src/linux-3.10.1-hardened-r1/tools/gcc/constify_plugin.so: undefined symbol: build_constructor
Summary: net-firewall/xtables-addons-2.{1,3} with gold linker - /usr/src/linux-3.10.1-...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andreis Vinogradovs ( slepnoga )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-31 09:03 UTC by Marcin Mirosław
Modified: 2015-10-22 08:20 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,19.13 KB, text/plain)
2013-10-31 09:06 UTC, Marcin Mirosław
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2013-10-31 09:03:19 UTC
When I compile hardened-sources with ld.gold then I can't compile xtables-addons.

  x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/net-firewall/xtables-addons-2.3/work/xtables-addons-2.3/extensions/.xt_TARPIT.o.d  -nostdinc -isystem /usr/lib/gcc/
x86_64-pc-linux-gnu/4.7.3/include -I/usr/src/linux-3.10.1-hardened-r1/arch/x86/include -Iarch/x86/include/generated  -Iinclude -I/usr/src/linux-3.10.1-hardened-r1/arc
h/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.10.1-hardened-r1/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.10.1-hardened
-r1/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-
format-security -fno-delete-null-pointer-checks -O2 -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCO
NFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynch
ronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibli
ng-calls -g -femit-struct-debug-baseonly -fno-var-tracking -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -f
plugin=/usr/src/linux-3.10.1-hardened-r1/tools/gcc/constify_plugin.so -DCONSTIFY_PLUGIN -fplugin=/usr/src/linux-3.10.1-hardened-r1/tools/gcc/kernexec_plugin.so -fplug
in-arg-kernexec_plugin-method="bts" -DKERNEXEC_PLUGIN -fplugin=/usr/src/linux-3.10.1-hardened-r1/tools/gcc/colorize_plugin.so -fplugin=/usr/src/linux-3.10.1-hardened-
r1/tools/gcc/size_overflow_plugin.so -DSIZE_OVERFLOW_PLUGIN -fplugin=/usr/src/linux-3.10.1-hardened-r1/tools/gcc/latent_entropy_plugin.so -DLATENT_ENTROPY_PLUGIN  -DM
ODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(xt_TARPIT)"  -D"KBUILD_MODNAME=KBUILD_STR(xt_TARPIT)" -c -o /var/tmp/portage/net-firewall/xtables-addons-2.3
/work/xtables-addons-2.3/extensions/xt_TARPIT.o /var/tmp/portage/net-firewall/xtables-addons-2.3/work/xtables-addons-2.3/extensions/xt_TARPIT.c
cc1: error: cannot load plugin /usr/src/linux-3.10.1-hardened-r1/tools/gcc/constify_plugin.so
/usr/src/linux-3.10.1-hardened-r1/tools/gcc/constify_plugin.so: undefined symbol: build_constructorcc1: error: cannot load plugin /usr/src/linux-3.10.1-hardened-r1/to
ols/gcc/constify_plugin.so
/usr/src/linux-3.10.1-hardened-r1/tools/gcc/constify_plugin.so: undefined symbol: build_constructor
cc1: error: cannot load plugin /usr/src/linux-3.10.1-hardened-r1/tools/gcc/colorize_plugin.so
/usr/src/linux-3.10.1-hardened-r1/tools/gcc/colorize_plugin.so: undefined symbol: pp_base_destroy_prefix
cc1: error: cannot load plugin /usr/src/linux-3.10.1-hardened-r1/tools/gcc/kernexec_plugin.so
/usr/src/linux-3.10.1-hardened-r1/tools/gcc/kernexec_plugin.so: undefined symbol: ix86_cmodel

cc1: error: cannot load plugin /usr/src/linux-3.10.1-hardened-r1/tools/gcc/colorize_plugin.so
/usr/src/linux-3.10.1-hardened-r1/tools/gcc/colorize_plugin.so: undefined symbol: pp_base_destroy_prefix
cc1: error: cannot load plugin /usr/src/linux-3.10.1-hardened-r1/tools/gcc/kernexec_plugin.so
/usr/src/linux-3.10.1-hardened-r1/tools/gcc/kernexec_plugin.so: undefined symbol: ix86_cmodel
cc1: error: cannot load plugin /usr/src/linux-3.10.1-hardened-r1/tools/gcc/size_overflow_plugin.so
/usr/src/linux-3.10.1-hardened-r1/tools/gcc/size_overflow_plugin.so: undefined symbol: debug_tree
cc1: error: cannot load plugin /usr/src/linux-3.10.1-hardened-r1/tools/gcc/latent_entropy_plugin.so
/usr/src/linux-3.10.1-hardened-r1/tools/gcc/latent_entropy_plugin.so: undefined symbol: in_lto_pcc1: error: cannot load plugin /usr/src/linux-3.10.1-hardened-r1/tools
/gcc/size_overflow_plugin.so
/usr/src/linux-3.10.1-hardened-r1/tools/gcc/size_overflow_plugin.so: undefined symbol: debug_tree
cc1: error: cannot load plugin /usr/src/linux-3.10.1-hardened-r1/tools/gcc/latent_entropy_plugin.so
/usr/src/linux-3.10.1-hardened-r1/tools/gcc/latent_entropy_plugin.so: undefined symbol: in_lto_p

make[2]: *** [/var/tmp/portage/net-firewall/xtables-addons-2.3/work/xtables-addons-2.3/extensions/compat_xtables.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/var/tmp/portage/net-firewall/xtables-addons-2.3/work/xtables-addons-2.3/extensions/xt_TARPIT.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-firewall/xtables-addons-2.3/work/xtables-addons-2.3/extensions] Error 2
make[1]: Leaving directory `/usr/src/linux-3.10.1-hardened-r1'
make: *** [modules] Error 2

Reproducible: Always




Portage 2.2.7 (hardened/linux/amd64, gcc-4.7.3, glibc-2.15-r3, 3.10.1-hardened-r1 x86_64)
=================================================================
System uname: Linux-3.10.1-hardened-r1-x86_64-Intel_Xeon_E312xx_-Sandy_Bridge-with-gentoo-2.2
KiB Mem:     2366904 total,     94492 free
KiB Swap:     524284 total,    460900 free
Timestamp of tree: Thu, 31 Oct 2013 05:15:01 +0000
ld GNU gold (GNU Binutils 2.23.1) 1.11
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.2.5-r3
dev-util/ccache:          3.1.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
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.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -mtune=native -frecord-gcc-switches         -fno-unwind-tables -fno-asynchronous-unwind-tables -fpeel-loops         -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=core2 -mtune=native -frecord-gcc-switches         -fno-unwind-tables -fno-asynchronous-unwind-tables -fpeel-loops         -ftracer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache collision-protect compressdebug 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 usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirror.pw.edu.pl/ http://ftp.vectranet.pl/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-O"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="acl acpi amd64 bash-completion caps cli cracklib crypt cxx dri hardened iconv idn justify mmx mmxext modules mudflap multilib ncurses nls nptl openmp pax_kernel pcre postgres readline session sse sse2 sse3 ssse3 threads unicode urandom vhosts vim-syntax xattr" ABI_X86="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="authz_host dir mime unique_id" APACHE2_MPMS="itk" 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" NGINX_MODULES_HTTP="access auth_basic browser charset fastcgi gzip gzip_static headers_more limit_conn limit_req proxy realip referer rewrite userid" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="tarpit"
USE_PYTHON="3.2"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Marcin Mirosław 2013-10-31 09:06:41 UTC
Created attachment 362346 [details]
build.log
Comment 2 Anthony Basile gentoo-dev 2015-07-06 12:35:32 UTC
Can you please try again.  This is an older bug and gold is not something we fully support in gentoo.
Comment 3 Marcin Mirosław 2015-07-07 19:41:09 UTC
Sine some time I din't have to change linker to bfd, it means that problem disappeared somewhen.
Comment 4 Anthony Basile gentoo-dev 2015-10-22 08:20:42 UTC
(In reply to Marcin Mirosław from comment #3)
> Sine some time I din't have to change linker to bfd, it means that problem
> disappeared somewhen.

I'd like to be able to support gold, but at this time its not possible.  So I'm going to close this bug.  If at some future time gold becomes more mainstream in Gentoo, we can return to the issue.