Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[resolved] Problems after upgrade gcc to 3.3.5
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Dudoroff
n00b
n00b


Joined: 26 Apr 2005
Posts: 3

PostPosted: Wed Apr 27, 2005 8:24 pm    Post subject: Reply with quote

Anybogy knows, where to dig, if I get this error:
cewmbg.cc:331:2: warning: #warning "leak needs to be fixed when multiple background desktops are enabled again"
CXX genpref.o
LD icewm
i686-pc-linux-gnu-g++: @LDFLAGS@: No such file or directory
i686-pc-linux-gnu-g++: @SUPPORT_LIBS@: No such file or directory
make[1]: *** [icewm] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/icewm-1.2.20/work/icewm-1.2.20/src'
make: *** [base] Error 2

!!! ERROR: x11-wm/icewm-1.2.20 failed.
!!! Function src_compile, Line 75, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
Back to top
View user's profile Send private message
mbjr
Guru
Guru


Joined: 17 Jan 2004
Posts: 531
Location: Budapest/Hungary

PostPosted: Wed Apr 27, 2005 8:52 pm    Post subject: Reply with quote

Thanks a lot again, "gcc-config 1" seems to be working for newer versions as well, I ran into this problem with gcc 3.4.3 and it got a bit strange after the 3rd re-emerge :D Thanks a lot :-)
_________________
mb
Back to top
View user's profile Send private message
Omadon
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 108

PostPosted: Sun May 01, 2005 4:06 pm    Post subject: Reply with quote

I'm getting the same thing...

Code:
checking for c++... c++
checking whether the C++ compiler (c++ -march=athlon64 -O2 -pipe -L/usr/lib  -L/usr/X11R6/lib -ltiff -L/usr/lib64 -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64/server -L/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64/server -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64/native_threads -L/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64/native_threads -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64 -L/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64 -Wl,-rpath,/usr/qt/3/lib -L/usr/qt/3/lib) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/mod_php-4.3.11/work/php-4.3.11/config.log

!!! ERROR: dev-php/mod_php-4.3.11 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.


I made sure my gcc profile was set to 3.4.3 (previously using 3.4.2):
Code:
root@locutus / # gcc-config -l
[1] x86_64-pc-linux-gnu-3.4.2
[2] x86_64-pc-linux-gnu-3.4.2-hardened
[3] x86_64-pc-linux-gnu-3.4.2-hardenednossp
[4] x86_64-pc-linux-gnu-3.4.3 *
[5] x86_64-pc-linux-gnu-3.4.3-hardened
[6] x86_64-pc-linux-gnu-3.4.3-hardenednopie
[7] x86_64-pc-linux-gnu-3.4.3-hardenednossp


root@locutus / # gcc-config 4
 * Switching to x86_64-pc-linux-gnu-3.4.3 compiler...                                      [ ok ]


and also tried the libtool thing:
Code:
root@locutus / # fix_libtool_files.sh 3.4.2
 * Scanning libtool files for hardcoded gcc library paths...
 *   [1/10] Scanning /lib ...
 *   [2/10] Scanning /usr/lib ...
 *   [3/10] Scanning /emul/linux/x86/lib ...
 *   [4/10] Scanning /emul/linux/x86/usr/lib ...
 *   [5/10] Scanning /opt/blackdown-jdk-1.4.2.01/jre/lib/amd64 ...
 *   [6/10] Scanning /usr/games/lib ...
 *   [7/10] Scanning /usr/kde/3.3/lib ...
 *   [8/10] Scanning /usr/local/lib ...
 *   [9/10] Scanning /usr/qt/3/lib ...
 *   [10/10] Scanning /usr/x86_64-pc-linux-gnu/lib ...


but I am still getting the same error when I try to emerge mod_php. Did I miss something?

EDIT

