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
drratchet
n00b
n00b


Joined: 14 Feb 2005
Posts: 1

PostPosted: Mon Feb 14, 2005 12:48 am    Post subject: Reply with quote

What I don't understand is that this bug #73435 is marked "RESOLVED / FIXED" in Bugzilla on 2005-01-17 by SpanKY as "fixed in cvs", but I just got bit yesterday (and since 2005-1-17, 25 new bugs have been marked as dupes of 73435) How long between "fixed in cvs" and "fixed when I emerge gcc on my desktop"? Is the wait because bug #73435 is blocked by bug #71265?
Back to top
View user's profile Send private message
Phrollux
n00b
n00b


Joined: 04 Jan 2005
Posts: 11

PostPosted: Wed Feb 16, 2005 9:36 am    Post subject: Reply with quote

Just like to add my thanks for this tip.

The documentation and support for this distro is so good that I don't get much
opportunity to post as my questions have allready been asked - keep it up :)

(gentoo noob since 01/2005)
Back to top
View user's profile Send private message
Alien Orifice
n00b
n00b


Joined: 09 Sep 2002
Posts: 24
Location: emerge reality

PostPosted: Fri Feb 18, 2005 6:36 pm    Post subject: Reply with quote

Well, I'm glad some of these fixes have worked for others. The upgrade to 3.3.5 has all but destroyed a fresh install for me. :(

All fixes have been tried, but the system is completely unusable. Nothing could be compiled without bombing out, and downgrading back seems to have failed as well. Can't even rebuild the toolchain. As Bones would say to Captain Kirk, "It's dead Jim".

This is the second time I've had a gentoo workstation go south permanently. Heh heh, it's only the second time I've built a gentoo box for development purposes here at work. First one lasted through a few emerges and eventually imploded from unresolvable issues. This one barely made it out of the gate.

Oddly, I have a box at home that has been buzzing along for a year. Strange....

I love gentoo, and love the forums but it's not stable enough for daily use as a workstation. Great for learning and stuff, but way to much breakage when time is better spent working than fixing, ya know?

Bummer, I have to put Fedora on it, because portage ( when it doesn't kill something ) spanks rpm, but I just don't have the time to spare chasing down problems.

Good luck to upgraders of gcc, but beware, you may get hosed!
_________________
My foot and your ass sure do make a great team.
Back to top
View user's profile Send private message
danix
n00b
n00b


Joined: 06 Sep 2003
Posts: 16

PostPosted: Mon Feb 21, 2005 2:56 am    Post subject: Reply with quote

I've had this problem on two boxes and cannot fix the second one. I've tried all the various fixes.
Here is some info:
# emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r13 i686)
=================================================================
System uname: 2.6.9-gentoo-r13 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 8 2005, 14:57:26)]
dev-lang/python: 2.3.4-r1
sys-devel/autoconf: 2.59-r6, 2.13
sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils: 2.15.92.0.2-r1
sys-devel/libtool: 1.5.10-r4
virtual/os-headers: 2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
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/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups curl emboss encode esd f77 fam font-server foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imagemagick imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline samba sdl slang spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts x86 xml2 xmms xv zlib"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

# gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs
Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --disable-multilib --disable-libgcj --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)

My error is this. At the tail end of trying to emerge (upgrade) imagemagick:

grep: /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/libstdc++.la' is not a valid libtool archive
make[1]: *** [magick/libMagick.la] Error 1
make[1]: Leaving directory `/var/tmp/portage/imagemagick-6.1.8.8/work/ImageMagick-6.1.8'
make: *** [all] Error 2

Any pointers are appreciated. It's not a production system but it's still annoying :)
Back to top
View user's profile Send private message
Vespira
n00b
n00b


Joined: 20 Feb 2005
Posts: 33
Location: Arizona, USA

PostPosted: Mon Feb 21, 2005 5:42 am    Post subject: Reply with quote

did you run
Code:
 
fix_libtool_files.sh 3.3.4


this fixed the problems i had with libtool: link: `/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/libstdc++.la' is not a valid libtool archive

