Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]GCC verweigert Kompilierung/configure-script Fehler
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
zielscheibe
l33t
l33t


Joined: 02 Apr 2004
Posts: 804
Location: Aachen

PostPosted: Mon Mar 21, 2005 2:22 pm    Post subject: [SOLVED]GCC verweigert Kompilierung/configure-script Fehler Reply with quote

Hi Leute!

Habe hier ein merkwürdiges Problem, dessen Ursache oder gar Lösung mir leider nicht geläufig ist. Eigentlich wollte ich den aktuellen ~x86 gcc-20050110-r1 testen, leider brach er mit folgender Fehlermeldung ab:

Code:


updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing default commands
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `r=`${PWDCMD-pwd}`; export r;  s=`cd /var/tmp/portage/gcc-3.4.3.20050110-r1/work/gcc-3.4.3; ${PWDCMD-pwd}`; export s;  LD_LIBRARY_PATH=/var/tmp/portage/gcc-3.4.3.20050110-r1/work/build/gcc:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.  (cd libiberty && make "DESTDIR=" "RPATH_ENVVAR=LD_LIBRARY_PATH" "TARGET_SUBDIR=i686-pc-linux-gnu" "bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.3-20050110" "datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3-20050110" "exec_prefix=/usr" "includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/include" "infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3-20050110/info" "libdir=/usr/lib" "libexecdir=/usr/libexec" "lispdir=" "libstdcxx_incdir=" "libsubdir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110" "localstatedir=/usr/var" "mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3-20050110/man" "oldincludedir=/usr/include" "prefix=/usr" "sbindir=/usr/sbin" "sharedstatedir=/usr/com" "sysconfdir=/usr/etc" "tooldir=/usr/i686-pc-linux-gnu" "build_tooldir=/usr/i686-pc-linux-gnu" "gxx_include_dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/include/g++-v3" "gcc_version=3.4.3-20050110" "gcc_version_trigger=/var/tmp/portage/gcc-3.4.3.20050110-r1/work/gcc-3.4.3/gcc/version.c" "target_alias=i686-pc-linux-gnu" "BISON=`if [ -f $r/bison/bison ] ; then echo $r/bison/bison -L $s/bison/ ; else echo bison ; fi`" "CC_FOR_BUILD=gcc" "CXX_FOR_BUILD=c++" "EXPECT=`if [ -f $r/expect/expect ] ; then echo $r/expect/expect ; else echo expect ; fi`" "INSTALL=/bin/install -c" "INSTALL_DATA=/bin/install -c -m 644" "INSTALL_PROGRAM=/bin/install -c" "INSTALL_SCRIPT=/bin/install -c" "LEX=`if [ -f $r/flex/flex ] ; then echo $r/flex/flex ; else echo flex ; fi`" "M4=`if [ -f $r/m4/m4 ] ; then echo $r/m4/m4 ; else echo m4 ; fi`" "MAKE=make" "RUNTEST=`if [ -f $s/dejagnu/runtest ] ; then echo $s/dejagnu/runtest ; else echo runtest ; fi`" "RUNTESTFLAGS=" "SHELL=/bin/sh" "YACC=`if [ -f $r/bison/bison ] ; then echo $r/bison/bison -y -L $s/bison/ ; elif [ -f $r/byacc/byacc ] ; then echo $r/byacc/byacc ; else echo bison -y ; fi`" "AR_FLAGS=rc" "CFLAGS=-O2 -march=athlon-xp -pipe" "CXXFLAGS=-O2 -march=athlon-xp -pipe" "LDFLAGS=" "LIBCFLAGS=-O2 -march=athlon-xp -pipe" "LIBCXXFLAGS=-O2 -march=athlon-xp -pipe -fno-implicit-templates" "AR_FOR_TARGET=` if [ -f $r/binutils/ar ] ; then echo $r/binutils/ar ; else if [ 'i686-pc-linux-gnu' = 'i686-pc-linux-gnu' ] ; then echo ar; else echo ar | sed 's,x,x,' ; fi; fi`" "AS_FOR_TARGET=` if [ -f $r/gas/as-new ] ; then echo $r/gas/as-new ; elif [ -f $r/gcc/xgcc ]; then  $r/gcc/xgcc -B$r/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -print-prog-name=as ; else if [ 'i686-pc-linux-gnu' = 'i686-pc-linux-gnu' ] ; then echo as; else echo as | sed 's,x,x,' ; fi; fi`" "CC_FOR_TARGET= $r/gcc/xgcc -B$r/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include" "CFLAGS_FOR_TARGET=-O2 -O2 -march=athlon-xp -pipe" "CXX_FOR_TARGET= $r/gcc/g++ -B$r/gcc/ -nostdinc++ `test ! -f $r/i686-pc-linux-gnu/libstdc++-v3/scripts/testsuite_flags || /bin/sh $r/i686-pc-linux-gnu/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$r/i686-pc-linux-gnu/libstdc++-v3/src -L$r/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include" "CXXFLAGS_FOR_TARGET=-O2 -march=athlon-xp -pipe -D_GNU_SOURCE" "DLLTOOL_FOR_TARGET=` if [ -f $r/binutils/dlltool ] ; then echo $r/binutils/dlltool ; else if [ 'i686-pc-linux-gnu' = 'i686-pc-linux-gnu' ] ; then echo dlltool; else echo dlltool | sed 's,x,x,' ; fi; fi`" "GCJ_FOR_TARGET= $r/gcc/gcj -B$r/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include" "LD_FOR_TARGET=` if [ -f $r/ld/ld-new ] ; then echo $r/ld/ld-new ; elif [ -f $r/gcc/xgcc ]; then  $r/gcc/xgcc -B$r/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -print-prog-name=ld ; else if [ 'i686-pc-linux-gnu' = 'i686-pc-linux-gnu' ] ; then echo /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld; else echo ld | sed 's,x,x,' ; fi; fi`" "LIBCFLAGS_FOR_TARGET=-O2 -O2 -march=athlon-xp -pipe" "LIBCXXFLAGS_FOR_TARGET=-O2 -march=athlon-xp -pipe -D_GNU_SOURCE -fno-implicit-templates" "NM_FOR_TARGET=` if [ -f $r/binutils/nm-new ] ; then echo $r/binutils/nm-new ; elif [ -f $r/gcc/xgcc ]; then  $r/gcc/xgcc -B$r/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -print-prog-name=nm ; else if [ 'i686-pc-linux-gnu' = 'i686-pc-linux-gnu' ] ; then echo nm; else echo nm | sed 's,x,x,' ; fi; fi`" "RANLIB_FOR_TARGET=` if [ -f $r/binutils/ranlib ] ; then echo $r/binutils/ranlib ; else if [ 'i686-pc-linux-gnu' = 'i686-pc-linux-gnu' ] ; then if [ x'ranlib' != x ]; then echo ranlib; else echo ranlib; fi; else echo ranlib | sed 's,x,x,' ; fi; fi`" "WINDRES_FOR_TARGET=` if [ -f $r/binutils/windres ] ; then echo $r/binutils/windres ; else if [ 'i686-pc-linux-gnu' = 'i686-pc-linux-gnu' ] ; then echo windres; else echo windres | sed 's,x,x,' ; fi; fi`" "CONFIG_SHELL=/bin/sh" "MAKEINFO=`if [ -f $r/texinfo/makeinfo/makeinfo ] ; then echo $r/texinfo/makeinfo/makeinfo ; else if (makeinfo --version | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; then echo makeinfo; else echo $s/missing makeinfo; fi; fi` --split-size=5000000"  'AR=ar' 'AS=as' 'CC=gcc' 'CXX=c++' 'DLLTOOL=dlltool' 'LD=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld' 'NM=nm' 'RANLIB=ranlib' 'WINDRES=windres' all)'
make: *** [all-libiberty] Error 2

