Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(Gcc ?) - Probs mitten im System-Update
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
Donnergurgler
Apprentice
Apprentice


Joined: 17 Jan 2003
Posts: 202
Location: Schnongs-Zone

PostPosted: Wed Oct 22, 2003 3:13 am    Post subject: (Gcc ?) - Probs mitten im System-Update Reply with quote

Moin, Moin!

Ich lasse gerade ein Systemupdate durchlaufen.

Das letzte Paket, dass automatisch gemerged wurde, war der
gcc (von 3.2.1 auf 3.2.3-r2).

Lief auch scheinbar gut durch. Bis auf die letzten
Meldungen des neuen gcc, bevor der alte rausgeworfen wurde.
Quote:
>>> /usr/i586-pc-linux-gnu/gcc-bin/3.2/i586-pc-linux-gnu-c++ -> g++
>>> /usr/i586-pc-linux-gnu/gcc-bin/3.2/i586-pc-linux-gnu-g++ -> g++
>>> /usr/i586-pc-linux-gnu/gcc-bin/3.2/i586-pc-linux-gnu-g77 -> g77
>>> /usr/i586-pc-linux-gnu/gcc-bin/3.2/i586-pc-linux-gnu-gcc -> gcc
>>> /usr/i586-pc-linux-gnu/gcc-bin/3.2/gccbug
>>> /usr/i586-pc-linux-gnu/gcc-bin/3.2/grepjar
>>> /usr/i586-pc-linux-gnu/gcc-bin/3.2/jv-convert
>>> /usr/i586-pc-linux-gnu/gcc-bin/3.2/jcf-dump
>>> /usr/i586-pc-linux-gnu/gcc-bin/3.2/rmiregistry
--- /sbin/
>>> /sbin/fix_libtool_files.sh
>>> /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/libgcj.so -> libgcj.so.3.0.0
>>> /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/libobjc.so -> libobjc.so.1.0.0
>>> /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/libstdc++.so -> libstdc++.so.5.0.3
>>> /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/libg2c.so.0 -> libg2c.so.0.0.0
>>> /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/libstdc++.so.5 -> libstdc++.so.5.0.3

/usr/sbin/gcc-config: line 1: /usr/lib/portage/bin/portageq: Datei oder Verzeichnis nicht gefunden
* /usr/sbin/gcc-config: Could not get portage CHOST!
* Scannig libtool files for hardcoded gcc library paths...
>>> Regenerating /etc/ld.so.cache...
>>> sys-devel/gcc-3.2.3-r2 merged.


War das überhaupt eine Fehlermeldung? Ich denke schon, denn beim nächsten Paket
bleibt das Update-Prozedere hängen und gibt auf.
Quote:
* Applying pam-0.75-pam_console-bison.fixes.patch.bz2...
[ ok ]
* Applying pam-0.75-pam_console_apply-use-correct-device.patch.bz2...
[ ok ]
* Unpacking docs...
* Installing module docs...
* Applying pam-0.75-configure-db4.patch...
[ ok ]
* Generating configure...
>>> Source unpacked.
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /bin/install -c
checking for i586-pc-linux-gnu-gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! ERROR: sys-libs/pam-0.75-r11 failed.
!!! Function src_compile, Line 89, Exitcode 77
!!! Failed to configure


Tja, jetzt stehe ich ein bisschen auf dem Schlauch. Die bei der letzten Fehlermeldung
erwähnte "Config.log" lässt sich im System nicht auftreiben, das System-Update läuft
nicht weiter und einge Programme wollen schon auch nicht mehr starten ...


Hat jemand eine Idee?


Ciao,
Jens
Back to top
View user's profile Send private message
Donnergurgler
Apprentice
Apprentice


Joined: 17 Jan 2003
Posts: 202
Location: Schnongs-Zone

PostPosted: Wed Oct 22, 2003 6:00 am    Post subject: Reply with quote

Weitere Fehlermeldungen:

