Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922180 - dev-lang/ruby-3.1.4-r3: configure: error: something wrong with LDFLAGS="-Wl,-O1 -Wl,--as-needed"
Summary: dev-lang/ruby-3.1.4-r3: configure: error: something wrong with LDFLAGS="-Wl,-...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-15 18:05 UTC by Leandro Cerencio
Modified: 2024-01-15 19:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,6.93 KB, text/plain)
2024-01-15 18:06 UTC, Leandro Cerencio
Details
build.log (build-log.txt,7.82 KB, text/plain)
2024-01-15 18:10 UTC, Leandro Cerencio
Details
environment (environment,95.36 KB, text/plain)
2024-01-15 18:17 UTC, Leandro Cerencio
Details
config.log (config.log,33.77 KB, text/plain)
2024-01-15 18:19 UTC, Leandro Cerencio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leandro Cerencio 2024-01-15 18:05:05 UTC
I tried new Gentoo install, emerge the Gnome DE, and I got this error. And, I also emerge Lutris from Plasma DE, got same error.

Reproducible: Always

Steps to Reproduce:
1. Emerge anything with ruby in dependency path

Actual Results:  
>>> Emerging (30 of 51) dev-lang/ruby-3.1.4-r3::gentoo
 * ruby-3.1.4.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                                 [ ok ]
>>> Unpacking source...
>>> Unpacking ruby-3.1.4.tar.xz to /var/tmp/portage/dev-lang/ruby-3.1.4-r3/work
>>> Source unpacked in /var/tmp/portage/dev-lang/ruby-3.1.4-r3/work
>>> Preparing source in /var/tmp/portage/dev-lang/ruby-3.1.4-r3/work/ruby-3.1.4 ...
 * Applying 011-default-gem-location.patch ...
patching file tool/rbinstall.rb
Hunk #1 succeeded at 962 with fuzz 1 (offset 65 lines).                                                                                                          [ ok ]
 * Applying 902-hppa-pthread-stack-size.patch ...                                                                                                                [ ok ]
 * Unbundling gems...
 * Removing bundled libraries...
 * Running eautoreconf in '/var/tmp/portage/dev-lang/ruby-3.1.4-r3/work/ruby-3.1.4' ...
 * Running 'autoconf --force' ...                                                                                                                                [ ok ]
 * Running elibtoolize in: ruby-3.1.4/
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-lang/ruby-3.1.4-r3/work/ruby-3.1.4 ...
 * econf: updating ruby-3.1.4/tool/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating ruby-3.1.4/tool/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating ruby-3.1.4/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating ruby-3.1.4/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --docdir=/usr/share/doc/ruby-3.1.4-r3 --htmldir=/usr/share/doc/ruby-3.1.4-r3/html --libdir=/usr/lib64 --program-suffix=31 --with-soname=ruby31 --with-readline-dir=/usr --enable-shared --enable-pthread --disable-rpath --without-baseruby --with-compress-debug-sections=no --enable-mkmf-verbose --with-out-ext=win32,win32ole,dbm,tk --without-jemalloc --disable-jit-support --disable-socks --disable-dtrace --disable-install-doc --enable-ipv6 --enable-static --enable-install-static-library --with-static-linked-ext --disable-debug --without-valgrind --enable-option-checking=no
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... no
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"

!!! 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
 *
 * Call stack:
 *               ebuild.sh, line  136:  Called src_configure
 *             environment, line 2238:  Called econf '--program-suffix=31' '--with-soname=ruby31' '--with-readline-dir=/usr' '--enable-shared' '--enable-pthread' '--disable-rpath' '--without-baseruby' '--with-compress-debug-sections=no' '--enable-mkmf-verbose' '--with-out-ext=win32,win32ole,dbm,tk' '--without-jemalloc' '--disable-jit-support' '--disable-socks' '--disable-dtrace' '--disable-install-doc' '--enable-ipv6' '--enable-static' '--enable-install-static-library' '--with-static-linked-ext' '--disable-debug' '--without-valgrind' '--enable-option-checking=no'
 *        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 '=dev-lang/ruby-3.1.4-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/ruby-3.1.4-r3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/ruby-3.1.4-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ruby-3.1.4-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/ruby-3.1.4-r3/work/ruby-3.1.4'
 * S: '/var/tmp/portage/dev-lang/ruby-3.1.4-r3/work/ruby-3.1.4'

>>> Failed to emerge dev-lang/ruby-3.1.4-r3, Log file:

>>>  '/var/tmp/portage/dev-lang/ruby-3.1.4-r3/temp/build.log'

 * Messages for package app-eselect/eselect-wxwidgets-20230114-r1:

 * This eselect module only controls the version of wxGTK used when
 * building packages outside of portage.  If you are not doing development
 * with wxWidgets or bakefile you will never need to use it.

 * Messages for package dev-lang/ruby-3.1.4-r3:

 * ERROR: dev-lang/ruby-3.1.4-r3::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  136:  Called src_configure
 *             environment, line 2238:  Called econf '--program-suffix=31' '--with-soname=ruby31' '--with-readline-dir=/usr' '--enable-shared' '--enable-pthread' '--disable-rpath' '--without-baseruby' '--with-compress-debug-sections=no' '--enable-mkmf-verbose' '--with-out-ext=win32,win32ole,dbm,tk' '--without-jemalloc' '--disable-jit-support' '--disable-socks' '--disable-dtrace' '--disable-install-doc' '--enable-ipv6' '--enable-static' '--enable-install-static-library' '--with-static-linked-ext' '--disable-debug' '--without-valgrind' '--enable-option-checking=no'
 *        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 '=dev-lang/ruby-3.1.4-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/ruby-3.1.4-r3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/ruby-3.1.4-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ruby-3.1.4-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/ruby-3.1.4-r3/work/ruby-3.1.4'
 * S: '/var/tmp/portage/dev-lang/ruby-3.1.4-r3/work/ruby-3.1.4'

 * GNU info directory index is up-to-date.

 * IMPORTANT: 15 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.



Expected Results:  
ruby sucessful installed
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-15 18:06:19 UTC
Please include emerge --info, the full build.log (it matters for USE), and config.log. Thanks.
Comment 2 Leandro Cerencio 2024-01-15 18:06:42 UTC
Created attachment 882352 [details]
emerge --info
Comment 3 Leandro Cerencio 2024-01-15 18:10:51 UTC
Created attachment 882353 [details]
build.log
Comment 4 Leandro Cerencio 2024-01-15 18:17:38 UTC
Created attachment 882355 [details]
environment
Comment 5 Leandro Cerencio 2024-01-15 18:19:44 UTC
Created attachment 882356 [details]
config.log
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-15 18:44:40 UTC
>CFLAGS="-O2 -znver3 -pipe"

You forgot '-march='.

Your CFLAGS should be: CFLAGS="-O2 -march=znver3 -pipe".
Comment 7 Leandro Cerencio 2024-01-15 18:50:56 UTC
Really thanks for supporting. I couldnt imagine it. Again, really thanks for Gentoo team.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-15 19:12:04 UTC
(In reply to Leandro Cerencio from comment #7)
> Really thanks for supporting. I couldnt imagine it. Again, really thanks for
> Gentoo team.

np!