Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ncurses compile failure: -I../c++: No such file or directory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
BVer
n00b
n00b


Joined: 11 Aug 2005
Posts: 7

PostPosted: Thu Aug 11, 2005 10:57 am    Post subject: Reply with quote

I have successfully bootstrapped 2005.1 but observed a problem with c++ which may have similar reasons.

During
Code:
emerge --emptytree system

the compilation failed:

Code:
cd misc && make DESTDIR="" all
make[1]: Entering directory `/var/tmp/portage/ncurses-5.4-r6/work/narrowc/c++'
cd ../obj_s;   -I../c++ -I../include
-I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/c++ -DHAVE_CONFIG_H
-I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/c++/../include -I.
-I../include  -D_GNU_SOURCE -DNDEBUG -O2 -march=pentium3 -pipe -mfpmath=sse
-fPIC -c /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/c++/cursesf.cc
/bin/sh: -I../c++: No such file or directory
make[1]: *** [../obj_s/cursesf.o] Error 127
make[1]: Leaving directory `/var/tmp/portage/ncurses-5.4-r6/work/narrowc/c++'
make: *** [all] Error 2

!!! ERROR: sys-libs/ncurses-5.4-r6 failed.
!!! Function do_compile, Line 86, Exitcode 2


It seems there is CXX incorrectly set in /var/tmp/portage/ncurses-5.4-r6/work/narrowc/c++/Makefile, perhaps mis./configure-d (when emerging ncurses I get):

Code:
...
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
...


I have tried famous fix_libtool_files.sh trick, tried different ebuilds (ncurses-5.4-r5, ncurses-5.4.20050319), always stopped with the same error. It looks like I have misconfigured c++ in this stage1 (?).

Code:

livecd portage # emerge --info
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 Intel(R) Celeron(R) M processor         1.30GHz
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
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="-O2 -march=pentium3 -pipe -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://130.59.10.34/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 apm arts avi berkdb bitmap-fonts crypt cups dvd dvdr encode exif foomaticdb fortran gdbm gif gphoto2 gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jpeg kde ldap libg++ libwww lirc mad mikmod mime motif mp3 mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl spell sqlite sse ssl svg tcpd truetype truetype-fonts type1-fonts vorbis wifi wxwindows xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

livecd portage # cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 13
model name      : Intel(R) Celeron(R) M processor         1.30GHz
stepping        : 8
cpu MHz         : 1298.952
cache size      : 1024 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx
bogomips        : 2564.09

livecd portage # gcc-config -l
[1] i386-pc-linux-gnu-3.3.5-20050130 *
[2] i386-pc-linux-gnu-3.3.5-20050130-hardened
[3] i386-pc-linux-gnu-3.3.5-20050130-hardenednopie
[4] i386-pc-linux-gnu-3.3.5-20050130-hardenednopiessp
[5] i386-pc-linux-gnu-3.3.5-20050130-hardenednossp


What do I wrog? The next step I plan is to restrict USE flags and rebuild it all again from scratch. See you after several hours.
-Pavel

ps:
Code:

echo "sys-libs/ncurses nocxx" >> /etc/portage/package.use

helped me for now with ncurses compilation, but still I am not sure if I am doing right thing.
_________________
Laughter and tears are both responses to frustration and exhaustion. I myself prefer to laugh, since there is less cleaning up to do afterward. - K. Vonnegut
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Thu Aug 11, 2005 12:40 pm    Post subject: Reply with quote

Ah, you've got a slighty different problem - please see [SOLVED]Stage 1 bootstrap fails in step 6: ncurses c++ error, and follow up there if necessary.

Split from topic 368848 and moved to Duplicate Threads.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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