the problem is with my amd64 box, emerging php causes libtool to bomb saying the libstdc++.la file has been moved, when in actuality it is right where the script says it isn't >.<

no php for me i suppose
Back to top
View user's profile Send private message
Turmoil
n00b
n00b


Joined: 21 Feb 2005
Posts: 7

PostPosted: Mon Feb 21, 2005 11:55 pm    Post subject: Reply with quote

I believe that my issues are also related to the gcc upgrade. I upgraded quite some time ago and haven't had time to try to fix it. Most packages install just fine. I've executed all of the commands suggested in this thread to no avail. (I think I did anyway)

Here's my emerge info and then the errors I'm seeing are below.

Code:

emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.4.26-gentoo-r3 i686)
=================================================================
System uname: 2.4.26-gentoo-r3 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 04:07:27)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -pipe -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium2 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apache2 apm arts avi berkdb bitmap-fonts crypt cups curl emboss encode f77 font-server foomaticdb fortran gdbm gif gpm gtk gtk2 imlib ipv6 jpeg libg++ libwww mad maildir mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY



This is the output from emerge =net-mail/courier-imap-3.0.8:

Code:

configure: creating cache /var/tmp/portage/courier-imap-3.0.8/work/config.cache
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.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/courier-imap-3.0.8/work/courier-imap-3.0.8/config.log

!!! ERROR: net-mail/courier-imap-3.0.8 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.


The line that from the config.log states:

Code:

i686-pc-linux-gnu-gcc: /etc/config-archive/var/vpopmail/etc/lib_deps: No such file or directory


But I do have a /etc/config-archive/var/vpopmail/etc/lib_deps,v so what's it looking for?

Why not just use 4.0.1 you ask? Well because that requires that I upgrade to net-libs/courier-authlib-0.53. Emerging that yields:

Code:

checking for syslog.h... yes
checking for uid_t in sys/types.h... (cached) yes
checking for strchr... (cached) yes
updating cache /var/tmp/portage/courier-authlib-0.53/work/courier-authlib-0.53/configuring.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
make: *** No targets.  Stop.

!!! ERROR: net-libs/courier-authlib-0.53 failed.
!!! Function src_compile, Line 98, Exitcode 2
!!! Compile problem
!!! If you need support, post the topmost build error, NOT this status message.


Thanks in advance for any help!
Back to top
View user's profile Send private message
localghost
Apprentice
Apprentice


Joined: 28 Oct 2004
Posts: 185
Location: Sint-Niklaas, Belgium

PostPosted: Wed Feb 23, 2005 4:14 pm    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.


Only the fix_libtool_files.sh version did nothing for me. When I added the --oldarch, it finally started fixing stuff. (yellow text). I'm compiling kdelibs now, wait and see...
_________________
411 /0µr 84$3 4r3 8310n9 70 µ$.
Back to top
View user's profile Send private message
^PsYcHo
n00b
n00b


Joined: 27 Feb 2005
Posts: 25

PostPosted: Sun Feb 27, 2005 10:30 pm    Post subject: Reply with quote

NIce worked wonderfully for me.

Code:
fix_libtool_files.sh 3.3.5 --oldarch i686-pc-linux-gnu


Mike
_________________
-m3h s3x11 sCr33n1e-
Back to top
View user's profile Send private message
SerfurJ
l33t
l33t


Joined: 10 Apr 2004
Posts: 824
Location: Texas

PostPosted: Tue Mar 01, 2005 7:21 pm    Post subject: Reply with quote

Quote:
emerge epiphany:

Code:
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for i686-pc-linux-gnu-g++... g++
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

!!! ERROR: net-www/epiphany-1.4.6 failed.


not having the linux headers installed could also produce that error.
Back to top
View user's profile Send private message
jago25_98
Apprentice
Apprentice


Joined: 23 Aug 2002
Posts: 180

PostPosted: Wed Mar 09, 2005 6:13 pm    Post subject: Reply with quote

