Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639518 - dev-util/strace-4.16 - ./linux/x86_64/arch_sigreturn.c:18:31: error: invalid use of undefined type ‘struct ucontext’
Summary: dev-util/strace-4.16 - ./linux/x86_64/arch_sigreturn.c:18:31: error: invalid ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.26
  Show dependency tree
 
Reported: 2017-12-02 15:55 UTC by Alexander Polozov
Modified: 2018-04-28 19:46 UTC (History)
0 users

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


Attachments
build log (build.log,145.22 KB, text/plain)
2017-12-02 15:56 UTC, Alexander Polozov
Details
environment (environment,86.13 KB, text/plain)
2017-12-02 16:00 UTC, Alexander Polozov
Details
emerge --info (emergeinfo,6.13 KB, text/plain)
2017-12-02 17:11 UTC, Alexander Polozov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Polozov 2017-12-02 15:55:44 UTC
After upgrading gcc to 7.2.0 (current ~amd64) and "emerge -e world", I have got  compilation fail dev-util/strace-4.16

Reproducible: Always

Steps to Reproduce:
1. upgrade gcc to 7.2.0
2. emerge -e world
3. compilation fail
Comment 1 Alexander Polozov 2017-12-02 15:56:53 UTC
Created attachment 507746 [details]
build log
Comment 2 Alexander Polozov 2017-12-02 16:00:24 UTC
Created attachment 507748 [details]
environment
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2017-12-02 16:39:40 UTC
In file included from /usr/include/bits/types/stack_t.h:23:0,
                 from /usr/include/signal.h:299,
                 from nsig.h:4,
                 from sigreturn.c:2:
./linux/x86_64/arch_sigreturn.c: In function ‘arch_sigreturn’:
./linux/x86_64/arch_sigreturn.c:18:31: error: invalid use of undefined type ‘struct ucontext’
 #define X86_64_SIGMASK_OFFSET offsetof(struct ucontext, uc_sigmask)
                               ^
./linux/x86_64/arch_sigreturn.c:26:9: note: in expansion of macro ‘X86_64_SIGMASK_OFFSET’
         X86_64_SIGMASK_OFFSET;
         ^~~~~~~~~~~~~~~~~~~~~
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2017-12-02 16:42:35 UTC
(In reply to Alexander Polozov from comment #0)

Your emerge --info output is missing.
Comment 5 Alexander Polozov 2017-12-02 17:11:37 UTC
Created attachment 507768 [details]
emerge --info
Comment 6 Dmitry V. Levin 2018-04-05 16:31:15 UTC
This issue was caused by upstream glibc commit glibc-2.26~231.
It was fixed by upstream strace commits v4.17~168 (ia64, mips, x86_64) and v4.18~15 (aarch64, tile).
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2018-04-28 19:46:20 UTC
(In reply to Dmitry V. Levin from comment #6)
> This issue was caused by upstream glibc commit glibc-2.26~231.
> It was fixed by upstream strace commits v4.17~168 (ia64, mips, x86_64) and
> v4.18~15 (aarch64, tile).

OK thanks. 

I guess this is fixed then since oldest strace in the tree is 4.20.