Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 676620 - sys-devel/gdb-8.2.1 - In file included from nat/aarch64-sve-linux-ptrace.h:23, from aarch64-linux-nat.c:35: /usr/include/asm/sigcontext.h:28:8: error: redefinition of 'struct sigcontext'
Summary: sys-devel/gdb-8.2.1 - In file included from nat/aarch64-sve-linux-ptrace.h:23...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://sourceware.org/git/gitweb.cgi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-28 09:57 UTC by eroen
Modified: 2019-02-01 15:07 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,314.13 KB, text/plain)
2019-01-28 09:57 UTC, eroen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2019-01-28 09:57:14 UTC
Created attachment 563048 [details]
build.log

CXX    aarch64-linux-nat.o
In file included from nat/aarch64-sve-linux-ptrace.h:23,
                 from aarch64-linux-nat.c:35:
/usr/include/asm/sigcontext.h:28:8: error: redefinition of 'struct sigcontext'
 struct sigcontext {
        ^~~~~~~~~~
In file included from /usr/include/signal.h:48,
                 from build-gnulib/import/signal.h:52,
                 from linux-nat.h:23,
                 from aarch64-linux-nat.c:26:
/usr/include/bits/signal.h:18:16: note: previous definition of 'struct sigcontext'
 typedef struct sigcontext {
                ^~~~~~~~~~
...
make[2]: *** [Makefile:1622: aarch64-linux-nat.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gdb-8.2.1/work/gdb-8.2.1/gdb'
make[1]: *** [Makefile:8157: all-gdb] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gdb-8.2.1/work/gdb-8.2.1'
make: *** [Makefile:850: all] Error 2
 * ERROR: sys-devel/gdb-8.2.1::gentoo failed (compile phase):
 *   emake failed


This is fixed by an upstream commit:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=51b4f73a37c2e7eec31e932fc3c8dae879735f63
Comment 1 eroen 2019-01-28 09:58:14 UTC
(none) / # emerge --info '=sys-devel/gdb-8.2.1::gentoo'
Portage 2.3.58 (python 3.7.0-final-0, hardened/linux/musl/arm64, gcc-8.2.0, musl-1.1.21, 4.20.3-gentoo aarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.20.3-gentoo-aarch64-with-gentoo-2.6
KiB Mem:     2045596 total,    369344 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 27 Jan 2019 22:30:01 +0000
Head commit of repository gentoo: adca6ff181c11c7221beeb543c9d71da102da1dc
Timestamp of repository musl: Sun, 27 Jan 2019 18:03:43 +0000
Head commit of repository musl: 696119d48f816d3df289a6db4b4803024e6c8629

sh bash 5.0_p2
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
app-shells/bash:          5.0_p2::gentoo
dev-lang/perl:            5.28.0::gentoo
dev-lang/python:          3.7.0::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.40.3::gentoo
sys-apps/sandbox:         2.13::musl
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r3::gentoo
sys-devel/gcc:            8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.20::musl (virtual/os-headers)
sys-libs/musl:            1.1.21::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: no
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 

musl
    location: /var/db/repos/musl
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/musl.git
    masters: gentoo

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="aarch64-linux-musl"
CFLAGS="-O2"
CHOST="aarch64-linux-musl"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2"
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="-O2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="charset.alias"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
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="arm64 cli crypt cxx dri fortran hardened iconv ipv6 minimal ncurses nptl openmp pic pie readline seccomp ssl ssp static-libs tcpd unicode xattr" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-devel/gdb-8.2.1::gentoo was built with the following:
USE="client server -lzma -multitarget -nls -python -test -vanilla -xml" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_4 -python3_5 -python3_7" PYTHON_TARGETS="python3_7 -python2_7 -python3_4 -python3_5 -python3_6"

(none) / # emerge -pqv '=sys-devel/gdb-8.2.1::gentoo'

 * IMPORTANT: config file '/etc/portage/savedconfig/sys-apps/busybox-1.29.3' needs updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
[ebuild   R   ] sys-devel/gdb-8.2.1  USE="client server -lzma -multitarget -nls -python -test -vanilla -xml" PYTHON_SINGLE_TARGET="python3_7* -python2_7 -python3_4 -python3_5 -python3_6*" PYTHON_TARGETS="python3_7 -python2_7 -python3_4 -python3_5 -python3_6" 

 * IMPORTANT: 10 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.
Comment 2 Larry the Git Cow gentoo-dev 2019-01-28 22:01:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46f7eccbcb65b1b4b6802480250c153d05854c35

commit 46f7eccbcb65b1b4b6802480250c153d05854c35
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-01-28 22:00:25 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-01-28 22:00:53 +0000

    sys-devel/gdb: pull aarch64-musl fix, bug #676620
    
    Reported-by: eroen
    Closes: https://bugs.gentoo.org/676620
    Package-Manager: Portage-2.3.58, Repoman-2.3.12
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-devel/gdb/files/gdb-8.2.1-aarch64-musl.patch | 49 ++++++++++++++++++++++++
 sys-devel/gdb/gdb-8.2.1.ebuild                   |  3 +-
 2 files changed, 51 insertions(+), 1 deletion(-)
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2019-01-28 22:01:51 UTC
Thanks for the report and patch link! Pulled.

Please check if it makes things compile for you.
Comment 4 eroen 2019-02-01 15:07:24 UTC
Thanks, seems to work now!