Post starter please add:

fix = "emerge libtool && fix_libtool_files.sh 3.3.4" to first post

and

`resolved` in subject title
Back to top
View user's profile Send private message
bronxulica_17
n00b
n00b


Joined: 25 Mar 2005
Posts: 2

PostPosted: Fri Mar 25, 2005 3:13 pm    Post subject: Final Solution Reply with quote

A very simple solution is to make a symbolic link like this: ln -s /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5 /usr/gcc-lib/i386-pc-linux-gnu/3.3.4
This should work. For instance I've run that fix_libtool.sh lots of time but never worked. Enjoy Gentoo
Back to top
View user's profile Send private message
bronxulica_17
n00b
n00b


Joined: 25 Mar 2005
Posts: 2

PostPosted: Fri Mar 25, 2005 3:13 pm    Post subject: Final Solution Reply with quote

A very simple solution is to make a symbolic link like this: ln -s /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5 /usr/gcc-lib/i386-pc-linux-gnu/3.3.4
This should work. For instance I've run that fix_libtool.sh lots of time but never worked. Enjoy Gentoo
Back to top
View user's profile Send private message
assatanasso
n00b
n00b


Joined: 28 Mar 2005
Posts: 1

PostPosted: Mon Mar 28, 2005 12:30 am    Post subject: thanks Reply with quote

thanks a lot!

It should be an auto-fix when you update gcc.....however nice to came here and get this help!
Back to top
View user's profile Send private message
smack
n00b
n00b


Joined: 09 Dec 2004
Posts: 18

PostPosted: Thu Apr 14, 2005 8:12 am    Post subject: Reply with quote

No success.

These packages have to be build:
Code:

# emerge -p world

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

Calculating world dependencies ...done!
[ebuild     U ] dev-php/php-4.3.11 [4.3.10]
[ebuild     U ] sys-devel/gcc-config-1.3.10-r2 [1.3.6-r3]
[ebuild     U ] sys-devel/gcc-3.3.5.20050130-r1 [3.3.5-r1]
[ebuild  NS   ] dev-php/mod_php-4.3.11
[ebuild     U ] net-misc/rsnapshot-1.2.1 [1.1.6]


gcc-config:
Code:

# gcc-config -l
[1] i686-pc-linux-gnu-3.3.5 *
[2] i686-pc-linux-gnu-3.3.5-hardened
[3] i686-pc-linux-gnu-3.3.5-hardenednopie
[4] i686-pc-linux-gnu-3.3.5-hardenednossp


emerge --info:
Code:

# emerge --info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11.6-grsec i686)
=================================================================
System uname: 2.6.11.6-grsec i686 AMD Athlon(tm) XP 1600+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 11:06:27)]
dev-lang/python:     2.2.3-r5, 2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.4_p6, 1.5, 1.9.4, 1.8.5-r3, 1.7.9, 1.6.3
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 acpi alsa apache2 apm arts avi berkdb bitmap-fonts crypt cups emboss encode foomaticdb fortran gd gdbm gif gnome gpm gtk gtk2 guile imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY


emerge world results to this:
Code:

