Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45303 - Cannot compile system from scratch on k6-2, ncurse compile error
Summary: Cannot compile system from scratch on k6-2, ncurse compile error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-21 11:40 UTC by Sebastien
Modified: 2004-03-22 07:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastien 2004-03-21 11:40:57 UTC
I am posting this bug, because I have tried probably a good dozen of different CFLAGS in order to try to 
get gentoo to compile. using march|mcpu=k6-2, march/mcpu=i586, -O1/2/3/s etc...
I ran a mem test and the memory is good, the system was running an old gentoo release about 6 
months ago and was working fine. Now that I wiped everything out and installed from the Universal CD 
Gentoo 2004.0 (using stage3 since I could not bootstrap either;) I can't compile a lot of software even 
though the base stage3 install seems to run fine on it under  kernel 2.6 (ah yes, I was able to compile 
the kernel at least ;)

Reproducible: Always
Steps to Reproduce:
1. modify make.conf to CFLAGS = -O2 -march=i586 -pipe OR -O2 -march=k6-2 -pipe
2. emerge -e world
3.
Actual Results:  
cd ../obj_s;  gcc -DHAVE_CONFIG_H -I../ncurses -I. -I. -I../include  -D_GNU_SOURCE -DNDEBUG -O3 
-march=i586 -pipe -fPIC -c ../ncurses/./tty/lib_tstp.c
cd ../obj_s;  gcc -DHAVE_CONFIG_H -I../ncurses -I. -I. -I../include  -D_GNU_SOURCE -DNDEBUG -O3 
-march=i586 -pipe -fPIC -c ../ncurses/./base/lib_ungetch.c
cd ../obj_s;  gcc -DHAVE_CONFIG_H -I../ncurses -I. -I. -I../include  -D_GNU_SOURCE -DNDEBUG -O3 
-march=i586 -pipe -fPIC -c ../ncurses/./tty/lib_vidattr.c
../ncurses/tty/lib_vidattr.c: In function `vidputs':
../ncurses/tty/lib_vidattr.c:263: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is not reproduceable, so it is likely a hardware or OS problem
make[1]: *** [../obj_s/lib_vidattr.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/ncurses-5.4-r1/work/ncurses-5.4/ncurses'
make: *** [all] Error 2

!!! ERROR: sys-libs/ncurses-5.4-r1 failed.
!!! Function src_compile, Line 62, Exitcode 2
!!! make failed


Expected Results:  
go through the compile.

k6_2 / # emerge info
Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1)
===============================================================
==
System uname: 2.6.3-gentoo-r1 i586 AMD-K6(tm) 3D processor
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i586 -pipe"
CHOST="i586-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/
qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i586 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://www.gtlib.cc.gatech.edu/pub/
gentoo ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow apache2 freetds innodb java mmx mysql pam pdflib perl python samba ssl tcpd x86"

k6_2 / # cat /proc/cpuinfo 
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 5
model           : 8
model name      : AMD-K6(tm) 3D processor
stepping        : 12
cpu MHz         : 501.302
cache size      : 64 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr mce cx8 pge mmx syscall 3dnow k6_mtrr
bogomips        : 989.18
Comment 1 Jon Portnoy (RETIRED) gentoo-dev 2004-03-21 12:27:10 UTC
Have you checked your CPU temperature?
Comment 2 Sebastien 2004-03-22 07:48:52 UTC
Yes, it was a problem with the CPU getting to hot I am afraid. I just open the case and found out that 1 of my fans 2 was not running anymore!!! I was able to recompile the kernel with ACPI support, but unfortunately I don't think my motherboard (FIC 2013) supports thermal control and can give me the CPU temperature. Anyway, I left the case open and turn on the ceiling fan in the office and the compile has been going since this morning 7:00 AM CST and no errors yet ;)

Thanks!