Quote:
# emerge -u system
python2.2: error while loading shared libraries: libstdc++.so.5:
cannot open shared object file: No such file or directory


Und das obwohl die libstdc++.so.5, wie oben schön zu
sehen ist, ja eigentlich ist.

Langsam macht sich ein sehr ungutes Gefühl breit :?


Ciao,
Jens
Back to top
View user's profile Send private message
ian!
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Wed Oct 22, 2003 6:42 am    Post subject: Reply with quote

Hast Du bereits ein etc-update gemacht?

Ich z.B. sehe hier in dem Pfad "/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/libstdc++.so.5" das deine CHOST-Variable ursprünglich "i586-pc-linux-gnu" war. Was steht in deiner CHOST-Variable in der /etc/make.conf?
Poste bitte auch mal den Output von "gcc -v".

ian!
_________________
"To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins
Back to top
View user's profile Send private message
Donnergurgler
Apprentice
Apprentice


Joined: 17 Jan 2003
Posts: 202
Location: Schnongs-Zone

PostPosted: Wed Oct 22, 2003 7:40 am    Post subject: Reply with quote

Hallo ian!

Da das Update noch nicht vollständig durchgelaufen und
mit einer Fehlermeldung abgebrochen ist, habe ich noch
kein "etc-update" durchgeführt.

Dadurch steht meine CHOST-Variable auch immer noch
auf CHOST="i586-pc-linux-gnu".

Zum GCC:
Quote:
# gcc -v
bash: gcc: command not found


Ist ein etc-update in diesem Stadium sinnvoll, zumal
emerge auch nicht mehr will (s. 2. Posting).


Ciao,
Jens
Back to top
View user's profile Send private message
ian!
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Wed Oct 22, 2003 8:03 am    Post subject: Reply with quote

Donnergurgler wrote:
Dadurch steht meine CHOST-Variable auch immer noch
auf CHOST="i586-pc-linux-gnu".

Gut.

Donnergurgler wrote:
Zum GCC:
Quote:
# gcc -v
bash: gcc: command not found


Schlecht. Ist gcc nicht in /usr/bin/ zu finden?

Donnergurgler wrote:
Ist ein etc-update in diesem Stadium sinnvoll, zumal
emerge auch nicht mehr will (s. 2. Posting).

Nein.

ian!
_________________
"To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins
Back to top
View user's profile Send private message
Donnergurgler
Apprentice
Apprentice


Joined: 17 Jan 2003
Posts: 202
Location: Schnongs-Zone

PostPosted: Wed Oct 22, 2003 8:15 am    Post subject: Reply with quote

Mein System sagt mir folgendes:

Quote:
# updatedb

# locate gcc | grep bin
/home/gentoo/distfiles/j2sdk-1.4.1-01-linux-i586-gcc3.2.bin
/usr/bin/gcc-config
/usr/i586-pc-linux-gnu/gcc-bin
/usr/i586-pc-linux-gnu/gcc-bin/3.2
/usr/i586-pc-linux-gnu/gcc-bin/3.2/addr2name.awk
/usr/i586-pc-linux-gnu/gcc-bin/3.2/c++
/usr/i586-pc-linux-gnu/gcc-bin/3.2/c++filt
/usr/i586-pc-linux-gnu/gcc-bin/3.2/cpp
/usr/i586-pc-linux-gnu/gcc-bin/3.2/g++
/usr/i586-pc-linux-gnu/gcc-bin/3.2/g77
/usr/i586-pc-linux-gnu/gcc-bin/3.2/gcc
--- schnipp ---

# /usr/i586-pc-linux-gnu/gcc-bin/3.2/gcc -v
Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/specs
Configured with: /usr/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/configure --prefix=/usr --bindir=/usr/i586-pc-linux-gnu/gcc-bin/3.2 --includedir=/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/include --datadir=/usr/share/gcc-data/i586-pc-linux-gnu/3.2 --mandir=/usr/share/gcc-data/i586-pc-linux-gnu/3.2/man --infodir=/usr/share/gcc-data/i586-pc-linux-gnu/3.2/info --enable-shared --host=i586-pc-linux-gnu --target=i586-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,f77,objc,java --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext
Thread model: posix
gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)



