Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
C++ Preprocessor fails sanity check.
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
Keitero-sama
n00b
n00b


Joined: 23 Jun 2004
Posts: 26
Location: Raleigh, NC

PostPosted: Wed Jun 23, 2004 6:14 am    Post subject: C++ Preprocessor fails sanity check. Reply with quote

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
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


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

PostPosted: Wed Jun 23, 2004 7:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Keitero-sama
n00b
n00b


Joined: 23 Jun 2004
Posts: 26
Location: Raleigh, NC

PostPosted: Wed Jun 23, 2004 3:44 pm    Post subject: Reply with quote

Sorry, I am seem to have mistyped it when posting.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


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

PostPosted: Wed Jun 23, 2004 6:17 pm    Post subject: Reply with quote

Ah, ok, never mind! :D

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
View user's profile Send private message
Keitero-sama
n00b
n00b


Joined: 23 Jun 2004
Posts: 26
Location: Raleigh, NC

PostPosted: Thu Jun 24, 2004 12:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Keitero-sama
n00b
n00b


Joined: 23 Jun 2004
Posts: 26
Location: Raleigh, NC

PostPosted: Thu Jun 24, 2004 3:21 pm    Post subject: Reply with quote

*Bumping*
Back to top
View user's profile Send private message
solar
Developer
Developer


Joined: 06 Aug 2003
Posts: 22

PostPosted: Thu Jun 24, 2004 5:11 pm    Post subject: Reply with quote

c++ and uclibc/locales don't get along..
Remove uclibc from your USE flags.
Back to top
View user's profile Send private message
qbguy02
n00b
n00b


Joined: 02 Jul 2004
Posts: 5

PostPosted: Sun Jul 04, 2004 6:31 am    Post subject: C++ preprocessor fails sainity check Reply with quote

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
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Jul 04, 2004 2:54 pm    Post subject: Reply with quote

Searching through the forums I've found some posts that seem to indicate that linux-headers are invoved.

https://forums.gentoo.org/viewtopic.php?p=1180053#1180053
https://forums.gentoo.org/viewtopic.php?p=1281172#1281172
https://forums.gentoo.org/viewtopic.php?p=880556#880556
https://forums.gentoo.org/viewtopic.php?t=152383&start=0&postdays=0&postorder=asc&highlight=preprocessor+fails+sanity+check+cheque
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
qbguy02
n00b
n00b


Joined: 02 Jul 2004
Posts: 5

PostPosted: Sun Jul 04, 2004 6:53 pm    Post subject: GNU C++ Compiler Reply with quote

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:
Code:
emerge gcc
and
Code:
FEATURES="-distcc" emerge gcc

and also tried
Code:
emerge glibc
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
View user's profile Send private message
Bombs14
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2003
Posts: 140

PostPosted: Wed Jul 21, 2004 8:00 pm    Post subject: Reply with quote

*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
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