Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685348 - sys-devel/gcc-7.3.0-r3 (and older versions): fatal error: sys/ustat.h: No such file or directory
Summary: sys-devel/gcc-7.3.0-r3 (and older versions): fatal error: sys/ustat.h: No suc...
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:
: 686214 687468 698534 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-05-08 10:38 UTC by Marcin Mirosław
Modified: 2019-11-11 21:06 UTC (History)
8 users (show)

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


Attachments
gcc-build-logs.tar (gcc-build-logs.tar.bz2,336.83 KB, application/x-bzip)
2019-05-08 10:40 UTC, Marcin Mirosław
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2019-05-08 10:38:15 UTC
/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:157:10: fatal error: sys/ustat.h: No such file or directory
 #include <sys/ustat.h>
          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:523: sanitizer_platform_limits_posix.lo] Error 1
make[4]: Leaving directory '/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/x86_64-pc-linux-gnu/libsanitizer/sanitizer_common'
make[3]: *** [Makefile:467: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/x86_64-pc-linux-gnu/libsanitizer'
make[2]: *** [Makefile:337: all] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/x86_64-pc-linux-gnu/libsanitizer'
make[1]: *** [Makefile:15099: all-target-libsanitizer] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build'
make: *** [Makefile:21479: bootstrap-lean] Error 2
 * ERROR: sys-devel/gcc-7.3.0-r3::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-7.3.0-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-7.3.0-r3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-7.3.0-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-7.3.0-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0'
 *
 * Please include /var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-build-logs.tar.bz2 in your bug report.


Reproducible: Always




Portage 2.3.62 (python 3.6.5-final-0, default/linux/amd64/17.0/no-multilib/hardened, gcc-8.3.0, glibc-2.28-r6, 5.0.0+ x86_64)                                                          [49/1812]
=================================================================
System uname: Linux-5.0.0+-x86_64-Intel_Xeon_Processor_-Skylake-with-gentoo-2.6
KiB Mem:     8175104 total,    326680 free
KiB Swap:    1957880 total,   1957880 free
Timestamp of repository gentoo: Wed, 08 May 2019 09:44:33 +0000
Head commit of repository gentoo: 5d629405228b21a9257be923f7375bb09bc91568

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
ccache version 3.6 [enabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/ccache:          3.6::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r4::gentoo
sys-devel/gcc:            8.2.0-r6::gentoo, 8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    sync-user: portage:portage
    priority: -1000


ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -march=native -s -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -march=native -s -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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="-Os -march=native -s -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache cgroup collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-Os -march=native -s -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common"
LINGUAS="en"
MAKEOPTS="-j4 -l5"
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"
USE="acl aio amd64 apache2 bash-completion bzip2 caps crypt cxx hardened iconv idn ipv6 jit libtirpc lto modules nano-syntax ncurses nls nptl openmp pcre pie readline seccomp smp ssl ssp threads unicode vhosts vim-syntax xattr xtpax zlib" ABI_X86="64" APACHE2_MODULES="alias authn_core access_compat auth_basic authz_core authn_alias authn_anon auth_digest authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cgi dav dav_fs dav_lock dir env expires ext_filter filter headers hugepages include info log_config
logio mime mime_magic negotiation remoteip rewrite setenvif status unique_id unixd socache_shmcb usertrack vhost_alias" APACHE2_MPMS="itk" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="apache aggregation bind cgroups conntrack contextswitch cpu curl curl_json df disk dns email entropy ethstat exec filecount hugepages interface iptables irq lvm match_regex mysql netlink
load memory network nginx notify_email ntpd openvpn ping postgresql processes protocols redis rrdcached rrdtool snmp statsd swap syslog tail tail_csv tcpconns unixsock uptime vmem" CPU_FLAGS_X86="aes mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GRUB_PLATFORMS="pc" KERNEL="linux" L10N="en" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" NGINX_MODULES_HTTP="access autoindex browser charset fastcgi gzip map limit_zone proxy rewrite http2 stub_status gzip_static" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" USERLAND="GNU" XTABLES_ADDONS="fuzzy geoip lscan psd sysrq tarpit"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Marcin Mirosław 2019-05-08 10:40:02 UTC
Created attachment 575520 [details]
gcc-build-logs.tar
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2019-05-08 20:44:58 UTC
Does gcc-7.3.0-r6 work for you? Meanwhile as a workaround USE=-sanitizer should be enough to get older compilers buildable.
Comment 3 Marcin Mirosław 2019-05-09 11:22:24 UTC
Yes,
gcc-7.3.0-r6 compiled fine:

 7.3.0-r6(7.3.0)^s(13:16:58 09.05.2019)(cxx graphite hardened nls nptl openmp pie sanitize ssp vtv -altivec -cilk -debug -doc -fixed-point -fortran -go -jit -libssp -mpx -multilib -objc -objc++ -objc-gc -pch -pgo -regression-test -vanilla)

I'm going to try older versions.
Comment 4 Marcin Mirosław 2019-05-09 12:33:17 UTC
gcc-4.9.4 with USE=-sanitize also compiles without problem.
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2019-05-19 08:04:56 UTC
*** Bug 686214 has been marked as a duplicate of this bug. ***
Comment 6 Sam 2019-05-19 11:23:16 UTC
I ran into the same issue with gcc-7.3.0-r3 on glibc-2.29-r2.

Will try gcc version -r6 as suggested.
Comment 7 Sam 2019-05-19 20:21:25 UTC
(In reply to Sam from comment #6)
> I ran into the same issue with gcc-7.3.0-r3 on glibc-2.29-r2.
> 
> Will try gcc version -r6 as suggested.

-r6 compiled and installed without problems.
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2019-06-06 06:12:40 UTC
*** Bug 687468 has been marked as a duplicate of this bug. ***
Comment 9 Bruno MATEU 2019-06-25 18:35:22 UTC
I ran into the same issue with gcc-6.4.0-r1 (with glibc-2.29-r2). gcc-6.4.0-r5 compiled without problems.
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2019-07-12 22:20:50 UTC
Yeah, that should be fixed for all gcc branches in ~arch.
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2019-10-31 07:29:40 UTC
*** Bug 698534 has been marked as a duplicate of this bug. ***