Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654748 - sys-devel/gcc-8.1.0: fatal error: sys/sdt.h: No such file or directory (systemtap automagic dependency)
Summary: sys-devel/gcc-8.1.0: fatal error: sys/sdt.h: No such file or directory (syste...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL: https://gcc.gnu.org/bugzilla/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-03 15:26 UTC by lekto
Modified: 2018-05-16 22:03 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,5.32 KB, application/x-info)
2018-05-03 15:26 UTC, lekto
Details
build log (gcc-build-logs.tar.bz2,233.42 KB, application/x-bzip2)
2018-05-03 15:27 UTC, lekto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lekto 2018-05-03 15:26:29 UTC
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>
          ^~~~~~~~~~~
Comment 1 lekto 2018-05-03 15:27:16 UTC
Created attachment 529610 [details]
build log
Comment 2 lekto 2018-05-03 17:00:56 UTC
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
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2018-05-03 21:17:07 UTC
Interesting sdt comes from systemtap:

$ qfile /usr/include/sys/sdt.h
dev-util/systemtap (/usr/include/sys/sdt.h)

Do you have it installed?
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2018-05-03 21:22:32 UTC
Can you also check if systemtap was being reinstalled at the same time in case you are using emerge --jobs?
Comment 5 lekto 2018-05-03 21:35:09 UTC
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.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2018-05-12 14:09:08 UTC
Proposed addition of --disable-systemtap flag as:
    https://gcc.gnu.org/ml/gcc-patches/2018-05/msg00578.html
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2018-05-12 14:21:21 UTC
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.
"""
Comment 8 Larry the Git Cow gentoo-dev 2018-05-16 21:37:43 UTC
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(-)
Comment 9 Larry the Git Cow gentoo-dev 2018-05-16 22:02:30 UTC
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(+)
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2018-05-16 22:03:57 UTC
8.1.0-r3 should enforce proper dependencies now.

Thanks for the report!