I'm unable to recompile gcc after adding nopie to use flags and removing -nopie from LDFLAGS in /etc/make.conf
Code: Select all
emerge --info =sys-devel/gcc-4.3.4
Portage 2.1.7.16 (hardened/linux/amd64/10.0/no-multilib, gcc-4.3.4-hardenednopie, glibc-2.10.1-r1, 2.6.28-hardened-r9 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-2.6.28-hardened-r9-x86_64-AMD_Phenom-tm-_9600_Quad-Core_Processor-with-gentoo-1.12.13
Timestamp of tree: Sat, 20 Feb 2010 08:15:02 +0000
app-shells/bash: 4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python: 2.6.4
dev-python/pycrypto: 2.1.0_beta1
sys-apps/baselayout: 1.12.13
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.63-r1
sys-devel/automake: 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc: 3.4.6-r2, 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -msse3 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -msse3 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.arcticnetwork.ca/source/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="acl amd64 bash-completion berkdb bzip2 cli cracklib crypt cxx dri gdbm gnutls gpm hardened iconv ipv6 justify mmx modules mudflap ncurses nls nopie nptl nptlonly openmp pam pcre perl pic pppd python readline reflection session spl sse sse2 ssl sysfs tcpd truetype unicode urandom vim-syntax xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Code: Select all
=================================================================
Package Settings
=================================================================
sys-devel/gcc-4.3.4 was built with the following:
USE="hardened mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -fortran -gcj -gtk (-libffi) (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -objc -objc++ -objc-gc -test -vanilla"
CFLAGS="-march=k8 -O2 -pipe -ggdb"
CXXFLAGS="-march=k8 -O2 -pipe -ggdb"
LDFLAGS="-Wl,-O1 -nopie"
Code: Select all
luffy ~ # emerge -pqv =sys-devel/gcc-4.3.4
[ebuild R ] sys-devel/gcc-4.3.4 USE="hardened mudflap nls nopie* nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -fortran -gcj -gtk (-libffi) (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla"
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
...
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.4/work/build'
find: `/var/tmp/portage/sys-devel/gcc-4.3.4/image//usr/lib/pkgconfig/': No such file or directory
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment
/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/x86_64-pc-linux-gnu-gcc
/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/x86_64-pc-linux-gnu-cpp
/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/unprotoize
/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/x86_64-pc-linux-gnu-g++
/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/x86_64-pc-linux-gnu-c++
/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/gtreelang
/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/gcov
/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/protoize
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/crtendS.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/crtprec32.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libgcc_s.so.1
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/crtprec64.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/crtbegin.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/crtbeginS.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/crtprec80.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libmudflap.so.0.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/crtend.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/crtbeginT.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/crtfastmath.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libstdc++.so.6.0.10
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libgomp.so.1.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libmudflapth.so.0.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libgomp.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libgcc.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libgcc_eh.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libsupc++.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libstdc++.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libmudflapth.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libstdc++_pic.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libmudflap.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libgcov.a
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.3.4/cc1
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.3.4/collect2
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.3.4/tree1
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.3.4/cc1plus
/var/tmp/portage/sys-devel/gcc-4.3.4/temp/environment: line 977: /var/tmp/portage/sys-devel/gcc-4.3.4/work/specs/specs: No such file or directory
/var/tmp/portage/sys-devel/gcc-4.3.4/temp/environment: line 978: /var/tmp/portage/sys-devel/gcc-4.3.4/work/specs/specs: No such file or directory
install: cannot stat `/var/tmp/portage/sys-devel/gcc-4.3.4/work/specs/*': No such file or directory
!!! doins: /var/tmp/portage/sys-devel/gcc-4.3.4/work/specs/* does not exist
* ERROR: sys-devel/gcc-4.3.4 failed:
* failed to install specs
*
* Call stack:
* ebuild.sh, line 54: Called src_install
* environment, line 5074: Called toolchain_src_install
* environment, line 5636: Called gcc-compiler_src_install
* environment, line 2697: Called copy_minispecs_gcc_specs
* environment, line 980: Called die
* The specific snippet of code:
* doins "${WORKDIR}"/specs/* || die "failed to install specs";
*
* If you need support, post the output of 'emerge --info =sys-devel/gcc-4.3.4',
* the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.3.4'.
* The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.3.4/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.4/temp/environment'.
* S: '/var/tmp/portage/sys-devel/gcc-4.3.4/work/build'
* QA Notice: file does not exist:
*
* doins: /var/tmp/portage/sys-devel/gcc-4.3.4/work/specs/* does not exist