checking for c++... c++
checking whether the C++ compiler (c++ -O3 -mcpu=i686 -pipe -L/usr/lib  -ltiff -L/usr/lib -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/php-4.3.11/work/php-4.3.11/config.log

!!! ERROR: dev-php/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've tried emerge libtool, fix_libtool_files.sh (with different arguments), ...
What to do? Want to have my machines up to date.
Back to top
View user's profile Send private message
eSinner
Tux's lil' helper
Tux's lil' helper


Joined: 13 Mar 2004
Posts: 89
Location: Australia

PostPosted: Thu Apr 14, 2005 4:58 pm    Post subject: Stupid Moderator Reply with quote

I originally posted https://forums.gentoo.org/viewtopic.php?p=2309690#2309690, and I've tried everything in every freakin thread relating to gcc-3.3.5 updating to try and get my system to bloody compile mod_php since upgrading to gcc-3.3.5 but it's been no use.

I've

Quote:
fix_libtool_files.sh 3.3.4
env-update
source /etc/profile
binutils-config --x86
gcc-config 1


plus I've remerged glibc since updating to gcc-3.3.5 and that doesn't help either. GlibC conpiles fine, but everything else gives me this error:

Quote:
checking for c++... c++
checking whether the C++ compiler (c++ -march=athlon-xp -O3 -pipe -fomit-frame-pointer -L/usr/lib -L/usr/X11R6/lib -ltiff -L/usr/lib -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/server -L/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/server -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/native_threads -L/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/native_threads -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/i386 -L/opt/blackdown-jdk-1.4.2.01/jre/lib/i386 -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.


the config.log tells me this:

Quote:
configure:74546: checking whether to enable POSIX-like functions
configure:74819: checking for seteuid
configure:74847: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer -L/usr/lib -L/usr/X11R6/lib -ltiff -L/us$
configure:74819: checking for setegid
configure:74847: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer -L/usr/lib -L/usr/X11R6/lib -ltiff -L/us$
configure:74819: checking for setsid
configure:74847: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer -L/usr/lib -L/usr/X11R6/lib -ltiff -L/us$
configure:74819: checking for getsid
configure:74847: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer -L/usr/lib -L/usr/X11R6/lib -ltiff -L/us$
configure:74819: checking for setpgid
configure:74847: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer -L/usr/lib -L/usr/X11R6/lib -ltiff -L/us$
configure:74819: checking for getpgid
configure:74847: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer -L/usr/lib -L/usr/X11R6/lib -ltiff -L/us$
configure:74819: checking for ctermid
configure:74847: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer -L/usr/lib -L/usr/X11R6/lib -ltiff -L/us$
configure:74819: checking for mkfifo
configure:74847: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer -L/usr/lib -L/usr/X11R6/lib -ltiff -L/us$
configure:74819: checking for getrlimit
configure:74847: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer -L/usr/lib -L/usr/X11R6/lib -ltiff -L/us$
configure:74877: checking for PSPELL support
configure:75341: checking for new_aspell_config in -laspell
configure:75360: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer -L/usr/lib -L/usr/X11R6/lib -ltiff -L/us$
configure:75532: checking for QtDOM support
configure:75960: checking for c++
configure:75992: checking whether the C++ compiler (c++ -march=athlon-xp -O3 -pipe -fomit-frame-pointer -L/usr/lib -L/usr/$
configure:76008: c++ -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer -L/usr/lib -L/usr/X11R6/lib -ltiff -L/us$
/usr/qt/3/lib/libqt.so: undefined reference to `__pthread_register_cancel@GLIBC_2.3.3'
/usr/qt/3/lib/libqt.so: undefined reference to `__pthread_unregister_cancel@GLIBC_2.3.3'
collect2: ld returned 1 exit status
configure: failed program was:

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

int main(){return(0);}


but I have no idea why the damn thing wont compile!!! Does anyone have any ideas. Some stupid moderator closed my original thread saying that it was a duplicate, and the I should post any further queries on this thread. Though I'd be lucky if any would read through 4 pages of crap to even get to the point where they would see this post. Really, doing an emere -u world should not hose a system like this gcc update has. Can anyone help me here?

Please note this error I am getting seems to be different to everyone elses in that it's complaining about not being able to compile c++ binaries, while all other errors posted in this thread only refer to c binaries.

Do I need to recompile QT?
_________________
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
http://www.esinner.com/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Back to top
View user's profile Send private message
eSinner
Tux's lil' helper
Tux's lil' helper


Joined: 13 Mar 2004
Posts: 89
Location: Australia

PostPosted: Thu Apr 14, 2005 6:12 pm    Post subject: Doh! Reply with quote

Ok, so a recompile of QT fixed the problem. Amazing!
_________________
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
http://www.esinner.com/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Back to top
View user's profile Send private message
smack
n00b
n00b


Joined: 09 Dec 2004
Posts: 18

PostPosted: Fri Apr 15, 2005 12:35 pm    Post subject: Reply with quote

same for me, thx eSinner.
Back to top
View user's profile Send private message
eSinner
Tux's lil' helper
Tux's lil' helper


Joined: 13 Mar 2004
Posts: 89
Location: Australia

PostPosted: Fri Apr 15, 2005 3:33 pm    Post subject: :) Reply with quote

No problem mate, I'm just happy to have found a solution. Who would have guessed that something as left wing as QT would affect one's ability to compile c++ binaries. After all, QT is a wholly other library that in itself isn't depended upon by c++, it's the other way around. Personally I think that this configure script is screwed, but then what would I know?

There's one thing I'll say for Gentoo, in the year and a half of using it I've not come across one problem that was not fixable after much effort.
_________________
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
http://www.esinner.com/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Back to top
View user's profile Send private message
rockcat
n00b
n00b


Joined: 16 Apr 2005
Posts: 16

PostPosted: Sat Apr 16, 2005 5:46 pm    Post subject: None of this has worked, it seems gcc-config is AWOL Reply with quote

These forums and google have been very helpful, but I still can't emerge packages.

When I try to compile most things I get
Code:
checking for C compiler default output file name... configure: error: C compiler cannot create executables


If I try to re-compile gcc I get
Code:
sh: line 1: /usr/bin/gcc-config: No such file or directory
gcc-config error: Could not get compiler binary path: No such file or directory


emerge -p gcc-config

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

Calculating dependencies    ...done!
[ebuild   R   ] sys-devel/gcc-config-1.3.10-r2 


When I actually try to emerge it, it fails.

I set my CFLAGS to "", and it didn't help.

Code:
gcc -dumpversion
sh: line 1: /usr/bin/gcc-config: No such file or directory
gcc-config error: Could not get compiler binary path: No such file or directory


Since gcc -dumpversion doesn't work, fix_libtool_files.sh doesnt work (and I only seem to have gcc 3.3.5 installed)

emerge -info
Code:

Gentoo Base System version 1.4.16
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r5 i686)
=================================================================
System uname: 2.6.11-gentoo-r5 i686 Mobile AMD Athlon(tm) 64 Processor 3400+
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 16 2005, 03:14:46)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.14.90.0.8-r1
sys-devel/libtool:   1.5.10-r4, 1.3.5
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
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/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 apm avi bash-completion beepmp berkdb bitmap-fonts bootsplash cdr crypt cups dv dvd dvdr dvdread encode enscript fam fame fb flac fortran fping fpx gd gdbm gif gimp gmail gphoto2 gpm graphviz gsm gtk gtk2 imagemagick inkjar ipv6 java jpeg kdepim ldap libg++ mad mikmod motif mozilla mp3 mpeg mysql ncurses nls nptl ogg oggvorbis opengl pam pdflib perl php png postgres python qt quicktime readline samba scanner sdl slang spell sqlite ssl svg svga tcltk tcpd tiff truetype truetype-fonts type1-fonts usb vorbis xine xml xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY


