Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 871543 - dev-debug/gdb-12.1-r2[+sim] - dv-lm32cpu.c: error: call to undeclared function lm32bf_h_csr_get; ISO C99 and later do not support implic
Summary: dev-debug/gdb-12.1-r2[+sim] - dv-lm32cpu.c: error: call to undeclared functio...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-18 18:36 UTC by Toralf Förster
Modified: 2024-01-13 11:00 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.73 KB, text/plain)
2022-09-18 18:36 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,1.04 KB, application/x-bzip)
2022-09-18 18:36 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,126.34 KB, text/plain)
2022-09-18 18:36 UTC, Toralf Förster
Details
environment (environment,117.43 KB, text/plain)
2022-09-18 18:36 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,32.68 KB, application/x-bzip)
2022-09-18 18:36 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,205.00 KB, application/x-bzip)
2022-09-18 18:36 UTC, Toralf Förster
Details
sys-devel:gdb-12.1-r2:20220918-181815.log.bz2 (sys-devel:gdb-12.1-r2:20220918-181815.log.bz2,70.54 KB, application/x-bzip)
2022-09-18 18:36 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,103.88 KB, application/x-bzip)
2022-09-18 18:36 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-09-18 18:36:38 UTC
too long lines were shrinked:

2 warnings generated.
make[4]: Leaving directory '/var/tmp/portage/sys-devel/gdb-12.1-r2/work/gdb-12.1/sim/lm32'
make[4]: Entering directory '/var/tmp/portage/sys-devel/gdb-12.1-r2/work/gdb-12.1/sim/lm32'
source='dv-lm32cpu.c' object='dv-lm32cpu.o' libtool=no DEPDIR=.deps depmode=none /bin/sh /var/tmp/portage/sys-devel/gdb-12.1-r2/work/gdb-12.1/sim/lm32/../../depcomp clang -DHAVE_CONFIG_H   -DWITH_HW=1 -DHAVE_DV_SOCKSER -DDEFAULT_INLINE=0 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wno-unuse
dv-lm32cpu.c:154:8: error: call to undeclared function 'lm32bf_h_csr_get'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
  im = lm32bf_h_csr_get (cpu, LM32_CSR_IM);
       ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20220917-010004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *
GNU Make 4.3.90

  HEAD of ::gentoo
commit 9867c155d4e764b21e32ae4f4ef4ec473d18dddf
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Sep 18 17:16:48 2022 +0000

    2022-09-18 17:16:47 UTC

emerge -qpvO sys-devel/gdb
[ebuild  N    ] sys-devel/gdb-12.1-r2  USE="multitarget nls python xml (-cet) -guile -lzma -server -source-highlight -test -vanilla -xxhash" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2022-09-18 18:36:39 UTC
Created attachment 812266 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-18 18:36:40 UTC
Created attachment 812269 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-09-18 18:36:41 UTC
Created attachment 812272 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-09-18 18:36:43 UTC
Created attachment 812275 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-09-18 18:36:44 UTC
Created attachment 812278 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-18 18:36:45 UTC
Created attachment 812281 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-09-18 18:36:47 UTC
Created attachment 812284 [details]
sys-devel:gdb-12.1-r2:20220918-181815.log.bz2
Comment 8 Toralf Förster gentoo-dev 2022-09-18 18:36:48 UTC
Created attachment 812287 [details]
temp.tar.bz2
Comment 9 Larry the Git Cow gentoo-dev 2022-12-03 06:06:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6744186d10bceadab7c2a4f5bc5c616d655877f7

commit 6744186d10bceadab7c2a4f5bc5c616d655877f7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-03 05:01:15 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-03 06:06:06 +0000

    sys-devel/gdb: fix configure w/ clang 16
    
    Doesn't fix the other build problems yet, but given that implicit. func.
    decls can affect all compilers...
    
    Bug: https://bugs.gentoo.org/871543
    Signed-off-by: Sam James <sam@gentoo.org>

 .../gdb/files/gdb-12.1-configure-clang16.patch     | 112 ++++++++
 sys-devel/gdb/gdb-12.1-r3.ebuild                   | 295 +++++++++++++++++++++
 2 files changed, 407 insertions(+)
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2023-08-25 15:35:37 UTC
Is this still happening with recent gdb?
Comment 11 Toralf Förster gentoo-dev 2023-08-25 18:23:44 UTC
(In reply to Andreas K. Hüttel from comment #10)
> Is this still happening with recent gdb?

nope
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-25 18:33:55 UTC
ftr this is still broken upstream but just with USE=sim, and I added a USE which is default-off, so it affects less people now

(not rechecked with 13 but i've no reason to believe it's fixed yet)