Click to See Complete Forum and Search --> : Gentoo Bootstrap failure


ECartman
03-27-2004, 07:56 AM
First time installing gentoo and I am getting the error right away when running the bootstrap script.

First I the script seems to halt briefly and beeps at me saying the the GENTOOLKIT will need to be updated to at least 0.2.0 for some tools to work properly. I am not sure this has anything to do with my ultimate problem though, cause it does continue after sittinf here for a few moments.

Then it apears to start compiling when i get an error saying this:
checking for C compiler default output... configure: error: C compiler cannot create executables
See 'config.log' for more details.
configure: error: /bin/sh ' ./configure' failed for autoconf-lib-link

!!! ERROR: sys-devel/gettext-0.12.1 failed.
!!! Function econf, Line 365, Exitcode 1
!! econf failed

so i tryed 'emerge gentoolkit' and get a similar error
!!! ERROR: sys-devel/patch-2.5.9 failed.
!!! Function src_compile, Line 23, Exitcode 2
!! emake failed

upon a google search I came up with this "cannot bootstrap with ACCEPT_KEYWORDS="~x86" set"
however everything I have done null out the ACCEPT_KEYWORDS value either don't work or create more errors. So am I missing something about how to unset that variable or am I just entirely f'ed up?

Hayl
03-27-2004, 08:54 AM
Originally posted by ECartman
checking for C compiler default output... configure: error: C compiler cannot create executables


usually means that you have a syntax error in your /etc/make.conf in the CFLAGS variable.

make sure that -Os, -O2, or -O3 uses the letter O not the number zero (0).

the ACCEPT_KEYWORDS VARIABLE in /etc/make.conf should be commented out when you install. put a # at the begging of that line.

panther
03-27-2004, 08:55 AM
Have you checked
your USE Flags, CFLAGS, etc in the /etc/make.conf
have you changed these at all?
If for example you have Pentium 4 and the CFLAGS are for athlon
you are most likely to get this error
try nano -w /etc/make.conf
and post the results with your hardware configuration

hardcore
03-27-2004, 09:11 AM
Originally posted by ECartman
First I the script seems to halt briefly and beeps at me saying the the GENTOOLKIT will need to be updated to at least 0.2.0 for some tools to work properly. I am not sure this has anything to do with my ultimate problem though, cause it does continue after sittinf here for a few moments.


That does that with every install, you haven't installed the latest version of portage yet, so this is no problem(its in fact done in bootstrap). You most likely have a CFLAGS problem, check /etc/make.conf for errors.

ECartman
03-27-2004, 10:59 AM
I think I may have had one fo the USE flags mistyped. But I also noticed as I was running through the Guide that I forgot to mount /proc. So, one or them two was the problem it seems. Either way, thanks for the suggestions.

Hayl
03-27-2004, 11:00 AM
emerge ufed and use that to set your USE.

it's an ncurses tool for setting USE.

PS: USE doesn't normally cause that error (never that I have ever seen), it's normally always incorrect CFLAGS.

bandwidth_pig
03-27-2004, 11:53 AM
Originally posted by ECartman
I think I may have had one fo the USE flags mistyped. But I also noticed as I was running through the Guide that I forgot to mount /proc. So, one or them two was the problem it seems. Either way, thanks for the suggestions.

Ahh. Yes...the /proc is a requirement, so if your not mounting it (should be set to mount on it's own in /etc/fstab BTW) you'll need to or you won't get anywhere.
You'll also want to remember this requirement when compiling new kernels. I kept forgetting since I wasn't used to having to use /proc and kept having all kinds of problems.