Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 803221

Summary: sys-devel/gcc-9.3.0-r2 fails to build: gcc-9.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:160:10: fatal error: linux/cyclades.h: No such file or directory
Product: Gentoo Linux Reporter: Thomas Deutschmann (RETIRED) <whissi>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=801871
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gcc-build-logs.tar.bz2

Description Thomas Deutschmann (RETIRED) gentoo-dev 2021-07-21 12:41:00 UTC
Created attachment 725479 [details]
gcc-build-logs.tar.bz2

> libtool: compile:  /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -fchecking=1 -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_RPC_XDR_H=0 -DHAVE_TIRPC_RPC_XDR_H=0 -I. -I/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/sanitizer_common -I.. -I /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/include -isystem /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/include/system -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros -I../../libstdc++-v3/include -I../../libstdc++-v3/include/x86_64-pc-linux-gnu -I/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/../libstdc++-v3/libsupc++ -std=gnu++11 -DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_DEMANGLE -I /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/../libbacktrace -I ../libbacktrace -I /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/../include -include /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/libbacktrace/backtrace-rename.h -g -pipe -march=znver2 -ggdb -O2 -D_GNU_SOURCE -MT sanitizer_allocator_report.lo -MD -MP -MF .deps/sanitizer_allocator_report.Tpo -c /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/sanitizer_common/sanitizer_allocator_report.cc -o sanitizer_allocator_report.o >/dev/null 2>&1
> /bin/bash ../libtool  --tag=CXX   --mode=compile /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include   -fchecking=1 -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS  -DHAVE_RPC_XDR_H=0 -DHAVE_TIRPC_RPC_XDR_H=0 -I. -I/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/sanitizer_common -I..  -I /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/include -isystem /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/include/system  -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros -I../../libstdc++-v3/include     -I../../libstdc++-v3/include/x86_64-pc-linux-gnu     -I/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/../libstdc++-v3/libsupc++ -std=gnu++11  -DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_DEMANGLE -I /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/../libbacktrace -I ../libbacktrace -I /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/../include -include /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/libbacktrace/backtrace-rename.h -g -pipe -march=znver2 -ggdb -O2 -D_GNU_SOURCE -MT sanitizer_thread_registry.lo -MD -MP -MF .deps/sanitizer_thread_registry.Tpo -c -o sanitizer_thread_registry.lo /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/sanitizer_common/sanitizer_thread_registry.cc
> /bin/bash ../libtool  --tag=CXX   --mode=compile /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include   -fchecking=1 -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS  -DHAVE_RPC_XDR_H=0 -DHAVE_TIRPC_RPC_XDR_H=0 -I. -I/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/sanitizer_common -I..  -I /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/include -isystem /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/include/system  -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros -I../../libstdc++-v3/include     -I../../libstdc++-v3/include/x86_64-pc-linux-gnu     -I/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/../libstdc++-v3/libsupc++ -std=gnu++11  -DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_DEMANGLE -I /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/../libbacktrace -I ../libbacktrace -I /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/../include -include /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/libbacktrace/backtrace-rename.h -g -pipe -march=znver2 -ggdb -O2 -D_GNU_SOURCE -MT sanitizer_tls_get_addr.lo -MD -MP -MF .deps/sanitizer_tls_get_addr.Tpo -c -o sanitizer_tls_get_addr.lo /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/sanitizer_common/sanitizer_tls_get_addr.cc
> yes
> /var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:160:10: fatal error: linux/cyclades.h: No such file or directory
>   160 | #include <linux/cyclades.h>
>       |          ^~~~~~~~~~~~~~~~~~
> compilation terminated.

Happens 3 times in row now.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2021-07-21 12:42:18 UTC
Portage 3.0.21 (python 3.9.6-final-0, default/linux/amd64/17.1, gcc-11.1.0, glibc-2.33-r3, 5.13.4-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.13.4-gentoo-x86_64-x86_64-AMD_Ryzen_Threadripper_3970X_32-Core_Processor-with-glibc2.33
KiB Mem:     8138644 total,   7310480 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Tue, 20 Jul 2021 23:15:01 +0000
Head commit of repository gentoo: 9815ffb71b356f0ff7b07ac161d68c108705953c

sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p3) 2.36.1
distcc 3.4 x86_64-pc-linux-gnu [disabled]
ccache version 4.3 [enabled]
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0-r1::gentoo
dev-lang/python:          2.7.18_p11::gentoo, 3.8.11::gentoo, 3.9.6::gentoo, 3.10.0_beta4::gentoo
dev-lang/rust:            1.53.0::gentoo
dev-util/ccache:          4.3-r2::gentoo
dev-util/cmake:           3.21.0::gentoo
sys-apps/baselayout:      2.7-r3::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:            9.3.0-r2::gentoo, 10.3.0-r2::gentoo, 11.1.0-r2::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-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync1.de.gentoo.org/gentoo-portage/
    priority: -1000