I reinstalled binutils from a gentoo binary when I first started working on this issue (since "as" was missing), and I upgraded to 2.6.11-gentoo-r5 kernel recently.

Oh, and when I try to emerge an older version of gcc (can't find 3.3.4 http://gentoo-portage.com/sys-devel/gcc so i tried 3.3.2-r7) and i get a package blocked by profile message.

Any help? Not being able to install is getting really old.

Thanks,
Amy Jo Hines
Back to top
View user's profile Send private message
eSinner
Tux's lil' helper
Tux's lil' helper


Joined: 13 Mar 2004
Posts: 89
Location: Australia

PostPosted: Sat Apr 16, 2005 10:57 pm    Post subject: Binary emerge Reply with quote

I had a problem similar once when I accidentally hosed gcc. I couldn't re-compile it either. Luckily I had a spare gentoo box. A Cyrix PR 166MX that I use for backups. I used it to create a binary package of the right version of gcc and gcc-config that I needed, in your case you'll probably need to make libtool as well. I put custom CFLAGS and USE flags on the commandline so that the package would compile with the right support since my 166 was using a different profile and make.conf, then I just transfered these files to /usr/portage/packages and emerged them in on my hosed machine.

If you don't have access to a spare gentoo box let me know. I can use the make.conf file you posted above to compile a binary package of the programs you need, then upload them to my webserver so you can download them. That might go some way to helping you sort out your problem...

let me know :)
_________________
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
http://www.esinner.com/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Back to top
View user's profile Send private message
rockcat
n00b
n00b


