An emerge of the "boost" package fails when hardened-gcc 2.4.5 is active. Reproducible: Always Steps to Reproduce: 1. hcc -a 2. emerge boost Actual Results: gcc-C++-action libs/test/build/bin/libboost_unit_test_framework.so/gcc/release/runtime-link-static/shared-linkable-true/unit_test_main.o gcc-Link-action libs/test/build/bin/libboost_unit_test_framework.so/gcc/release/runtime-link-static/shared-linkable-true/libboost_unit_test_framework.so /usr/lib/gcc-lib/i486-pc-linux-gnu/3.2.3/crtbeginS.o(.data.rel+0x0): multiple definition of `__dso_handle' /usr/lib/gcc-lib/i486-pc-linux-gnu/3.2.3/crtbeginT.o(.data+0x0): first defined here collect2: ld returned 1 exit status Chmod1 libs/test/build/bin/libboost_unit_test_framework.so/gcc/release/runtime-link-static/shared-linkable-true/libboost_unit_test_framework.so chmod: failed to get attributes of `libs/test/build/bin/libboost_unit_test_framework.so/gcc/release/runtime-link-static/shared-linkable-true/libboost_unit_test_framework.so': No such file or directory chmod 755 libs/test/build/bin/libboost_unit_test_framework.so/gcc/release/runtime-link-static/shared-linkable-true/libboost_unit_test_framework.so ...failed Chmod1 libs/test/build/bin/libboost_unit_test_framework.so/gcc/release/runtime-link-static/shared-linkable-true/libboost_unit_test_framework.so... ...removing libs/test/build/bin/libboost_unit_test_framework.so/gcc/release/runtime-link-static/shared-linkable-true/libboost_unit_test_framework.so ...failed updating 7 targets... Portage 2.0.49-r18 (selinux-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.0-test11) ================================================================= System uname: 2.6.0-test11 i686 Celeron (Coppermine) Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=i686 -funroll-loops -pipe" CHOST="i486-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/mnt/otherroot/tmp/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="berkdb crypt gdbm ncurses pam perl python readline selinux ssl x86 zlib"
Peter Can you confirm that the boost libraries compile without hgcc in effect?
Yes. The ebuild works, when hcc is disabled. In enforcing mode, no less. :-)
i know it is unfair to close bugs with works for me but i think the versions need to be bumped if the stable one has problems that way... or should i look at the stable one too? nevertheless i have the whole unstable toolchain, so this would not bring much more... HTH, Alex * Caching service dependencies... [ ok ] >>> dev-libs/boost-1.31.0_alpha1 merged. >>> Recording dev-libs/boost in "world" favorites file... 20:09:40 [/usr/local/chroots/chroot001:19173.pty-s0.epoch] epoch ~ # hcc -l glibc: GNU C Library stable release version 2.3.3, by Roland McGrath et al. glibc: Compiled by GNU CC version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7). gcc: gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) ld: GNU ld version 2.14.90.0.7 20031029 config: hcc-3.3.2.1-x86 - /etc/hcc.conf *cpp: %{posix:-D_POSIX_SOURCE} %{!D__KERNEL__: %{!DIN_GCC: %{!nostartfiles: %{!nodefaultlibs: %{!nostdlib: %{!nostdinc: %{!yet_exec: %{!nopie: %{!static: -D__PIC__ -D__pic__ -DPIC }}} } } } } } } %{pthread:-D_REENTRANT} -- *cc1: %(cc1_cpu) %{!D__KERNEL__: %{!DIN_GCC: %{!nostartfiles: %{!nodefaultlibs: %{!nostdlib: %{!nostdinc: %{!yet_exec: %{!nopie: %{!static: -fPIC}}} %{!yno_propolice: %{!fno-stack-protector: %{!fno-stack-protector-all: -fstack-protector -fstack-protector-all -fforce-addr}}} } } } } } } %{profile:-p} -- *endfile: %{static|yet_exec|D__KERNEL__|DIN_GCC: crtend.o%s} %{!static: %{!yet_exec: %{!D__KERNEL__: %{!DIN_GCC: crtendS.o%s}}}} crtn.o%s -- *link: %{!static:--eh-frame-hdr} -m elf_i386 %{shared:-shared} %{!shared: %{!ibcs: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} %{static:-static}}} %{!D__KERNEL__: %{!DIN_GCC: %{!nostartfiles: %{!nodefaultlibs: %{!nostdlib: %{!nostdinc: %{!static: %{!shared: %{!Bshareable: %{!i: %{!r: %{!yet_exec: %{!nopie: %{!static: -pie -z combreloc}}} } } } } } } } } } } } -- *startfile: %{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:%{profile:gcrt1.o%s} %{!profile: %{static|yet_exec|D__KERNEL__|DIN_GCC: crt1.o%s} %{!static: %{!yet_exec: %{!D__KERNEL__: %{!DIN_GCC: crt1S.o%s}}}} }}}} crti.o%s %{static:crtbeginT.o%s} %{!static: %{yet_exec|D__KERNEL__|DIN_GCC: crtbegin.o%s} %{!yet_exec: %{!D__KERNEL__: %{!DIN_GCC: crtbeginS.o%s}}} }