Summary: | =sys-devel/gcc-4.3.2* fails to build on alpha without nopie USE-flag | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Raúl Porcel (RETIRED) <armin76> |
Component: | [OLD] Core system | Assignee: | Alpha Porters <alpha> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hardened, toolchain, zorry |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | Alpha | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
config.log fix a typo on the alpha/elf.h file |
Description
Raúl Porcel (RETIRED)
![]() 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 |