View previous topic :: View next topic |
Author |
Message |
SkyLeach Apprentice
Joined: 05 Nov 2002 Posts: 177 Location: Knoxville, TN
|
Posted: Mon Feb 07, 2005 12:14 am Post subject: Old user, new problems... |
|
|
Ok, due to network card configuration problems with kernel 2.6 (3com card with no HW MAC built-in which makes the driver fail under kernel versions 2.6.8 and highter up to 2.6.10) I needed to boot with a 2.4 kernel.
Since I already had a 1.4 livecd I decided to use this. I used the 2004.3 stage1 and the latest portage snapshot to bootstrap.
Everything was going fine until I tried to emerge system, which failed on gettext as shown here:
Code: |
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --without-included-gettext --enable-nls
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
configure: creating ./config.status
config.status: creating Makefile
configure: configuring in autoconf-lib-link
configure: running /bin/sh './configure' --prefix=/usr '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--without-included-gettext' '--enable-nls' 'CC=gcc' 'CFLAGS=-march=athlon-mp -O3 -pipe -fomit-fram-pointer' 'CXXFLAGS=-march=athlon-mp -O3 -pipe -fomit-fram-pointer' 'CXX=gcc' 'host_alias=i686-pc-linux-gnu' --cache-file=/dev/null --srcdir=.
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for i686-pc-linux-gnu-gcc... gcc
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
!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/gettext-0.12.1-r2/work/gettext-0.12.1/config.log
!!! ERROR: sys-devel/gettext-0.12.1-r2 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.
|
I checked gcc-config and got the following info:
Code: |
cdimage / # gcc-config -l
[1] i386-pc-linux-gnu-3.3.4 *
|
Seems odd, but I suppose it's not unreasonable. I checked other settings...
Code: |
cdimage / # gcc --version
gcc (GCC) 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
cdimage / # fix_libtool_files.sh 3.3.2
* Scanning libtool files for hardcoded gcc library paths...
* Scanning /lib...
* Scanning /usr/lib...
* Scanning /usr/local/lib...
cdimage / # fix_libtool_files.sh 3.3.1
* Scanning libtool files for hardcoded gcc library paths...
* Scanning /lib...
* Scanning /usr/lib...
* Scanning /usr/local/lib...
cdimage / # fix_libtool_files.sh 3.3.3
* Scanning libtool files for hardcoded gcc library paths...
* Scanning /lib...
* Scanning /usr/lib...
* Scanning /usr/local/lib...
cdimage / # fix_libtool_files.sh 3.3.4
* Scanning libtool files for hardcoded gcc library paths...
cdimage / # fix_libtool_files.sh 3.3.0
* Scanning libtool files for hardcoded gcc library paths...
* Scanning /lib...
* Scanning /usr/lib...
* Scanning /usr/local/lib...
fix_libtool_files.sh `gcc -dumpversion` --oldarch i386-pc-linux-gnu * Scanning libtool files for hardcoded gcc library paths...
cdimage portage # ls -alh /usr/bin/i686-pc-linux-gnu-c++
-rwxr-xr-x 1 root root 6.9K Feb 6 19:07 /usr/bin/i686-pc-linux-gnu-c++
cdimage / # i686-pc-linux-gnu-c++ -dumpversion
gcc-config error: Could not run/locate "i686-pc-linux-gnu-c++"
cdimage / # gcc -dumpmachine
i386-pc-linux-gnu
|
Now I may not be the sharpest tool in the shed, but I'm pretty sure that if my CHOST is i686-pc-linux-gnu:
Code: |
cdimage root # grep ^CHOST /etc/make.conf
CHOST="i686-pc-linux-gnu"
|
Then my gcc hardware target should also be that.
Dunno how to fix this other than to re-bootstrap (which I'm trying now) but stands to reason that if it didn't work the first time it may not work this time.
Any pointers welcome... _________________ -SL
http://www.skyleach.org |
|
Back to top |
|
|
donjuan l33t
Joined: 11 May 2004 Posts: 760 Location: At Uni
|
|
Back to top |
|
|
SkyLeach Apprentice
Joined: 05 Nov 2002 Posts: 177 Location: Knoxville, TN
|
Posted: Mon Feb 07, 2005 3:28 pm Post subject: I don't think it was that... |
|
|
I think I found my problem, but I would like a second opinion if anyone has one.
I wanted to try nptl on my new machine (dual processor athlon-mp system) so I enabled the nptl use flag, but since I was forced to boot with kernel 2.4 perhaps that was a mistake, since nptl isn't in kernel 2.4...
Probably broke my own gcc by doing that.
chicken-and-egg problem here, because I can't really do much with my system until I get a newer copy of 2.6 than the one on the livecd and I don't know that I can get a copy of the kernel built before I bootstrap.
I dunno, is the stage1 enough of a system to boot and continue the install if I put grub and a kernel on it? _________________ -SL
http://www.skyleach.org |
|
Back to top |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 2969
|
Posted: Mon Feb 07, 2005 3:58 pm Post subject: |
|
|
Have you read the NPTL from stage 1 tutorial yet?
If stability is more of your concern, yet you want NPTL, use the Stage 1-on-3 installation method.
Both methods require nothing more than a liveCD that supports your hardware. Even a minimal liveCD will do. |
|
Back to top |
|
|
donjuan l33t
Joined: 11 May 2004 Posts: 760 Location: At Uni
|
Posted: Tue Feb 08, 2005 3:53 am Post subject: |
|
|
In your first post you said that you have the problem with kernel 2.6.8 and higher up to 2.6.10, so shouldn't any of the 2004.0-2004.2 LiveCDs work? They all have 2.6 kernels earlier than 2.6.8. _________________ Command-line ACCEPT_KEYWORDS is considered harmful, use the package.* files.
The Stage 1 on 3 Install |
|
Back to top |
|
|
SkyLeach Apprentice
Joined: 05 Nov 2002 Posts: 177 Location: Knoxville, TN
|
Posted: Tue Feb 08, 2005 3:13 pm Post subject: My mistake... |
|
|
I thought from a previous post I read on another forum that the problem was 2.6.8 and above but I was mistaken. The problem shows itself in neumerous kernel versions in 2.5 and 2.6 but I don't know how far back in the progression it started.
The "bug" (actually, it was put in intentionally by a dev purist) is that when a 3com card has a balanked-out or removed eeprom then the 3c59x driver halts with an error -22. In reality, this shouldn't happen because the 3com cards will allow you to set the HW mac address with the ifconfig command, and you have to have the driver loaded to install a new EEPROM from software as I understand it. I'm pretty new to all the 3com stuff but this is what I have gathered so far from googling the problem. _________________ -SL
http://www.skyleach.org |
|
Back to top |
|
|
donjuan l33t
Joined: 11 May 2004 Posts: 760 Location: At Uni
|
Posted: Tue Feb 08, 2005 4:56 pm Post subject: Kinda lost me there but this should work |
|
|
An alternative is to build the system without NPTL then setup NPTL later. All this would require is after you have a working system (with a 2.6 kernel of course) add nptl to your USE flags then do Code: | emerge -C linux-headers
emerge linux26-headers
emerge glibc |
_________________ Command-line ACCEPT_KEYWORDS is considered harmful, use the package.* files.
The Stage 1 on 3 Install |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
|
Back to top |
|
|
|