Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 813831

Summary: sys-devel/gdb-11.1 - targ-map.c: error: initializer element is not constant
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: sam, vapier
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=39d53d04357606a15efd400147fa7369d71baf2c
See Also: https://sourceware.org/bugzilla/show_bug.cgi?id=28302
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 803482    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
sys-devel:gdb-11.1:20210919-040041.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-09-19 08:44:50 UTC
                 from /var/tmp/portage/sys-devel/gdb-11.1/work/gdb-11.1/sim/bpf/../../gnulib/import/signal.h:52,
                 from targ-map.c:7:
targ-map.c:412:17: error: initializer element is not constant
  412 |   { "SIGSTKSZ", SIGSTKSZ, TARGET_SIGSTKSZ },
      |                 ^~~~~~~~
targ-map.c:412:17: note: (near initialization for ‘cb_init_signal_map[18].host_val’)
make[4]: *** [Makefile:532: targ-map.o] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-j4-20210918-110206

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 12.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.1
Python 3.9.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-1.55.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4

  HEAD of ::gentoo
commit 551dcf5f61488a1e204c68969b87f0dcce5a1066
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Sep 19 03:51:30 2021 +0000

    2021-09-19 03:51:28 UTC

emerge -qpvO sys-devel/gdb
[ebuild  N    ] sys-devel/gdb-11.1  USE="lzma multitarget nls python server source-highlight xml xxhash (-cet) -guile -test (-vanilla)" PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2021-09-19 08:44:51 UTC
Created attachment 739920 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-09-19 08:44:53 UTC
Created attachment 739923 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-09-19 08:44:54 UTC
Created attachment 739926 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-09-19 08:44:56 UTC
Created attachment 739929 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-09-19 08:44:57 UTC
Created attachment 739932 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-09-19 08:44:59 UTC
Created attachment 739935 [details]
sys-devel:gdb-11.1:20210919-040041.log
Comment 7 Toralf Förster gentoo-dev 2021-09-19 08:45:00 UTC
Created attachment 739938 [details]
temp.tar.bz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-17 06:27:03 UTC
CCing vapier because IIRC he's done some work on the sim stuff. No idea right now.
Comment 10 Larry the Git Cow gentoo-dev 2021-10-25 12:03:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c048cebb13af66c8e1d6306a5f5491552e3a44f

commit 5c048cebb13af66c8e1d6306a5f5491552e3a44f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-10-25 12:02:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-25 12:03:12 +0000

    sys-devel/gdb: backport glibc-2.34 build failure patch
    
    ... although I don't actually recall hitting this.
    
    Closes: https://bugs.gentoo.org/813831
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gdb/files/gdb-11.1-glibc-2.34-sim.patch | 110 ++++++++++++++++++++++
 sys-devel/gdb/gdb-11.1.ebuild                     |   1 +
 2 files changed, 111 insertions(+)