Joined: 16 Apr 2005
Posts: 16

PostPosted: Mon Apr 18, 2005 12:23 am    Post subject: Re: Binary emerge Reply with quote

eSinner wrote:

If you don't have access to a spare gentoo box let me know. I can use the make.conf file you posted above to compile a binary package of the programs you need, then upload them to my webserver so you can download them. That might go some way to helping you sort out your problem...

let me know :)


Thanks for the offer. Believe me I appriciate it. When I was trying to fix the issue I hit the point where every command I tried resulted in a Segmentation Fault - I couldn't even chroot from a live cd. I ended up installing (aka un-tarring) all the binaries from http://dev.gentoo.org/~avenj/bins/ and then I could type
Code:
export LD_ASSUME_KERNEL=2.2.5
and chroot. I still could not boot into linux. After some more digging I copied the /lib folder from the gentoo cd onto my root partition. So I could boot, and run programs. I still can't compile anything, so I have decided to wipe my unused windows and install the amd64 version (which is going very well). I guess the moral is portage/emerge is great, but if it isn't broken don't fix it (and I will probably mask glibc and gcc in package.mask, and only upgrade for very good reasons).

I appreciate everyone's help! :D

Amy Jo Hines
Web Designer
JAG Technologies Inc
Back to top
View user's profile Send private message
bradbase
n00b
n00b


Joined: 09 Apr 2004
Posts: 5
Location: Victoria, Australia

PostPosted: Fri Apr 22, 2005 2:36 pm    Post subject: Reply with quote

Howdy y'all,

I've been having trouble with this as well, and I've taken the advice of all above posters to no avail.

I then took a quick sneaky-peek at the fix_libtool_files.sh file which I found in the /sbin dir. The command I used as root was;
Code:
vi /sbin/fix_libtool_files.sh

It had a nice little comment section at the top with comments which read;

Code:
Usage: fix_libtool_files.sh <old-gcc-version> [--oldarch <old-CHOST>]

    Where <old-gcc-version> is the version number of the
    previous gcc version.  For example, if you updated to
    gcc-3.2.1, and you had gcc-3.2 installed, run:

      # fix_libtool_files.sh 3.2

    If you updated to gcc-3.2.3, and the old CHOST was i586-pc-linux-gnu
    but you now have CHOST as i686-pc-linux-gnu, run:

      # fix_libtool_files.sh 3.2 --oldarch i586-pc-linux-gnu

    Note that if only the CHOST and not the version changed, you can run
    it with the current version and the '--oldarch <old-CHOST>' arguments,
    and it will do the expected:

      # fix_libtool_files.sh `gcc -dumpversion` --oldarch i586-pc-linux-gnu


