Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"No such compiler c++." ???
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
Codac
n00b
n00b


Joined: 18 Nov 2002
Posts: 19
Location: Sweden

PostPosted: Sat Sep 24, 2005 7:57 pm    Post subject: "No such compiler c++." ??? Reply with quote

This looks strange. Anyone know how to solve the problem?

Code:

~# emerge -auvD world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild     U ] x11-libs/qt-3.3.4-r8 [3.3.4-r3] +cups -debug +doc -examples +firebird +gif -immqt -immqt-bc +ipv6 -mysql +nas +odbc +opengl -postgres -sqlite +xinerama 0 kB
[ebuild  N    ] dev-db/qt-unixODBC-3.3.4-r1  0 kB
[ebuild     U ] dev-libs/boehm-gc-6.5 [6.4] -nocxx -threads 734 kB
[ebuild     U ] dev-lang/hugs98-2005.3-r1 [2003.11] +opengl 4,105 kB

Total size of downloads: 4,840 kB

Do you want me to merge these packages? [Yes/No] yes
>>> emerge (1 of 4) x11-libs/qt-3.3.4-r8 to /
>>> md5 files   ;-) qt-4.0.1.ebuild

>>> md5 files   ;-) qt-3.3.5.ebuild
>>> md5 files   ;-) qt-3.3.4-r8.ebuild
>>> md5 files   ;-) qt-3.3.4-r3.ebuild
>>> md5 files   ;-) qt-4.0.0.ebuild
>>> md5 files   ;-) qt-3.3.4-r7.ebuild
>>> md5 files   ;-) qt-3.3.4-r2.ebuild
>>> md5 files   ;-) qt-3.3.4-r6.ebuild
>>> md5 files   ;-) files/qt-no-rpath.patch
>>> md5 files   ;-) files/0001-dnd_optimization.patch
>>> md5 files   ;-) files/0037-dnd-timestamp-fix.patch
>>> md5 files   ;-) files/0002-dnd_active_window_fix.patch
>>> md5 files   ;-) files/45qt3
>>> md5 files   ;-) files/digest-qt-3.3.5
>>> md5 files   ;-) files/digest-qt-4.0.0
>>> md5 files   ;-) files/digest-qt-4.0.1
>>> md5 files   ;-) files/qt4-nomkdir.patch
>>> md5 files   ;-) files/qt-3.3.4-flickerfree_qiconview_buffered.patch
>>> md5 files   ;-) files/qt-3.3.4-0047-fix-kmenu-widget.diff
>>> md5 files   ;-) files/digest-qt-3.3.4-r2
>>> md5 files   ;-) files/digest-qt-3.3.4-r3
>>> md5 files   ;-) files/digest-qt-3.3.4-r6
>>> md5 files   ;-) files/digest-qt-3.3.4-r7
>>> md5 files   ;-) files/digest-qt-3.3.4-r8
>>> md5 files   ;-) files/qt-3.3.4-macos.patch
>>> md5 files   ;-) files/qt-3.3.4-gcc4-volatile.patch
>>> md5 files   ;-) files/50qtdir3
>>> md5 files   ;-) files/qt4-rpath.patch
>>> md5 files   ;-) files/qt-3.3.5-uic-fix.patch
>>> md5 files   ;-) files/qt-3.3.4-immodule-focus.patch
>>> md5 files   ;-) files/qt-3.3.4-flickerfree_qscrollview_fixwindowactivate.patch
>>> md5 files   ;-) files/qt-3.3.4-qclipboard-hack.patch
>>> md5 files   ;-) files/qt-no-rpath-uic.patch
>>> md5 files   ;-) files/qt-3.3.4-gcc4.patch
>>> md5 files   ;-) files/qt-3.3.4-0051-qtoolbar_77047.patch
>>> md5 files   ;-) files/0038-dragobject-dont-prefer-unknown.patch
>>> md5 src_uri ;-) qt-x11-free-3.3.4.tar.bz2

!!! ERROR: x11-libs/qt-3.3.4-r8 failed.
!!! Function pkg_setup, Line 63, Exitcode 1
!!! Unknown compiler c++.
!!! If you need support, post the topmost build error, NOT this status message.



