Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Bootstrap fails on ncurses - internal compiler error

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
xanthein
n00b
n00b
Posts: 13
Joined: Sun Apr 11, 2004 10:25 am
Location: London, UK

Bootstrap fails on ncurses - internal compiler error

  • Quote

Post by xanthein » Sun Apr 11, 2004 10:48 am

Hey folks,

I've finally got around to having a stab at getting Gentoo 2004 installed on my Mini-ITX box - this is a Via EPIA CL6000 board with a Via Eden CPU (600MHZ). I've been having countless problems getting things to compile, whether I start at stage1 or stage3. For example, while bootstrapping, I get the following error with ncurses (apologies for any typos - hand copied!)

Code: Select all

../progs/dump_entry.c: In function `dump_init':
../progs/dump_entry.c:260: internal compiler error: in copy_rtx, at rtl.c:378
Please submit a full bug report,
with preprocessed source if appropriate
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is now reproducable, so it is likely a hardawre or OS problem
make[1]: *** [../obj_s/dump_entry.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/ncurses-5.4-r1/work/ncurses-5.4/pro
gs'
make: *** [all] Error 2

!!! Error: sys-libs/ncurses-5.4-r1 failed.
!!! Function src_compile, Line 69, Exitcode 2
!!! make failed
I've already been through checking the hardware out (I ran memtest overnight and it passed 12 out of 12 cycles of tests) and I'm wondering what else could be the culprit. I've tried tweaking my CFLAGS and CHOST back to the bare minimum as you can see in emerge info:

Code: Select all

Portage 2.0.50-r3 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.24-xfs-r3)
=================================================================
System uname: 2.4.24-xfs-r3 i686 VIA Samuel 2
Gentoo Base System version 1.4.3.13
Autoconf:
Automake:
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=i386"
CHOST="i386-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/env.d"
CXXFLAGS="-mcpu=i386"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib png python quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
And finally in case this is any use to people, here's my /proc/cpuinfo:

Code: Select all

processor       : 0
vendor_id       : CentaurHauls
cpu family      : 6
model           : 7
model name      : VIA Samuel 2
stepping        : 3
cpu MHz         : 601.385
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 de tsc msr cx8 mtrr pge mmx 3dnow
bogomips        : 1199.30
So, if anyone has either (a) made Gentoo work on this hardware or (b) has any idea as to how I could proceed from here, I'd be very happy to hear from you :D

Jon.
matrix# reload
Proceed with reload? [confirm]
Connection closed by foreign host.
Top
mattjgalloway
l33t
l33t
Posts: 761
Joined: Tue Mar 16, 2004 10:07 am
Location: Coventry, UK
Contact:
Contact mattjgalloway
Website

  • Quote

Post by mattjgalloway » Sun Apr 11, 2004 10:57 am

I had this exact problem when I installed on an Athlon. I found that the problem was my FSB was set too high. It was an old mobo and the FSB was set by a DIP switch. I'd check that if I were you, as it's the same problem as I had.
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Top
xanthein
n00b
n00b
Posts: 13
Joined: Sun Apr 11, 2004 10:25 am
Location: London, UK

  • Quote

Post by xanthein » Sun Apr 11, 2004 7:43 pm

Unfortunately I can't see any way on this board to change the FSB speed - and I've seen pages elsewhere that seem to say that this is fixed. There's certainly no relevant jumpers or DIP switches on board, nor any options in the BIOS.

Thanks for the suggestion though :)
matrix# reload
Proceed with reload? [confirm]
Connection closed by foreign host.
Top
Arkanjo
n00b
n00b
User avatar
Posts: 24
Joined: Sat May 24, 2003 9:02 pm
Location: Portugal
Contact:
Contact Arkanjo
Website

  • Quote

Post by Arkanjo » Thu Apr 15, 2004 12:06 pm

i'm having the same problem here with a Xeon, stuck here i already tryed to remove some of the CFLAGS options the result is the same.

Does anyone know a way to fix this ?

below is the error :

Code: Select all

make[1]: Entering directory `/var/tmp/portage/ncurses-5.4-r1/work/ncurses-5.4/progs'
sh ./MKtermsort.sh gawk ./../include/Caps >termsort.c
echo "#define PROG_CAPTOINFO \"`echo captoinfo| sed 's/$//'|sed 's,x,x,'|sed 's/$//'`\"" >transform.h
cd ../obj_s;  gcc -I../progs -I. -DHAVE_CONFIG_H -I. -I../include  -D_GNU_SOURCE -DNDEBUG -march=pentium4 -O3 -fomit-frame-pointer -pipe -fPIC -c ../progs/tic.c
../progs/tic.c:46:23: transform.h: No such file or directory
../progs/tic.c: In function `main':
../progs/tic.c:455: error: `PROG_CAPTOINFO' undeclared (first use in this function)
../progs/tic.c:455: error: (Each undeclared identifier is reported only once
../progs/tic.c:455: error: for each function it appears in.)
../progs/tic.c:459: error: `PROG_INFOTOCAP' undeclared (first use in this function)
echo "#define PROG_INFOTOCAP \"`echo infotocap| sed 's/$//'|sed 's,x,x,'|sed 's/$//'`\"" >>transform.h
cd ../obj_s;  gcc -I../progs -I. -DHAVE_CONFIG_H -I. -I../include  -D_GNU_SOURCE -DNDEBUG -march=pentium4 -O3 -fomit-frame-pointer -pipe -fPIC -c ../progs/toe.c
echo "#define PROG_RESET     \"`echo reset|     sed 's/$//'|sed 's,x,x,'|sed 's/$//'`\""     >>transform.h
make[1]: *** [../obj_s/tic.o] Error 1
make[1]: *** Waiting for unfinished jobs....
echo "#define PROG_INIT      \"`echo init|      sed 's/$//'|sed 's,x,x,'|sed 's/$//'`\""      >>transform.h
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/ncurses-5.4-r1/work/ncurses-5.4/progs'
make: *** [all] Error 2

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

Code: Select all

livecd portage # emerge info
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.24-xfs-r3)
=================================================================
System uname: 2.4.24-xfs-r3 i686 Intel(R) Xeon(TM) CPU 2.40GHz
Gentoo Base System version 1.4.3.13
Autoconf:
Automake:
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -fomit-frame-pointer -pipe"
CHOST="i686-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/env.d"
CXXFLAGS="-march=pentium4 -O3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.rnl.ist.utl.pt/pub/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ http://212.219.247.13/sites/www.ibiblio.org/gentoo/ http://212.219.247.16/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl apache2 apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gpm gtk2 imlib jabber jpeg kde ldap libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib png python qt quicktime readline samba sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
There are 10 types of people in the world; those who understand binary, and those who don't
Top
Kirktis
n00b
n00b
Posts: 14
Joined: Thu Apr 15, 2004 1:19 pm

  • Quote

Post by Kirktis » Thu Apr 15, 2004 1:21 pm

I just had a similar problem with a brand new machine, and it is hardware error. You'll have to do some testing and/or experimenting to determine exactly where the error is, in my case it was the motherboard (more accurately, the FSB on the motherboard was overclocked and no way to change it). This has also been known to happen with bad memory, bad PS, or CPU's that run too hot. I would recommend making a liveCD or grabbing a knoppix disk with hardware testing utilities on it to determine where the error lies. These days, I'd place odds heavily on the motherboard since bad memory is becoming more and more rare, and motherboards with built-in overclocking are becoming more popular.
Top
fishpickler
n00b
n00b
Posts: 1
Joined: Thu Apr 15, 2004 2:53 am

  • Quote

Post by fishpickler » Thu Apr 15, 2004 1:34 pm

The problem reported by Arkanjo appears to be bug #47759.
Top
Arkanjo
n00b
n00b
User avatar
Posts: 24
Joined: Sat May 24, 2003 9:02 pm
Location: Portugal
Contact:
Contact Arkanjo
Website

  • Quote

Post by Arkanjo » Thu Apr 15, 2004 2:18 pm

The bug #47759 is the problem i was having.

Anyway this is the way i fix it, change your MAKEOPTS="-j3" to MAKEOPTS="-j2" and then it will compile.
There are 10 types of people in the world; those who understand binary, and those who don't
Top
xanthein
n00b
n00b
Posts: 13
Joined: Sun Apr 11, 2004 10:25 am
Location: London, UK

  • Quote

Post by xanthein » Fri Apr 16, 2004 8:10 am

Thanks for a useful reply Kirktis - it's looking more and more like this is hardware related as I can't pin it down to anything else. I've ran memtest86 on it overnight and it passed 12 cycles of tests with no faults. Can you recommend any other hardware test utilities that I could use to track this fault down?

This box has been running OpenBSD for several months now, with a small handful of crashes (kernel panic, drops into debugger) - possibly related :?

At the moment it's running just fine and is allowing me to make this post, so it can't be entirely bad. I've also read that heat may be a problem, but it's difficult to know how to fix that on a box that is essentially fanless (Eden CPU, Mini-ITX board/case) - and it's been running with the lid off anyway! I very much doubt I could get it replaced under any kind of warranty without being able to conclusively prove there was a fault.

Anyway, thanks all for your help - I'll get to the bottom of this yet!

Jon.
matrix# reload
Proceed with reload? [confirm]
Connection closed by foreign host.
Top
Kirktis
n00b
n00b
Posts: 14
Joined: Thu Apr 15, 2004 1:19 pm

  • Quote

Post by Kirktis » Fri Apr 16, 2004 8:50 am

Some good options for diagnosis tools:

http://micro2000.com/microscope/
http://www.ultimatebootcd.com/
http://www.sol-linux.com/Content/SoLdiag

I've been seriously considering creating a gentoo toolbox liveCD with the abilities of many of these programs as well as a few other things, but the fact of the matter is my time is very limited right now. I hope these resources will help you find the root of your problem.
Top
mattjgalloway
l33t
l33t
Posts: 761
Joined: Tue Mar 16, 2004 10:07 am
Location: Coventry, UK
Contact:
Contact mattjgalloway
Website

  • Quote

Post by mattjgalloway » Fri Apr 16, 2004 9:26 am

This issue is likely to be hardware based, so CFLAG settings could help some people. Try making them less aggressive.

As for the FSB setting - if it's a Giga-Byte mobo then when you go into the BIOS, press Ctrl-F1. It opens up more options on some boards. You should be able to change FSB somewhere.
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Top
deadaim
Guru
Guru
Posts: 467
Joined: Mon Oct 27, 2003 3:16 am
Location: Florida
Contact:
Contact deadaim
Website

  • Quote

Post by deadaim » Fri Apr 16, 2004 5:01 pm

I believe I was getting an error like that. I commented out my USE flags and it worked. Don't ask me how. :?
Top
orange_blob
n00b
n00b
User avatar
Posts: 23
Joined: Tue May 13, 2003 9:38 am
Contact:
Contact orange_blob
Website

  • Quote

Post by orange_blob » Sun Apr 18, 2004 4:40 am

I was also getting this error when i had it setup to use distcc, but now that i have turned it off it seems to be bootstrapping fine. :D
Top
Post Reply

12 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic