In my experience installig Gentoo Stage 1 on my AMD K6-2 500Mhz server,
I found that I had a lot of problems getting software to compile. Some
things worked, and some didn't, but the errors were always repeatable.
One day I decided to try changing something in my make.conf file. I
changed -march=k6-2 to -march=i586 and everything worked beautifully
afterwards. I still used the -O2 -pipe -fomit-frame-pointer
optimizations and all worked well. Even though the K6-2 is a 686 class
chip, it will not function as one correctly in linux.
Jason Castonguay wrote:
Hello list members.
I just joined the list and am looking forward to participating and
learning. I am in the process of installing Gentoo and have run into a
problem that will not go away. I have researched it in the Gentoo forums,
but have not found a definite solution to the problem. I hope that I am
not missing anything because I realize how frustrating it can be to deal
with recurring questions.
I am running an AMD k6-2 500 MHZ processor on a FIC VA-503+ motherboard.
Initially, I had only 128MB of RAM and was installing the 2005.0 release
of Gentoo following instructions from the verbose handbook. I opted to go
with a stage 1 tarball and was doing fine until the bootstrap process. My
computer chugged away for quite some time and suddenly gave up. Above the
four lines of `!!!' messages, I saw a message indicating that the error
was not software based and was most likely a hardware/OS problem. I went
to the Gentoo forums and tried looking this up and found several different
posts. Unfortunately, I didn't find the forum interface very easy to
navigate, but my search yielded an interesting document:
http://forums.gentoo.org/viewtopic-t-319349.html
Which gives instructions for performing a stage 1 install using a stage 3
tarball. I thought, somehow, that since this came up as part of my search
results, I would try this. Furthermore, the reasoning behind it made
sense to me and it sounded like a challenge (I can't resist a good
challenge). However, I am still encountering an error at the point where
I am at section 7.1 Building the Toolkit: GCC 3.3.5 in the document I
referenced above. I have determined that the error occurs quite a ways
into the glibc portion of the `emerge gcc-config glibc binutils gcc' by
running each command separately.
I investigated further and saw messages from others having similar
problems. Another possible reason for the error is that the system runs
out of memory. However, I have upgraded to 512MB of memory and am still
experiencing the problem. I do have swap space allocated and see it
available when I type `free' but it doesn't seem to be used. I checked
regularly during the emerge process and it was either not used at all or
used very little.
Here is the last screen at which the error occurs. Unfortunately, I am
not able to scroll back any further due to the limitations of speakup (I
am a blind Linux user and use speakup to get text from the screen spoken).
_________________________________________________________________
e754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/include -isystem /usr/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h -DNOT_IN_libc=1
-DIS_IN_librt=1 -DBROKEN_THREAD_SIGNALS -o
/var/tmp/portage/glibc-2.3.4.20050125-r1/work/build-default-i586-pc-linux-gnu-linuxthreads/rt/aio_notify.og
-MD -MP -MF
/var/tmp/portage/glibc-2.3.4.20050125-r1/work/build-default-i586-pc-linux-gnu-linuxthreads/rt/aio_notify.og.dt
-MT
/var/tmp/portage/glibc-2.3.4.20050125-r1/work/build-default-i586-pc-linux-gnu-linuxthreads/rt/aio_notify.og
The bug is not reproducible, so it is likely a hardware or OS problem.
make[2]: ***
[/var/tmp/portage/glibc-2.3.4.20050125-r1/work/build-default-i586-pc-linux-gnu-linuxthreads/rt/lio_listio64.og]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/glibc-2.3.4.20050125-r1/work/glibc-2.3.4/rt'
make[1]: *** [rt/others] Error 2
make[1]: Leaving directory
`/var/tmp/portage/glibc-2.3.4.20050125-r1/work/glibc-2.3.4'
make: *** [all] Error 2
!!! ERROR: sys-libs/glibc-2.3.4.20050125-r1 failed.
!!! Function toolchain-glibc_src_compile, Line 237, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status
message.
livecd / #
_________________________________________________________________
Again, this is generally the same error I got when bootstrapping.
Here is a copy of my make.conf:
_________________________________________________________________
# These settings were set by the catalyst build script that automatically built
this stage
# Please consult /etc/make.conf.example for a more detailed example
CHOST="i586-pc-linux-gnu"
CFLAGS="-O2 -march=k6-2 -fomit-frame-pointer -pipe"
CXXFLAGS=${CFLAGS}
# "x86" refers to the stable software branch
# "~x86" refers to the testing software branch
ACCEPT_KEYWORDS="x86"
PORTAGE_TMPDIR=/var/tmp
PORTDIR=/usr/portage
DISTDIR=${PORTDIR}/distfiles
PKGDIR=${PORTDIR}/packages
PORT_LOGDIR=/var/log/portage
PORTDIR_OVERLAY=/usr/local/portage
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://gentoo.risq.qc.ca/
http://distro.ibiblio.org/pub/linux/distributions/gentoo/
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="180"
MAKEOPTS="-j2"
PORTAGE_NICENESS="3"
AUTOCLEAN="yes"
FEATURES="ccache distlocks sandbox userpriv usersandbox"
CCACHE_SIZE="512M"
RSYNC_EXCLUDEFROM=/etc/portage/rsync_excludes
#USE="ithreads nptl accessibility aac aim icq msn yahoo audiofile \
# bash-completion bzip2 cdparanoia curl curlwrappers doc emacs \
# encode examples flac flash ftp imap java javascript mad mime \
# ming mysql mysqli offensive ogg openal pdflib php sasl sox \
# speex spl usb vorbis win32codecs xml \
# -apm -emboss -fortran"
USE="nptl"
_________________________________________________________________
I know I am following the instructions to the letter, so I don't believe I
am doing anything wrong. Btw, the commented USE section was something I
used and abandoned. I thought that maybe the number of USE flag had
something to do with the error, but it doesn't appear to. Ah yes, and if
this helps, here is what `uname -a' says:
Linux livecd 2.6.11-gentoo-r3 #1 SMP Fri Mar 18 17:53:40 UTC 2005 i586
AMD-K6(tm) 3D processor AuthenticAMD GNU/Linux
I would appreciate any help that anyone has to offer. If this has been
covered before, please forgive me and point me to the right resources. I
am hoping that I can continue with this interesting installation process
of using a stage 3 tarball for a stage 1 install. Although I barely know
anything about Gentoo, it sounds really awesome.
I appreciate your time in reading this lengthy, rambly message. :-)
Best regards,
--
"Let music echo the thoughts of your soul."
-- Jason Castonguay <[EMAIL PROTECTED]>
--
gentoo-user@gentoo.org mailing list