Gentoo Forums
Gentoo Forums
Quick Search: in
libstdc++-v3-3.3.4 compile problems.
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
segin
n00b
n00b


Joined: 16 May 2005
Posts: 20
Location: Gibsonton, FL, USA

PostPosted: Tue Jun 21, 2005 5:10 am    Post subject: libstdc++-v3-3.3.4 compile problems. Reply with quote

The error:
Code:

checking whether the C compiler ( /var/tmp/portage/libstdc++-v3-3.3.4/work/gcc-3.3.4/gcc/xgcc -B/var/tmp/portage/libstdc++-v3-3.3.4/work/gcc-3.3.4/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -O2  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** [configure-target-libiberty] Error 1


The error is presistent with a significant amount of research going into the cause...

My solution: just use gcc 3.4.

emerge --info:
Code:
blah segin # emerge --info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4-vanilla, glibc-2.3.5-r0, 2.6.11-gentoo-r10 i686)
=================================================================
System uname: 2.6.11-gentoo-r10 i686 Intel(R) Celeron(R) CPU 2.60GHz
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.9
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.16.1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS=""
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/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/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe -funroll-loops -mfpmath=sse -mmmx -msse -msse2 -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ftracer -fforce-mem -fforce-addr -ffast-math -mtune=pentium4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib alsa apm arts avi berkdb bitmap-fonts canna cdr crypt cups curl emboss encode esd fam foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 guile hardened imagemagick imlib ipv6 ithreads java jpeg junit kde libg++ libwww mad mikmod motif mozilla mp3 mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl pic png pthreads python qt quicktime readline sdl slang spell ssl svga tcltk tcpd threads tiff truetype truetype-fonts type1-fonts vorbis xine xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY

blah segin #
Back to top
View user's profile Send private message
Specialized
Apprentice
Apprentice


Joined: 11 Jan 2005
Posts: 264

PostPosted: Tue Jun 21, 2005 4:16 pm    Post subject: Reply with quote

Have you compiled your system with gcc-3.3.4 or with 3.4?
Back to top
View user's profile Send private message
segin
n00b
n00b


Joined: 16 May 2005
Posts: 20
Location: Gibsonton, FL, USA

PostPosted: Tue Jun 21, 2005 11:13 pm    Post subject: Reply with quote

i had 3.3.5-(somedate)-r1, and 3.4.4, as i was trying to phase out the older gcc,
the upgrade to gcc 3.3.6 failed, as posted before, an the libstdc++-v3 thing came up as a upgrade on a routine emerge -
Dau world.

Did someone explictly break the old GCC just to be an asshole?
Back to top
View user's profile Send private message
Specialized
Apprentice
Apprentice


Joined: 11 Jan 2005
Posts: 264

PostPosted: Wed Jun 22, 2005 4:58 pm    Post subject: Reply with quote

You need to compile your whole system with the same gcc. If you want to update your gcc you have to switch to the new gcc an do this:

Code:
emerge -e system
emerge -e system
emerge -e world
emerge -e world


But I would not recommend this. I got some bad experience with it, wich ended up in an new installation.
I could'nt manage to find out all depencies, at least one package fails, but that suffices to bring the system down.
Now I got an Stage 1 on a Stage 3 Tarball, it's great and if I had done it before trying to update my gcc I would have saved a lot of time.
Back to top
View user's profile Send private message
taipan67
l33t
l33t


Joined: 04 Dec 2004
Posts: 866
Location: England (i'm told...)

PostPosted: Thu Jun 23, 2005 12:00 pm    Post subject: Reply with quote

@segin:

The error-message you received is usually because of miss-typed CFLAGS - have a look at this post in the 'Frequently Asked Questions' forum. Did you have some CFLAGS in your /etc/make.conf before switching compilers? If so, their absence now might indicate why the problem was solved... :?

EDIT: Actually, even if /etc/make.conf has no CFLAGS, 'emerge --info' should still list the ones from /etc/make.globals - is there any reason you removed them from your initial post? If they're a bit extreme, you'll get better help if you provide all info that might be applicable...

@Specialized:

I'm on the wrong thread for this, but i'd like to ask a favour. I've just built a Stage1 which has gone a bit screwy in the logic, & i stumbled on this thread while trying to find a solution...

Can you check & see if 'emerge -e system' built two versions of gcc for you? When i did
Code:
emerge -epv system

...it listed gcc-3.4.4 immediately followed by gcc-3.3.6.

Then during the emerge, the profile switched compilers once 3.3.6 was installed, so the rest of my system was built with the wrong one. I checked this by looking at /var/log/portage/2245-glibc-2.3.5.log (the log-number may vary) - on the 3rd page it checked which version of gcc was being used. I chose that package simply because it came straight after gcc-3.3.6.

I'm sorry to go OT, but i'm trying to rule out gcc-config as a culprit before re-trying with a Stage 1/3, & Bob P politely suggested i seek assistance outside of his support-threads. Thanks for any help you can provide... :(
_________________
"Anyone who goes to see a psychiatrist should have their head examined!"
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2774
Location: Oceanside, Ca

PostPosted: Thu Jun 23, 2005 4:43 pm    Post subject: Reply with quote

taipan67
From what I can tell this a flaw in the logic of gcc-config. It has a habit of switching to the last gcc version built. So if you made gcc-3.4.4 it switched to that, then you updated, gcc-3.3.4 to gcc-3.3.6 and it switched to that..To stick with gcc-3.4.4 do this " echo "<=/sys-devel/gcc-3.3*" >> /etc/portage/package.mask " then try a "emerge gcc -uDp " to check. See "man portage" for more info. Then use my script, see tag, and if you have any questions about this ask them on that thread.

segin First set up your CFLAGS then try " gcc-config -l " to see which if any gcc-is selected. It will have a star besides it. In your case if you have gcc-3.3.? and gcc-3.4.4 " gcc-config 5 " should select gcc-3.4.4. Then get An emerge wrapper for more correctly building the toolchain . What you all will want to do is an " emwrap.sh -set && emewrap.sh -se ". This builds thw TC more correctly and then the system files . If when that completes do " emwrap.sh -seb " which rebuilds the the TC and all system files. Taking care of the libary prob.

Dont waste your time just doing an "emerge system -e && emerge system -e" unl;ess your goiing to do the 2nd half " emerge world -e && emerge world -e "
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
taipan67
l33t
l33t


Joined: 04 Dec 2004
Posts: 866
Location: England (i'm told...)

PostPosted: Thu Jun 23, 2005 5:02 pm    Post subject: Reply with quote

Thanks, hielvc! I already had your 'emerge wrapper' thread bookmarked, i'd just never gotten round to giving it an exhaustive read. Now i think i will, prior to either trying to salvage what i've already started, or starting from scatch with these valuable lessons firmly in mind! :wink:
_________________
"Anyone who goes to see a psychiatrist should have their head examined!"
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Thu Jun 23, 2005 7:14 pm    Post subject: Reply with quote

one of the quotes appears to be causing the page length to go extra-wide. could somebody please edit that post that's causing the extra-wide page display by breaking-up the line that's causing the problem?

in regard to the Personal Messages about these toolkit issues from @taipan67, there's a huge problem that's waiting for anyone who performs a GCC upgrade: the unacceptably high rate of bad ebuilds that find their way into the portage tree. i hate to admit it, but QA for ebuilds in gentoo could be alot better, and the appearance of bad ebuilds in the portage tree causes far too many problems.

as a result, rebuilding the toolkit is actually a pretty dangerous undertaking -- even if you know what you're doing its really hard to get it done right. alot of the time, there are bad ebuilds in the portage tree and even if you know what you're doing and you rebuild properly you're still doomed to failure. i learned the hard way with the Jackass Project that we had to wait for all of the toolkit ebuilds in the portage tree to be "right" before we could release Jackass. from a practical standpoint, we compiled regularly over a period of months before we found a stable portage snapshot. what this means is that even if you do things right, errors in the portage tree could still prevent a rebuild from being successful. the problems that people have had doing a Stage 1/3 with GCC 3.4.4 instead of GCC 3.4.3 further illustrate the perils caused by randomly resyncing portage with a full ~x86 specification. if the portage tree contains bad ebuilds (as it does most of the time), full ~x86 is suicidal. you would be much better off using package-specific ~x86 settings in package.keywords.

IIRC from your post in the Stage 1/3 threads, you've tried bootstrapping into a full ~x86 system while performing a Stage 1 install. IMHO that is absolutely a foolish undertaking, as the probability of success with full ~x86 ebuilds at any random time is rather remote. if you're having problems after having done that, your best bet is to wipe your system and start over. seriously, i'm pretty experienced at installing Gentoo, and there's no way that I would attempt to do what you've done. i developed a new installation method to specifically avoid the problems that you're having, so there's no way that i could advise doing what you're doing. similarly, there's also no way that i'd waste my time trying to rebuild a fundamentally b0rked system when its easier to just extract a functionally equivalent jackass stage 3 tarball. my advice is to cut your losses and start over.

if you're running an Intel x86 system (ie: a Pentium branded processor) then my recommendation would be to just install from one of the Jackass! ISOs. the toolkit on those CDs is built to provide the equivalent of a Stage 1 install on each of the pentium arches, while providing the package in an easy to install Stage 3 tarball. this would allow you to stop wasting time fighting to rebuild a system that's fundamentally unsound. and a new jackass install is guaranteed to take less time than attempting to rebuild the toolkit on a dysfunctional Stage 1 ~x86 install.

if you are planning on running a full ~x86 system, my recommendation is not to do that. its a foolish undertaking. i don't do it, i advise against it, and in all honesty i simply cannot afford the time to respond to personal requests from people like @taipan67 asking me to join threads like this one, and provide free consultation services helping to repair b0rked systems -- especially when the problem has been caused by methods that i have specifically advised against. i apologize if this sounds harsh, but i've made it very plain in the Stage 1/3 Guides that I don't have time to provide personalized support via Personal Messages for people who are following the Stage 1/3 Guide -- all of the support requests need to be put into the Support Threads, so that I don't end up answering the same questions over and over again. Similarly, there's just not enough of me to go around to answer PMs from the people who aren't even attempting to follow the Stage 1/3 Guide but think of me as someone who's capable of solving their problems. Although i do appreciate the compliment that these requests bring, i'm not the only guy around here who can be helpful -- there are alot of guys who know alot more than i do and they'll certainly find this thread and try to help out. i do like to volunteer help when i have the time to peruse the forums, but with the significant time commitment that i've already made to the Jackass! Support Group and the multiple Stage 1/3 Support threads, i just don't have the time to read the forums for my own edification -- much less to help people in other areas -- and i just don't have the time to respond to any more PMs on this subject. I apologize if this sounds harsh -- that's not my intention.

Sorry i couldn't be more helpful.


good luck!
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
taipan67
l33t
l33t


Joined: 04 Dec 2004
Posts: 866
Location: England (i'm told...)

PostPosted: Thu Jun 23, 2005 7:57 pm    Post subject: Reply with quote

Bob P wrote:
... i've made it very plain in the Stage 1/3 Guides that I don't have time to provide personalized support via Personal Messages for people who are following the Stage 1/3 Guide -- all of the support requests need to be put into the Support Threads...

I'm aware of that, Bob, from reading your threads. My intention with the PM wasn't to seek assistance of any kind, but rather to bring to your attention, in a more discrete way, an issue that i suspect could afflict anyone using an installation method that incorporates
Code:
emerge -e system

...which i borrowed from your method before it entered the Gentoo Handbook.

I apologise if my 'English' english doesn't translate terribly well into 'International' english - i assure you that my sole intent was to bring to light a potential problem for users of your method, without causing (possibly) undue concern before you could address it.

Thanks for the opinions - i'm on page 6 of hielvc's thread... When i'm done, i'll build a system (somehow...) :D
_________________
"Anyone who goes to see a psychiatrist should have their head examined!"
Back to top
View user's profile Send private message
Specialized
Apprentice
Apprentice


Joined: 11 Jan 2005
Posts: 264

PostPosted: Thu Jun 23, 2005 10:39 pm    Post subject: Reply with quote

Don't know if you still need to know, but in my Case only gcc-3.4 would be emerged:

Code:
emerge -epv system | grep gcc
[ebuild  N    ] sys-devel/gcc-config-1.3.11-r3  0 kB
[ebuild  N    ] sys-devel/gcc-3.4.4  (-altivec) -bootstrap -boundschecking -build -debug +fortran -gcj +gtk -hardened -ip28 (-multilib) -multislot (-n32) (-n64) +nls -nocxx -nopie -nossp -objc -static 27,059 kB
Back to top
View user's profile Send private message
taipan67
l33t
l33t


Joined: 04 Dec 2004
Posts: 866
Location: England (i'm told...)

PostPosted: Thu Jun 23, 2005 11:14 pm    Post subject: Reply with quote

Specialized wrote:
Don't know if you still need to know, but in my Case only gcc-3.4 would be emerged...

Thanks! I hope that means that other users of the Stage 1/3 method will also be okay, & that it's a problem that's unique to my 'crazy-ass' approach. :D

...Actually, did you 'prune' the original version of gcc, as per the tutorial? If so, it might be worth checking /var/log/portage/ for the original sequence, just to rule this matter out completely...

I'm still formulating my next plan-of-attack (& sleep is seeming like a good idea) - if anyone's interested, future results will be posted on this thread.

I'd also like to profoundly apologise to segin for butchering the thread we're on now. Sorry. :oops: :oops: :oops:
_________________
"Anyone who goes to see a psychiatrist should have their head examined!"
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Fri Jun 24, 2005 9:13 pm    Post subject: Reply with quote

there's absolutely no danger in using emerge -e system as it is employed in the Stage 1/3 Guide. i think you must be confused about something.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
segin
n00b
n00b


Joined: 16 May 2005
Posts: 20
Location: Gibsonton, FL, USA

PostPosted: Sat Jun 25, 2005 5:52 pm    Post subject: Reply with quote

If you did read any of my posts, you should realize that i got rid of gcc-3.3.X.

after 3.3.6 failed to emerge, and this here library failing, i just stopped using the old gcc...

The funny part is that you don't seem to get that i "mv gcc-3.3.x /dev/null"

All apps needing the older gcc libstdc++ file.... i made a hardlink (forgot to pass -s to ln) libstdc++.so.5 to libstdc++-3-libc6.2-2-2.10.0.so. I have been told that this will not work, but evidence from the apps that continue to work without any problem suggests what I have heard to be FUD (like all the FUD about one of our developers, anarchy (Jory A. Pratt))
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