Ok, ehm, wha? Simple error message... so what is the simple solution? :wink:
Other things compile as they should.
I've tried to search but didn't find any others having a similar problem so I assumed it was not a general qt-package problem (otherwise quite a few people would have ran into it too, I'm guessing)

Here is my "emerge info" in case it helps to find out whats wrong.
Code:

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1, 2.6.13-gentoo-r2 i686)
=================================================================
System uname: 2.6.13-gentoo-r2 i686 AMD Athlon(TM) XP 2200+
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.2.3-r6, 2.3.5-r2
sys-apps/sandbox:    1.2.12
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.6
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="-march=athlon-xp -O3 -fomit-frame-pointer -ffast-math -pipe -msse -mmmx -m3dnow"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -fomit-frame-pointer -ffast-math -pipe -msse -mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo http://mirror.uni-c.dk/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ds.thn.htu.se/linux/gentoo http://ftp.linux.ee/pub/gentoo/distfiles/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X X509 aalib acpi alsa arts artworkextra audiofile avi bash-completion berkdb bigger-fonts bitmap-fonts bonobo cdparanoia cdr crypt cscope cups curl dbus directfb doc eds emboss encode esd fam fbcon firebird flac foomaticdb fortran freetype gd gdbm ggi gif gimpprint glut gnokii gnome gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal imagemagick imap imlib ipv6 irda java javascript jikes jpeg jpeg2k junit kde kdeenablefinal kdexdeltas kerberos krb4 lcms ldap libcaca libg++ libwww live lm_sensors logitech-mouse lua mad maildir matroska md5sum mikmod mmap mmx mng mono motif mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg nas ncurses network nls nptl nptlonly oav odbc ogg oggvorbis openal opengl pam pcre pda pdflib perl pic png povray ppds python qt quicktime readline real rrdtool rtc ruby samba sasl sdl slang slp spell sse ssl svg svga sysfs tcltk tcpd tetex tga theora tiff timidity truetype truetype-fonts type1-fonts unicode v4l2 vim-with-x vorbis win32codecs wmf xanim xchatdccserver xine xinerama xml xml2 xmms xprint xscreensaver xv xvid zlib video_cards_nvidia userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1602
Location: Just over the horizon

PostPosted: Sun Sep 25, 2005 1:32 pm    Post subject: Reply with quote

That is odd. Do you have a /usr/bin/c++? You may need to re-emerge gcc.
Back to top
View user's profile Send private message
TriPhoenix
n00b
n00b


Joined: 13 Aug 2003
Posts: 47

PostPosted: Sun Sep 25, 2005 5:40 pm    Post subject: Reply with quote

Perhaps try to regenerate the gcc-Links:

list your gcc versions by
# gcc-version -l

one of the versions should be marked with a star. Anyway relink the gcc libraries, search the line corresponding to your current version of gcc (for example line 3) and relink via
# gcc-version 3
Back to top
View user's profile Send private message
Rizzi
n00b
n00b


Joined: 14 Jan 2005
Posts: 56

PostPosted: Tue Sep 27, 2005 12:04 am    Post subject: Reply with quote

hi...

i have the sam problem...!!!
i switch to some gcc version without success
/usr/bin/c++ exits
i also done a re-emerge gcc
i always get this error...

Code:

ERROR: x11-libs/qt-3.3.5 failed.
!!! Function pkg_setup, Line 63, Exitcode 1
!!! Unknown compiler c++.
!!! If you need support, post the topmost build error, NOT this status message.


any other solutions ?

Rizzi
Back to top
View user's profile Send private message
vk4apf
n00b
n00b


Joined: 18 May 2005
Posts: 2

PostPosted: Tue Sep 27, 2005 2:44 am    Post subject: Reply with quote

Hi,
I've got the exact same error. I'm doing a fresh gentoo install.
Rob
Back to top
View user's profile Send private message
aja
l33t
l33t


Joined: 26 Aug 2002
Posts: 705
Location: Edmonton, Canada

PostPosted: Tue Sep 27, 2005 7:38 pm    Post subject: Reply with quote

vk4apf wrote:
Hi,
I've got the exact same error. I'm doing a fresh gentoo install.
Rob


Well, that seems like an awful lot of work. Remember, this isn't windows. You should perhaps instead have searched bugzilla:

https://bugs.gentoo.org/show_bug.cgi?id=106943
Back to top
View user's profile Send private message
vk4apf
n00b
n00b


Joined: 18 May 2005
Posts: 2

PostPosted: Tue Sep 27, 2005 11:01 pm    Post subject: Reply with quote

I should have said, while doing a fresh install I have come across the same error.

Thanks for the bugzilla tip , didn't think to look there..

Rob
Back to top
View user's profile Send private message
Codac
n00b
n00b


Joined: 18 Nov 2002
Posts: 19
Location: Sweden

PostPosted: Thu Sep 29, 2005 12:17 am    Post subject: Reply with quote

Thanks for the helpful tips!
I'll follow suggestions from https://bugs.gentoo.org/show_bug.cgi?id=106943 and will try to remember
scanning bugzilla as well as theese (mighty appreciated) forums next time guru-aid seems to be needed.
Back to top
View user's profile Send private message
Rizzi
n00b
n00b


Joined: 14 Jan 2005
Posts: 56

PostPosted: Fri Sep 30, 2005 12:50 pm    Post subject: Reply with quote

my workaround:

/etc/make.conf
Code:

CXX="g++"

but just for this package
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Tue Oct 11, 2005 7:28 am    Post subject: Reply with quote

Rizzi wrote:
my workaround:

/etc/make.conf
Code:

CXX="g++"

but just for this package


Quick tip of the day for the next time you encounter something like this: environment vars can be set in fire-and-forget fashion if you simply specify them on the command line, no need to edit any files. Try:

Code:
CXX="g++" emerge ...


or

Code:
FEATURES="-distcc" USE="mysql" emerge ...


you get the idea.
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
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