!!! ERROR: sys-devel/gcc-3.4.3.20050110-r1 failed.
!!! Function gcc_do_make, Line 1165, Exitcode 2
!!! make failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.


Gut es kann ja mal Probleme mit Testing-Paketen geben, aber die Art des Fehlers ("/bin/sh: -c: line 0: syntax error near unexpected token `('" - WTF?) hat mich schon irritiert. Deshalb probierte ich die bereits seit ca. 2 Monaten problemlos laufende Version des GCCs (3.4.3-r1) zu reinstallieren --> siehe da: gleicher Fehler nur mit angepassten Pfadangaben der entsprechenden Version.

Damit habe ich im Moment noch einen funktionierenden Kompiler würde mich aber dennoch erleichtert fühlen, wenn mir jemand einen Tip geben könnte, wie man dieses Problem in den Griff bekommt.

Ich pinne noch mal ein "emerge-info":

Code:

Portage 2.0.51.19 (default-linux/x86/2004.2, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11.4 i686)
=================================================================
System uname: 2.6.11.4 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  9 2005, 10:08: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.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -mfpmath=sse,387 -pipe -fPIC -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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 /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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -mfpmath=sse,387 -pipe -fPIC -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks keepwork noinfo sandbox sfperms"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/      http://gentoo.tiscali.nl/gentoo/      http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X X509 gcj objc acl acpi activefilter aim alsa arts async audiofile avi bitmap-fonts bzip2 bzlib cdinstall cdparanoia cdr cdrom chroot codecs cups curl dba devfs devfs26 dga dillo divx4linux djbfft dmx dnd dvd dvdr dvdread dxr3 edl encode escreen esd faad fbcon fbdev flac fmod foomaticdb gd gif gimp gimpprint gstreamer gtk gtk2 hal imagemagick imlib imlib2 immqt-bc ipv6 java javacomm javadoc javamail javascript jbig jboss jce jdepend jikes jmx jp2 jpeg jpeg2k jsch jta junit jython kde kdeenablefinal kerberos lcms ldap live lm_sensors lzo lzw lzw-tiff mad maildir mime mjpeg mmx monkey motif mp3 mpeg mpeg4 mplayer multislot nls nntp nptl nptlonly nvidia offensive ogg oggvorbis openal opengl pam perl pic png posix ppds pthreads python qt real samba scanner sdk slang speedo sse ssl stream svg tetex theora tiff transcode truetype type1 unicode usb userlocales vidix vx wxwindows xine xinerama xml xml2 xmlrpc xmms xosd xscreensaver xv xvid xvmc yv12 zlib video_cards_nvidia linguas_de"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS


