Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gelöst] Portage/Fixing broken portage
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
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 514

PostPosted: Wed Mar 27, 2024 10:36 pm    Post subject: [gelöst] Portage/Fixing broken portage Reply with quote

Guten Abend zusammen,

beim wechseln von profile 17.0 auf 23.0 nach dieser Anleitung

https://www.gentoo.org/support/news-items/2024-03-22-new-23-profiles.html

ist bei

Code:
emerge --ask --oneshot sys-devel/gcc


etwas falsch abgelaufen.

Seit dem funktioniert nicht mal emerge --info

Code:
matrixstorage ~ # emerge --info
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/emerge", line 51, in <module>
    from _emerge.main import emerge_main
  File "/usr/lib/python3.11/site-packages/_emerge/main.py", line 24, in <module>
    from portage.sync import _SUBMODULE_PATH_MAP
  File "/usr/lib/python3.11/site-packages/portage/sync/__init__.py", line 9, in <module>
    from portage.sync.controller import SyncManager
  File "/usr/lib/python3.11/site-packages/portage/sync/controller.py", line 21, in <module>
    from portage.package.ebuild.doebuild import _check_temp_dir
  File "/usr/lib/python3.11/site-packages/portage/package/ebuild/doebuild.py", line 116, in <module>
    from portage.util.compression_probe import _compressors
  File "/usr/lib/python3.11/site-packages/portage/util/compression_probe.py", line 4, in <module>
    import ctypes
  File "/usr/lib/python3.11/ctypes/__init__.py", line 8, in <module>
    from _ctypes import Union, Structure, Array
ImportError: libgcc_s.so.1: cannot open shared object file: No such file or directory



Code:
matrixstorage ~ # eselect profile list
!!! Error: get_repos failed
!!! Error: Failed to get a list of valid profiles
matrixstorage ~ #



System bleibt erst online, da es vermutlich nicht mehr starten wird.

Versuch nach Anleitung

https://wiki.gentoo.org/wiki/Project:Portage/Fixing_broken_portage

vorzugehen, war leider nicht erfolgreich, auch da funktioniert das emerge --info nicht.

Code:
matrixstorage /tmp/portage # bin/emerge --info
Traceback (most recent call last):
  File "/tmp/portage/bin/emerge", line 51, in <module>
    from _emerge.main import emerge_main
  File "/tmp/portage/lib/_emerge/main.py", line 24, in <module>
    from portage.sync import _SUBMODULE_PATH_MAP
  File "/tmp/portage/lib/portage/sync/__init__.py", line 9, in <module>
    from portage.sync.controller import SyncManager
  File "/tmp/portage/lib/portage/sync/controller.py", line 21, in <module>
    from portage.package.ebuild.doebuild import _check_temp_dir
  File "/tmp/portage/lib/portage/package/ebuild/doebuild.py", line 117, in <module>
    from portage.util.compression_probe import _compressors
  File "/tmp/portage/lib/portage/util/compression_probe.py", line 4, in <module>
    import ctypes
  File "/usr/lib/python3.11/ctypes/__init__.py", line 8, in <module>
    from _ctypes import Union, Structure, Array
ImportError: libgcc_s.so.1: cannot open shared object file: No such file or directory



Liebe Community, was könnte ich unternehmen um dieses System noch zu retten?

Danke für jede Hilfe im Voraus!


Last edited by misterxx on Thu Apr 04, 2024 8:04 am; edited 3 times in total
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2610
Location: Konradsreuth (Germany)

PostPosted: Thu Mar 28, 2024 9:21 am    Post subject: Reply with quote

Es gab doch mal binäre GCC-Pakete, die man manuell entpacken konnte … für exakt den Fall, oder?!

Evtl. ist hier was dabei? https://wiki.gentoo.org/wiki/Fix_my_Gentoo


Last edited by l3u on Thu Mar 28, 2024 9:23 am; edited 1 time in total
Back to top
View user's profile Send private message
Jean-Paul
Guru
Guru


Joined: 13 Apr 2009
Posts: 307

PostPosted: Thu Mar 28, 2024 9:23 am    Post subject: Reply with quote

Wie aktuell ist das System generell ?

Ich würde folgendes machen:

lade hier den gcc als bin-package runter
für 17er Profil https://ftp.fau.de/gentoo/releases/amd64/binpackages/17.1/x86-64/sys-devel/gcc/
für 23er Profil https://ftp.fau.de/gentoo/releases/amd64/binpackages/23.0/x86-64/sys-devel/gcc/

Den richtigen gcc musst du wissen. Aus deiner Fehlerbeschreibung ist nicht ersichtlich welchen gcc du hattest.

Den gewählten gcc*.gpkg.tar entpacken
Code:
ls -l ~/Downloads/gcc-13.2.1_p20240210-4
insgesamt 62196
-rw-r--r-- 1 jean jean     2025 25. Mär 08:24 Manifest
-rw-r--r-- 1 jean jean        0 25. Mär 08:24 gpkg-1
-rw-r--r-- 1 jean jean 63630264 24. Mär 17:14 image.tar.xz
-rw-r--r-- 1 jean jean      488 25. Mär 08:24 image.tar.xz.sig
-rw-r--r-- 1 jean jean    40416 24. Mär 17:14 metadata.tar.xz
-rw-r--r-- 1 jean jean      488 25. Mär 08:24 metadata.tar.xz.sig

Dann image.tar.xz entpacken
Code:
ls -l ~/Downloads/gcc-13.2.1_p20240210-4/image
insgesamt 8
drwxr-xr-x 3 jean jean 4096 28. Mär 09:41 etc
drwxr-xr-x 7 jean jean 4096 28. Mär 09:41 usr

Laut der Fehlermeldung fehlt
Code:
ImportError: libgcc_s.so.1: cannot open shared object file: No such file or directory


Ich würde zuerst /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc_s.so.1 ins System kopieren.
Vielleicht war es das schon.
Wenn nicht, hast du noch die Möglichkeit den kompletten gcc zu kopieren. Alles weitere wirst du dann sehen.
_________________
”Everything should be made as simple as possible, but no simpler.” – Albert Einstein
Back to top
View user's profile Send private message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 514

PostPosted: Thu Mar 28, 2024 10:05 am    Post subject: Reply with quote

Danke für die Vorschläge!

Die erwähnte Datei ist sogar vorhanden.

Code:
matrixstorage /mnt/usb-festplatte # ll /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/13/libgcc_s.so.1
-rw-r--r-- 1 root root 38K 27. Mär 21:15 /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/13/libgcc_s.so.1



Das System ist auf dem aktuellsten Stand, wurde vor der Umstellung der Profile aktualisiert.

Ich habe gestern vergessen zu erwähnen, dass ich noch eine Sicherung habe. Ich weiß nur noch nicht wie ich am besten sie anwende. Folgendes war vor der Umstellung gesichert:

Code:
matrixstorage /mnt/usb-festplatte # ll Backup/Linux/Odroid-XU4/Gentoo/rsnapshot/daily.0/gentoo-arm-fs/
insgesamt 40K
drwxr-xr-x  2 root root 4,0K 26. Mär 00:23 bin/
drwxr-xr-x 81 root root 4,0K 27. Mär 02:13 etc/
drwxr-xr-x  6 root root 4,0K  1. Dez 01:34 home/
drwxr-xr-x 15 root root 4,0K 26. Mär 00:23 lib/
drwxr-xr-x  2 root root 4,0K 13. Sep 2018  media/
drwxr-xr-x 11 root root 4,0K 22. Mär 08:54 opt/
drwx------ 26 root root 4,0K 25. Mär 16:01 root/
drwxr-xr-x  2 root root 4,0K 26. Mär 05:15 sbin/
drwxr-xr-x 12 root root 4,0K 26. Aug 2017  usr/
drwxr-xr-x 10 root root 4,0K 21. Mär 11:52 var/



In der Sicherung liegt gcc wie folgt vor:

