Portage 2.1.6.3 (default/linux/alpha/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r0, 2.6.27.7 alpha) ================================================================= System uname: Linux-2.6.27.7-alpha-EV68AL-with-glibc2.0 Timestamp of tree: Sat, 27 Dec 2008 10:15:01 +0000 app-shells/bash: 3.2_p48 dev-lang/python: 2.5.2-r8 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.1 sys-apps/sandbox: 1.3.2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.10.2 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="alpha ~alpha" CBUILD="alpha-unknown-linux-gnu" CFLAGS="-mieee -pipe -O2" CHOST="alpha-unknown-linux-gnu" CONFIG_PROTECT="/etc/dispatch-conf.conf /etc/make.conf /etc/portage" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-mieee -pipe -O2" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg cleanpkgdir distclean distlocks fixpackages genpkgindex parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.mirror.solnet.ch" LDFLAGS="-Wl,-O1" MAKEOPTS="-j5" PKGDIR="/packages/" 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://rsync5.de.gentoo.org/gentoo-portage" USE="acl alpha berkdb bindist bzip2 cli cracklib crypt cups dlloader dri fortran gdbm gpm iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx 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" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx vga 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 ------------------- monolith gcc # emerge -pv gcc These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-devel/gcc-4.3.2-r1 USE="fortran mudflap nls openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -gtk (-hardened) -ip28 -ip32r10k -libffi (-multilib) -multislot (-n32) (-n64) -nocxx -nopie* -objc -objc++ -objc-gc -test -vanilla" 0 kB If i build it with USE="nopie" it compiles fine. I'll attach the build log
Created attachment 176501 [details] build.log
Created attachment 176508 [details] config.log This is the mentioned config.log
i can reproduce this, but only natively. cross-compiler works fine ...
Can we commet the PIE_VER and PIE_GCC and wait when solar come back? Solar and I need to fix some stuff in the eclass to get it working. And I don't have any alpha to test with :(
see 10_all_gcc-4.4-gen_crt_start_endfile.patch CRTFILE alpha %{!shared: %{pg|p:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} and we have %{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s} } will that have any thing to do with it? any on the alpha team change this and try gcc.c #define CRTFILE_GEN_SPEC "%{!shared: %{pg|p|profile:gcrt1.o%s;:crt1.o%s}}" to #define CRTFILE_GEN_SPEC "%{!shared: %{pg|p:gcrt1.o%s;:crt1.o%s}}" and #define CRTFILE_PIE_GEN_SPEC "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s} }" to #define CRTFILE_PIE_GEN_SPEC "%{!shared: %{pg|p:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s} }"
pie patches need to be completely impotent by default. in other words, the behavior and output of gcc when SPLIT_SPECS=false needs to be exactly the same as if the pie patches werent applied. even when SPLIT_SPECS=true, the "vanilla" specs must behave the same. ive looked through the pie patchset and it seems fairly benign, so i imagine there's a minor typo or something silly going on. ive also seen a segfault while building gcc-4.3.2-r1 on superh ... i'm rebuilding gcc-4.3.2 (with PIE patches disabled) as 4.3.2-r0 is working otherwise ...
simply reverting the changes to gcc/config/alpha/elf.h seems to fix the segv ...
Doing soem test on a aplpha now Hope it gos well so it something with the crt start end files. a quick fix is to remove the alpha part of the patch and add it later when we have fixed?
Created attachment 176760 [details] fix a typo on the alpha/elf.h file -#define STARTFILE_SPEC "%(ld_pie_crtfile_gen) crti.o%s %(startfile_t_pie_gen)" +#define STARTFILE_SPEC "%(ld_pie_crtfile_gen) crti.o%s %(startfile_pie_t_gen)" happy testing
Thanx for the help armin76
thanks, added to cvs and pushed into gcc-4.3.2-r2 http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.3.2/pie/10_all_gcc-4.4-gen-crt-start-endfile.patch?r1=1.1&r2=1.2