View previous topic :: View next topic |
Author |
Message |
Keitero-sama n00b
Joined: 23 Jun 2004 Posts: 26 Location: Raleigh, NC
|
Posted: Wed Jun 23, 2004 6:14 am Post subject: C++ Preprocessor fails sanity check. |
|
|
I have this issue (and yes, I have tried all over the forums in search for an answer but to no avail), where I need gentoolkit, but it fails to install ncurses. I have tried to install it manually but to no avail also.
This is my current make.conf file:
Code: | CFLAGS="-march=pentium4 -O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
GENTOO_MIRRORS="ftp:///ftp-stud-fht-esslingen.de/pub/Mirrors/gentoo/"
USE="X acpi alsa audiofile avi berkdb bonobo canna cdr cjk crypt debug divx4linux doc emacs encode esd ethereal fbcon flac freewnn gb gd gif gnome gpm hardened ifc java jpeg ladcca libg++ mad mmx motif mpeg msn mule mcurses oggvorbis opengl oscar pcmica perl plotutils png pnp prelude python qt readline ruby samba sasl sdl speex spell sse ssl svg svga szip tcltk theora tiff truetype trusted uclibc unicode usb videos wmf xinerama xml xml2 xmms xosd xv xvid wxwindows zlib" |
I am trying to do a stage1 install. I have the portage from 6/18/2004 from the gentoo universal cd that I downloaded.
My system specs are as followed:
Dell Latitude C840
Intel Pentium 4 Mobile @ 1.6GHz
512MB of PC2700 DDR ram
40GB hard drive
nVidia geForce4Go 440 64MB
15" UXGA Ultrasharp LCD
Dell TrueMobile 1300 WLAN miniPCI card.
My Partition layout are as followed:
/dev/hda1 - Boot (ext2) (sectors 1-13)
/dev/hda2 - Windows XP Pro (NTFS) (20GB)
/dev/hda3 - Linux (ext3) (10GB)
/dev/hda4 - Extended
/dev/hda5 - Swap (512MB)+
/dev/hda6 - FAT32 (shared space for Linux and Windows)
If anyone has any comments about what should I change, please feel free to do so.
Thank You
Kei
Last edited by Keitero-sama on Thu Jun 24, 2004 3:43 am; edited 1 time in total |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Wed Jun 23, 2004 7:10 am Post subject: |
|
|
You seem to have misspelled one of your CFLAGS:
Code: | -fomit-fram-pointer |
should be:
Code: | -fomit-frame-pointer |
_________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
Keitero-sama n00b
Joined: 23 Jun 2004 Posts: 26 Location: Raleigh, NC
|
Posted: Wed Jun 23, 2004 3:44 pm Post subject: |
|
|
Sorry, I am seem to have mistyped it when posting. |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Wed Jun 23, 2004 6:17 pm Post subject: |
|
|
Ah, ok, never mind!
I can't see anything obvious there.... can you post the output of emerge info? And also the last ten or twenty lines of output when you get the error message? _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
Keitero-sama n00b
Joined: 23 Jun 2004 Posts: 26 Location: Raleigh, NC
|
Posted: Thu Jun 24, 2004 12:38 am Post subject: |
|
|
Here is the emerge info:
Code: | Portage 2.0.50-r5 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo)
============================================
System uname: 2.4.25-gentoo i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz
Gentoo Base System version 1.4.3.13
Autoconf:
Automake:
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="march=pentium4 -O2 -mcpu=i686 -formit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/conif /usr/kde/3/share/conif /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -mcpu=i686 -formit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp:///ftp.stud.fht-essligen.de/pub/Mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa audiofile avi berkdb bonobo canna cdr cjk crypt debug divx4linux doc emacs encode esd ethereal fbcon flac freewnn gb gd gif gnome gpm hardened ifc java jpeg ladcca libg++ mad mmx motif mpeg msn mule mcurses oggvorbis opengl oscar pcmica perl plotutils png pnp prelude python qt readline ruby samba sasl sdl speex spell sse ssl svg svga szip tcltk theora tiff truetype trusted uclibc unicode usb videos wmf xinerama xml xml2 xmms xosd xv xvid wxwindows zlib" |
This is the error message (about 20 lines or so):
Code: | checking for geteuid... yes
checking for getttynam... yes
checking for issetugid... no
checking for memccpy... yes
checking for nanosleep... yes
checking for poll... yes
checking for remove... (chached) yes
checking gor select... yes
checking for setbuf... yes
checking for setbuffer... yes
checking for setbuf... yes
checking for sigaction... yes
checking for sigvec... yes
checking for strdup... yes
checking for strstr... yes
checking for tcgetpgrp... yes
checking for times... yes
checking for vsnprintf.. yes
checking for isascii... yes
checking wheter sigaction needs _POSIX_SOURCE... no
checking for termin.h... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking wheter termios.h needs _POSIX_SOURCE... no
checking for tcgetattr... yes checking for vsscanf function or workaroung... vsscanf
checking for working mkstemp... yes
checking whether setvbuf arguments are reversed... no
checking return type of signal handlers... void
checking for type sigaction_t... no
checking declaration of size_change... yes
checking for memove... yes
checking if poll really works... yes
checking if we should inclde stdbool.h... yes
checking how to run C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
!!! ERROR: sys-/lobs/ncurses-5.4-r1 fauled.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed |
|
|
Back to top |
|
|
Keitero-sama n00b
Joined: 23 Jun 2004 Posts: 26 Location: Raleigh, NC
|
Posted: Thu Jun 24, 2004 3:21 pm Post subject: |
|
|
*Bumping* |
|
Back to top |
|
|
solar Developer
Joined: 06 Aug 2003 Posts: 22
|
Posted: Thu Jun 24, 2004 5:11 pm Post subject: |
|
|
c++ and uclibc/locales don't get along..
Remove uclibc from your USE flags. |
|
Back to top |
|
|
qbguy02 n00b
Joined: 02 Jul 2004 Posts: 5
|
Posted: Sun Jul 04, 2004 6:31 am Post subject: C++ preprocessor fails sainity check |
|
|
I'm having the same problem, only i'm not installing gentoolkit. I'm just trying to update my name USE flags with Code: | emerge --emptytree world |
Here's my /etc/make.conf
Code: | CFLAGS="-march=pentium2 -fomit-frame-pointer -pipe -O2"
CHOST="i686-pc-linux-gnu"
CXXXF="${CFLAGS}"
MAKEOPTS="-j2"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo http://mirror.datapipe.net/gentoo ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/"
USE="acpi aim alsa arts audiofile avi caps cdr curl db2 dba dbase dbx dga dio divx4linux doc dvd emacs emacs-w3 esd exif fastcgi ftp gb gd gif gnome gphoto2 gstreamer gtk2 gtkhtml hardenedphp iconv icq imagemagick imap ipv6 java jikes jpeg kde leim libwww mad matrox mozilla mpeg mpi msn msql mssql mysql nas odbc offensive opengl oscar pam pdflib png ppds quicktime readline sasl snmp sockets socks5 spell spl ssl svga tiff tokenizer unicode usb vhosts videos wxwindows xml xml2 xv xvid yahoo x86" |
Here's the last few lines of the emerge
Code: | .
.
.
checking if poll really works... yes
checking if we should include stdbool.h... yes
checking for builtin bool type... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
!!! ERROR: sys-/libs/ncurses-5.4-r1 fauled.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed
livecd root #
|
I saw this part:
solar wrote: | c++ and uclibc/locales don't get along..
Remove uclibc from your USE flags. |
but i don't have uclibc in my USE
i'm definately a Linux noob but i'm converting from Winblows so i need help = (
Any suggestions? _________________ Try my IM's for reply. I"m usually on a lot and it's faster than forum posting.
Thanks,
Alex |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
|
Back to top |
|
|
qbguy02 n00b
Joined: 02 Jul 2004 Posts: 5
|
Posted: Sun Jul 04, 2004 6:53 pm Post subject: GNU C++ Compiler |
|
|
Ok so I think I've narrowed down my problem to
Code: | checking whether we are using the GNU C++ compiler... no | but how do I emerge the gcc package?
I've tried both: and Code: | FEATURES="-distcc" emerge gcc |
and also tried and Code: | emerge linux-headers |
Nothing seems to be working... so getting back to the GNU C++ Compiler
how do i emerge that into my kernel when everytime I do it checks that part and results in: Code: | .
.
.
checking wether we are using the GNU C++ compiler... no
checking wether gcc accets -g... no
.
.
.
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
!!! ERROR: sys-libs/ncurses-5.4-r1 failed.
!!! Function econf, Line 365 Exitcode1
!!! econf failed
|
little help plz? _________________ Try my IM's for reply. I"m usually on a lot and it's faster than forum posting.
Thanks,
Alex |
|
Back to top |
|
|
Bombs14 Tux's lil' helper
Joined: 03 Sep 2003 Posts: 140
|
Posted: Wed Jul 21, 2004 8:00 pm Post subject: |
|
|
*bump*
I have no idea what happened. One moment everything emerged fine, I didn't change any system settings, then after a reboot caused by harddrive failure, nothing emerges, but I can still use the system fine.
same problem with that /lib/cpp sanity check |
|
Back to top |
|
|
|