Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16207 - Ncurses fails during bootstrap.sh of system
Summary: Ncurses fails during bootstrap.sh of system
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-22 20:43 UTC by Brett I. Holcomb
Modified: 2005-01-30 13:42 UTC (History)
1 user (show)

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


Attachments
ncurses config.log for this bug. (config.log,43.34 KB, text/*)
2003-02-22 20:46 UTC, Brett I. Holcomb
Details
ncurses config.log for this bug. (config.log,43.34 KB, text/plain)
2003-02-22 20:46 UTC, Brett I. Holcomb
Details
ncurses config.log for this bug. (config.log,43.34 KB, application/octet-stream)
2003-02-22 20:48 UTC, Brett I. Holcomb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brett I. Holcomb 2003-02-22 20:43:52 UTC
NOTE - This occured during bootstrap.sh and I DID do the env-update, source
/etc/profile per the instructions.

I chrooted, went through the steps and did scripts/bootstrap.sh from
/usr/portage.  All went well until it attempted to compile ncurses-5.3 and then
cpp failed the sanity check.

This happened twice in a row.


Reproducible: Always
Steps to Reproduce:
1.Set up per instructions.  Do chroot
2.cd to /usr/portage
3.scripts/bootstrap.sh

Actual Results:  
cpp failed sanity check in ncurses.

Expected Results:  
Completed the bootstrap.

I have the config.log and tar of the ncurses work directory that I can send on
if someone will tell me how.
Comment 1 Brett I. Holcomb 2003-02-22 20:46:20 UTC
Created attachment 8614 [details]
ncurses config.log for this bug.
Comment 2 Brett I. Holcomb 2003-02-22 20:46:52 UTC
Created attachment 8616 [details]
ncurses config.log for this bug.
Comment 3 Brett I. Holcomb 2003-02-22 20:48:05 UTC
Created attachment 8617 [details]
ncurses config.log for this bug.
Comment 4 Brett I. Holcomb 2003-02-22 21:07:27 UTC
I attempted to upload the tar of the ncurses work directory but it says it's too large.  I do not have a web site to post it on.

The file is 11.1 meg and I'd be glad to send it if you need it.
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-02-23 15:32:45 UTC
  Because ncurses-5.3 have c++ bindings, we cannot enable them during
  bootstrap.  Thus disable it if "build" or "bootstrap" in USE, and
  then get bootstrap.sh to rebuild it afterwards without those flags.
  Also fix a problem where old build images had ncurses-5.2 libs, which
  did not get removed.

please try again
Comment 6 Brett I. Holcomb 2003-02-23 15:56:24 UTC
If I understand correctly I need to put -ncurses in the USE variable?

Thank you.
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-23 18:07:56 UTC
Err, no.  You should make sure that you do not have 'build' or 'bootstrap'
in your USE ...
Comment 8 Brett I. Holcomb 2003-02-23 18:17:14 UTC
I certainly don't have them in my USE variable as they are only for developers.  So what do I do now to build Gentoo?
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-23 19:02:45 UTC
What version portage (portage --version) ?
Comment 10 Brett I. Holcomb 2003-02-23 19:10:30 UTC
I'm in the middle of a build from bootstrap.sh.  I started fresh, untarged stage1* for x86, then did an emerge sync.  I don't remember what the version was when it went by but it's whatever emerge sync would download before a bootstrap.

Comment 11 Brett I. Holcomb 2003-02-23 21:57:36 UTC
I managed to get to another console and do emerge -s portage.  The version that's unmasked is

portage 2.0.46-r12.
Comment 12 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-23 22:24:14 UTC
Ok, what does:

  # ls `/usr/bin/gcc-config --get-bin-path`/ -l

give you ?
Comment 13 Brett I. Holcomb 2003-02-23 22:27:58 UTC
# ls `/usr/bin/gcc-config --get-bin-path`/ -l gives me

total 308
-rwxr-xr-x    1 root     root        90888 Feb 23 19:24 cpp
-rwxr-xr-x    1 root     root        89512 Feb 23 19:24 gcc
-rwxr-xr-x    1 root     root        16253 Feb 23 19:24 gccbug
-rwxr-xr-x    1 root     root        21132 Feb 23 19:24 gcov
-rwxr-xr-x    1 root     root        89512 Feb 23 19:24 i686-pc-linux-gnu-gcc
Comment 14 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-23 22:58:17 UTC
Right .. no c++ compiler.  The gcc ebuild only do not compile the c++ compiler
if 'build' in USE ....
Comment 15 Brett I. Holcomb 2003-02-24 22:47:53 UTC
Okay, what is happening here?  Because I misunderstood you I put -ncurses in the USE variable.  The stage 1 boostrap completed with no errors!.  I'm now doing an emerge system.

What is going on here?  I've never had ncurses in my USE variable ever before?

Comment 16 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-26 02:53:01 UTC
Anyhow, I fixed bootstrap to filter harmfull stuff, so it should die if it
detects them.
Comment 17 Brett I. Holcomb 2003-02-26 07:53:24 UTC
What was the cause and resolution?  

Should gcc have been built by bootstrap?

Do I need to put -nurses in USE?

or did you fix bootstrap so that it won't try and build ncurses if gcc doesn't exist?

Thank you.
Comment 18 Russ Pridemore 2005-01-30 13:40:54 UTC
Please reopen this bug.  It is not yet completely fixed.  Following the instructions for installing on AMD64, I ran the bootstrap.sh script w/o problems. Then the section "Progressing from Stage2 to Stage3" instructs me to run "emerge system".  This fails with the same problem, make variable CXX is not set (presumably not available).  A workaround is to set USE=bootstrap, but it still needs to be fixed permanently.