Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834637 - emerge @world rebuilds wrong version of cross-arm-none-linux-gnueabi/gcc because latest bug free version is masked.
Summary: emerge @world rebuilds wrong version of cross-arm-none-linux-gnueabi/gcc beca...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-05 23:28 UTC by Brian McKee
Modified: 2022-03-07 02:03 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian McKee 2022-03-05 23:28:40 UTC
There is a bug in cross-arm-none-none-eabi/gcc-11.2.0 that causes compilation to fail.

The fix is already applied to the latest masked version and can be installed by using the -g [version] command line option for crossdev.

This installs cross-arm-none-linux-gnueabi-11.2.1_p20220115 and works just fine.

However, later, when I emerge --sync and emerge -DNuq @world, emerge tries to build version 11.2.0 and the bug rears its head: "C compiler cannot create executables."

I attempted to unmask the latest version by adding this to /etc/portage/package.accept_keywords: 'cross-arm-linux-gnueabi/gcc * ~* **', but emerge still insists on building 11.2.0

This seems like emerge doesn't know how to deal with crossdev created packages when there is a mask in place. There is probably some voodoo to unmasking the crossarm tool that I don't know.

Any help would be greatly appreciated.

Reproducible: Always

Steps to Reproduce:
1. crossdev --g 11.2.1_p20220115 --target arm-linux-gnueabi
2. emerge --sync
3. emerge -DNuq @world
Actual Results:  
...
checking for arm-none-linux-gnueabi-gcc... /var/tmp/portage/cross-arm-none-linux-gnueabi/gcc-11.2.0/work/build/./gcc/xgcc -B/var/tmp/portage/cross-arm-none-linux-gnueabi/gcc-11.2.0/work/build/./gcc/ -B/usr/arm-none-linux-gnueabi/bin/ -B/usr/arm-none-linux-gnueabi/lib/ -isystem /usr/arm-none-linux-gnueabi/include -isystem /usr/arm-none-linux-gnueabi/sys-include   
checking for arm-none-linux-gnueabi-strip... /usr/libexec/gcc/arm-none-linux-gnueabi/strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether the C compiler works... checking for arm-none-linux-gnueabi-gcc... /var/tmp/portage/cross-arm-none-linux-gnueabi/gcc-11.2.0/work/build/./gcc/xgcc -B/var/tmp/portage/cross-arm-none-linux-gnueabi/gcc-11.2.0/work/build/./gcc/ -B/usr/arm-none-linux-gnueabi/bin/ -B/usr/arm-none-linux-gnueabi/lib/ -isystem /usr/arm-none-linux-gnueabi/include -isystem /usr/arm-none-linux-gnueabi/sys-include   
no
configure: error: in `/var/tmp/portage/cross-arm-none-linux-gnueabi/gcc-11.2.0/work/build/arm-none-linux-gnueabi/libbacktrace':
configure: error: C compiler cannot create executables
See `config.log' for more details
checking whether the C compiler works... make[1]: *** [Makefile:13628: configure-target-libbacktrace] Error 1
...

Expected Results:  
Emerge the 'unmasked' latest (cross-arm-linux-gnueabi/gcc-11.2.1_p20220115) version of gcc to work around the bug with 11.2.0

threads ~ # emerge --info
Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.0, glibc-2.33-r7, 5.16.8-gentoo x86_64)
=================================================================
System uname: Linux-5.16.8-gentoo-x86_64-AMD_Ryzen_7_4800H_with_Radeon_Graphics-with-glibc2.33
KiB Mem:    32747940 total,   1007908 free
KiB Swap:   16777212 total,  12497404 free
Timestamp of repository gentoo: Sat, 05 Mar 2022 21:00:01 +0000
Head commit of repository gentoo: 174a41f63e70e9bca5ebbb1ff42a4c1f99702211
Timestamp of repository guru: Fri, 04 Mar 2022 17:52:19 +0000
Head commit of repository guru: 402154661d9bdf59fc9a2314d85e82c19311371f

sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.9.9-r1::gentoo, 3.10.0_p1-r1::gentoo
dev-lang/rust:             1.58.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.13.4-r2::gentoo, 1.16.4::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.0::gentoo
sys-devel/gcc:             11.2.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.0::gentoo
sys-devel/llvm:            13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.16::gentoo (virtual/os-headers)
sys-libs/glibc:            2.33-r7::gentoo
Repositories:

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

Gentoo_Local
    location: /usr/portage/local
    masters: gentoo
    priority: 0

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo

crossdev
    location: /var/db/repos/crossdev
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fexcess-precision=fast"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT=""/var/lib/mythtv" /etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/webapps"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fexcess-precision=fast"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
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="-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 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="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="-j16"
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 aalib acl acpi activities akonadi alivec alsa amd64 ao aspell audio audiofile autostart avahi avi bash-completion binary-drivers bitmap-fonts bittorrent bluetooth bluray bonjour boost botan branding bzip2 bzlib cairo caps cdda cddax cddb cdio cdparanoia cdr cdrom cdsound cec cgi clang cleartype cli cmake connection-sharing corefonts crypt css csv cups cupsddk curl curlwrappers cxx dbus declarative device-mapper dflib disk-partition diskio divx4linux dri dts dv dvd dvdr dvdread eclipse egl elogind emoticon encode exif extras faac faad fame fat fax fbcon fbcondecor ffmpeg fftw fits flac fontconfig fontforge foomaticdb fortran ftp fuse games gd gdbm gecko gif gimp git glib gnome gnutls goom gphoto2 gpm gtk gtk2 gudev gui hal hpcups hpijs html htmltidy http httpd hwdb iconv icu id3 id3tag imagecache imap inotify iproute2 ipv6 irda ithreads jack jadetex java jpeg jpeg2k kde kernel kipi kwallet lame lcms libass libdvdread libglvnd libnotify libtirpc lirc live llvm-shared-libs lm_sensors logrotate logviewer lua lzo mad maildir matroska mediacenter mikmod mim minizip mjpeg mng mod modplug mozilla mp3 mp3tunes mp4 mpd mpeg mplayer multilib multimedia multislot musicbrainz mysql mythtv ncurses net network networkmanager nfs nfsv3 nfsv4 nls nptl nsplugin nss nvidia nxclient ogg ogg123 oggvorbis ogm openal opengl openmp oxygen pam pango pcre pdf perl phonon php plasma png policykit posix postscript ppds profile pulseaudio pvr python qemu qml qt5 quicktime rar raw rdesktop rdp readline real rendering resolvconf rtmp rtsp sasl scanner sdl sdl-image seccomp semantic-desktop server session sftp sms spell split-usr sql ssl startup-notification stream subversion suid svg syslog taglib tcl tcltk theora thesaurus threads tidy tiff tinfo tk truetype twolame udev udev-acl udisks unicode unzip upnp upower usb v4l v4l2 vcd vhost-net vhosts video vnc vorbis vulkan wav wavpack webcam webserver widgets wma wxwidgets x264 x265 xattr xcb xcomposite xml xml2 xmltv xorgmodule xulrunner xv xvid yahoo zeroconf zip zlib" ABI_X86="64 32" ADA_TARGET="gnat_2020" ALSA_CARDS="hda_intel" 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 rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev libinput synaptics" KERNEL="linux" L10N="en_US en" 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-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="arm x86_64 i386" QEMU_USER_TARGETS="arm x86_64 i386" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-06 02:59:38 UTC
Isn't this because you need to put arm-none-linux-gnueabi-gcc in package.accept_keywords instead?
Comment 2 Brian McKee 2022-03-06 08:39:05 UTC
You are correct.

There is actually more than one issue though.

emerge had reported issues with the world file and told me how to correct it. I have run that every time for a few months now and not thought much of it.

But it turns out that my world file contains cross-arm ... gcc and glibc for versions that are not installed and that was confusing me so I added the wrong reference to /etc/portage/package.accept_keywords.

Once I added the correct one, as you suggested, the problem seems to have gone away. I'm currently dealing with an unrelated dependency issue that didn't show up until I edited the world file. Python and beets.

Thanks for giving me the push I needed to get to the bottom of this.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-07 02:03:17 UTC
No problem. FWIW, bug 833357 will fix the build issue in stable.