Code:
matrixstorage /mnt/usb-festplatte/Backup/Linux/Odroid-XU4/Gentoo/rsnapshot/daily.0/gentoo-arm-fs # l usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/13/
crtbegin.o            libasan.a             libatomic.so.1        libgcc_eh.a           libgfortran.spec      libitm.so.1           libstdc++.so.6
crtbeginS.o           libasan_preinit.o     libatomic.so.1.2.0    libgcc_s.so           libgomp.a             libitm.so.1.0.0       libstdc++.so.6.0.32
crtbeginT.o           libasan.so            libcaf_single.a       libgcc_s.so.1         libgomp.so            libitm.spec           libsupc++.a
crtend.o              libasan.so.8          libcaf_single.la      libgcov.a             libgomp.so.1          libsanitizer.spec     libubsan.a
crtendS.o             libasan.so.8.0.0      libcc1.so             libgfortran.a         libgomp.so.1.0.0      libstdc++.a           libubsan.so
crtfastmath.o         libatomic.a           libcc1.so.0           libgfortran.so        libgomp.spec          libstdc++exp.a        libubsan.so.1
finclude/             libatomic.la          libcc1.so.0.0.0       libgfortran.so.5      libitm.a              libstdc++fs.a         libubsan.so.1.0.0
include/              libatomic.so          libgcc.a              libgfortran.so.5.0.0  libitm.so             libstdc++.so          plugin/
Back to top
View user's profile Send private message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 514

PostPosted: Thu Mar 28, 2024 10:24 am    Post subject: Reply with quote

Ich habe nun das Verzeichnis /usr/lib/gcc durch das Verzeichnis aus der Sicherung ersetzt. Jetzt kann emerge erst wieder ausgeführt werden.
Code:

matrixstorage /mnt/usb-festplatte/Backup/Linux/Odroid-XU4/Gentoo/rsnapshot/daily.0/gentoo-arm-fs # emerge --info
Portage 3.0.61 (python 3.11.8-final-0, default/linux/arm/23.0/split-usr/armv7a_hf/desktop, gcc-13, glibc-2.38-r10, 4.9.44 armv7l)
=================================================================
System uname: Linux-4.9.44-armv7l-ARMv7_Processor_rev_3_-v7l-with-glibc2.38
KiB Mem:     2041904 total,     57932 free
KiB Swap:    4189180 total,   3740836 free
Timestamp of repository gentoo: Wed, 27 Mar 2024 09:00:00 +0000
Head commit of repository gentoo: 8edcc374b1ca5cea6f265782767b47473d23ae1a
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.15.1-r2::gentoo, 1.16.5-r2::gentoo
dev-build/cmake:           3.28.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.2::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.10.13_p3::gentoo, 3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust-bin:         1.74.1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.53.1::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.40-r5::gentoo, 2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            14.0.6-r4::gentoo, 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="@FREE"
CBUILD="armv7a-unknown-linux-gnueabihf"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-unknown-linux-gnueabihf"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="de en"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl airplay alsa apache2 arm bluetooth bluray branding bzip2 cairo caps cdda cdr cec crypt css cups curl dbus dri dts dvd dvdr elogind encode exif flac fpm ftp gd gdbm gif gpm gtk gui iconv icu ipv6 java jce jpeg lcms libnotify lzma mad mng mp3 mp4 mpeg ncurses nls nsplugin ogg opengl openmp pam pango pcre pdf pdo php phython png policykit postgres ppds qt5 readline sdl seccomp server sound spell split-usr sqlite ssl startup-notification svg test-rust threads tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xmlreader xmlwriter xv xvid zip zlib zstd" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="de en ru" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="exynos fbdev omap dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


Binutils config liefert zwei mit Punkt gekennzeichneten Punkte, der erste ist Lila und der zweite ist grün. Ist es in Ordnung so?

Code:
matrixstorage /usr/lib # binutils-config -l
 [1] armv7a-hardfloat-linux-gnueabi-2.40 *

 [2] armv7a-unknown-linux-gnueabihf-2.41 *


Was ebenfalls verdächtig ist:

Code:
matrixstorage /usr/lib # gcc-config -l
 * gcc-config: Did not find compiler at '///usr/lib/gcc//armv7a-unknown-linux-gnueabihf/13'
 [1] armv7a-unknown-linux-gnueabihf-13 *



Ich hatte vorher das Profile
Code:
[37]  default/linux/arm/17.0/armv7a/desktop (exp)
verwendet und gestern
Code:
[103] default/linux/arm/23.0/split-usr/armv7a_hf/desktop (dev) *

eingestellt. Vielleicht war das ungünstig ausgewählt.

Nun stehe ich erneut bei dem Punkt 9 aus der Anleitung für das Migrieren des Profiles (siehe ganz oben) und soll als nächstes den Schritt ausführen, was das System gestern ruiniert hat.

Code:
emerge --ask --oneshot sys-devel/gcc


Erst möchte ich aber wissen, ob es so mit binutils-config und gcc-config in Ordnung ist.
Back to top
View user's profile Send private message
gt_amd64
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 181

PostPosted: Thu Mar 28, 2024 11:02 am    Post subject: Re: Portage/Fixing broken portage Reply with quote

misterxx wrote:

beim wechseln von profile 17.0 auf 23.0 nach dieser Anleitung

https://www.gentoo.org/support/news-items/2024-03-22-new-23-profiles.html

ist bei

Code:
emerge --ask --oneshot sys-devel/gcc


etwas falsch abgelaufen.