Just noticed the end of the config.log was:
Code:
configure:75960: checking for c++
configure:75992: checking whether the C++ compiler (c++ -march=athlon64 -O2 -pipe -L/usr/lib  -L/usr/X11R6/lib -ltiff -L/usr/lib64 -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64/server -L/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64/server -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64/native_threads -L/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64/native_threads -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64 -L/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64 -Wl,-rpath,/usr/qt/3/lib -L/usr/qt/3/lib) works
configure:76008: c++ -o conftest -march=athlon64 -O2 -pipe  -L/usr/lib  -L/usr/X11R6/lib -ltiff -L/usr/lib64 -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64/server -L/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64/server -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64/native_threads -L/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64/native_threads -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64 -L/opt/blackdown-jdk-1.4.2.01/jre/lib/amd64 -Wl,-rpath,/usr/qt/3/lib -L/usr/qt/3/lib conftest.C -lqt -lpdf -lz -ltiff -lpng -ljpeg -lming -lm -lmhash -lmcrypt -lltdl -lexslt -lxml2 -lxslt -lz -ldb-4.1 -ldb-4.1 -lndbm -lcrack -lbz2 -lz -lssl -lcrypto -lresolv -lm -lnsl  -lxmlparse -lxmltok -lxml2 -lz -lm 1>&5
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lqt
collect2: ld returned 1 exit status
configure: failed program was:

#line 76003 "configure"
#include "confdefs.h"

int main(){return(0);}

This -lqt, is that Qt the GUI library?

EDIT

There was no /usr/qt/3/lib so I just made a symlink from /usr/qt/3/lib to /usr/qt/3/lib64, seems to be working now.
Back to top
View user's profile Send private message
irusun
n00b
n00b


Joined: 11 Mar 2003
Posts: 27

PostPosted: Fri May 06, 2005 4:26 am    Post subject: Reply with quote

Did emerge world (which included gcc) before leaving for work this morning... Came home, everything was broken.

Like many others, emerge was broken... python was broken... everything... Along with many other errors, kept getting:
Code:
libstdc++.so.5 : can not open shared object file


Did:
Code:
ln -s /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/libstdc++.so.5 /usr/lib/libstdc++.so.5

this fixes the missing link. I've seen others who complain of different missing links... I guess it's the same fix.

along with:
Code:
fix_libtool_files.sh 3.3.5

Code:
fix_libtool_files.sh 3.3.5.20050130-r1

I don't know which of these works... didn't read all the threads...

along with:
Code:
gcc-config 1

