View previous topic :: View next topic |
Author |
Message |
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Sun May 27, 2007 5:25 pm Post subject: gcc-4 not compiling on hardened (amd64) [fixed] |
|
|
Hi there,
I'm using gcc 4.1.2-r1 from kevquinn's toolchain overlay & trying to compile it on amd64 with hardened profile (as a test), but I always get the following message:
Quote: | ch=nocona -pipe -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-f
ormat-attribute -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/var/tmp/portage/sys-devel/gcc-4.1.
2-r1/work/gcc-4.1.2/gcc -I/var/tmp/portage/sys-devel/gcc-4.1.2-r1/work/gcc-4.1.2/gcc/build -I/var/tmp/
portage/sys-devel/gcc-4.1.2-r1/work/gcc-4.1.2/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.1.2-r1
/work/gcc-4.1.2/gcc/../libcpp/include -o build/genmodes.o /var/tmp/portage/sys-devel/gcc-4.1.2-r1/
work/gcc-4.1.2/gcc/genmodes.c
stage1/xgcc -Bstage1/ -B/usr/x86_64-pc-linux-gnu/bin/ -c -DEFAULT_PIE -DEFAULT_RELRO -DEFAULT_BIND_NOW
-O2 -march=nocona -pipe -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-f
ormat-attribute -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/var/tmp/portage/sys-devel/gcc-4.1.
2-r1/work/gcc-4.1.2/gcc -I/var/tmp/portage/sys-devel/gcc-4.1.2-r1/work/gcc-4.1.2/gcc/build -I/var/tmp/
portage/sys-devel/gcc-4.1.2-r1/work/gcc-4.1.2/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.1.2-r1
/work/gcc-4.1.2/gcc/../libcpp/include -o build/errors.o /var/tmp/portage/sys-devel/gcc-4.1.2-r1/wo
rk/gcc-4.1.2/gcc/errors.c
stage1/xgcc -Bstage1/ -B/usr/x86_64-pc-linux-gnu/bin/ -DEFAULT_PIE -DEFAULT_RELRO -DEFAULT_BIND_NOW
-O2 -march=nocona -pipe -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -W
missing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-form
at-attribute -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/genmodes \
build/genmodes.o build/errors.o ../build-x86_64-pc-linux-gnu/libiberty/libiberty.a
/usr/x86_64-pc-linux-gnu/bin/ld: stage1/crtbegin.o: relocation R_X86_64_32 against `_Jv_RegisterClasse
s' can not be used when making a shared object; recompile with -fPIC
stage1/crtbegin.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [build/genmodes] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2-r1/work/build/gcc'
make[1]: *** [stageprofile_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2-r1/work/build/gcc'
make: *** [profiledbootstrap] Error 2
!!! ERROR: sys-devel/gcc-4.1.2-r1 failed.
Call stack:
ebuild.sh, line 1615: Called dyn_compile
ebuild.sh, line 972: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
ebuild.sh, line 1305: Called toolchain_src_compile
toolchain.eclass, line 26: Called gcc_src_compile
toolchain.eclass, line 1537: Called gcc_do_make
toolchain.eclass, line 1411: Called die
!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/sys-devel:gcc-4.1.2-r1:20070528-000940.log'.
!!! This ebuild is from an overlay: '/usr/local/portage' |
anyone has an idea how to solve this?
I also already removed pic from use-flags & switched gcc-3.4.6 to vanilla, no change
many thanks in advance _________________ https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa
Hardcore Gentoo Linux user since 2004
Last edited by kernelOfTruth on Mon May 28, 2007 8:52 am; edited 2 times in total |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sun May 27, 2007 5:42 pm Post subject: |
|
|
Unsupported stuff, so moved here.
Ask kevquinn on irc in #gentoo-hardened or by email _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Mon May 28, 2007 8:49 am Post subject: |
|
|
nixnut wrote: | Unsupported stuff, so moved here.
Ask kevquinn on irc in #gentoo-hardened or by email |
damn! you're fast
(it's at least semi-supported, as it will be soon merged into the main portage-tree)
yeah, I noticed that he wrote on his overlay only to contact him via email
thanks, nixnut, I already "fixed" it
I followed the instructions in that error message Quote: | recompile with -fPIC | and it worked
now recompiling world @amd64 with gcc 4.1.2-r1
let's see if that works too with x86_64 *fingers crossed*
kudos to kevquinn _________________ https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa
Hardcore Gentoo Linux user since 2004 |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|