Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Gentoo 1.1a] bootstrap bug? C++ compiler errors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
MTer
n00b
n00b


Joined: 19 Apr 2002
Posts: 13
Location: The Netherlands

PostPosted: Tue Apr 30, 2002 8:53 pm    Post subject: [Gentoo 1.1a] bootstrap bug? C++ compiler errors Reply with quote

Hi all, I have some questions about a possible bug in Gentoo 1.1a

I'm trying to install Gentoo 1.1a again after re-partitioning my harddisk. During the bootstrap proces the problems begin: (prepare for a long read!)
After compiling glibc, binutils, gettext and gcc, the compile process fails at groff-1.17.2-r2.

the error message:
Code:
>>> Unpacking groff-1.17.2.tar.gz
>>> Source unpacked.
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-g++... no
checking for i686-pc-linux-gnu-c++... no
checking for i686-pc-linux-gnu-gpp... no
checking for i686-pc-linux-gnu-aCC... no
checking for i686-pc-linux-gnu-CC... no
checking for i686-pc-linux-gnu-cxx... no
checking for i686-pc-linux-gnu-cc++... no
checking for i686-pc-linux-gnu-cl... no
checking for i686-pc-linux-gnu-KCC... no
checking for i686-pc-linux-gnu-RCC... no
checking for i686-pc-linux-gnu-xlC_r... no
checking for i686-pc-linux-gnu-xlC... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking that C++ compiler can compile simple program... no
configure: error: a working C++ compiler is required

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 1, Exitcode 1
!!! (no error message)

 ...done!
>>> emerge sys-apps/groff-1.17.2-r1 to /
>>> md5 ;-) groff-1.17.2.tar.gz
!!! emerge aborting on  /usr/portage/sys-apps/groff/groff-1.17.2-r1.ebuild .


The strange thing is, that gcc-2.95.3-r5 (which is installed just before groff-1.17.2-r1) isn´t recognised or isn´t working properly.

After some days, trying to figure out how to solve this a saw that somebody else also experienced this problem and submitted a bug-report
https://bugs.gentoo.org/show_bug.cgi?id=1805

Today I tried to bypass the bootstrap-process and did a manual:
Code:
emerge gcc
directly followed by an
Code:
emerge groff

This worked, groff was compiling as it should.
btw: I also tried to install an earlier version of groff, which didn´t workout. (same error)

Ok, with groff compiled I tried an
Code:
emerge system

again problems with my C++ compiler, this time while attempting to compile db-3.2.3h-r4.

the error message:
Code:
>>> Unpacking db-3.2.3h.tar.gz
>>> Source unpacked.
creating cache ./config.cache
checking for a BSD compatible install... /bin/install -c
checking host system type... i686-pc-linux-gnu
checking if building in the top-level directory... no
checking if --disable-bigfile option specified... no
checking if --enable-compat185 option specified... yes
checking if --enable-cxx option specified... yes
checking if --enable-debug option specified... no
checking if --enable-debug_rop option specified... no
checking if --enable-debug_wop option specified... no
checking if --enable-diagnostic option specified... no
checking if --enable-dump185 option specified... yes
checking if --enable-dynamic option specified... no
checking if --enable-java option specified... no
checking if --enable-posixmutexes option specified... no
checking if --enable-rpc option specified... no
checking if --enable-shared option specified... yes
checking if --enable-tcl option specified... no
checking if --enable-test option specified... no
checking if --enable-uimutexes option specified... no
checking if --enable-umrw option specified... no
checking if --with-tcl option specified... no
checking for cc... cc
checking for gcc... (cached) cc
checking for gcc... (cached) cc
checking whether the C compiler (cc -march=i686 -O3 -pipe ) works... yes
checking whether the C compiler (cc -march=i686 -O3 -pipe ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether the C++ compiler (gcc -march=i686 -O3 -pipe ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 1, Exitcode 1
!!! (no error message)

 ...done!
>>> emerge sys-libs/db-3.2.3h-r4 to /
>>> md5 ;-) db-3.2.3h.tar.gz
!!! emerge aborting on  /usr/portage/sys-libs/db/db-3.2.3h-r4.ebuild .


the latter isn´t reported as a bug yet, it is probably the same bug anyway.

Some Questions:
    - Is anybody experiencing the same problems?
    - Does anybody know how to solve them'
    - Should I report the problems with db-3.2.3h-r4 as a bug?

Some extra info about my hardware and setup:
I have a Sony Vaio laptop, model PCG-Z600 TEK, main components are:
    Intel Pentium III 700 MHz
    128 MB sdram
    20 GB harddisk
    fdd (usb) and cdrom (pcmcia) both are external.

Hardisk layout:
    /dev/hda1 7.0 GB NTFS Microsoft Windows 2000 Professional
    /dev/hda5 6.5 GB FAT32 General data partition
    /dev/hda6 50 MB EXT3 /boot
    /dev/hda7 450 MB swap
    /dev/hda8 3.5 GB EXT3 /
    /dev/hda9 500 MB EXT3 /home
    /dev/hda10 2.5 GB EXT3 /var

This are the optimizations I use (in /etc/make.conf)
Code:
# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon exclusive (binaries
# will use the P6 instruction set and only run on P6+ systems)
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="-march=i686 -O3 -pipe"

Any help, comments, suggestions or whatever are being appreciated.

Arnold de Bruijn
_________________
If you try to fail, and succeed. Which one have you done?
Back to top
View user's profile Send private message
rob3rt
n00b
n00b


Joined: 18 Apr 2002
Posts: 12
Location: Prague, Czech Republic

PostPosted: Thu May 02, 2002 7:15 am    Post subject: BUG 1805 Reply with quote

it is BUG 1805 i think. Its status is REOPENED, sorry.
_________________
Smol Robert
robert.smol<at>stereoit.com
Back to top
View user's profile Send private message
Damek
n00b
n00b


Joined: 31 May 2002
Posts: 4
Location: New York City

PostPosted: Sat Jun 29, 2002 9:34 pm    Post subject: this bug has cropped up again... Reply with quote

Trying to bootstrap myself into Gentoo using the 1.2 x86 iso, and when it got to groff, it complained about no C++ compiler. So, I searched the forums and found this thread and the bugzilla entry... Just thought I'd drop in and let people know this is broken again, and I've gone and reopened the bug.

https://bugs.gentoo.org/show_bug.cgi?id=1805

Here's hoping it gets fixed soon so's I can try out Gentoo; it sounds cool!
Back to top
View user's profile Send private message
Damek
n00b
n00b


Joined: 31 May 2002
Posts: 4
Location: New York City

PostPosted: Wed Jul 03, 2002 6:02 pm    Post subject: fixed, hopefully for good Reply with quote

The latest update to the bugzilla entry suggests it's been fixed, though the bug is still open. I tried the bootstrap again last night and everything seems to have gone fine.

Now I just have to figure out everything else!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum