View previous topic :: View next topic |
Author |
Message |
michael_w Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 22 Feb 2006 Posts: 469 Location: 09xxx
|
Posted: Fri Apr 19, 2024 4:17 pm Post subject: [gelöst] installation ruby |
|
|
Hallo,
ich habe mich heute mal ausgiebig mit "emerge @preserved-rebuild" beschäftigt. Nachdem ich diverse Pakete entfernen musste, wollte das System "dev-lang/ruby-3.1.4-r3::gentoo" neu bauen, dies scheitert:
Code: |
>>> Verifying ebuild manifests
>>> Emerging (1 of 25) dev-lang/ruby-3.1.4-r3::gentoo
* Fetching files in the background.
* To view fetch progress, run in another terminal:
* tail -f /var/log/emerge-fetch.log
* ruby-3.1.4.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ]
>>> Unpacking source...
...
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for x86_64-pc-linux-gnu-x86_64-pc-linux-gnu-ld... no
checking for x86_64-pc-linux-gnu-ld... x86_64-pc-linux-gnu-ld
checking for x86_64-pc-linux-gnu-x86_64-pc-linux-gnu-gcc-ar... no
checking for x86_64-pc-linux-gnu-gcc-ar... x86_64-pc-linux-gnu-gcc-ar
checking for x86_64-pc-linux-gnu-x86_64-pc-linux-gnu-g++... no
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking for x86_64-pc-linux-gnu-x86_64-pc-linux-gnu-gcc-nm... no
checking for x86_64-pc-linux-gnu-gcc-nm... x86_64-pc-linux-gnu-gcc-nm
checking for x86_64-pc-linux-gnu-x86_64-pc-linux-gnu-gcc-ranlib... no
checking for x86_64-pc-linux-gnu-gcc-ranlib... x86_64-pc-linux-gnu-gcc-ranlib
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to enable C11 features... none needed
checking whether the compiler supports GNU C++... yes
checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes
checking for x86_64-pc-linux-gnu-g++ option to enable C++11 features... none needed
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-gcc-ranlib
checking for x86_64-pc-linux-gnu-gar... x86_64-pc-linux-gnu-gcc-ar
checking for x86_64-pc-linux-gnu-gas... no
checking for x86_64-pc-linux-gnu-as... x86_64-pc-linux-gnu-as
checking for x86_64-pc-linux-gnu-gld... x86_64-pc-linux-gnu-ld
checking for x86_64-pc-linux-gnu-gnm... x86_64-pc-linux-gnu-gcc-nm
checking for x86_64-pc-linux-gnu-gobjcopy... no
checking for x86_64-pc-linux-gnu-objcopy... x86_64-pc-linux-gnu-objcopy
checking for x86_64-pc-linux-gnu-gobjdump... no
checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump
checking for x86_64-pc-linux-gnu-gstrip... no
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking for vfork.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking whether the linker is GNU ld... yes
checking whether x86_64-pc-linux-gnu-gcc -E accepts -o... yes
checking for x86_64-pc-linux-gnu-gcc... /usr/bin/x86_64-pc-linux-gnu-gcc
checking for x86_64-pc-linux-gnu-gcc-ar flags... rcD
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for x86_64-pc-linux-gnu-dtrace... no
checking for dtrace... no
checking for dot... dot
checking for doxygen... no
checking for x86_64-pc-linux-gnu-pkg-config... x86_64-pc-linux-gnu-pkg-config
checking whether it is Android... no
checking for cd using physical directory... cd -P
checking whether CFLAGS is valid... yes
checking whether LDFLAGS is valid... no
configure: error: something wrong with LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-lang/ruby-3.1.4-r3/work/ruby-3.1.4/config.log
* ERROR: dev-lang/ruby-3.1.4-r3::gentoo failed (configure phase):
* econf failed
|
ein "emerge -avuDN world" will auch unbedingt dieses ruby bauen, scheitert natürlich ebenso. Ideen dazu, wie ich das wieder hin bekomme? Danke. _________________ Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux
Last edited by michael_w on Fri Apr 19, 2024 9:13 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sMueggli Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 03 Sep 2022 Posts: 374
|
Posted: Fri Apr 19, 2024 4:23 pm Post subject: |
|
|
Idee:
Code: | !!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-lang/ruby-3.1.4-r3/work/ruby-3.1.4/config.log |
Und bitte auch gleich noch:
Wie genau hast du "diverse Pakete" entfernt? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
michael_w Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 22 Feb 2006 Posts: 469 Location: 09xxx
|
Posted: Fri Apr 19, 2024 4:31 pm Post subject: |
|
|
sMueggli wrote: | Idee:
Code: | !!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-lang/ruby-3.1.4-r3/work/ruby-3.1.4/config.log |
|
https://pastebin.com/LwC1A8Zz
Quote: |
Und bitte auch gleich noch:
|
Code: |
ryzen ~ # emerge --info
Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/23.0/desktop/plasma, gcc-13, glibc-2.38-r11, 6.6.21-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.6.21-gentoo-dist-x86_64-AMD_Ryzen_7_PRO_4750G_with_Radeon_Graphics-with-glibc2.38
KiB Mem: 28617108 total, 1739912 free
KiB Swap: 33554428 total, 33553160 free
Timestamp of repository gentoo: Wed, 17 Apr 2024 17:00:00 +0000
Head commit of repository gentoo: fe8ed3b9fb6455bb731a81b47c26803d9bf16429
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.1_p16-r6::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.69-r5::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: 2.7.18_p16-r2::gentoo, 3.8.19_p1::gentoo, 3.9.19_p2::gentoo, 3.10.14_p1::gentoo, 3.11.8_p1::gentoo, 3.12.3::gentoo
dev-lang/rust: 1.75.0-r1::gentoo
sys-apps/baselayout: 2.14-r2::gentoo
sys-apps/openrc: 0.54::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-devel/binutils: 2.33.1-r1::gentoo, 2.34-r2::gentoo, 2.35.2::gentoo, 2.36.1-r2::gentoo, 2.37_p1-r2::gentoo, 2.38-r2::gentoo, 2.39-r5::gentoo, 2.40-r9::gentoo, 2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 14.0.6-r1::gentoo, 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc: 12.3.1_p20230526::gentoo, 13.2.1_p20240210::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/lld: 14.0.6-r1::gentoo, 15.0.7::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-devel/llvm: 14.0.6-r2::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-r11::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: True
sync-rsync-extra-opts:
sync-rsync-verify-max-age: 3
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-jobs: 1
x-portage
location: /usr/local/portage
masters: gentoo
priority: 0
volatile: True
DuPol
location: /var/lib/layman/DuPol
masters: gentoo
priority: 50
volatile: True
megacoffee
location: /var/lib/layman/megacoffee
masters: gentoo
priority: 50
volatile: True
steam-overlay
location: /var/lib/layman/steam-overlay
masters: gentoo
priority: 50
volatile: True
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=znver2"
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"
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"
GENTOO_MIRRORS="rsync://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="de"
MAKEOPTS="-j10"
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="64bit X a52 aac acl acpi activities alsa amd64 avformat bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus declarative deprecated display-manager dri dts dvd dvdr dvi2tty elogind encode evdev exif ffmpeg flac gdbm geolocation gif gimp gimpprint gphoto2 gpm graphics gtk gui heif hwdb iconv icu ipv6 jpeg kde kmod kwallet lcms libnotify libtirpc lm_sensors mad marble matroska mng mp3 mp4 mpeg mplayer multilib ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pipewire plasma pm-utils png policykit ppds pulseaudio qml qt5 readline samba screencast sdl seccomp semantic-desktop sound spell ssl startup-notification svg syslog test-rust theora threads tiff tools truetype udev udisks unicode upower usb vdpau vorbis vpx vulkan wayland webstart widgets wxwidgets x264 xattr xcb xft xml xorg xv xvid zlib" ABI_X86="64" 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_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="de" 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="amdgpu radeonsi" 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
|
Quote: |
Wie genau hast du "diverse Pakete" entfernt? |
mit "emerge --unmerge" _________________ Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sMueggli Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 03 Sep 2022 Posts: 374
|
Posted: Fri Apr 19, 2024 4:45 pm Post subject: |
|
|
Mit "--unmerge" kann man sein System kaputt machen. Laut der Manpage
Code: | --unmerge, -C
WARNING: This action can remove important packages! Removes all matching pack‐
ages following a counter governed by CLEAN_DELAY. This does no checking of
dependencies, so it may remove packages necessary for the proper operation of
your system. Its arguments can be atoms or ebuilds. For a dependency aware
version of --unmerge, use --depclean or --prune. For a version with CLEAN_DE‐
LAY=0, use --rage-clean. |
Ich würde jetzt in der Shell-History nachschauen, welche Pakete du entfernt hast. Vielleicht war da auch eines darunter, das so nicht entfernt hätte werden sollen.
Und ich glaube, du hast entweder den falschen Pastebin-Link geschickt oder die falsche Datei hochgeladen. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
michael_w Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 22 Feb 2006 Posts: 469 Location: 09xxx
|
Posted: Fri Apr 19, 2024 4:48 pm Post subject: |
|
|
sMueggli wrote: |
Und ich glaube, du hast entweder den falschen Pastebin-Link geschickt oder die falsche Datei hochgeladen. |
sorry:
https://pastebin.com/AGSKJW2q _________________ Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Josef.95 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 03 Sep 2007 Posts: 4573 Location: Germany
|
Posted: Fri Apr 19, 2024 7:14 pm Post subject: |
|
|
Hi,
laut emerge --info ist eine uralte hart maskierte binutils 2.37 Version gesetzt - ich denke daran könnte es liegen.
(das passiert zb leicht wenn man nie ein depclean macht)
Vorschlag: Setze via binutils-config die aktuelle (schon installierte) stable 2.41 Version, und teste damit dann noch mal. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
michael_w Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 22 Feb 2006 Posts: 469 Location: 09xxx
|
Posted: Fri Apr 19, 2024 9:15 pm Post subject: |
|
|
Josef.95 wrote: | Hi,
laut emerge --info ist eine uralte hart maskierte binutils 2.37 Version gesetzt - ich denke daran könnte es liegen.
(das passiert zb leicht wenn man nie ein depclean macht)
Vorschlag: Setze via binutils-config die aktuelle (schon installierte) stable 2.41 Version, und teste damit dann noch mal. |
Hallo Josef,
Danke für den Tip, genau das war die Lösung.
Aber noch eine Frage, wie gnau hast Du gesehen das die Version der binutils hart maskiert war. Ich finde in den Logs keinen Hinweis darauf. Hab es erst mit binutils-config -l gesehen. _________________ Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Josef.95 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 03 Sep 2007 Posts: 4573 Location: Germany
|
Posted: Fri Apr 19, 2024 10:41 pm Post subject: |
|
|
Prima.
ich denke die älteren binutils Versionen unterstützen die mit den neuen 23.0 Profil hinzugekommenen -z,pack-relative-relocs noch nicht - daher der error im configure.
michael_w wrote: | Aber noch eine Frage, wie gnau hast Du gesehen das die Version der binutils hart maskiert war. Ich finde in den Logs keinen Hinweis darauf. Hab es erst mit binutils-config -l gesehen. |
Schau zb via oder auch via Code: | eshowkw sys-devel/binutils | oder, wenn man explizit versucht die maskierte Version (oder slot) zu mergen, dann gibt es auch noch die mask message mit hinzu - Beispiel: Code: | # emerge -pv sys-devel/binutils:2.37
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 2.01 s (backtrack: 0/20).
!!! All ebuilds that could satisfy "sys-devel/binutils:2.37" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-devel/binutils-2.37_p1-r2::gentoo (masked by: package.mask)
/srv/repos/gentoo/profiles/package.mask:
# Andreas K. Hüttel <dilfridge@gentoo.org> (2017-05-21)
# (and others, updated later)
# These old versions of toolchain packages (binutils, gcc, glibc) are no
# longer officially supported and are not suitable for general use. Using
# these packages can result in build failures (and possible breakage) for
# many packages, and may leave your system vulnerable to known security
# exploits.
# If you still use one of these old toolchain packages, please upgrade (and
# switch the compiler / the binutils) ASAP. If you need them for a specific
# (isolated) use case, feel free to unmask them on your system.
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook. |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|