Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] AMD64 Installation Issue
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
bracketslash
n00b
n00b


Joined: 12 Apr 2013
Posts: 3

PostPosted: Fri Apr 12, 2013 1:14 pm    Post subject: [SOLVED] AMD64 Installation Issue Reply with quote

[/topic]Hello,

I'm having an issue with `emerge gentoo-sources`; it fails at configure: error: C compiler cannot create executables. This happens when it is trying to emerge bh (I believe it is).

I'm currently using a Ubuntu LiveCD to install Gentoo so that I can use wireless. Could this have anything to do with it?

I'd appreciate some help as this issue is occurring on my school laptop.

Thanks,
Alex Elkins


Last edited by bracketslash on Fri Apr 12, 2013 4:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Fri Apr 12, 2013 1:58 pm    Post subject: Reply with quote

from the chroot run
Code:
gcc-config -l
if no gcc is selected, select the newest version

http://www.gentoo.org/doc/en/gcc-upgrading.xml refers

short form chroot procedure: boot install system,then (nominally), as root,
Code:
mkdir /mnt/gentoo
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cp -L /etc/resolv.conf /mnt/gentoo/etc/
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) $PS1"


graceful exit:

Code:
exit
cd
umount -l /mnt/gentoo/dev{/shm,/pts,}
umount -l /mnt/gentoo{/boot,/proc,}
reboot

_________________
Defund the FCC.
Back to top
View user's profile Send private message
bracketslash
n00b
n00b


Joined: 12 Apr 2013
Posts: 3

PostPosted: Fri Apr 12, 2013 2:06 pm    Post subject: Reply with quote

DONAHUE,

Only one version of gcc is installed and is selected. This is straight off of the stage3 in a chroot.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Fri Apr 12, 2013 2:20 pm    Post subject: Reply with quote

after emerge fails there usually is a long message that tells you where the build log is located, from the chroot run
Code:
emerge wgetpaste
wgetpaste /path/buildlog
and post the url
suggest running the steps in the gcc upgrade guide anyway
_________________
Defund the FCC.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Fri Apr 12, 2013 2:24 pm    Post subject: Reply with quote

99.9% chance you will find your error by looking at the output of :
Code:
emerge --info | grep CFLAGS


And if you don't know why, just post emerge --info and everyone will tell you.
Back to top
View user's profile Send private message
bracketslash
n00b
n00b


Joined: 12 Apr 2013
Posts: 3

PostPosted: Fri Apr 12, 2013 3:52 pm    Post subject: Reply with quote

krinn wrote:
99.9% chance you will find your error by looking at the output of :
Code:
emerge --info | grep CFLAGS


And if you don't know why, just post emerge --info and everyone will tell you.


All fixed. Sorry for wasting your guys' time!

For future reference: it must be "-march=native", not "march=native".
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