My error was;
Code:
libtool: link: `/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/libstdc++.la' is not a valid libtool archive

I'm running with my CHOST as an i686 so the command I used was;
Code:
fix_libtool_files.sh 3.3.4 --oldarch i386-pc-linux-gnu

All fixed now :)

I guess the saying is true... "use the source, luke"

YAY! pikdev is installed (and I can install other things as well)
Back to top
View user's profile Send private message
kestas
n00b
n00b


Joined: 07 Feb 2005
Posts: 4

PostPosted: Fri Apr 22, 2005 3:27 pm    Post subject: Reply with quote

So everyone who runs gentoo is going to have to find this thread or lose the ability to update their system?
Back to top
View user's profile Send private message
Sith_Happens
Veteran
Veteran


Joined: 15 Dec 2004
Posts: 1807
Location: The University of Maryland at College Park

PostPosted: Fri Apr 22, 2005 7:24 pm    Post subject: Reply with quote

kestas wrote:
So everyone who runs gentoo is going to have to find this thread or lose the ability to update their system?
Or you could just be a man and update to gcc 3.4.3. :wink:
_________________
"That question was less stupid; though you asked it in a profoundly stupid way."
I'm the brains behind Jackass! | Tutorials: Shorewall
Back to top
View user's profile Send private message
binaural
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2004
Posts: 138

PostPosted: Sun Apr 24, 2005 8:41 pm    Post subject: ladies and gentlemen Reply with quote

I have read this entire thread and others that seem related, and am now convinced that I must have smoked some crack this morning without knowing it. My system is seriously B0RKED and I can't fix it.

For every emerge I attempt I'm getting the following error:
Code:
configure: error: installation or configuration problem: C compiler cannot create executables.


Code:
~ # gcc --version
gcc (GCC) 3.3.5-20050130 (Gentoo Hardened Linux 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)


Code:
~ # gcc-config -l
 * /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/i686-pc-linux-gnu-3.3.5-20050130
[1] i686-pc-linux-gnu-3.3.5-20050130 *
[2] i686-pc-linux-gnu-3.3.5-20050130-hardenednopie
[3] i686-pc-linux-gnu-3.3.5-20050130-hardenednossp
[4] i686-pc-linux-gnu-3.3.5-20050130-vanilla


They talk about CFLAGS, but I have had these since I installed the system months ago.

Code:
~ # emerge --info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11.5transplant i686)
=================================================================
System uname: 2.6.11.5transplant i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 10 2005, 10:55:55)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.9.4, 1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
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/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 /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/apache2/conf/apache2.conf /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aim alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bzlib cdr crypt cups curl divx4linux dvd emboss encode esd exif fam flac foomaticdb fortran gd gdbm gdmb gif gnome gnupg gphoto2 gpm gstreamer gtk gtk2 guile hardened imagemagick imlib ipv6 jack java jpeg junit kde libg++ libwww lm_sensors mad map mikmod motif mozilla mp3 mpeg mysql mysqli ncurses nls offensive ogg oggvorbis opengl oss pam pdflib perl php phphardened pic png python qt quicktime readline ruby sdl shorten snmp speex spell spl ssl svga szip tcltk tcpd tetex tidy tiff tokenizer truetype truetype-fonts type1-fonts usb vorbis win32codecs wmf x86 xine xml xml2 xmms xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS


I love Gentoo and the forums and I'm sure this is my own fault. Any help much appreciated as always.



EDIT

Now I'm getting this when I try to install gtk+ and none of the fixes listed here help:
Code:
grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4-20050130/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4-20050130/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4-20050130/libstdc++.la'is not a valid libtool archive
make[4]: *** [libpixbufloader-tiff.la] Error 1
make[4]: Leaving directory `/var/tmp/portage/gtk+-2.6.4-r1/work/gtk+-2.6.4/gdk-pixbuf'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/gtk+-2.6.4-r1/work/gtk+-2.6.4/gdk-pixbuf'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/gtk+-2.6.4-r1/work/gtk+-2.6.4/gdk-pixbuf'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gtk+-2.6.4-r1/work/gtk+-2.6.4'
make: *** [all] Error 2

!!! ERROR: x11-libs/gtk+-2.6.4-r1 failed.
!!! Function src_compile, Line 84, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



OK Fixed... finally...

emerge unmerge gcc
emerge gcc-3.3.5-20050130
emerge gcc-config
emerge libtool
fix_libtool_files.sh 3.3.4-20050130 <<-- this is what took me all fucking day to find!
emerge gtk+
[...]
i have firefox & xmms again :)
Code:

_________________
Happy vimming!
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 4 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