sofern es nur am kaputten gcc liegt und wenn du clang installiert hast würde ich zuerst versuchen gcc mit clang neu zu bauen (https://wiki.gentoo.org/wiki/Clang)
Back to top
View user's profile Send private message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 514

PostPosted: Thu Mar 28, 2024 11:05 am    Post subject: Re: Portage/Fixing broken portage Reply with quote

gt_amd64 wrote:


sofern es nur am kaputten gcc liegt und wenn du clang installiert hast würde ich zuerst versuchen gcc mit clang neu zu bauen (https://wiki.gentoo.org/wiki/Clang)


Danke für den Vorschlag. Ich habe bei mir clang nicht installiert.
Back to top
View user's profile Send private message
gt_amd64
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 181

PostPosted: Thu Mar 28, 2024 11:07 am    Post subject: Reply with quote

dann evtl. mal versuchen clang zu emergen (dabei kannst du Nichts kaputtmachen) und wenn es klappt mit clang gcc (inkl. der Abhängigkeiten) neu bauen

PS: ich sehe bei mir keine arm Profile, aber Deine Auswahl sieht auch merkwürdig aus:

Quote:

[37] default/linux/arm/17.0/armv7a/desktop (exp) -> [103] default/linux/arm/23.0/split-usr/armv7a_hf/desktop (dev) *


sofern vorhanden wäre vermutlich das die richtige Wahl: default/linux/arm/23.0/split-usr/armv7a/desktop (stable)
Back to top
View user's profile Send private message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 514

PostPosted: Thu Mar 28, 2024 11:43 am    Post subject: Reply with quote

gt_amd64 wrote:
dann evtl. mal versuchen clang zu emergen (dabei kannst du Nichts kaputtmachen) und wenn es klappt mit clang gcc (inkl. der Abhängigkeiten) neu bauen

PS: ich sehe bei mir keine arm Profile, aber Deine Auswahl sieht auch merkwürdig aus:

Quote:

[37] default/linux/arm/17.0/armv7a/desktop (exp) -> [103] default/linux/arm/23.0/split-usr/armv7a_hf/desktop (dev) *


sofern vorhanden wäre vermutlich das die richtige Wahl: default/linux/arm/23.0/split-usr/armv7a/desktop (stable)


Habe danach noch etwa recherchiert. Die Wahl 103 sollte passend sein.

Bei Profile 23.0 wird armv7a alleine nicht angeboten, man wählt zwischen armv7a_sf oder armv7a_hf

Code:
matrixstorage /usr/lib # eselect profile list
Available profile symlink targets:
  [1]   default/linux/arm/17.0 (exp)
  [2]   default/linux/arm/17.0/desktop (exp)
  [3]   default/linux/arm/17.0/desktop/gnome (exp)
  [4]   default/linux/arm/17.0/desktop/gnome/systemd/merged-usr (exp)
  [5]   default/linux/arm/17.0/desktop/plasma (exp)
  [6]   default/linux/arm/17.0/desktop/plasma/systemd/merged-usr (exp)
  [7]   default/linux/arm/17.0/developer (exp)
  [8]   default/linux/arm/17.0/armv4 (exp)
  [9]   default/linux/arm/17.0/armv4/desktop (exp)
  [10]  default/linux/arm/17.0/armv4/desktop/gnome (exp)
  [11]  default/linux/arm/17.0/armv4/desktop/plasma (exp)
  [12]  default/linux/arm/17.0/armv4/developer (exp)
  [13]  default/linux/arm/17.0/armv4t (exp)
  [14]  default/linux/arm/17.0/armv4t/desktop (exp)
  [15]  default/linux/arm/17.0/armv4t/desktop/gnome (exp)
  [16]  default/linux/arm/17.0/armv4t/desktop/plasma (exp)
  [17]  default/linux/arm/17.0/armv4t/developer (exp)
  [18]  default/linux/arm/17.0/armv4t/systemd/merged-usr (exp)
  [19]  default/linux/arm/17.0/armv5te (exp)
  [20]  default/linux/arm/17.0/armv5te/desktop (exp)
  [21]  default/linux/arm/17.0/armv5te/desktop/gnome (exp)
  [22]  default/linux/arm/17.0/armv5te/desktop/plasma (exp)
  [23]  default/linux/arm/17.0/armv5te/developer (exp)
  [24]  default/linux/arm/17.0/armv5te/systemd/merged-usr (exp)
  [25]  default/linux/arm/17.0/armv6j (exp)
  [26]  default/linux/arm/17.0/armv6j/hardened (exp)
  [27]  default/linux/arm/17.0/armv6j/hardened/selinux (exp)
  [28]  default/linux/arm/17.0/armv6j/desktop (exp)
  [29]  default/linux/arm/17.0/armv6j/desktop/gnome (exp)
  [30]  default/linux/arm/17.0/armv6j/desktop/plasma (exp)
  [31]  default/linux/arm/17.0/armv6j/developer (exp)
  [32]  default/linux/arm/17.0/armv6j/selinux (exp)
  [33]  default/linux/arm/17.0/armv6j/systemd/merged-usr (exp)
  [34]  default/linux/arm/17.0/armv7a (exp)
  [35]  default/linux/arm/17.0/armv7a/hardened (exp)
  [36]  default/linux/arm/17.0/armv7a/hardened/selinux (exp)
  [37]  default/linux/arm/17.0/armv7a/desktop (exp)
  [38]  default/linux/arm/17.0/armv7a/desktop/gnome (exp)
  [39]  default/linux/arm/17.0/armv7a/desktop/gnome/systemd/merged-usr (exp)
  [40]  default/linux/arm/17.0/armv7a/desktop/plasma (exp)
  [41]  default/linux/arm/17.0/armv7a/desktop/plasma/systemd/merged-usr (exp)
  [42]  default/linux/arm/17.0/armv7a/developer (exp)
  [43]  default/linux/arm/17.0/armv7a/systemd/merged-usr (exp)
  [44]  default/linux/arm/23.0 (stable)
  [45]  default/linux/arm/23.0/desktop (dev)
  [46]  default/linux/arm/23.0/desktop/gnome (dev)
  [47]  default/linux/arm/23.0/desktop/gnome/systemd (dev)
  [48]  default/linux/arm/23.0/desktop/plasma (dev)
  [49]  default/linux/arm/23.0/desktop/plasma/systemd (dev)
  [50]  default/linux/arm/23.0/armv4 (dev)
  [51]  default/linux/arm/23.0/armv4t (dev)
  [52]  default/linux/arm/23.0/armv4t/systemd (dev)
  [53]  default/linux/arm/23.0/armv5te (dev)
  [54]  default/linux/arm/23.0/armv5te/systemd (dev)
  [55]  default/linux/arm/23.0/armv6j_sf (stable)
  [56]  default/linux/arm/23.0/armv6j_sf/hardened (dev)
  [57]  default/linux/arm/23.0/armv6j_sf/hardened/selinux (dev)
  [58]  default/linux/arm/23.0/armv6j_sf/systemd (stable)
  [59]  default/linux/arm/23.0/armv6j_hf (stable)
  [60]  default/linux/arm/23.0/armv6j_hf/hardened (dev)
  [61]  default/linux/arm/23.0/armv6j_hf/hardened/selinux (dev)
  [62]  default/linux/arm/23.0/armv6j_hf/systemd (stable)
  [63]  default/linux/arm/23.0/armv7a_sf (stable)
  [64]  default/linux/arm/23.0/armv7a_sf/hardened (dev)
  [65]  default/linux/arm/23.0/armv7a_sf/hardened/selinux (dev)
  [66]  default/linux/arm/23.0/armv7a_sf/desktop (dev)
  [67]  default/linux/arm/23.0/armv7a_sf/desktop/gnome (dev)
  [68]  default/linux/arm/23.0/armv7a_sf/desktop/gnome/systemd (dev)
  [69]  default/linux/arm/23.0/armv7a_sf/desktop/plasma (dev)
  [70]  default/linux/arm/23.0/armv7a_sf/desktop/plasma/systemd (dev)
  [71]  default/linux/arm/23.0/armv7a_sf/systemd (stable)
  [72]  default/linux/arm/23.0/armv7a_hf (stable)
  [73]  default/linux/arm/23.0/armv7a_hf/hardened (dev)
  [74]  default/linux/arm/23.0/armv7a_hf/hardened/selinux (dev)
  [75]  default/linux/arm/23.0/armv7a_hf/desktop (dev)
  [76]  default/linux/arm/23.0/armv7a_hf/desktop/gnome (dev)
  [77]  default/linux/arm/23.0/armv7a_hf/desktop/gnome/systemd (dev)
  [78]  default/linux/arm/23.0/armv7a_hf/desktop/plasma (dev)
  [79]  default/linux/arm/23.0/armv7a_hf/desktop/plasma/systemd (dev)
  [80]  default/linux/arm/23.0/armv7a_hf/systemd (stable)
  [81]  default/linux/arm/23.0/split-usr (stable)
  [82]  default/linux/arm/23.0/split-usr/desktop (dev)
  [83]  default/linux/arm/23.0/split-usr/desktop/gnome (dev)
  [84]  default/linux/arm/23.0/split-usr/desktop/plasma (dev)
  [85]  default/linux/arm/23.0/split-usr/armv4 (dev)
  [86]  default/linux/arm/23.0/split-usr/armv4t (dev)
  [87]  default/linux/arm/23.0/split-usr/armv5te (dev)
  [88]  default/linux/arm/23.0/split-usr/armv6j_sf (stable)
  [89]  default/linux/arm/23.0/split-usr/armv6j_sf/hardened (dev)
  [90]  default/linux/arm/23.0/split-usr/armv6j_sf/hardened/selinux (dev)
  [91]  default/linux/arm/23.0/split-usr/armv6j_hf (stable)
  [92]  default/linux/arm/23.0/split-usr/armv6j_hf/hardened (dev)
  [93]  default/linux/arm/23.0/split-usr/armv6j_hf/hardened/selinux (dev)
  [94]  default/linux/arm/23.0/split-usr/armv7a_sf (stable)
  [95]  default/linux/arm/23.0/split-usr/armv7a_sf/hardened (dev)
  [96]  default/linux/arm/23.0/split-usr/armv7a_sf/hardened/selinux (dev)
  [97]  default/linux/arm/23.0/split-usr/armv7a_sf/desktop (dev)
  [98]  default/linux/arm/23.0/split-usr/armv7a_sf/desktop/gnome (dev)
  [99]  default/linux/arm/23.0/split-usr/armv7a_sf/desktop/plasma (dev)
  [100] default/linux/arm/23.0/split-usr/armv7a_hf (stable)
  [101] default/linux/arm/23.0/split-usr/armv7a_hf/hardened (dev)
  [102] default/linux/arm/23.0/split-usr/armv7a_hf/hardened/selinux (dev)
  [103] default/linux/arm/23.0/split-usr/armv7a_hf/desktop (dev) *
  [104] default/linux/arm/23.0/split-usr/armv7a_hf/desktop/gnome (dev)
  [105] default/linux/arm/23.0/split-usr/armv7a_hf/desktop/plasma (dev)
  [106] default/linux/arm/17.0/musl/armv6j (exp)
  [107] default/linux/arm/17.0/musl/armv6j/hardened (exp)
  [108] default/linux/arm/17.0/musl/armv6j/hardened/selinux (exp)
  [109] default/linux/arm/17.0/musl/armv7a (exp)
  [110] default/linux/arm/17.0/musl/armv7a/hardened (exp)
  [111] default/linux/arm/17.0/musl/armv7a/hardened/selinux (exp)
  [112] default/linux/arm/23.0/armv6j_hf/musl (dev)
  [113] default/linux/arm/23.0/armv6j_hf/musl/hardened (exp)
  [114] default/linux/arm/23.0/armv6j_hf/musl/hardened/selinux (exp)
  [115] default/linux/arm/23.0/armv7a_hf/musl (dev)
  [116] default/linux/arm/23.0/armv7a_hf/musl/hardened (exp)
  [117] default/linux/arm/23.0/armv7a_hf/musl/hardened/selinux (exp)
  [118] default/linux/arm/23.0/split-usr/armv6j_hf/musl (dev)
  [119] default/linux/arm/23.0/split-usr/armv6j_hf/musl/hardened (exp)
  [120] default/linux/arm/23.0/split-usr/armv6j_hf/musl/hardened/selinux (exp)
  [121] default/linux/arm/23.0/split-usr/armv7a_hf/musl (dev)
  [122] default/linux/arm/23.0/split-usr/armv7a_hf/musl/hardened (exp)
  [123] default/linux/arm/23.0/split-usr/armv7a_hf/musl/hardened/selinux (exp)
matrixstorage /usr/lib #
Back to top
View user's profile Send private message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 514

PostPosted: Thu Mar 28, 2024 11:53 am    Post subject: Reply with quote

Was mir nicht gefällt ist, dass binutils-config zwei Punkte jeweils mit einem Stern gekennzeichnet auflistet:

Code:
matrixstorage /usr/lib # binutils-config -l
 [1] armv7a-hardfloat-linux-gnueabi-2.40 *

 [2] armv7a-unknown-linux-gnueabihf-2.41 *


Und egal was man einstellt, es scheint nichts geändert zu sein.

Habe jetzt sowohl gcc auch binutils aus der Sicherung zurückgespielt. Nun bin ich dabei Punkt 9 komplett zu wiederholen.

Jetzt scheitert es direkt bei

Code:
emerge --ask --oneshot sys-devel/binutils


Code:
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for armv7a-unknown-linux-gnueabihf-gcc... armv7a-unknown-linux-gnueabihf-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/sys-devel/binutils-2.41-r5/work/build':
configure: error: C compiler cannot create executables
See `config.log' for more details

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-devel/binutils-2.41-r5/work/build/config.log
 * ERROR: sys-devel/binutils-2.41-r5::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  136:  Called src_configure
 *             environment, line 1805:  Called econf '--enable-plugins' '--enable-gold' '--without-included-gettext' '--with-system-zlib' '--build=armv7a-unknown-linux-gnueabihf' '--enable-secureplt' '--enable-default-hash-style=gnu' '--prefix=/usr' '--host=armv7a-unknown-linux-gnueabihf' '--target=armv7a-unknown-linux-gnueabihf' '--datadir=/usr/share/binutils-data/armv7a-unknown-linux-gnueabihf/2.41' '--datarootdir=/usr/share/binutils-data/armv7a-unknown-linux-gnueabihf/2.41' '--infodir=/usr/share/binutils-data/armv7a-unknown-linux-gnueabihf/2.41/info' '--mandir=/usr/share/binutils-data/armv7a-unknown-linux-gnueabihf/2.41/man' '--bindir=/usr/armv7a-unknown-linux-gnueabihf/binutils-bin/2.41' '--libdir=/usr/lib/binutils/armv7a-unknown-linux-gnueabihf/2.41' '--libexecdir=/usr/lib/binutils/armv7a-unknown-linux-gnueabihf/2.41' '--includedir=/usr/lib/binutils/armv7a-unknown-linux-gnueabihf/2.41/include' '--disable-dependency-tracking' '--disable-silent-rules' '--enable-obsolete' '--enable-shared' '--enable-threads' '--enable-relro' '--enable-install-libiberty' '--enable-textrel-check=warning' '--enable-new-dtags' '--disable-jansson' '--disable-werror' '--with-bugurl=https://bugs.gentoo.org/' '--with-pkgversion=Gentoo 2.41 p5' '--disable-static' '--with-zstd' '--disable-gdb' '--disable-libdecnumber' '--disable-readline' '--disable-sim' '--without-stage1-ldflags' '--with-extra-soversion-suffix=gentoo-sys-devel-binutils-st' '--without-debuginfod' '--without-msgpack' '--disable-cet' '--disable-gprofng' '--disable-pgo-build'
 *        phase-helpers.sh, line  732:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *         die "$@"
 *
 * If you need support, post the output of `emerge --info '=sys-devel/binutils-2.41-r5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/binutils-2.41-r5::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/binutils-2.41-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/binutils-2.41-r5/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/binutils-2.41-r5/work/build'
 * S: '/var/tmp/portage/sys-devel/binutils-2.41-r5/work/binutils-2.41'



So wie es aussieht kann nicht nicht mehr mit emerge installieren bzw. kompilieren. Es scheitert bei allen Paketen bereits in der Konfiguration-Phase, hier das Beispiel für libomp:

Code:
>>> Configuring source in /var/tmp/portage/sys-libs/libomp-17.0.6/work/openmp ...
 * .arm: running multilib-minimal_abi_src_configure
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/sys-libs/libomp-17.0.6/work/openmp"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/sys-libs/libomp-17.0.6/work/openmp_build-.arm"
cmake -C /var/tmp/portage/sys-libs/libomp-17.0.6/work/openmp_build-.arm/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DOPENMP_LIBDIR_SUFFIX= -DLIBOMP_USE_HWLOC=no -DLIBOMP_OMPD_GDB_SUPPORT=no -DLIBOMP_OMPT_SUPPORT=no -DOPENMP_ENABLE_LIBOMPTARGET=OFF -DLIBOMP_INSTALL_ALIASES=OFF -DLIBOMP_COPY_EXPORTS=OFF -DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/sys-libs/libomp-17.0.6/work/openmp_build-.arm/gentoo_toolchain.cmake /var/tmp/portage/sys-libs/libomp-17.0.6/work/openmp
loading initial cache file /var/tmp/portage/sys-libs/libomp-17.0.6/work/openmp_build-.arm/gentoo_common_config.cmake
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/armv7a-unknown-linux-gnueabihf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/armv7a-unknown-linux-gnueabihf-gcc
-- Check for working C compiler: /usr/bin/armv7a-unknown-linux-gnueabihf-gcc - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "/usr/bin/armv7a-unknown-linux-gnueabihf-gcc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/var/tmp/portage/sys-libs/libomp-17.0.6/work/openmp_build-.arm/CMakeFiles/CMakeScratch/TryCompile-WqYrjs'
   
    Run Build Command(s): /usr/bin/ninja -v cmTC_9909c
    [1/2] /usr/bin/armv7a-unknown-linux-gnueabihf-gcc    -DNDEBUG -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o CMakeFiles/cmTC_9909c.dir/testCCompiler.c.o -c /var/tmp/portage/sys-libs/libomp-17.0.6/work/openmp_build-.arm/CMakeFiles/CMakeScratch/TryCompile-WqYrjs/testCCompiler.c
    FAILED: CMakeFiles/cmTC_9909c.dir/testCCompiler.c.o
    /usr/bin/armv7a-unknown-linux-gnueabihf-gcc    -DNDEBUG -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o CMakeFiles/cmTC_9909c.dir/testCCompiler.c.o -c /var/tmp/portage/sys-libs/libomp-17.0.6/work/openmp_build-.arm/CMakeFiles/CMakeScratch/TryCompile-WqYrjs/testCCompiler.c
    /usr/lib/gcc/../../armv7a-unknown-linux-gnueabihf/bin/as: error while loading shared libraries: libbfd-2.41.0.gentoo-sys-devel-binutils-st.so: cannot open shared object file: No such file or directory
    ninja: build stopped: subcommand failed.
   
   

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:14 (project)


-- Configuring incomplete, errors occurred!
 * ERROR: sys-libs/libomp-17.0.6::gentoo failed (configure phase):
 *   cmake failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 4546:  Called cmake-multilib_src_configure
 *   environment, line 1527:  Called multilib-minimal_src_configure
 *   environment, line 3392:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *   environment, line 3642:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 3347:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 3345:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *   environment, line  607:  Called multilib-minimal_abi_src_configure
 *   environment, line 3386:  Called multilib_src_configure
 *   environment, line 3886:  Called cmake_src_configure
 *   environment, line 1797:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 *
 * If you need support, post the output of `emerge --info '=sys-libs/libomp-17.0.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/libomp-17.0.6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/libomp-17.0.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libomp-17.0.6/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/libomp-17.0.6/work/openmp_build-.arm'
 * S: '/var/tmp/portage/sys-libs/libomp-17.0.6/work/openmp'


Bin nun etwa am Verzweifeln. Jemand eine Idee, wo man etwas justieren kann?
Back to top
View user's profile Send private message
Jean-Paul
Guru
Guru


Joined: 13 Apr 2009
Posts: 307

PostPosted: Thu Mar 28, 2024 12:51 pm    Post subject: Reply with quote

Quote:
Habe jetzt sowohl gcc auch binutils aus der Sicherung zurückgespielt.

Schau dir mal /var/db/pkg/sys-devel/binutils-2.41-r5/CONTENTS (dto. gcc) an - das ist richtig viel Holz das du aus deiner Sicherung heraus kopieren solltest. Ob du da wirklich alles kopiert hast ... ?
Denn dein gcc funktioniert nicht.
Code:
checking whether the C compiler works... no
configure: error: C compiler cannot create executables

Am Besten den kompletten gcc aus den binpkg kopieren https://ftp.fau.de/gentoo/releases/arm/binpackages/

Und anschleißend ein env-update && source /etc/profile nicht vergessen.

Code:
matrixstorage /usr/lib # binutils-config -l
 [1] armv7a-hardfloat-linux-gnueabi-2.40 *

 [2] armv7a-unknown-linux-gnueabihf-2.41 *
Hast du vielleicht noch eine 2ten binutils installiert (crossdev) ?
Die [2] ist die aktuelle und den wollte er auch aktuallisieren.
_________________
”Everything should be made as simple as possible, but no simpler.” – Albert Einstein
Back to top
View user's profile Send private message
gt_amd64
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 181

PostPosted: Thu Mar 28, 2024 1:25 pm    Post subject: Reply with quote

Deine Profilwahl war und ist in der Tat korrekt, daran liegt es also nicht. (https://wiki.gentoo.org/wiki/Project:Toolchain/23.0_update_table)

1. Deine alte CHOST war "armv7a-hardfloat-linux-gnueabi" und ist jetzt "armv7a-unknown-linux-gnueabihf" ,wenn ich das richtig interpretiere.
Du könntest also mal versuchen binutils mit der alten CHOST= zu bauen (emerge --ask --oneshot sys-devel/binutils)

2. würde ich noch versuchen binutils und gcc mit angepassten CFLAGS (ohne -march=) zu bauen
Back to top
View user's profile Send private message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 514

PostPosted: Thu Mar 28, 2024 1:39 pm    Post subject: Reply with quote

Jean-Paul wrote:
Quote:
Habe jetzt sowohl gcc auch binutils aus der Sicherung zurückgespielt.

Schau dir mal /var/db/pkg/sys-devel/binutils-2.41-r5/CONTENTS (dto. gcc) an - das ist richtig viel Holz das du aus deiner Sicherung heraus kopieren solltest. Ob du da wirklich alles kopiert hast ... ?
Denn dein gcc funktioniert nicht.
Code:
checking whether the C compiler works... no
configure: error: C compiler cannot create executables

Am Besten den kompletten gcc aus den binpkg kopieren https://ftp.fau.de/gentoo/releases/arm/binpackages/

Und anschleißend ein env-update && source /etc/profile nicht vergessen.


Ich habe nur die Verzeichnisse

- /usr/lib/gcc
- /usr/lib/binutils

durch die aus der Sicherung ersetzt. Sollte es nicht ausreichend sein?

Habe noch eben mit dem Ersetzen von dem Rest aus /var/db/pkg/sys-devel/binutils-2.41-r5/CONTENTS mal probiert. Leider keine Veränderung.

Jean-Paul wrote:

Code:
matrixstorage /usr/lib # binutils-config -l
 [1] armv7a-hardfloat-linux-gnueabi-2.40 *

 [2] armv7a-unknown-linux-gnueabihf-2.41 *
Hast du vielleicht noch eine 2ten binutils installiert (crossdev) ?
Die [2] ist die aktuelle und den wollte er auch aktuallisieren.


Nein eigentlich nicht, deswegen verstehe ich nicht wo es herkommt. Es kann nur durch Profile Umstellung gekommen sein.
Back to top
View user's profile Send private message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 514

PostPosted: Thu Mar 28, 2024 1:47 pm    Post subject: Reply with quote

gt_amd64 wrote:
Deine Profilwahl war und ist in der Tat korrekt, daran liegt es also nicht. (https://wiki.gentoo.org/wiki/Project:Toolchain/23.0_update_table)

1. Deine alte CHOST war "armv7a-hardfloat-linux-gnueabi" und ist jetzt "armv7a-unknown-linux-gnueabihf" ,wenn ich das richtig interpretiere.
Du könntest also mal versuchen binutils mit der alten CHOST= zu bauen (emerge --ask --oneshot sys-devel/binutils)

2. würde ich noch versuchen binutils und gcc mit angepassten CFLAGS (ohne -march=) zu bauen


Danke für den Vorschlag.

CHOST ist in der make.conf auskommentiert, laut Anleitung.

Habe eben -march= aus CFLAGS rausgenommen und emerge --ask --oneshot sys-devel/binutils probiert. Leider das gleiche Resultat.
Back to top
View user's profile Send private message
gt_amd64
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 181

PostPosted: Thu Mar 28, 2024 2:48 pm    Post subject: Reply with quote

Laut Anleitung soll beim Upgrade CHOST auskommentiert sein, aber beim Versuch das System zu reparieren und evtl. auf den Ausgangszustand zurückzukommen, würde ich ich CHOST testweise wieder auf den alten Zustand setzen - ebenso das Profil (das entspricht auch deinen Backups) und dann mal versuchen binutils zu emergen. Im Moment stehst du ja leider irgendwie zwischen zwei kaputten Profilen.
Back to top
View user's profile Send private message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 514

PostPosted: Fri Mar 29, 2024 1:08 pm    Post subject: Reply with quote

Habe mich nochmal hingesetzt und die Vorgehensweise überlegt.

Habe aus der Sicherung alle binäre Dateien (abgeglichen jeweils mit /var/db/pkg/sys-devel/<packet>/CONTENTS) im aktuellen System wiederhergestellt. Somit konnte binutils erneut problemlos gebaut werden.

Die Ursache für Ausgabe

Code:
matrixstorage /usr/lib # binutils-config -l
 [1] armv7a-hardfloat-linux-gnueabi-2.40 *

 [2] armv7a-unknown-linux-gnueabihf-2.41 *


waren die Dateien in /etc/env.d/binutilis.

Habe die alten bzw. nicht mehr relevanten Dateien manuell gelöscht. Somit hat sich es wie folgt geändert:

Code:
matrixstorage /etc/env.d/binutils # binutils-config -l
 [1] armv7a-unknown-linux-gnueabihf-2.41 *


Dann habe ich experimentell binutils noch mal neu gebaut, was auch funktioniert hat. Und binutils-config ist unverändert geblieben.

Nun versuche ich den nächsten Schritt, den gcc zu bauen. Bin mal gespannt ...
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4669
Location: Germany

PostPosted: Fri Mar 29, 2024 4:09 pm    Post subject: Reply with quote

Ja, laut emerge --info Ausgabe sind zwei binutils Versionen (sind sloted) installiert, siehe
"sys-devel/binutils: 2.40-r5::gentoo, 2.41-r5::gentoo"
Warum aber beide aktiv gesetzt sind ist mir auch nicht klar.
Schau mal via "emerge -av --depclean binutils" ob die ältere version deinstalliert werden könnte.

Dann, hat sich mit der Profil Umstellung CHOST geändert? Wenn ja, dann gehe bitte unbedingt wie im news item empfohlen https://wiki.gentoo.org/wiki/Changing_the_CHOST_variable#Verifying_things_work durch.
Back to top
View user's profile Send private message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 514

PostPosted: Fri Mar 29, 2024 9:27 pm    Post subject: Reply with quote

Es wurden wohl noch die alten Einträge sowohl bei binutils auch bei gcc angezeigt. Es lag wie gesagt am Vorhanden sein noch alten Dateien in /etc/env.d. Ebenfalls in der Anleitung (https://www.gentoo.org/support/news-items/2024-03-22-new-23-profiles.html) im Punkt 12 wird darauf hingewiesen.

Nun hat diesmal soweit alles funktioniert. Aktuell läuft Punkt 16 "Rebuild world".

Binutils bzw. ältere Versionen habe ich ebenfalls geprüft.

Code:
matrixstorage /etc/env.d # emerge -av --depclean binutils

Calculating dependencies... done!
  sys-devel/binutils-2.41-r5 pulled in by:
    @system requires sys-devel/binutils
    dev-lang/go-1.21.7 requires sys-devel/binutils[gold]
    sys-apps/pciutils-3.10.0 requires >=sys-devel/binutils-2.37:*
    sys-libs/db-5.3.28-r9 requires sys-devel/binutils:*
    sys-libs/glibc-2.38-r10 requires >=sys-devel/binutils-2.27

>>> No packages selected for removal by depclean


CHOST scheint ebenfalls korrekt umgestellt zu sein.

Noch mal vielen Dank an alle Beteiligten! Schönes Wochenende an alle!
Back to top
View user's profile Send private message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 514

PostPosted: Wed Apr 03, 2024 2:21 pm    Post subject: Reply with quote

Liebe Community,

leider läuft beim mir der
Code:
emerge --ask --emptytree @world

nicht komplett durch. 179 von 795 wurde erfolgreich neu kompiliert. Es scheitert am
Code:
dev-libs/gobject-introspection


Die Einstellungen für gcc und binutils habe ich bereits mehrmals überprüft (gehandelt nach Anleitungen https://www.gentoo.org/support/news-items/2024-03-22-new-23-profiles.html und https://www.gentoo.org/support/news-items/2024-03-22-new-23-profiles.html)

Hier die letzten Log Ausgaben:

Code:
[102/161] armv7a-unknown-linux-gnueabihf-gcc -Itests/repository/gitypelibtest.p -Itests/repository -I../gobject-introspection-1.78.1/tests/repository -Igirepository -I../gobject-introspection-1.78.1/girepository -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -I/usr/include/libmount -I/usr/include/blkid -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -Warray-bounds -Wcast-align -Wduplicated-branches -Wformat=2 -Wformat-nonliteral -Wformat-security -Wimplicit-function-declaration -Winit-self -Wjump-misses-init -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnull-dereference -Wold-style-definition -Wpacked -Wpointer-arith -Wrestrict -Wreturn-type -Wshadow -Wsign-compare -Wstrict-aliasing -Wstrict-prototypes -Wundef -Wunused-but-set-variable -Wwrite-strings -fno-strict-aliasing -DHAVE_CONFIG_H -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -pthread -Wno-unused-parameter -MD -MQ tests/repository/gitypelibtest.p/gitypelibtest.c.o -MF tests/repository/gitypelibtest.p/gitypelibtest.c.o.d -o tests/repository/gitypelibtest.p/gitypelibtest.c.o -c ../gobject-introspection-1.78.1/tests/repository/gitypelibtest.c
[103/161] armv7a-unknown-linux-gnueabihf-gcc  -o tests/repository/gitypelibtest tests/repository/gitypelibtest.p/gitypelibtest.c.o -Wl,--as-needed -Wl,--no-undefined -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -Wl,-O1 -Wl,--as-needed '-Wl,-rpath,$ORIGIN/../../girepository' -Wl,-rpath-link,/mnt/usb-festplatte/Backup/tmp/dev-libs/gobject-introspection-1.78.1/work/gobject-introspection-1.78.1-build/girepository -Wl,--start-group girepository/libgirepository-1.0.so.1.0.0 /usr/lib/libglib-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgio-2.0.so -Wl,--export-dynamic /usr/lib/libgmodule-2.0.so -Wl,--end-group -pthread
[104/161] /mnt/usb-festplatte/Backup/tmp/dev-libs/gobject-introspection-1.78.1/work/gobject-introspection-1.78.1-build/tools/g-ir-scanner --output=gir/GLib-2.0.gir --no-libtool --quiet --reparse-validate --add-include-path /mnt/usb-festplatte/Backup/tmp/dev-libs/gobject-introspection-1.78.1/work/gobject-introspection-1.78.1-build/gir --add-include-path /mnt/usb-festplatte/Backup/tmp/dev-libs/gobject-introspection-1.78.1/work/gobject-introspection-1.78.1/gir --identifier-prefix=G --symbol-prefix=g --symbol-prefix=glib --c-include=glib.h --namespace=GLib --nsversion=2.0 --library=glib-2.0 --library=gobject-2.0 --external-library --pkg=glib-2.0 --cflags-begin -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGLIB_COMPILATION -DGOBJECT_COMPILATION -D__G_I18N_LIB_H__ -DGETTEXT_PACKAGE=Dummy --cflags-end /usr/include/glib-2.0/gobject/gobject-visibility.h /usr/include/glib-2.0/gobject/glib-types.h /usr/lib/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/glib-unix.h /usr/include/glib-2.0/glib/galloca.h /usr/include/glib-2.0/glib/garray.h /usr/include/glib-2.0/glib/gasyncqueue.h /usr/include/glib-2.0/glib/gatomic.h /usr/include/glib-2.0/glib/gbacktrace.h /usr/include/glib-2.0/glib/gbase64.h /usr/include/glib-2.0/glib/gbitlock.h /usr/include/glib-2.0/glib/gbookmarkfile.h /usr/include/glib-2.0/glib/gbytes.h /usr/include/glib-2.0/glib/gcharset.h /usr/include/glib-2.0/glib/gchecksum.h /usr/include/glib-2.0/glib/gconvert.h /usr/include/glib-2.0/glib/gdataset.h /usr/include/glib-2.0/glib/gdate.h /usr/include/glib-2.0/glib/gdatetime.h /usr/include/glib-2.0/glib/gdir.h /usr/include/glib-2.0/glib/genviron.h /usr/include/glib-2.0/glib/gerror.h /usr/include/glib-2.0/glib/gfileutils.h /usr/include/glib-2.0/glib/ggettext.h /usr/include/glib-2.0/glib/ghash.h /usr/include/glib-2.0/glib/ghmac.h /usr/include/glib-2.0/glib/ghook.h /usr/include/glib-2.0/glib/ghostutils.h /usr/include/glib-2.0/glib/gi18n-lib.h /usr/include/glib-2.0/glib/gi18n.h /usr/include/glib-2.0/glib/giochannel.h /usr/include/glib-2.0/glib/gkeyfile.h /usr/include/glib-2.0/glib/glib-typeof.h /usr/include/glib-2.0/glib/glib-visibility.h /usr/include/glib-2.0/glib/glist.h /usr/include/glib-2.0/glib/gmacros.h /usr/include/glib-2.0/glib/gmain.h /usr/include/glib-2.0/glib/gmappedfile.h /usr/include/glib-2.0/glib/gmarkup.h /usr/include/glib-2.0/glib/gmem.h /usr/include/glib-2.0/glib/gmessages.h /usr/include/glib-2.0/glib/gnode.h /usr/include/glib-2.0/glib/goption.h /usr/include/glib-2.0/glib/gpathbuf.h /usr/include/glib-2.0/glib/gpattern.h /usr/include/glib-2.0/glib/gpoll.h /usr/include/glib-2.0/glib/gprimes.h /usr/include/glib-2.0/glib/gprintf.h /usr/include/glib-2.0/glib/gqsort.h /usr/include/glib-2.0/glib/gquark.h /usr/include/glib-2.0/glib/gqueue.h /usr/include/glib-2.0/glib/grand.h /usr/include/glib-2.0/glib/grcbox.h /usr/include/glib-2.0/glib/grefcount.h /usr/include/glib-2.0/glib/grefstring.h /usr/include/glib-2.0/glib/gregex.h /usr/include/glib-2.0/glib/gscanner.h /usr/include/glib-2.0/glib/gsequence.h /usr/include/glib-2.0/glib/gshell.h /usr/include/glib-2.0/glib/gslice.h /usr/include/glib-2.0/glib/gslist.h /usr/include/glib-2.0/glib/gspawn.h /usr/include/glib-2.0/glib/gstdio.h /usr/include/glib-2.0/glib/gstrfuncs.h /usr/include/glib-2.0/glib/gstring.h /usr/include/glib-2.0/glib/gstringchunk.h /usr/include/glib-2.0/glib/gstrvbuilder.h /usr/include/glib-2.0/glib/gtestutils.h /usr/include/glib-2.0/glib/gthread.h /usr/include/glib-2.0/glib/gthreadpool.h /usr/include/glib-2.0/glib/gtimer.h /usr/include/glib-2.0/glib/gtimezone.h /usr/include/glib-2.0/glib/gtrashstack.h /usr/include/glib-2.0/glib/gtree.h /usr/include/glib-2.0/glib/gtypes.h /usr/include/glib-2.0/glib/gunicode.h /usr/include/glib-2.0/glib/guri.h /usr/include/glib-2.0/glib/gutils.h /usr/include/glib-2.0/glib/guuid.h /usr/include/glib-2.0/glib/gvariant.h /usr/include/glib-2.0/glib/gvarianttype.h /usr/include/glib-2.0/glib/gversion.h /usr/include/glib-2.0/glib/gversionmacros.h /usr/include/glib-2.0/glib/gwin32.h ../gobject-introspection-1.78.1/gir/glib-2.0.c
FAILED: gir/GLib-2.0.gir
/mnt/usb-festplatte/Backup/tmp/dev-libs/gobject-introspection-1.78.1/work/gobject-introspection-1.78.1-build/tools/g-ir-scanner --output=gir/GLib-2.0.gir --no-libtool --quiet --reparse-validate --add-include-path /mnt/usb-festplatte/Backup/tmp/dev-libs/gobject-introspection-1.78.1/work/gobject-introspection-1.78.1-build/gir --add-include-path /mnt/usb-festplatte/Backup/tmp/dev-libs/gobject-introspection-1.78.1/work/gobject-introspection-1.78.1/gir --identifier-prefix=G --symbol-prefix=g --symbol-prefix=glib --c-include=glib.h --namespace=GLib --nsversion=2.0 --library=glib-2.0 --library=gobject-2.0 --external-library --pkg=glib-2.0 --cflags-begin -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGLIB_COMPILATION -DGOBJECT_COMPILATION -D__G_I18N_LIB_H__ -DGETTEXT_PACKAGE=Dummy --cflags-end /usr/include/glib-2.0/gobject/gobject-visibility.h /usr/include/glib-2.0/gobject/glib-types.h /usr/lib/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/glib-unix.h /usr/include/glib-2.0/glib/galloca.h /usr/include/glib-2.0/glib/garray.h /usr/include/glib-2.0/glib/gasyncqueue.h /usr/include/glib-2.0/glib/gatomic.h /usr/include/glib-2.0/glib/gbacktrace.h /usr/include/glib-2.0/glib/gbase64.h /usr/include/glib-2.0/glib/gbitlock.h /usr/include/glib-2.0/glib/gbookmarkfile.h /usr/include/glib-2.0/glib/gbytes.h /usr/include/glib-2.0/glib/gcharset.h /usr/include/glib-2.0/glib/gchecksum.h /usr/include/glib-2.0/glib/gconvert.h /usr/include/glib-2.0/glib/gdataset.h /usr/include/glib-2.0/glib/gdate.h /usr/include/glib-2.0/glib/gdatetime.h /usr/include/glib-2.0/glib/gdir.h /usr/include/glib-2.0/glib/genviron.h /usr/include/glib-2.0/glib/gerror.h /usr/include/glib-2.0/glib/gfileutils.h /usr/include/glib-2.0/glib/ggettext.h /usr/include/glib-2.0/glib/ghash.h /usr/include/glib-2.0/glib/ghmac.h /usr/include/glib-2.0/glib/ghook.h /usr/include/glib-2.0/glib/ghostutils.h /usr/include/glib-2.0/glib/gi18n-lib.h /usr/include/glib-2.0/glib/gi18n.h /usr/include/glib-2.0/glib/giochannel.h /usr/include/glib-2.0/glib/gkeyfile.h /usr/include/glib-2.0/glib/glib-typeof.h /usr/include/glib-2.0/glib/glib-visibility.h /usr/include/glib-2.0/glib/glist.h /usr/include/glib-2.0/glib/gmacros.h /usr/include/glib-2.0/glib/gmain.h /usr/include/glib-2.0/glib/gmappedfile.h /usr/include/glib-2.0/glib/gmarkup.h /usr/include/glib-2.0/glib/gmem.h /usr/include/glib-2.0/glib/gmessages.h /usr/include/glib-2.0/glib/gnode.h /usr/include/glib-2.0/glib/goption.h /usr/include/glib-2.0/glib/gpathbuf.h /usr/include/glib-2.0/glib/gpattern.h /usr/include/glib-2.0/glib/gpoll.h /usr/include/glib-2.0/glib/gprimes.h /usr/include/glib-2.0/glib/gprintf.h /usr/include/glib-2.0/glib/gqsort.h /usr/include/glib-2.0/glib/gquark.h /usr/include/glib-2.0/glib/gqueue.h /usr/include/glib-2.0/glib/grand.h /usr/include/glib-2.0/glib/grcbox.h /usr/include/glib-2.0/glib/grefcount.h /usr/include/glib-2.0/glib/grefstring.h /usr/include/glib-2.0/glib/gregex.h /usr/include/glib-2.0/glib/gscanner.h /usr/include/glib-2.0/glib/gsequence.h /usr/include/glib-2.0/glib/gshell.h /usr/include/glib-2.0/glib/gslice.h /usr/include/glib-2.0/glib/gslist.h /usr/include/glib-2.0/glib/gspawn.h /usr/include/glib-2.0/glib/gstdio.h /usr/include/glib-2.0/glib/gstrfuncs.h /usr/include/glib-2.0/glib/gstring.h /usr/include/glib-2.0/glib/gstringchunk.h /usr/include/glib-2.0/glib/gstrvbuilder.h /usr/include/glib-2.0/glib/gtestutils.h /usr/include/glib-2.0/glib/gthread.h /usr/include/glib-2.0/glib/gthreadpool.h /usr/include/glib-2.0/glib/gtimer.h /usr/include/glib-2.0/glib/gtimezone.h /usr/include/glib-2.0/glib/gtrashstack.h /usr/include/glib-2.0/glib/gtree.h /usr/include/glib-2.0/glib/gtypes.h /usr/include/glib-2.0/glib/gunicode.h /usr/include/glib-2.0/glib/guri.h /usr/include/glib-2.0/glib/gutils.h /usr/include/glib-2.0/glib/guuid.h /usr/include/glib-2.0/glib/gvariant.h /usr/include/glib-2.0/glib/gvarianttype.h /usr/include/glib-2.0/glib/gversion.h /usr/include/glib-2.0/glib/gversionmacros.h /usr/include/glib-2.0/glib/gwin32.h ../gobject-introspection-1.78.1/gir/glib-2.0.c
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/spawn.py", line 57, in spawn
    proc = subprocess.Popen(cmd, env=env)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1953, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'armv7a-hardfloat-linux-gnueabi-gcc'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/unixccompiler.py", line 178, in preprocess
    self.spawn(pp_args)
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/ccompiler.py", line 1041, in spawn
    spawn(cmd, dry_run=self.dry_run, **kwargs)
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/spawn.py", line 63, in spawn
    raise DistutilsExecError(
distutils.errors.DistutilsExecError: command 'armv7a-hardfloat-linux-gnueabi-gcc' failed: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/usb-festplatte/Backup/tmp/dev-libs/gobject-introspection-1.78.1/work/gobject-introspection-1.78.1-build/tools/g-ir-scanner", line 104, in <module>
    sys.exit(scanner_main(sys.argv))
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/usb-festplatte/Backup/tmp/dev-libs/gobject-introspection-1.78.1/work/gobject-introspection-1.78.1-build/giscanner/scannermain.py", line 600, in scanner_main
    ss, filenames = create_source_scanner(options, args)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/usb-festplatte/Backup/tmp/dev-libs/gobject-introspection-1.78.1/work/gobject-introspection-1.78.1-build/giscanner/scannermain.py", line 471, in create_source_scanner
    ss.parse_files(filenames)
  File "/mnt/usb-festplatte/Backup/tmp/dev-libs/gobject-introspection-1.78.1/work/gobject-introspection-1.78.1-build/giscanner/sourcescanner.py", line 265, in parse_files
    self._parse(headers)
  File "/mnt/usb-festplatte/Backup/tmp/dev-libs/gobject-introspection-1.78.1/work/gobject-introspection-1.78.1-build/giscanner/sourcescanner.py", line 311, in _parse
    cc.preprocess(tmp_name_cpp,
  File "/mnt/usb-festplatte/Backup/tmp/dev-libs/gobject-introspection-1.78.1/work/gobject-introspection-1.78.1-build/giscanner/ccompiler.py", line 309, in preprocess
    self.compiler.preprocess(source=source,
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/unixccompiler.py", line 180, in preprocess
    raise CompileError(msg)
distutils.errors.CompileError: command 'armv7a-hardfloat-linux-gnueabi-gcc' failed: No such file or directory
[105/161] armv7a-unknown-linux-gnueabihf-gcc -Itests/scanner/libregress-1.0.so.p -Itests/scanner -I../gobject-introspection-1.78.1/tests/scanner -I. -I../gobject-introspection-1.78.1 -Itests -I../gobject-introspection-1.78.1/tests -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -I/usr/include/libmount -I/usr/include/blkid -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -Warray-bounds -Wcast-align -Wduplicated-branches -Wformat=2 -Wformat-nonliteral -Wformat-security -Wimplicit-function-declaration -Winit-self -Wjump-misses-init -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnull-dereference -Wold-style-definition -Wpacked -Wpointer-arith -Wrestrict -Wreturn-type -Wshadow -Wsign-compare -Wstrict-aliasing -Wstrict-prototypes -Wundef -Wunused-but-set-variable -Wwrite-strings -fno-strict-aliasing -DHAVE_CONFIG_H -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -fPIC -pthread -fvisibility=hidden -D_GI_DISABLE_CAIRO -Wno-unused-parameter -Wno-old-style-definition -Wno-missing-field-initializers -MD -MQ tests/scanner/libregress-1.0.so.p/regress.c.o -MF tests/scanner/libregress-1.0.so.p/regress.c.o.d -o tests/scanner/libregress-1.0.so.p/regress.c.o -c ../gobject-introspection-1.78.1/tests/scanner/regress.c
[106/161] armv7a-unknown-linux-gnueabihf-gcc -Itests/libgimarshallingtests-1.0.so.1.0.0.p -Itests -I../gobject-introspection-1.78.1/tests -I. -I../gobject-introspection-1.78.1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -Warray-bounds -Wcast-align -Wduplicated-branches -Wformat=2 -Wformat-nonliteral -Wformat-security -Wimplicit-function-declaration -Winit-self -Wjump-misses-init -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnull-dereference -Wold-style-definition -Wpacked -Wpointer-arith -Wrestrict -Wreturn-type -Wshadow -Wsign-compare -Wstrict-aliasing -Wstrict-prototypes -Wundef -Wunused-but-set-variable -Wwrite-strings -fno-strict-aliasing -DHAVE_CONFIG_H -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -fPIC -fvisibility=hidden -Wno-unused-parameter -MD -MQ tests/libgimarshallingtests-1.0.so.1.0.0.p/gimarshallingtests.c.o -MF tests/libgimarshallingtests-1.0.so.1.0.0.p/gimarshallingtests.c.o.d -o tests/libgimarshallingtests-1.0.so.1.0.0.p/gimarshallingtests.c.o -c ../gobject-introspection-1.78.1/tests/gimarshallingtests.c
ninja: build stopped: subcommand failed.
 * ERROR: dev-libs/gobject-introspection-1.78.1::gentoo failed (compile phase):
 *   compile failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 2974:  Called meson_src_compile
 *   environment, line 2132:  Called die
 * The specific snippet of code:
 *       "$@" || die "compile failed"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/gobject-introspection-1.78.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/gobject-introspection-1.78.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/gobject-introspection-1.78.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/gobject-introspection-1.78.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/gobject-introspection-1.78.1/work/gobject-introspection-1.78.1'
 * S: '/var/tmp/portage/dev-libs/gobject-introspection-1.78.1/work/gobject-introspection-1.78.1'



Irgendwie taucht hier immer noch der alte Profilename auf.

Code:
FileNotFoundError: [Errno 2] No such file or directory: 'armv7a-hardfloat-linux-gnueabi-gcc'



In der emerge --info gibt es nur die neuen Verweise, wie es auch sein sollte.

Code:
matrixstorage ~ # emerge --info
Portage 3.0.61 (python 3.11.8-final-0, default/linux/arm/23.0/split-usr/armv7a_hf/desktop, gcc-13, glibc-2.38-r10, 4.9.44 armv7l)
=================================================================
System uname: Linux-4.9.44-armv7l-ARMv7_Processor_rev_3_-v7l-with-glibc2.38
KiB Mem:     2041904 total,     59752 free
KiB Swap:    4189180 total,   3691112 free
Timestamp of repository gentoo: Fri, 29 Mar 2024 10:00:00 +0000
Head commit of repository gentoo: 061ac696d02008d87fbfdcf40c04167f96f1126e
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.15.1-r2::gentoo, 1.16.5-r2::gentoo
dev-build/cmake:           3.28.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.2::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.10.13_p3::gentoo, 3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust-bin:         1.75.0::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.53.1::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 3

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="@FREE"
CBUILD="armv7a-unknown-linux-gnueabihf"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-unknown-linux-gnueabihf"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="de en"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl airplay alsa apache2 arm bluetooth bluray branding bzip2 cairo caps cdda cdr cec crypt css cups curl dbus dri dts dvd dvdr elogind encode exif flac fpm ftp gd gdbm gif gpm gtk gui iconv icu ipv6 java jce jpeg lcms libnotify lzma mad mng mp3 mp4 mpeg ncurses nls nsplugin ogg opengl openmp pam pango pcre pdf pdo php phython png policykit postgres ppds qt5 readline sdl seccomp server sound spell split-usr sqlite ssl startup-notification svg test-rust threads tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xmlreader xmlwriter xv xvid zip zlib zstd" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="de en ru" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="exynos fbdev omap dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


Bin für jeden Vorschlag dankbar!
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4669
Location: Germany

PostPosted: Wed Apr 03, 2024 10:31 pm    Post subject: Reply with quote

Hm, vermutlich steckt noch in irgend eines der installierten Pakete der alte CHOST
schau dazu auch noch mal im https://wiki.gentoo.org/wiki/Changing_the_CHOST_variable#Finishing_the_change

Falls du nichts genaueres findest -> Ein blinder Schuss ins Blaue: Schau mal ob ein rebuild folgender Pakete hilft:
Code:
emerge -av1 dev-build/libtool python:3.10 python:3.11 python:3.12 dev-python/setuptools dev-lang/perl dev-libs/glib
Back to top
View user's profile Send private message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 514

PostPosted: Thu Apr 04, 2024 8:03 am    Post subject: Reply with quote

Josef.95 wrote:
Falls du nichts genaueres findest -> Ein blinder Schuss ins Blaue: Schau mal ob ein rebuild folgender Pakete hilft:
Code:
emerge -av1 dev-build/libtool python:3.10 python:3.11 python:3.12 dev-python/setuptools dev-lang/perl dev-libs/glib


Super danke für den Tip!

Code:
emerge -av1 python:3.11


hat dabei geholfen.

Nun habe ich emerge --emptytree world erneut gestartet.
Back to top
View user's profile Send private message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 514

PostPosted: Thu Apr 11, 2024 8:58 am    Post subject: Reply with quote

Hallo Community,

ich wollte nur Bescheid geben, dass

Code:
emerge --emptytree world


erfolgreich durchlaufen ist. Das System ist erneut in Funktion. Danke an die Beteiligten!
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4669
Location: Germany

PostPosted: Fri Apr 12, 2024 12:19 pm    Post subject: Reply with quote

Ja, so eine CHOST Umstellung kann durchaus tricky sein - freut mich das es dennoch geklappt hat :)
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