Gruß

zielscheibe


Last edited by zielscheibe on Sat Mar 26, 2005 3:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon Mar 21, 2005 2:33 pm    Post subject: Reply with quote

Heiliges Kanonenrohr! So eine Fehlermeldung habe ich noch nicht gesehen!

Habe Gestern das neue GCC gezogen und hatte dabei keinerlei Probleme:
Code:
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20041102-r1, 2.6.11.4 i686)
=================================================================
System uname: 2.6.11.4 i686 AMD Athlon(TM) XP 2400+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.2.3-r6,dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 13 2005, 16:32:57)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.2.3-r6, 2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 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.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -pipe -mmmx -m3dnow -msse -mfpmath=sse,387 -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=64 -maccumulate-outgoing-args -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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/fax /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/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -pipe -mmmx -m3dnow -msse -mfpmath=sse,387 -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=64 -maccumulate-outgoing-args -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg distlocks sandbox sfperms userpriv"
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j16"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/gentoo.overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex GAPING_SECURITY_HOLE X aac aalib accessibility acl acpi alsa apm arts artswrappersuid artworkextra audiofile avi berkdb bitmap-fonts bonobo cdparanoia cdr clamav crypt cups curl dga directfb divx4linux djbfft dmx dv dvd emboss encode erandom esd fam faxonly fbcon flac font-server foomaticdb fortran gd gdbm ggi gif gimp gimpprint gnokii gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile icc icc-pgo ieee1394 imagemagick imlib ipv6 irda jack java jikes jpeg jpeg2k junit kde kdeenablefinal kerberos krb4 lcms ldap libg++ libwww live lm_sensors logitech-mouse mad maildir md5sum mikmod mmx motif mozilla mp3 mpeg nas ncurses nls nntp nptl nvidia oav oggvorbis openexr opengl oss pam pda pdflib perl pic png ppds python qt quicktime rdesktop readline real rtc ruby samba scanner sdl skey slang slp sms snmp socks5 speex spell sqlite sqlite3 sse ssl svg svga svgz symlink sysfs t1lib tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb wmf xface xine xml xml2 xmms xpm xprint xrandr xscreensaver xv xvid zeroconf zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS


