Created attachment 529608 [details] emerge --info /var/tmp/portage/sys-devel/gcc-8.1.0/work/gcc-8.1.0/libgcc/unwind-dw2.c:41:10: fatal error: sys/sdt.h: No such file or directory #include <sys/sdt.h> ^~~~~~~~~~~
Created attachment 529610 [details] build log
After update @world gcc was builded. genlop -l --date today * packages merged: Thu May 3 17:15:18 2018 >>> app-crypt/pinentry-1.1.0-r1 Thu May 3 17:31:32 2018 >>> sys-apps/file-5.33 Thu May 3 17:34:58 2018 >>> net-misc/youtube-dl-2018.05.01 Thu May 3 17:35:23 2018 >>> media-libs/freetype-2.9.1 Thu May 3 17:36:49 2018 >>> sys-kernel/gentoo-sources-4.16.7 Thu May 3 17:37:18 2018 >>> dev-libs/json-c-0.13.1-r1 Thu May 3 17:39:12 2018 >>> sys-libs/db-4.8.30-r2 Thu May 3 17:40:35 2018 >>> sys-block/thin-provisioning-tools-0.7.6 Thu May 3 17:41:15 2018 >>> sys-fs/cryptsetup-2.0.2 Thu May 3 17:44:57 2018 >>> dev-lisp/clisp-2.49.90 Thu May 3 17:45:12 2018 >>> media-libs/libmypaint-1.3.0 Thu May 3 17:45:50 2018 >>> media-gfx/mypaint-1.2.1 Thu May 3 18:56:54 2018 >>> sys-devel/gcc-8.1.0
Interesting sdt comes from systemtap: $ qfile /usr/include/sys/sdt.h dev-util/systemtap (/usr/include/sys/sdt.h) Do you have it installed?
Can you also check if systemtap was being reinstalled at the same time in case you are using emerge --jobs?
I run depclean while emerging gcc to free some disk space and I unmerged systemtap. Looks like configure detected sdt.h, but when build process needed sdt.h, the file was gone.
Proposed addition of --disable-systemtap flag as: https://gcc.gnu.org/ml/gcc-patches/2018-05/msg00578.html
Queued 97_all_disable-systemtap-switch.patch patch for next gcc 8.1.0 1.3 patchset: """ queue 'add --disable-systemtap switch' for next patchset Before the change systemtap probes were enabled if target headers had sys/sdt.h at ./configure time. After the change explicitly ask to enable or disable for probe support and not rely on automagic dependency discovery. """
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f027fd9b535c53a19d442b95eea99b2a9158d08 commit 6f027fd9b535c53a19d442b95eea99b2a9158d08 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2018-05-16 21:36:24 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2018-05-16 21:37:04 +0000 sys-devel/gcc: bump patchset up to 1.3 for gcc-8.1.0 3 new patches: + 95_all_ia64-TEXTREL.patch : fix TEXTRELs on -rdynamic binaries + 96_all_lto-O2-PR85655.patch : fix gcc -flto SIGSEGV on mariadb + 97_all_disable-systemtap-switch.patch : add --disable-systemtap switch Bug: https://bugs.gentoo.org/566118 Bug: https://bugs.gentoo.org/655518 Bug: https://bugs.gentoo.org/654748 Package-Manager: Portage-2.3.36, Repoman-2.3.9 sys-devel/gcc/Manifest | 2 +- sys-devel/gcc/{gcc-8.1.0-r2.ebuild => gcc-8.1.0-r3.ebuild} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91966aedd03d633af8476d824e2ee83a5181cc26 commit 91966aedd03d633af8476d824e2ee83a5181cc26 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2018-05-16 21:54:38 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2018-05-16 22:01:18 +0000 toolchain.eclass: add IUSE=systemtap to gcc-8 Avoid automagic dependency on systemtap installed. Reported-by: lekto@o2.pl Bug: https://bugs.gentoo.org/654748 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> eclass/toolchain.eclass | 11 +++++++++++ sys-devel/gcc/metadata.xml | 1 + 2 files changed, 12 insertions(+)
8.1.0-r3 should enforce proper dependencies now. Thanks for the report!