ABI="amd64"
ABI_X86="32 64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ACCT_USER_NO_MODIFY="1"
ADA_TARGET="gnat_2018"
ARCH="amd64"
BINPKG_COMPRESS="bzip2"
BROOT=""
CBUILD="x86_64-pc-linux-gnu"
CCACHE_DIR="/var/cache/ccache"
CFLAGS="-O2 -pipe -march=znver2 -mno-clzero -mno-mwaitx -mno-wbnoinvd -frecord-gcc-switches"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
COLLISION_IGNORE="/lib/modules/*"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3"
CXXFLAGS="-O2 -pipe -march=znver2 -mno-clzero -mno-mwaitx -mno-wbnoinvd -frecord-gcc-switches"
DCC_EMAILLOG_WHOM_TO_BLAME=""
DEFAULT_ABI="amd64"
DISTCC_ENABLE_DISCREPANCY_EMAIL=""
DISTCC_FALLBACK="1"
DISTCC_SAVE_TEMPS="0"
DISTCC_SSH=""
DISTCC_TCP_CORK=""
DISTCC_VERBOSE="0"
EDITOR="nano"
ELIBC="glibc"
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"
EPREFIX=""
EROOT="/"
ESYSROOT="/"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance ccache cgroup compressdebug config-protect-if-modified distlocks downgrade-backup 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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GCC_SPECS=""
GRUB_PLATFORMS="efi-64 pc"
HOME="/root"
INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/11.1.0/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.36.1/info:/usr/share/info"
INPUT_DEVICES="libinput"
IUSE_IMPLICIT="abi_x86_64 prefix prefix-guest prefix-stack"
KERNEL="linux"
L10N="en en-US de de-DE"
LANG="en_US.UTF-8"
LC_MESSAGES="C"
LC_TIME="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LIBDIR_amd64="lib64"
LIBDIR_x32="libx32"
LIBDIR_x86="lib"
LINGUAS="en de"
LOGNAME="root"
LUA_SINGLE_TARGET="lua5-1"
LUA_TARGETS="lua5-1"
MAIL="/var/mail/root"
MAKEOPTS="--jobs 42 --load-average 41.95"
MANPAGER="manpager"
MOTD_SHOWN="pam"
MOZ_GMP_PATH="/usr/lib64/nsbrowser/plugins/gmp-gmpopenh264/system-installed"
MULTILIB_ABIS="amd64 x86"
NOCOLOR="true"
OFFICE_IMPLEMENTATION="libreoffice"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/12/bin"
PHP_TARGETS="php7-4"
POSTGRES_TARGETS="postgres10 postgres11"
PWD="/root"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_9"
PYTHON_TARGETS="python3_9 python3_10"
ROOT="/"
ROOTPATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/share/bcc/tools:/usr/lib/llvm/12/bin"
RUBY_TARGETS="ruby26"
RUSTC_WRAPPER="/usr/bin/sccache"
SCCACHE_DIR="/var/cache/sccache"
SCCACHE_MAX_FRAME_LENGTH="104857600"
SHELL="/bin/bash"
SHLVL="2"
SIGNED_OFF_BY="Thomas Deutschmann <whissi@gentoo.org>"
SSH_TTY="/dev/pts/0"
SYMLINK_LIB="no"
SYSROOT="/"
TERM="screen"
TERM_PROGRAM="tmux"
TERM_PROGRAM_VERSION="3.2a"
TMUX="/tmp/tmux-0/default,3401,0"
TMUX_PANE="%0"
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
UNCACHED_ERR_FD=""
USER="root"
USERLAND="GNU"
VIDEO_CARDS="intel"
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-07-21 12:47:24 UTC
Known but fixed in 9.4.0. It's because of linux-headers-5.13.

Is there a reason you can't upgrade to 9.4.0?
Comment 3 David Seifert gentoo-dev 2021-08-20 14:11:24 UTC
Fixed in 9.4.0, which is stable now.