Code:
gentoo / # qpkg -I -nc -v gcc
sys-devel/gcc-3.3.5.20050130-r1
sys-devel/gcc-config-1.3.10-r1
sys-devel/gcc-3.4.3.20050110-r1
gentoo / # gcc-config -l
[1] i686-pc-linux-gnu-3.3.5-20050130
[2] i686-pc-linux-gnu-3.3.5-20050130-hardened
[3] i686-pc-linux-gnu-3.3.5-20050130-hardenednopie
[4] i686-pc-linux-gnu-3.3.5-20050130-hardenednossp
[5] i686-pc-linux-gnu-3.4.3-20050110 *
[6] i686-pc-linux-gnu-3.4.3-20050110-hardened
[7] i686-pc-linux-gnu-3.4.3-20050110-hardenednopie
[8] i686-pc-linux-gnu-3.4.3-20050110-hardenednossp
gentoo / #


Könnte das ein Fehler sein, welchen man mit fix_libtool_files.sh beheben könnte?


Gruss

Steve
Back to top
View user's profile Send private message
zielscheibe
l33t
l33t


Joined: 02 Apr 2004
Posts: 804
Location: Aachen

PostPosted: Mon Mar 21, 2005 3:17 pm    Post subject: Reply with quote

Quote:

Könnte das ein Fehler sein, welchen man mit fix_libtool_files.sh beheben könnte?


Leider nein. Habe mir jetzt mal das "/etc/env.d/ bzw. /etc/env.d/gcc/" Verzeichnis näher angeschaut und dort 2 sehr obskure Datein gefunden

Code:

-rw-r--r--  1 root root 88  4. Dez 14:24 05gcc-
-rw-r--r--  1 root root 32  4. Dez 14:24 config-


In diesen wird auf einen "/usr/i386-pc-linux-gnu/gcc-bin/3.3" verwiesen, welcher eigentlich nie etwas auf diesem Host verloren haben sollte. Habe die beiden jetzt mal entfernt --> wenigstens läßt sich jetzt ein gcc-3.3.5 kompilieren, für den eigentlich gewünschten 3.4er habe ich leider immer noch keine Lösung. :(

Code:

[1] i686-pc-linux-gnu-3.3.5-20050130
[2] i686-pc-linux-gnu-3.3.5-20050130-hardened
[3] i686-pc-linux-gnu-3.3.5-20050130-hardenednopie
[4] i686-pc-linux-gnu-3.3.5-20050130-hardenednossp
[5] i686-pc-linux-gnu-3.4.3 *
[6] i686-pc-linux-gnu-3.4.3-hardened
[7] i686-pc-linux-gnu-3.4.3-hardenednopie
[8] i686-pc-linux-gnu-3.4.3-hardenednossp
Back to top
View user's profile Send private message
zielscheibe
l33t
l33t


Joined: 02 Apr 2004
Posts: 804
Location: Aachen

PostPosted: Sat Mar 26, 2005 3:04 pm    Post subject: Reply with quote

Nachtrag:

Der Fehler rührte wahrscheinlich von etwas weiter zurückliegenden ICC-Experimenten her. :oops:

In der "/etc/env.d/06icc" wurde der Pfad für den GCC auf "ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/3.4.*" gesetzt und bei jedem "env-update" Systemweit exportiert. Warum die Pathvariable erst jetzt diesen Ärger gemacht hat, entzieht sich meiner Kenntnis. :roll:

SOLVED
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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