Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 801871 - sys-devel/gcc-10.3.0-r1 - sanitizer_platform_limits_posix.cpp:133:10: fatal error: linux/cyclades.h: No such file or directory
Summary: sys-devel/gcc-10.3.0-r1 - sanitizer_platform_limits_posix.cpp:133:10: fatal e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-12 12:13 UTC by Erich Seifert
Modified: 2021-08-20 14:11 UTC (History)
6 users (show)

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


Attachments
gcc-build-logs.tar.bz2 (gcc-build-logs.tar.bz2,528.79 KB, application/x-bzip)
2021-07-12 12:13 UTC, Erich Seifert
Details
Cyclades patch for 9.x branch (35_all_remove-cyclades_9.x.patch,3.83 KB, patch)
2021-07-15 21:15 UTC, Iade Gesso
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erich Seifert 2021-07-12 12:13:21 UTC
Created attachment 723511 [details]
gcc-build-logs.tar.bz2

Compiling sys-devel/gcc-10.3.0-r1 fails on several of my machines with the following error message:

/var/tmp/portage/sys-devel/gcc-10.3.0-r1/work/gcc-10.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:133:10: fatal error: linux/cyclades.h: No such file or directory
  133 | #include <linux/cyclades.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.


Reproducible: Always

Steps to Reproduce:
1. emerge =sys-devel/gcc-10.3.0-r1


Additional information:

# emerge --info '=sys-devel/gcc-10.3.0-r1::gentoo'
Portage 3.0.20 (python 3.9.5-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-10.3.0, glibc-2.33-r1, 5.12.10-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.12.10-gentoo-x86_64-AMD_Ryzen_7_4800H_with_Radeon_Graphics-with-glibc2.33
KiB Mem:    32336068 total,  10078060 free
KiB Swap:   71303160 total,  67073972 free
Timestamp of repository gentoo: Mon, 12 Jul 2021 09:30:01 +0000
Head commit of repository gentoo: ec29f081b7c8ec4f62800c5eff19a1e3dec84718

sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          2.7.18_p10::gentoo, 3.9.5_p2::gentoo
dev-lang/rust:            1.52.1::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::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.35.2::gentoo
sys-devel/gcc:            10.3.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.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver2 -mtune=znver2 -mmmx -msse -msse2 -msse3 -mssse3 -msse4a -mcx16 -msahf -mmovbe -maes -msha -mpclmul -mpopcnt -mabm -mfma -mbmi -mbmi2 -mwbnoinvd -mavx -mavx2 -msse4.1 -msse4.2 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mclflushopt -mxsavec -mxsaves -mclwb -mmwaitx -mclzero -mrdpid -O2 -pipe"
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=znver2 -mtune=znver2 -mmmx -msse -msse2 -msse3 -mssse3 -msse4a -mcx16 -msahf -mmovbe -maes -msha -mpclmul -mpopcnt -mabm -mfma -mbmi -mbmi2 -mwbnoinvd -mavx -mavx2 -msse4.1 -msse4.2 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mclflushopt -mxsavec -mxsaves -mclwb -mmwaitx -mclzero -mrdpid -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y --jobs=8 --load-average=8"
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=znver2 -mtune=znver2 -mmmx -msse -msse2 -msse3 -mssse3 -msse4a -mcx16 -msahf -mmovbe -maes -msha -mpclmul -mpopcnt -mabm -mfma -mbmi -mbmi2 -mwbnoinvd -mavx -mavx2 -msse4.1 -msse4.2 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mclflushopt -mxsavec -mxsaves -mclwb -mmwaitx -mclzero -mrdpid -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fail-clean 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="-march=znver2 -mtune=znver2 -mmmx -msse -msse2 -msse3 -mssse3 -msse4a -mcx16 -msahf -mmovbe -maes -msha -mpclmul -mpopcnt -mabm -mfma -mbmi -mbmi2 -mwbnoinvd -mavx -mavx2 -msse4.1 -msse4.2 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mclflushopt -mxsavec -mxsaves -mclwb -mmwaitx -mclzero -mrdpid -O2 -pipe"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j17 -l16"
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"
USE="X a52 aac acl acpi activities aio alsa amd64 avahi bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr egl emboss encode exif flac fortran gdbm gif gpm gui http2 iconv icu idn ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc lm-sensors mad matroska mng mp3 mp4 mpeg multilib ncurses networkmanager nfs nls nptl ogg opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline samba sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis vpx vulkan wayland webp widgets wifi wxwidgets x264 x265 xattr xcb xml xv xvid zeroconf zlib" 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="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 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de 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-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

# emerge -pqv '=sys-devel/gcc-10.3.0-r1::gentoo'
[ebuild     U ] sys-devel/gcc-10.3.0-r1 [10.3.0] USE="(cxx) fortran (multilib) nls nptl openmp pch (pie) sanitize ssp (-ada) -d -debug -doc (-fixed-point) -go -graphite (-hardened) -jit (-libssp) -lto -objc -objc++ -objc-gc -pgo -systemtap -test -vanilla -vtv -zstd"
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-12 13:15:10 UTC
Try gcc-10.3.0-r2. It has a https://gitweb.gentoo.org/proj/gcc-patches.git/tree/10.3.0/gentoo/35_all_remove-cyclades.patch backport which should fix it.
Comment 2 Miroslav Šulc gentoo-dev 2021-07-12 16:01:10 UTC
i confirm 10.3.0-r2 does not suffer from this issue.
Comment 3 Erich Seifert 2021-07-13 21:09:49 UTC
For me 10.3.0-r2 also compiles and installs without problems.
Comment 4 Iade Gesso 2021-07-15 21:14:22 UTC
(In reply to Sergei Trofimovich from comment #1)
> Try gcc-10.3.0-r2. It has a
> https://gitweb.gentoo.org/proj/gcc-patches.git/tree/10.3.0/gentoo/
> 35_all_remove-cyclades.patch backport which should fix it.

The patch fixes the bug for GCC 10.x :)
Nevertheless, even GCC 9.x is affected by this bug, but the proposed patch cannot be applied as is... In the attachments I provide a specific patch for the 9.x branch.

Let me know!... :D


Iade Gesso, PhD
Comment 5 Iade Gesso 2021-07-15 21:15:10 UTC
Created attachment 724069 [details, diff]
Cyclades patch for 9.x branch
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-07-15 21:16:52 UTC
(In reply to Iade Gesso from comment #5)
> Created attachment 724069 [details, diff] [details, diff]
> Cyclades patch for 9.x branch

It's already fixed in 9.4.0?
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-15 22:52:49 UTC
(In reply to Iade Gesso from comment #4)
> (In reply to Sergei Trofimovich from comment #1)
> > Try gcc-10.3.0-r2. It has a
> > https://gitweb.gentoo.org/proj/gcc-patches.git/tree/10.3.0/gentoo/
> > 35_all_remove-cyclades.patch backport which should fix it.
> 
> The patch fixes the bug for GCC 10.x :)
> Nevertheless, even GCC 9.x is affected by this bug, but the proposed patch
> cannot be applied as is... In the attachments I provide a specific patch for
> the 9.x branch.
> 
> Let me know!... :D

If other gcc branches fail to build for you please attach the build.log. All major ~arch gcc branches should build fine.
Comment 8 Daniel M. Weeks 2021-07-27 13:30:24 UTC
sys-devel/gcc-11.1.0-r2 is still affected by the underlying issue. (In case you're like me and didn't notice your system compiler was set ahead of stable.)
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-27 15:45:10 UTC
(In reply to Daniel M. Weeks from comment #8)
> sys-devel/gcc-11.1.0-r2 is still affected by the underlying issue.

It should not.Can you attach build.log for gcc-11.1.0-r2 that demonstrates the failure?
Comment 10 Daniel M. Weeks 2021-07-27 20:10:33 UTC
(In reply to Sergei Trofimovich from comment #9)
> (In reply to Daniel M. Weeks from comment #8)
> > sys-devel/gcc-11.1.0-r2 is still affected by the underlying issue.
> 
> It should not.Can you attach build.log for gcc-11.1.0-r2 that demonstrates
> the failure?

I came to a hasty conclusion anyway. The build also failed a second time even once I set the system gcc back to 10.3.0-r2. My last log got cleaned but I'm generating a new one.
Comment 11 Daniel M. Weeks 2021-07-27 20:42:04 UTC
(In reply to Daniel M. Weeks from comment #10)
> (In reply to Sergei Trofimovich from comment #9)
> > (In reply to Daniel M. Weeks from comment #8)
> > > sys-devel/gcc-11.1.0-r2 is still affected by the underlying issue.
> > 
> > It should not.Can you attach build.log for gcc-11.1.0-r2 that demonstrates
> > the failure?
> 
> I came to a hasty conclusion anyway. The build also failed a second time
> even once I set the system gcc back to 10.3.0-r2. My last log got cleaned
> but I'm generating a new one.

Ignore all of this. This was a gnat issue and I updated the wrong ticket. Sorry for the noise.
Comment 12 David Seifert gentoo-dev 2021-08-20 14:11:56 UTC
Fixed in 10.3.0-r2, which is stable now.