Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc 6.4.0 fails to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
mauricev
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2004
Posts: 149

PostPosted: Tue Dec 26, 2017 10:04 pm    Post subject: gcc 6.4.0 fails to compile Reply with quote

On a system I am building, I get the following compiling gcc

Code:
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `/usr/lib/../lib/crti.o' is incompatible with i386 output
/usr/x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `/usr/lib/../lib/crtn.o' is incompatible with i386 output
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:950: libgcc_s.so] Error 1
make[5]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.4.0/work/build/x86_64-pc-linux-gnu/32/libgcc'
make[4]: *** [Makefile:1161: multi-do] Error 1
make[4]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.4.0/work/build/x86_64-pc-linux-gnu/libgcc'
make[3]: *** [Makefile:120: all-multi] Error 2
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.4.0/work/build/x86_64-pc-linux-gnu/libgcc'
make[2]: *** [Makefile:15659: all-stage1-target-libgcc] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.4.0/work/build'
make[1]: *** [Makefile:20222: stage1-bubble] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.4.0/work/build'
make: *** [Makefile:20554: bootstrap-lean] Error 2


emerge --info at https://pastebin.com/a8MQ73tL
Back to top
View user's profile Send private message
mimosinnet
l33t
l33t


Joined: 10 Aug 2006
Posts: 663
Location: Barcelona, Spain

PostPosted: Wed Dec 27, 2017 1:00 am    Post subject: Re: gcc 6.4.0 fails to compile Reply with quote

mauricev wrote:
/usr/x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `/usr/lib/../lib/crti.o' is incompatible with i386 output
/usr/x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `/usr/lib/../lib/crtn.o' is incompatible with i386 output
collect2: error: ld returned 1 exit status[/code]


Is it possible that you have got the wrong architecture of sys-libs/glibc? If you are installing a new Gentoo system, maybe you have downloaded the wrong stage3.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved.
Take care of the community answering unanswered posts.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7092
Location: Saint Amant, Acadiana

PostPosted: Wed Dec 27, 2017 1:40 am    Post subject: Reply with quote

mauricev is using the new experimental 17.1 profile.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
jnagyjr
n00b
n00b


Joined: 27 Jan 2004
Posts: 64
Location: McMinnville, TN

PostPosted: Sat Dec 30, 2017 12:22 am    Post subject: Reply with quote

Is 17.1 experimental? Ugh. I too am getting gcc compile errors (I opened a bug report on it here and am curious about my architecture choice now). I have a Xeon W3550 and went with amd64 but had been assured by others that was okay (I chose amd64/17.1/desktop/plasma), should I have gone with X86_64 and use the 13.x branch?
_________________
ICQ: 18115568 Yahoo: the_spoon.geo
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3081
Location: Illinois, USA

PostPosted: Sat Dec 30, 2017 1:01 am    Post subject: Reply with quote

Try default/linux/amd64/17.0/desktop/plasma, should be no need to go to default/linux/amd64/13.0/desktop/plasma but if 17.0 doesn't work, try 13.0 and if it works migrate to 17.0 after your system is fully merged.

I switched (using DE but not plasma) to 17.0 from command line with X shut down. I don't think it was required but it seemed to be one less variable for me.
Back to top
View user's profile Send private message
jnagyjr
n00b
n00b


Joined: 27 Jan 2004
Posts: 64
Location: McMinnville, TN

PostPosted: Sat Dec 30, 2017 1:03 am    Post subject: Reply with quote

Can I switch profiles at this point w/o downloading the stage3 tarball again (not an issue, but just one less step)?

Edit: I just went ahead and did it that way (selected new profile, resynced portage), seems to be working. >,<
_________________
ICQ: 18115568 Yahoo: the_spoon.geo
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3081
Location: Illinois, USA

PostPosted: Sat Dec 30, 2017 2:35 am    Post subject: Reply with quote

Switching back to 13.0 should be OK, I think, but there are procedures for switching to 17.0. Which profile did you switch back to? If it was 17.0 and you had already done the migration steps it should be good.
Back to top
View user's profile Send private message
jnagyjr
n00b
n00b


Joined: 27 Jan 2004
Posts: 64
Location: McMinnville, TN

PostPosted: Sat Dec 30, 2017 2:46 am    Post subject: Reply with quote

17.0

eselect profile set <appropriate number associated>

emerge-webrsync --date=(proper timestamp)

emerge --sync

emerge --ask --update --deep --newuse @world

and it picked up gcc, compiled it, and is flying through the rest of it.
_________________
ICQ: 18115568 Yahoo: the_spoon.geo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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