this selects the typical gcc profile (I don't know what that is).

That seems to fix all problems for me. Thanks to all here for posting and working these issues through. Just thought I'd sum it all up for those of you who came home to find your system broken.

As much as I feel like going off on a very long rant here, I know it's not the place... but I have to at least say this really sucks. This gcc issue has been going on for months... and it's still not fixed. What's the friggin problem in getting this fixed before it borks my system?
Back to top
View user's profile Send private message
ab384
n00b
n00b


Joined: 03 May 2005
Posts: 2

PostPosted: Fri Jun 03, 2005 7:59 pm    Post subject: Reply with quote

Did bog-standard emerge --update --deep world this afternoon.
Then the whole system borked and refused to run anything due to python not finding libstdc++.so.5.
Then of course nothing, not even gcc or emerge, will run. The system is essentially dead. If you reboot at this point it's a lost system which requires a wipe & reinstall.

It only took me half an hour to fix
Code:
ln -s /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/libstdc++.so.5 /usr/lib/libstdc++.so.5


BUT COME ON!!!! A 'routine' emerge which completely breaks the system!!! And this has been reported back in 2002 and it's now 2005!! I mean, this is terrible. Enough to put anyone off linux for life completely.

Thank you. That is all. I had to express this.
Back to top
View user's profile Send private message
kompressor
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2003
Posts: 127
Location: Randolph, VT

PostPosted: Sat Jun 04, 2005 1:23 am    Post subject: Reply with quote

had same problem as irusun. read the forums and did pretty much the same as he did to fix it.
almost had a heart attack when fix_libtool_blah wasnt working. I had to run gcc-config 1 first make the symbolic link then run fix_libtool_blah.
Back to top
View user's profile Send private message
zeveck
Apprentice
Apprentice


Joined: 17 Mar 2005
Posts: 173
Location: Boston, MA

PostPosted: Sat Jun 04, 2005 4:24 pm    Post subject: Reply with quote

I have tried just about everything in this thread, but to no avail.

A lot of people have suggestions involving using emerge, gcc-config, and fix_libtool_files.sh, none of which seem to be working correctly on my system, so none of which solve the problem. I've posted output of attempts at above...pardon the length...

Code:

[01;31meian ~ # gcc-config -l
[1] i686-pc-linux-gnu-3.3.4
[2] i686-pc-linux-gnu-3.4.4
[3] i686-pc-linux-gnu-3.4.4-hardened
[4] i686-pc-linux-gnu-3.4.4-hardenednopie
[5] i686-pc-linux-gnu-3.4.4-hardenednopiessp
[6] i686-pc-linux-gnu-3.4.4-hardenednossp
eian ~ # gcc-config          fix
fix_libtool_files.sh  fixpackages           
eian ~ # fix
fix_libtool_files.sh  fixpackages           
eian ~ # fix_libtool_files.sh 3.  i67 86-oc  oc  pc-linux-gnu-3.3.3 4
 * Scanning libtool files for hardcoded gcc library paths...
 *   [1/5] Scanning /lib ...
 *   [2/5] Scanning /usr/lib ...
 *   [3/5] Scanning /opt/blackdown-jdk-1.4.2.01/jre/lib/i386 ...
 *   [4/5] Scanning /usr/i686-pc-linux-gnu/lib ...
 *   [5/5] Scanning /usr/local/lib ...
eian ~ # gcc-cc onfig 2
 * Switching to i686-pc-linux-gnu-3.4.4 compiler ...
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
 * /usr/bin/gcc-config: Could not get portage CHOST!
/usr/bin/gcc-config: line 82: env: command not found
 * /usr/bin/gcc-config: Could not get portage CHOST!
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
 * /usr/bin/gcc-config: Could not get portage CHOST!
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
 * /usr/bin/gcc-config: Could not get portage CHOST!
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
 * /usr/bin/gcc-config: Could not get portage CHOST!
  [ ok ]

 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *   # source /etc/profile

eian ~ # emerge libtools
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
eian ~ # exit

[01;31meian ~ # exitmerge libtoolsgcc-config 2emerge libtoolsxitexitmerge libtoolsgcc-config 2fix_libtool_files.sh i686-pc-linux-gnu-3.3.4
eian ~ # gcc-config -lexitdf -hexitdispatch-conf emerge -C mod_ssl[8@s apache2-mod_sslC mod_ssldispatch-conf exitdf -hexitgcc-config -lfix_libtool_files.sh i686-pc-linux-gnu-3.3.4
eian ~ # gcc-config 2emerge libtoolsxitln -s /usr/bin/python/libstdc++.so.6 /usr/libg /gc
gcc/     gcc-lib/ gconv/   gcrt1.o 
eian ~ # ln -s /usr/bin/python/libstdc++.so.6 /usr/lib/gcc/i686-pc-linux-gnu/3.4.
.4/specs       libstdc++. .so
libstdc++.so        libstdc++.so.6      libstdc++.so.6.0.3
eian ~ # ln -s /usr/bin/python/libstdc++.so.6 /usr/lib/gcc/i686-pc-linux-gnu/3.4

.4/libstdc++.so.6
ln: `/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6': File exists
eian ~ # exit

Erm...what I meant to post is in there along with a lot of hell...can somebody tell me why my script output looks so garbled when I try to paste it here? If somebody can tell me how to fix that I can paste a cleaner version of the above.
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Sun Jun 05, 2005 10:23 am    Post subject: Reply with quote

I had problems emerging libapm after GCC upgrade, complaining for C runtime .o files (crtbegin and alike) not found in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5. I noticed that the directory 3.3.5 didn't exist, there's a 3.3.5-20050130 instead.

Was about to create a symlink (but I was not so sure :)) when I read this thread. Running fix_libtool_files didn't work, but emerging libtool again solved the problem.

Thanks to all, hope this could help someone else

:D
Back to top
View user's profile Send private message
askar
n00b
n00b


Joined: 03 Jun 2004
Posts: 47
Location: Central Asia, Kyrgyzstan

PostPosted: Tue Jun 07, 2005 4:15 pm    Post subject: Reply with quote

dalek wrote:
Just in case, I found this fix in another thread, suprized it ain't in dups. Anyway, they posted this command:

Code:
gcc-config 1


Hope that helps.

:D :D :D :D


How do you know from about the parameters like 1 or 3... for gcc-config.
man gcc-config is not available.

askar
Back to top
View user's profile Send private message
zeveck
Apprentice
Apprentice


Joined: 17 Mar 2005
Posts: 173
Location: Boston, MA

PostPosted: Tue Jun 07, 2005 11:16 pm    Post subject: Reply with quote

Do gcc-config -l (where that is a lowercase L) and it will list your options.
Back to top
View user's profile Send private message
jbannon
Tux's lil' helper
Tux's lil' helper


Joined: 15 Mar 2005
Posts: 99
Location: Paisley Scotland

PostPosted: Thu Jun 09, 2005 11:50 am    Post subject: Reply with quote

ab384 wrote:
Did bog-standard emerge --update --deep world this afternoon.
Then the whole system borked and refused to run anything due to python not finding libstdc++.so.5.
Then of course nothing, not even gcc or emerge, will run. The system is essentially dead. If you reboot at this point it's a lost system which requires a wipe & reinstall.

It only took me half an hour to fix
Code:
ln -s /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/libstdc++.so.5 /usr/lib/libstdc++.so.5


BUT COME ON!!!! A 'routine' emerge which completely breaks the system!!! And this has been reported back in 2002 and it's now 2005!! I mean, this is terrible. Enough to put anyone off linux for life completely.

Thank you. That is all. I had to express this.


Absolutely right. A straightforward update should not bloody well do this. I've lost at least 4 days trying to fix the damn thing after an emerge updated GCC 3.3.5 to 3.3.5-20050130-r2. Result? System completely screwed! After several attempts I now have 3.3.5-20050130-r1 working but I'm dreading the next update. :twisted:
_________________
Best Regards,
Jim Bannon
(When in doubt, try honesty!)
Back to top
View user's profile Send private message
jtox
n00b
n00b


Joined: 19 May 2005
Posts: 8
Location: A desert

PostPosted: Wed Jun 15, 2005 3:29 pm    Post subject: Reply with quote

Yeah. That about sums it up.
First I had trouble with rpm2cpio, so I re-emerged it, and bingo: works fine... then jade borked so I emerged openjade... but libstdc++ had me stumped! I even unmasked and installed libstdc++-v3-3.3.4, which, btw, isn't related to this problem at all, despite the name. :-(
So I finally sym-linked 3.3.4 to the 3.3.5-ugly-date-ID directory, and shazam! gcc compiles! Of course, only an hour later I finally found this thread (using lynx). I just made the suggested changes, but kept the symbolic link...
Hopefully after gnome re-emerges along with the rest of the "world", everything will fall back into place :-)

Awaiting reboot. Does anyone who did the sym-link trick know what errors might arise in the future from this?
I know the main obvious error is that there's a function in some library somewhere that's different and some service shouts "I QUIT!" somewhere in the background, but for those that did use ln, how stable is gentoo running for you, now?

After I finish emerging, I guess I'll find out for myself

Dang I wish lynx had tabs...
and maybe one of those color/dither/fft/recognition/multi-character ascii-art converters, too ... that'd rock ... and mouse access to the links and scroll-bar ... *sigh*
_________________
emerge yo self.
Back to top
View user's profile Send private message
puxie
n00b
n00b


Joined: 09 Mar 2003
Posts: 5
Location: Maastricht, The Netherlands

PostPosted: Thu Jun 16, 2005 6:19 am    Post subject: Reply with quote

Hi,

I've seemed to have solved the problem using binutils-config.

Before binutils-config -l said:

Code:

# binutils-config -l
i686-pc-linux-gnu-2.16.1


However, binutils-config -c said:

Code:
# binutils-config -c
686-pc-linux-gnu-2.16


Notice the trailing ".1" missing at the end of the current version. After switching to the current available the problem was solved!

Code:
# binutils-config i686-pc-linux-gnu-2.16.1

_________________
Let's do the gentoo!
Back to top
View user's profile Send private message
b12
n00b
n00b


Joined: 18 Sep 2004
Posts: 24

PostPosted: Thu Jun 16, 2005 7:53 am    Post subject: Reply with quote

djwilf wrote:
For those of you, if like me, are seeing i386 in the LIB path error, but is now using i686, then run the fix tool as follows :

fix_libtool_files.sh 3.3.4 --oldarch i386-pc-linux-gnu

it has fixed the compile error for me.

Found the additional command from the script file in /sbin.


this did the trick for me... with one exception: 3.3.5 instead of 3.3.4 = fix_libtool_files.sh 3.3.5 --oldarch i386-pc-linux-gnu
Back to top
View user's profile Send private message
hellspawn
n00b
n00b


Joined: 15 Jun 2005
Posts: 22

PostPosted: Sun Jul 03, 2005 6:47 am    Post subject: Reply with quote

I still have problems with 3.3.5
I am using the standard gcc(3.3.5) from the instalation cd, no upgrades.
Some fixes i see are related to fix_libtool but that is for upgarding. The other thing i tryed is the linking fix(ln -s....). Nothing worked.
I still get
"grep: /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/libstdc++.la' is not a valid libtool archive "
Back to top
View user's profile Send private message
dundas
Guru
Guru


Joined: 16 Dec 2004
Posts: 317
Location: China, Earth

PostPosted: Wed Aug 03, 2005 2:41 am    Post subject: Reply with quote

just to express my thanks to the problem solvers here,

only running the

Code:
fix_libtool_files.sh 3.3.5-2005***


didn't solve my problem saying 3.3.5/something.o not found

but re-emerging the libtool does help eventually.

:)
_________________
Appreciate Gentoo: Best Devs, Best Forums. YOU could help too: Help Answer
Back to top
View user's profile Send private message
RemcoNL
Apprentice
Apprentice


Joined: 30 Nov 2003
Posts: 178
Location: Leiden, The Netherlands

PostPosted: Thu Aug 18, 2005 4:11 pm    Post subject: Reply with quote

Great thread!
Code:
fix_libtool_files.sh 3.3.5
just solved some of my compile errors (for instance: "enchant" compiles now).
I still have other errors left, guess that has a different reason...
_________________
Use Compact Flash cards as a silent IDE hard drive
Back to top
View user's profile Send private message
einstein1981
Guru
Guru


Joined: 10 Mar 2004
Posts: 395
Location: Venezuela , Caracas

PostPosted: Wed Sep 07, 2005 8:33 pm    Post subject: Reply with quote

Hey guys. having a similar problem while emerging gnome ( building my sistem again from scratch, stage one) , when the emerge script gets to emerging libsdl it crashes with similar errors like you see on the first pagee of this post (Recursive blah). sorry for not beeing more specific but can't post from the machine where I have the problem since don't have gnome on it. and can'tt quite understant how to copy and paste from links2.

Now I tried that fix for libtool like you say on this post and, also did gcc_config 1 to set the compiler to mmy gcc 3.3.6. but still he same thing.

any ideas on how I can fix this.
also if you need more info please ask, and for compile errors also include a little how to to post them.

thank you
charles

by the way thsi is the error I get :
Code:

make[3]: *** [SDL_yuv_mmx.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/libsdl-1.2.8-r1/work/SDL-1.2.8/src/video'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/libsdl-1.2.8-r1/work/SDL-1.2.8/src/video'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libsdl-1.2.8-r1/work/SDL-1.2.8/src'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/libsdl-1.2.8-r1 failed.
!!! Function src_compile, Line 147, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.


_________________
thesis.
Back to top
View user's profile Send private message
seddes
n00b
n00b


Joined: 21 Nov 2004
Posts: 12

PostPosted: Sat Sep 10, 2005 11:41 pm    Post subject: Reply with quote

Hi,
I think I am having similar problems, but not sure how to fix. Trying the bootstrap, I get the following:

/usr/portage/scripts/bootstrap.sh * Resuming bootstrap at internal stage #2 ...

Gentoo Linux; http://www.gentoo.org/
Copyright 1999-2005 Gentoo Foundation; Distributed under the GPLv2
Starting Bootstrap of base system ...
-------------------------------------------------------------------------------
[[ (0/3) Locating packages ]]
* Using baselayout : >=sys-apps/baselayout-1.9.4-r3
* Using portage : >=sys-apps/portage-2.0.51
* Using os-headers : virtual/os-headers
* Using binutils : >=sys-devel/binutils-2.14.90.0.8-r1
* Using gcc : >=sys-devel/gcc-3.3.4-r1
* Using gettext : gettext
* Using libc : virtual/libc
* Using texinfo : sys-apps/texinfo
* Using zlib : sys-libs/zlib
* Using ncurses : sys-libs/ncurses
-------------------------------------------------------------------------------
[[ (1/3) Configuring environment ]]
* GENTOO_MIRRORS='http://cudlug.cudenver.edu/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo'
* PORTDIR='/usr/portage'
* DISTDIR='/usr/portage/distfiles'
* PKGDIR='/usr/portage/packages'
* PORTAGE_TMPDIR='/var/tmp'
* CHOST='i686-pc-linux-gnu'
* CXXFLAGS='-march=athlon-xp -O2 -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe'
* ACCEPT_KEYWORDS='x86'
* FEATURES='autoconfig candy distlocks sandbox sfperms strict'
>>> emerge (1 of 4) sys-devel/gettext-0.14.4 to /


<snip>


checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
configure: error: /bin/sh './configure' failed for autoconf-lib-link

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/config.log

!!! ERROR: sys-devel/gettext-0.14.4 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.


Basically, all emerges are failing with same problem. Any idea on fixes?
Back to top
View user's profile Send private message
JoKerTheFirst
n00b
n00b


Joined: 19 Jul 2004
Posts: 69
Location: Rome, Italy

PostPosted: Tue Sep 13, 2005 11:04 am    Post subject: Reply with quote

I had problems compiling various packets, including "easytag"
I've read this very post and https://forums.gentoo.org/viewtopic.php?t=279020 either and finally everything is working well, i had to fix both gcc version AND arch
Code:
fix_libtool_files.sh <old_version> --oldarch <incorrect_CHOST>

in my case...
Code:
JoKerRoom ~ # fix_libtool_files.sh 3.3.4 --oldarch i386-pc-linux-gnu

thanks guys!

gentoo is great :)
Back to top
View user's profile Send private message
derbrain
Apprentice
Apprentice


Joined: 09 Apr 2005
Posts: 178

PostPosted: Fri Sep 30, 2005 12:39 am    Post subject: next round... Reply with quote

i never had problems with gcc, until the last emerge --update world. i used gcc 3.3.5-20050130 first and have now 3.3.6. i got the famous error message
Code:
grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.la: No such file or directory

note that the mentioned version was 3.3.5, NOT 3.3.5-20050130!!!
so i searched the forum, found this thread, ran
Code:
fix_libtool_files.sh 3.3.5

then i made a emerge --resume. i did not run gcc-config, and i don't remember wether i used source /etc/profile.
anyways, the result was a changed error message. so guess what!?
Code:
grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/libstdc++.la: No such file or directory

this time it was really the version i had used first. so i tried to do the same again, with the new version number. but now something very strange happened: fix_libtool_files.sh didn't work anymore! if i run the script, i get the following:
Code:
 # fix_libtool_files.sh 3.3.5-20050130
 * Scanning libtool files for hardcoded gcc library paths...
 *   [1/8] Scanning /lib ...
 *   [2/8] Scanning /usr/lib ...
 *     FIXING: /usr/lib/python2.3/site-packages/_lcms.la ...[rm: Entfernen von ,,/usr/lib/python2.3/site-packages/_lcms.la.new" nicht möglich: Keine Berechtigung
v]
mv: Verschieben von ,,/usr/lib/python2.3/site-packages/_lcms.la.new" nach ,,/usr/lib/python2.3/site-packages/_lcms.la" nicht möglich: Keine Berechtigung
:0: assertion failed: dosystem("mv -f /usr/lib/python2.3/site-packages/_lcms.la.new /usr/lib/python2.3/site-packages/_lcms.la")
sh: line 1:  9649 Datenübergabe unterbrochen (broken pipe)                find /usr/lib/ -name '*.la' 2>/dev/null

(sorry for the german output, "keine berechtigung" means permission denied, "verschieben ... nicht möglich" means impossible to move the file).
so what should i do now??? why does it say it has no permission? both files exist!

any ideas?
thx a lot!
Back to top
View user's profile Send private message
derbrain
Apprentice
Apprentice


Joined: 09 Apr 2005
Posts: 178

PostPosted: Sat Oct 01, 2005 5:27 pm    Post subject: Reply with quote

Ok, everything works fine now.

First, I tried to re-merge python, but that didn't work. Then, I unmerged python. This broke emerge, naturally. So a downloaded the binaries (version 2.3), untared, emerge worked. Then I re-merged python (version 2.3.5-r2), so that it was in portage again. Since then, everything worked fine. Maybe downgrading and re-upgrading would have done the job, too. I don't know what was wrong with the permissions. Does anyone have an idea?

Anyways, everything works, no more complaints about libstdc++.la
Back to top
View user's profile Send private message
queen
Veteran
Veteran


Joined: 19 Jul 2005
Posts: 1642

PostPosted: Wed Oct 12, 2005 1:12 pm    Post subject: Reply with quote

Hello Guys

After having a very bad experience with libstdc++.so.5 someone suggested to use emerge -avt libstdc++-v3. Or alternatively ACCEPT_KEYWORDS="~x86" emerge -avt libstdc++-v3

If after that, the respective program doesn't run then do

revdep-rebuild --soname libstdc++.so.5

I tried the last command before emerge and it didn't helped in my case.

Soft links are always bad ideas.
Back to top
View user's profile Send private message
wlchase
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2003
Posts: 81
Location: Texas

PostPosted: Wed Oct 12, 2005 6:36 pm    Post subject: Reply with quote

dgaffuri wrote:
I had problems emerging libapm after GCC upgrade, complaining for C runtime .o files (crtbegin and alike) not found in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5. I noticed that the directory 3.3.5 didn't exist, there's a 3.3.5-20050130 instead.

Was about to create a symlink (but I was not so sure :)) when I read this thread. Running fix_libtool_files didn't work, but emerging libtool again solved the problem.

Thanks to all, hope this could help someone else

:D


Did the trick for me and my non-emerging python issue!

Thanks!
Bill
Back to top
View user's profile Send private message
aromero3
n00b
n00b


Joined: 04 Nov 2005
Posts: 6

PostPosted: Fri Nov 04, 2005 9:03 pm    Post subject: Reply with quote

If anyone comes across this and still has problems and does not want to have to emerge an older version of gcc, make sure that when you see the error message from libtool make sure to keep in mind any extra suffixes to the version.

If libtool complains: Libtool cannot find library: /usr/lib/gcc-lib/<arch>/<old version>/libstdc++.la

run fix_libtool_files.sh <old version>

I ran what I though was something like 3.3.5 but it was really 3.3.5-20050901 or something like that.

So in the end it was fix_libtool_files.sh 3.3.5-20050901 or something like that
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
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 5 of 6

 
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