Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 789069 - dev-lang/ruby-3.0.1: fails to build with GCC 11.1
Summary: dev-lang/ruby-3.0.1: fails to build with GCC 11.1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-05-09 09:55 UTC by Perfect Gentleman
Modified: 2021-05-09 12:45 UTC (History)
1 user (show)

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


Attachments
build.log (build.log.xz,10.09 KB, application/x-xz)
2021-05-09 09:56 UTC, Perfect Gentleman
Details
build.log (build.log,121.01 KB, text/x-log)
2021-05-09 09:57 UTC, Perfect Gentleman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Perfect Gentleman 2021-05-09 09:55:49 UTC
make[1]: Leaving directory '/tmp/portage/dev-lang/ruby-3.0.1/work/ruby-3.0.1'
./miniruby -I./lib -I. -I.ext/common  ./tool/generic_erb.rb -c -o transdb.h ./template/transdb.h.tmpl ./enc/trans enc/trans
transdb.h updated
./tool/transform_mjit_header.rb:289:in `<main>': wrong number of arguments (given 1, expected 0) (ArgumentError)
make: *** [uncommon.mk:245: .ext/include/x86_64-linux/rb_mjit_min_header-3.0.1.h] Error 1
make: *** Waiting for unfinished jobs...make[1]: Leaving directory '/tmp/portage/dev-lang/ruby-3.0.1/work/ruby-3.0.1'
./miniruby -I./lib -I. -I.ext/common  ./tool/generic_erb.rb -c -o transdb.h ./template/transdb.h.tmpl ./enc/trans enc/trans
transdb.h updated
./tool/transform_mjit_header.rb:289:in `<main>': wrong number of arguments (given 1, expected 0) (ArgumentError)
make: *** [uncommon.mk:245: .ext/include/x86_64-linux/rb_mjit_min_header-3.0.1.h] Error 1
make: *** Waiting for unfinished jobs...
------------------------------------------------------------------------
 ~ $ emerge --info ruby
Portage 3.0.18 (python 3.9.5-final-0, default/linux/amd64/17.1/no-multilib, gcc-11.1.0, glibc-2.33, 5.12.2-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.12.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-glibc2.33
KiB Mem:    16085596 total,   9983812 free
KiB Swap:   13720572 total,  13673980 free
Head commit of repository guru: 89576d16e92040d6b2f6ebeb407625d5a9ad57a0

Head commit of repository pf4public: a574ca87ba83d477306b836d4d2040e78a97be34

Head commit of repository gentoo: 5f9708ce0ff3b802a70aaeb39fb164d2ad835143

Head commit of repository qt: bec4eaa82a9ef038679ee01705476eb116752591

Head commit of repository kde: fbafed2f4ee9877d56ed4b477e31ec937ba71e60

Head commit of repository pg_overlay: 700d4dbe73d145275d34bd3052d16d5b9808fa85

sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p3) 2.36.1
ccache version 4.2.1 [disabled]
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          2.7.18_p9::pg_overlay, 3.9.5::pg_overlay
dev-lang/rust:            1.52.0::pg_overlay
dev-util/ccache:          4.2.1::gentoo
dev-util/cmake:           3.20.2::gentoo
sys-apps/baselayout:      2.7-r2::gentoo
sys-apps/openrc:          0.43.3::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.36.1-r1::gentoo
sys-devel/gcc:            11.1.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.12::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33::gentoo
Repositories:

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
    masters: gentoo
    priority: -3
    eclass-overrides: guru gentoo qt kde pg_overlay

pf4public
    location: /var/db/repos/pf4public
    sync-type: git
    sync-uri: https://github.com/PF4Public/gentoo-overlay.git
    masters: gentoo
    priority: -1
    eclass-overrides: guru gentoo qt kde pg_overlay

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/gentoo.git
    priority: 5
    eclass-overrides: guru gentoo qt kde pg_overlay
    sync-git-clone-extra-opts: --depth=1 --progress --verbose --single-branch --branch master

qt
    location: /var/db/repos/qt
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/qt.git
    masters: gentoo
    priority: 9
    eclass-overrides: guru gentoo qt kde pg_overlay

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/kde.git
    masters: gentoo
    priority: 11
    eclass-overrides: guru gentoo qt kde pg_overlay