Sagt Dir das was?
gcc nach /usr/bin linken?


Ciao,
Jens
Back to top
View user's profile Send private message
ian!
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Wed Oct 22, 2003 9:03 am    Post subject: Reply with quote

Donnergurgler wrote:
gcc nach /usr/bin linken?

Ja. Und dann gcc neu mergen. (Obwohl ich vermute, dass noch mehr Symlinks fehlen.)
Das sollte dann die Sache wieder geradeziehen. Wenn nicht, dann müssen wir was radikaler vorgehen.

Gruß,
ian!
_________________
"To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins
Back to top
View user's profile Send private message
Donnergurgler
Apprentice
Apprentice


Joined: 17 Jan 2003
Posts: 202
Location: Schnongs-Zone

PostPosted: Wed Oct 22, 2003 10:05 am    Post subject: Reply with quote

Ich nehme einfach das komplette
Quote:
/usr/i586-pc-linux-gnu/gcc-bin/3.2/

Verzeichnis in PATH auf und emerge den gcc neu.

Mal sehen was passiert.


Ciao,
Jens
Back to top
View user's profile Send private message
Donnergurgler
Apprentice
Apprentice


Joined: 17 Jan 2003
Posts: 202
Location: Schnongs-Zone

PostPosted: Wed Oct 22, 2003 10:25 am    Post subject: Reply with quote

HA! Kleiner Denkfehler:

Wie oben schon beschrieben, will emerge ja auch
nicht mehr.

Habe LD_LIBRARY_PATH um
Quote:
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3
erweitert.

Quote:
# gcc --version
findet auch den gcc.

Noch ein
Quote:
# export CC=gcc


Doch leider bricht die Sache noch immer mit
"gcc nicht gefunden ab"
Quote:
* Applying libtool-test.patch...
* Applying libtool-tmp.patch...
* Applying libtool-sed.patch...
* Applying libtool-portage.patch...
creating cache ./config.cache
checking host system type... i586-pc-linux-gnu
checking target system type... i586-pc-linux-gnu
checking build system type... i586-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
./configure: line 2204: gcc: command not found
./configure: line 2315: gcc: command not found
*** The command 'gcc -o conftest -march=k6-3 -O2 -pipe conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

!!! ERROR: sys-devel/binutils-2.14.90.0.6-r2 failed.
!!! Function src_compile, Line 104, Exitcode 1
!!! (no error message)



Hmm ... ? Also er will ja, nur nicht so richtig ?
Noch eine Idee?


Ciao,
Jens
Back to top
View user's profile Send private message
ian!
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Wed Oct 22, 2003 10:46 am    Post subject: Reply with quote

Exportiere CC, CXX mal absolut und nicht relativ.

ian!
_________________
"To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins
Back to top
View user's profile Send private message
Gekko
l33t
l33t


Joined: 29 Oct 2002
Posts: 773

PostPosted: Wed Oct 22, 2003 10:46 am    Post subject: Reply with quote

Hi!

Könnt sein dass ich mich täusche, aber müsste es nicht
Code:
# export CC="gcc"
heissen??

Erschlagt mich nicht wenn ich falsch liege :oops:

LG, Gekko

Edit: vertippt...
Back to top
View user's profile Send private message
Donnergurgler
Apprentice
Apprentice


Joined: 17 Jan 2003
Posts: 202
Location: Schnongs-Zone

PostPosted: Wed Oct 22, 2003 2:38 pm    Post subject: Reply with quote

