Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47759 - Gentoo v2004.0 Stage 1 bootstrap fails at ncurses with undeclared identifier
Summary: Gentoo v2004.0 Stage 1 bootstrap fails at ncurses with undeclared identifier
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-13 14:37 UTC by Ed V.
Modified: 2004-04-19 19:14 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 Ed V. 2004-04-13 14:37:30 UTC
"Cookbook" install of 2004.0 (although 2004.1 is listed as a version option, none of the mirrors I checked have any images as of yet...)  During the Stage 1 to Stage 2 bootstrap process (using "[...]" to show non-error stages of the compile for clarity).  Once ncurses fails, there is no obvious method to proceed, bypass or otherwise continue the install (including searched hints to "export USE=" for the bootstrap, trying to specify "-ncurses" failed).


>>> emerge (1 of 4) sys-libs/ncurses-5.4-r1 to /
>>> md5 src_uri ;-) ncurses-5.4.tar.gz
>>> Unpacking source...
>>> Unpacking ncurses-5.4.tar.gz to /var/tmp/portage/ncurses-5.4-r1/work
 * Applying ncurses-5.4-xterm.patch...                                    [ ok ]
 * Applying ncurses-5.4-share-sed.patch...                                [ ok ]
>>> Source unpacked.
bootstrap
[...]
** Configuration summary for NCURSES 5.4 20040208:

      bin directory: /usr/bin
      lib directory: /lib
  include directory: /usr/include
      man directory: /usr/share/man
 terminfo directory: /usr/share/terminfo
[...]
echo "#define PROG_INFOTOCAP \"`echo infotocap| sed 's/$//'|sed 's,x,x,'|sed 's/$//'`\"" >>transform.h
../progs/tic.c: In function `main':
../progs/tic.c:459: error: `PROG_INFOTOCAP' undeclared (first use in this function)
../progs/tic.c:459: error: (Each undeclared identifier is reported only once
../progs/tic.c:459: error: for each function it appears in.)
cd ../obj_s;  gcc -I../progs -I. -DHAVE_CONFIG_H -I. -I../include  -D_GNU_SOURCE -DNDEBUG -O3 -march=athlon-mp -pipe -fomit-frame-pointer -fPIC -c ../progs/toe.c
echo "#define PROG_RESET     \"`echo reset|     sed 's/$//'|sed 's,x,x,'|sed 's/$//'`\""     >>transform.h
echo "#define PROG_INIT      \"`echo init|      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 -O3 -march=athlon-mp -pipe -fomit-frame-pointer -fPIC -c ../progs/infocmp.c
make[1]: *** [../obj_s/tic.o] Error 1
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

Reproducible: Always
Steps to Reproduce:
1. Boot "Universal" CD for x86
2. Proceed as the manual specifies for a Stage 1 install
3. Extract Stage 1 and continue
4. At the "cd /usr/portage", "scripts/bootstrap.sh" stage sit back and watch.

Actual Results:  
See captured errors in details.

Expected Results:  
Successful build and install.

livecd portage # emerge info
Portage 2.0.50-r5 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.1-gentoo-r2)
=================================================================
System uname: 2.6.1-gentoo-r2 i686 AMD Athlon(tm) MP 2000+
Gentoo Base System version 1.4.3.13
Autoconf:
Automake:
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-mp -pipe -fomit-frame-pointer"
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="-O3 -march=athlon-mp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/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 gnome gtk gtk2 ipv6 kde qt x86"

livecd portage # cat /proc/meminfo
MemTotal:      3109132 kB
MemFree:       2393860 kB
Buffers:        192628 kB
Cached:         409852 kB
SwapCached:          0 kB
Active:         238096 kB
Inactive:       366544 kB
HighTotal:     2227648 kB
HighFree:      1810560 kB
LowTotal:       881484 kB
LowFree:        583300 kB
SwapTotal:     2939884 kB
SwapFree:      2939884 kB
Dirty:               0 kB
Writeback:           0 kB
Mapped:           6052 kB
Slab:            96028 kB
Committed_AS:    10308 kB
PageTables:        240 kB
VmallocTotal:   114680 kB
VmallocUsed:      4764 kB
VmallocChunk:   109912 kB
Comment 1 Warren 2004-04-14 15:16:23 UTC
I ran into this installing from 2004.0 universal livecd on amd64. Backed off CFLAGS="-O2" USE="" and still no compile.
Comment 2 Ricardo Nuno 2004-04-15 07:14:38 UTC
I had the exact same problem. Some guys say it's a Hardware issue
you can check it on: http://forums.gentoo.org/viewtopic.php?t=160118

But here is how i fix it, change your MAKEOPTS="-j3" to MAKEOPTS="-j2"
it worked for me.
Comment 3 Ed V. 2004-04-15 09:30:41 UTC
Well, with no changes on my part, I re-ran "emerge sync" this morning.  Although the _version_ of ncurses did not change (still v5.4-r1), the timestamps and checksums _did_ change from:
4240 Apr  2 18:18 ncurses-5.4-r1.ebuild
0d583448d47001965891c80862fa42dd2faae6d1  ncurses-5.4-r1.ebuild (sha1)
to:
4493 Apr 15 05:19 ncurses-5.4-r1.ebuild
a769224c4f8267592219532d556fd721b7a6ec49  ncurses-5.4-r1.ebuild (sha1)

So thanks to the "Mystery Patcher" it looks like ncurses is now fixed.  It does make me wonder though that it appears normal fix process and notification did not happen...

I'll leave this open just in case there are more issues.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2004-04-19 19:14:53 UTC
Seems to be working.