pg_overlay
    location: /var/db/repos/pg_overlay
    sync-type: git
    sync-uri: https://gitlab.com/Perfect_Gentleman/PG_Overlay.git
    masters: gentoo
    priority: 13
    eclass-overrides: guru gentoo qt kde pg_overlay

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O3 -pipe -fdata-sections -fdevirtualize-at-ltrans -ffunction-sections -fgraphite-identity -fipa-pta -flto=9 -flto-compression-level=9 -floop-interchange -floop-nest-optimize -floop-parallelize-all -fomit-frame-pointer -fopenmp -fsched-pressure -ftree-parallelize-loops=8 -fuse-linker-plugin -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -s"
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/terminfo"
CXXFLAGS="-march=native -mtune=native -O3 -pipe -fdata-sections -fdevirtualize-at-ltrans -ffunction-sections -fgraphite-identity -fipa-pta -flto=9 -flto-compression-level=9 -floop-interchange -floop-nest-optimize -floop-parallelize-all -fomit-frame-pointer -fopenmp -fsched-pressure -ftree-parallelize-loops=8 -fuse-linker-plugin -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -s"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-march=native -mtune=native -O3 -pipe -fdata-sections -fdevirtualize-at-ltrans -ffunction-sections -fgraphite-identity -fipa-pta -flto=9 -flto-compression-level=9 -floop-interchange -floop-nest-optimize -floop-parallelize-all -fomit-frame-pointer -fopenmp -fsched-pressure -ftree-parallelize-loops=8 -fuse-linker-plugin -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -s"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -mtune=native -O3 -pipe -fdata-sections -fdevirtualize-at-ltrans -ffunction-sections -fgraphite-identity -fipa-pta -flto=9 -flto-compression-level=9 -floop-interchange -floop-nest-optimize -floop-parallelize-all -fomit-frame-pointer -fopenmp -fsched-pressure -ftree-parallelize-loops=8 -fuse-linker-plugin -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -s"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/lib/systemd /usr/lib/systemd /usr/share/fish /usr/share/zsh"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--sort-common -Wl,-z,norelro -lgomp -march=native -mtune=native -O3 -pipe -fdata-sections -fdevirtualize-at-ltrans -ffunction-sections -fgraphite-identity -fipa-pta -flto=9 -flto-compression-level=9 -floop-interchange -floop-nest-optimize -floop-parallelize-all -fomit-frame-pointer -fopenmp -fsched-pressure -ftree-parallelize-loops=8 -fuse-linker-plugin -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -s"
LINGUAS="en en_US en-US ru ru_RU ru-RU"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
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="/tmp"
USE="acl alsa amd64 bash-completion bzip2 cairo cli cups custom-cflags cxx dbus dri elogind ffmpeg flac fontconfig gdbm gif gmp iconv icu introspection jit jpeg kde lcms libglvnd libtirpc lzma lzo mmap mtp ncurses nls nptl ogg opengl openmp orc pam pch pcre png pulseaudio readline seccomp split-usr ssl svg symlink threads tiff truetype udev unicode vaapi vorbis vulkan wavpack wayland webp xattr xcb xft xmpp zip zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en_US en-US ru ru_RU ru-RU" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

=================================================================
                        Package Settings
=================================================================

dev-lang/ruby-3.0.1::gentoo was built with the following:
USE="gdbm jemalloc jit ssl -berkdb -debug -doc -examples -ipv6 -rdoc -rubytests -socks5 -static-libs -systemtap -tk -xemacs"
CFLAGS="-march=native -mtune=native -O3 -pipe -mllvm -polly -mllvm -polly-parallel -mllvm -polly-vectorizer=stripmine -fdata-sections -fforce-emit-vtables -ffunction-sections -flto=thin -fopenmp=libomp -fstrict-vtable-pointers -fno-asynchronous-unwind-tables -fno-common -fno-plt -fno-stack-protector -fno-standalone-debug -fno-unwind-tables -fno-strict-aliasing"
CXXFLAGS="-march=native -mtune=native -O3 -pipe -mllvm -polly -mllvm -polly-parallel -mllvm -polly-vectorizer=stripmine -fdata-sections -fforce-emit-vtables -ffunction-sections -flto=thin -fopenmp=libomp -fstrict-vtable-pointers -fno-asynchronous-unwind-tables -fno-common -fno-plt -fno-stack-protector -fno-standalone-debug -fno-unwind-tables -stdlib=libc++ -fno-strict-aliasing"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
LDFLAGS="-Wl,-O2 -Wl,--as-needed -Wl,--gc-sections -Wl,--icf=all -Wl,--lto-O3 -Wl,--thinlto-jobs=9 -Wl,-z,norelro -fuse-ld=lld -lomp -rtlib=compiler-rt -unwindlib=libunwind -s -march=native -mtune=native -O3 -pipe -mllvm -polly -mllvm -polly-parallel -mllvm -polly-vectorizer=stripmine -fdata-sections -fforce-emit-vtables -ffunction-sections -flto=thin -fopenmp=libomp -fstrict-vtable-pointers -fno-asynchronous-unwind-tables -fno-common -fno-plt -fno-stack-protector -fno-standalone-debug -fno-unwind-tables -stdlib=libc++"
------------------------------------------------------------------------
But it can be built with Clang-12.0

Reproducible: Always
Comment 1 Perfect Gentleman 2021-05-09 09:56:17 UTC
Created attachment 706692 [details]
build.log
Comment 2 Perfect Gentleman 2021-05-09 09:57:03 UTC
Created attachment 706695 [details]
build.log
Comment 3 Ionen Wolkens gentoo-dev 2021-05-09 11:12:08 UTC
Works for me with gcc-11, unless I use your wall of CFLAGS.
Comment 4 Perfect Gentleman 2021-05-09 11:34:05 UTC
But it worked with GCC-10.2.
Comment 5 Perfect Gentleman 2021-05-09 11:51:08 UTC
removed -fpip-pta, built it fine. thanx
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2021-05-09 12:45:30 UTC
(In reply to Perfect Gentleman from comment #5)
> removed -fpip-pta, built it fine. thanx

-ipa-pta probably exposes a bug in ruby (or gcc). You might want to explore it in more details and report upstream.