Nachdem ich nun so ziemlich alle Variablen per Hand gesetzt
habe, liefe "emerge gcc" auch durch. Nur bin mit den letzten
Zeilen nicht so ganz glücklich.
Quote:
--- !empty dir /etc
--- !targe sym /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/libstdc++.so.5
--- !targe sym /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/libstdc++.so
--- !targe sym /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/libobjc.so.1
--- !targe sym /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/libobjc.so
--- !targe sym /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/libgcj.so.3
--- !targe sym /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/libgcj.so
--- !targe sym /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/libgcc_s.so
--- !targe sym /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/libg2c.so.0
--- !targe sym /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/libg2c.so
--- !targe sym /usr/i586-pc-linux-gnu/gcc-bin/3.2/i586-pc-linux-gnu-gcc
--- !targe sym /usr/i586-pc-linux-gnu/gcc-bin/3.2/i586-pc-linux-gnu-g77
--- !targe sym /usr/i586-pc-linux-gnu/gcc-bin/3.2/i586-pc-linux-gnu-g++
--- !targe sym /usr/i586-pc-linux-gnu/gcc-bin/3.2/i586-pc-linux-gnu-c++
>>> original instance of package unmerged safely.
/usr/sbin/gcc-config: line 1: /usr/lib/portage/bin/portageq: Datei oder Verzeichnis nicht gefunden
* /usr/sbin/gcc-config: Could not get portage CHOST!
* Scannig libtool files for hardcoded gcc library paths...
sh: line 1: /usr/bin/portageq: Datei oder Verzeichnis nicht gefunden
:0: assertion failed: (/usr/bin/portageq envvar 'CHOST') | getline CHOST
>>> Regenerating /etc/ld.so.cache...
>>> sys-devel/gcc-3.2.3-r2 merged.

sys-devel/gcc
selected: none
protected: 3.2.3-r2
omitted: none

>>> clean: No packages selected for removal.

>>> Regenerating /etc/ld.so.cache...
>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


* Regenerating GNU info directory index...
* Processed 65 info files.
* IMPORTANT: 1 config files in /etc need updating.
* Type emerge --help config to learn how to update config files.


Hmm ... war das jetzt ein Erfolg?

Was hat die Zeile
Quote:
/usr/sbin/gcc-config: line 1: /usr/lib/portage/bin/portageq: Datei oder Verzeichnis nicht gefunden
* /usr/sbin/gcc-config: Could not get portage CHOST!

zu bedeuten ?

Und um nichts zu überstürzen: Ist ein "etc-update" hier
schon sinnvoll, denn eigentlich sollte ja das gesamte Basis-System neu erstellt werden.

Recht eigenartig auch, dass die anderen Shells immer
noch nichts vom GCC wissen.


Ciao,
Jens
Back to top
View user's profile Send private message
Donnergurgler
Apprentice
Apprentice


Joined: 17 Jan 2003
Posts: 202
Location: Schnongs-Zone

PostPosted: Wed Oct 22, 2003 4:31 pm    Post subject: Reply with quote

Mittlerweile habe ich mich nochmal ein bisschen in den
anderen Foren umgeschaut. Dort gibt es einen ähnlichen
Thread:

https://forums.gentoo.org/viewtopic.php?t=98713

Stellen ich meine Pfade so ein, wie dort erwähnt
Quote:
# export LD_PRELOAD="/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/libstdc++.so.5
# export LD_LIBRARY_PATH="/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/:${LD_LIBRARY_PATH}"
# emerge -u system

passiert folgendes:
Quote:
checking version of /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/../../../../i586-pc
-linux-gnu/bin/ld... 2.14.90.0.6, ok
checking whether ranlib is necessary... no
checking LD_LIBRARY_PATH variable... contains current directory
configure: error:
*** LD_LIBRARY_PATH shouldn't contain the current directory when
*** building glibc. Please change the environment variable
*** and run configure again.

!!! ERROR: sys-libs/glibc-2.3.2-r1 failed.
!!! Function src_compile, Line 415, Exitcode 1
!!! (no error message

Erst wenn ich die libs "libstdc++.so.5.0.3" und "libobjc.so"
(glaube ich) nach /usr/lib kopiere und entsprechend
verlinke, gehts vorerst weiter.

Na wenn das mal kein Bug im System ist, oder ?


Ciao,
Jens
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