Fails to build for me with: /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld:/tmp/portage/dev-util/intel-graphics-compiler-1.0.17537.1/work/intel-graphics-compiler-igc-1.0.17537.1/IGC/igc_symbols.ld:3: syntax error in VERSION script collect2: error: ld returned 1 exit status
Created attachment 901261 [details] build log
Got the same issue and solved it by disabling lto
Version dropped from tree, so closing.
Why would a bug be fixed just because the original version it was detected in has been removed from the tree?
(In reply to Eli Schwartz from comment #4) > Why would a bug be fixed just because the original version it was detected > in has been removed from the tree? Can you reproduce? I cannot with current version.
(In reply to Conrad Kostecki from comment #5) > Can you reproduce? I cannot with current version. Were you able to reproduce it with the old version? The upstream code with the error is still there... they generate an ld version script by objdumping .o files even though they already use visibility macros and -fvisibility=hidden, and their commands do not work when the object files have been compiled with -flto. I have not tried reproducing it because it wants me to build all of llvm 15 and it's not available on the binhost, and compiling llvm by hand is a bit more pain than I want to engage in. But I inspected the code manually and I cannot see a reason why it would have been fixed. Note that you will only be able to reproduce it if you compile with CFLAGS / CXXFLAGS containing "-flto", so by default you wouldn't normally see the issue if you don't normally compile with LTO. ... Hmm, maybe I should add older llvms explicitly to the binhost configs.
(In reply to Eli Schwartz from comment #6) > (In reply to Conrad Kostecki from comment #5) > > Can you reproduce? I cannot with current version. > > Were you able to reproduce it with the old version? No. > Note that you will only be able to reproduce it if you compile with CFLAGS / > CXXFLAGS containing "-flto", so by default you wouldn't normally see the > issue if you don't normally compile with LTO. Well, if that's the cause, we just should filter lto. We do that even for intel-compute-runtime. I don't see upstream fixing this in future. They don't even finished LLVM16 support by now.. We are stuck at LLVM15.
(In reply to Conrad Kostecki from comment #7) > (In reply to Eli Schwartz from comment #6) > > Were you able to reproduce it with the old version? > > No. So what did you think changed with the new version? :P (In reply to Conrad Kostecki from comment #7) > Well, if that's the cause, we just should filter lto. We do that even for > intel-compute-runtime. I don't see upstream fixing this in future. They > don't even finished LLVM16 support by now.. We are stuck at LLVM15. Surely we should also do our part by reporting the issue, whether we expect it to be solved or not? After that we should of course filter-lto since fixing that kind of deep issue is out of scope for a downstream patch. But again, that version script looks totally wrong regardless of whether it fails to compile. :) I think we should report that it's a problem regardless of anything else.
*** Bug 940544 has been marked as a duplicate of this bug. ***
I just this issue now with dev-util/intel-graphics-compiler-1.0.17791.18 . lto-wrapper: warning: using serial compilation of 2 LTRANS jobs lto-wrapper: note: see the ‘-flto’ option documentation for more information ... FAILED: IGC/Release/libigc.so.1.0.1 ... /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld:/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.17791.18/work/intel-graphics-compiler-igc-1.0.17791.18/IGC/igc_symbols.ld:3: syntax error in VERSION script collect2: error: ld returned 1 exit status # emerge --info '=dev-util/intel-graphics-compiler-1.0.17791.18::gentoo' Portage 3.0.67 (python 3.13.2-final-0, default/linux/amd64/23.0/split-usr/no-multilib, gcc-14, glibc-2.41-r1, 6.13.6 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.13.6-x86_64-Intel-R-_Core-TM-_i7-7820HQ_CPU_@_2.90GHz-with-glibc2.41 KiB Mem: 32730260 total, 8200764 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sun, 06 Apr 2025 09:45:00 +0000 Head commit of repository gentoo: fc5e6f0ade056cb3289c0c14c0e73f7bffbd97f2 Head commit of repository jgenco: 1cf5eedeb5cd34dcabd865c20b1e5396418ac359 Head commit of repository without-systemd: 5d3567162093b20268bee39d28ade80ca3732aeb sh bash 5.2_p37 ld GNU ld (Gentoo 2.43 p3) 2.43.1 app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.69-r5::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo dev-build/automake: 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.5-r2::gentoo, 1.17-r2::gentoo dev-build/cmake: 3.31.6-r1::gentoo dev-build/libtool: 2.5.4::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.7.0::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 2.7.18_p16-r2::gentoo, 3.10.16_p2::gentoo, 3.11.11_p2::gentoo, 3.12.9::gentoo, 3.13.2::gentoo, 3.13.2-r100::gentoo dev-lang/rust-bin: 1.77.1-r102::gentoo, 1.84.1-r1::gentoo, 1.85.0-r1::gentoo, 1.85.1::gentoo llvm-core/clang: 14.0.6-r4::gentoo, 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.8::gentoo, 19.1.7::gentoo, 20.1.2::gentoo llvm-core/lld: 14.0.6-r1::gentoo, 15.0.7::gentoo, 16.0.6::gentoo, 18.1.8::gentoo llvm-core/llvm: 14.0.6-r4::gentoo, 15.0.7-r7::gentoo, 16.0.6-r5::gentoo, 17.0.6-r3::gentoo, 18.1.8-r4::gentoo, 19.1.7::gentoo, 20.1.2::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/openrc: 0.61::gentoo sys-apps/sandbox: 2.46::gentoo sys-devel/binutils: 2.43-r2::gentoo, 2.44::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/gcc: 10.3.0::gentoo, 11.5.0::gentoo, 12.2.1_p20230304::gentoo, 13.2.1_p20240210::gentoo, 14.2.1_p20250301::gentoo sys-devel/gcc-config: 2.12.1::gentoo sys-kernel/linux-headers: 6.14::gentoo (virtual/os-headers) sys-libs/glibc: 2.41-r1::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-jobs: 1 sync-rsync-verify-metamanifest: yes guru location: /var/db/repos/guru sync-type: webrsync sync-uri: https://gitweb.gentoo.org/repo/proj/guru.git masters: gentoo volatile: True jgenco location: /var/db/repos/jgenco sync-type: git sync-uri: https://github.com/jgenco/jgenco-overlay masters: gentoo volatile: False science location: /var/db/repos/science sync-type: rsync sync-uri: https://wiki.gentoo.org/wiki/Project:Science masters: gentoo volatile: True sync-rsync-extra-opts: without-systemd location: /var/db/repos/without-systemd sync-type: git sync-uri: https://github.com/KenjiBrown/without-systemd masters: gentoo volatile: False x-portage location: /usr/local/portage masters: gentoo priority: 0 volatile: True layman location: /var/lib/layman masters: gentoo priority: 1 volatile: True ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 NPSL Nero-EULA-US AdobeFlash-10.3 AdobeFlash-11.x OPERA-2014 RAR Intel-SDP intel-ucode Skype-TOS vmware linux-firmware fasta vienna-rna unafold GRL MSttfEULA hplip-plugin meme mRNAmarkup ApE ICS ipw3945 finchtv modeller gmap master-pdf-editor abyss swiss-prot Aladdin AVASYS truecrypt-3.0 pyvcf Non-profit-OSL-3.0 estscan bcca_2010 oncotator Adobe blat staden CeCILL-1.1 phrap STRIDE cctbx-2.0 bh-luxi ARIADNE unRAR all-rights-reserved trf annovar_personal_only stampy-academic BSD-BroadInstitute UPennState freedist free-noncomm blasr sun-jlfgr FLI-Jena PSTT netperf sun-jsr67 xv vim.org OSGi-Specification-2.0 colt mod_fastcgi googleearth google-chrome ACE AFL churchill genscan no-source-code linux-fw-redistributable ISSL JSON MPEG-4 Apache-2.0 BSD MIT BSD-2 FSFAP unicode Subversion OPERA-2018 ms-teams-pre TeamViewer PSF-2.4 merlin android julius CROSSOVER-3 lha PUEL-11 supermicro microsoft-edge android OFL PUEL-12 SSPL-1 Volatility-1.0" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -ftree-vectorize -flto" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /usr/share/maven-bin-3.6/conf /usr/share/maven-bin-3.8/conf /usr/share/maven-bin-3.9/conf /var/bind /var/lib/hsqldb /var/spool/torque" 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.2/ext-active/ /etc/php/apache2-php8.3/ext-active/ /etc/php/apache2-php8.4/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cgi-php8.4/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/cli-php8.4/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/fpm-php8.4/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/php/phpdbg-php8.4/ext-active/ /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 /etc/vmware-installer" CXXFLAGS="-O2 -pipe -march=native -ftree-vectorize -flto" 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=native -ftree-vectorize -flto" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=native -ftree-vectorize -flto" GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" LINGUAS="en_US en_GB en cs" MAKEOPTS="-j5" 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="/var/tmp" SHELL="/bin/bash" USE="X a52 aac acl acpi alsa amd64 amr amrenc aom apache apache2 archive armadillo asm audit av1 avx avx2 berkdb blas bluetooth bluray bmp boost bz2 bzip2 cairo caps ccid cdda cdio cdr cdrom cet cgi chromium cli codec2 coin cpudetection cracklib crypt cryptlib cryptsetup cups curl cxx d3d11 d3d9 dav1d dbus device-mapper dhcp directfb directx dri dri3 drm dvbpsi dvd dvda dxf dxva2 egl elogind emboss encode eselect-ldso exif faad fax fbcon fdk ffmpeg fftw flac fontconfig foomatic fortran frei0r fuse gbm gcrypt gd gdal gdbm geoip geolocation georeferencer geos gimp gles gles1 gles2 glpk gml gmp gnutls gpm gps grass gstreamer gtk gtk3 h.264 h.265 h264 h265 hal haptic hdf5 heif hevc hpijs hwdb iconv icu id3tag imaging innodb inotify iproute2 ipv6 java javafx javascript jce jpeg jpeg2k jpg js jscript kdrive keymap kms ladspa lapack laptop las lcms libaom libdrm libkms libnotify librtmp libsodium libsoxr libtesseract libtirpc libv4l libxml2 live lm-sensors lm_sensors lto lz4 lzma lzo mad mariadb matroska mjpeg mmal mmx modemmanager mp3 mpeg mtp ncurses netcdf networkmanager nfs nftables nls nptl nptlonly nscd nss ntfsprogs nvenc objc ocr odbc ogdi ogg openal opencl opengl openh264 openmp opensc openssl opus pam parport pcre pcre16 pcsc pcsc-lite pdal pdf perl php png polar policykit polkit postgres ppds pppd python qemu qml qt3support qt4 qt5 rav1e rdp readline rendering resolvconf romio rubberband scanner seccomp server session sha slideshow smartcard sndfile sndio sodium spice split-usr sqlite srt sse sse2 sse3 sse4_1 sse4_2 ssh ssl sslv3 ssse3 startup-notification suexec svg svt-av1 syslog tcl tcpd test-rust threads tiff tk tkip tools truetype twolame unicode unwind upnp usb v4l v4l2 vaapi vidstab vim-syntax virtualbox vmaf vnc vorbis vp8 vp9 vpx vulkan wavpack wayland webdav webkit webp wifi x11 x264 x265 xa xattr xcb xephyr xft xls xml xmp xorg xrandr xv xvfb xvid xvmc zeroconf zlib zstd" ABI_X86="64" ADA_TARGET="gcc_14" ALSA_CARDS="hdspm usb-usx2y" APACHE2_MODULES="alias authn_core authz_core socache_shmcb authz_host auth_basic auth_digest cgi cgid deflate dir env filter include info mem_cache mime mime_magic negotiation remoteip setenvif status userdir vhost_alias rewrite usertrack cache file_cache disk_cache charset_lite log_config log_forensic unixd" 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="gpsclock navcom ntrip rtcm104v2 rtcm104v3 ublox nmea0183 nmea2000 aivdm passthrough" GRUB_PLATFORMS="efi-64 pc" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US en-GB en cs" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_SLOT="19" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4 php5-5" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python2_7 python3_9 python3_10 python3_11 python3_12 python3_13" RUBY_TARGETS="ruby32 ruby33 ruby34" VIDEO_CARDS="vesa vboxvideo vmware vmvga vmwgfx fbdev intel iris i915 i965 d3d12 virgl zink" 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
Disabling lto doesn't seem to fix this issue for me.
Scratch that, it does in fact fix the issue. That said, the package still needs to filter -flto if upstream isn't gonna fix their bug.
Yes, that was discussed 6 months ago along with me asking the package maintainer to submit an upstream bug report notifying them of the issue. I don't think either thing has happened and it's not obvious why. David, can you take care of this instead, so that it can actually happen someday?