[Bug general/31287] New: 0.190: test suite build fails with gcc 14.x

2024-01-24 Thread kloczko.tomasz at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31287

Bug ID: 31287
   Summary: 0.190: test suite build fails with gcc 14.x
   Product: elfutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: general
  Assignee: unassigned at sourceware dot org
  Reporter: kloczko.tomasz at gmail dot com
CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

Looks like 0.190 test suite is not gcc 14.x ready

/usr/bin/gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"'
-I. -I..  -I. -I. -I../lib -I.. -I../libasm -I../libdw -I../libdwfl
-I../libdwelf -I../libebl -I../libelf -I../lib -I..  -std=gnu99 -Wall -Wshadow
-Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines
-Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5
-Wuse-after-free=3 -Werror -Wunused -Wextra -Wstack-usage=262144   -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -O2 -g -grecord-gcc-switches -pipe
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS
-Wall -Werror=format-security -Wformat -Wno-error=stack-usage= -c -o
elfstrmerge.o elfstrmerge.c
elfstrmerge.c: In function ‘main’:
elfstrmerge.c:450:32: error: ‘calloc’ sizes specified with ‘sizeof’ in the
earlier argument and not in the later argument [-Werror=calloc-transposed-args]
  450 |   newscnbufs = calloc (sizeof (void *), newshnums);
  |^~~~
elfstrmerge.c:450:32: note: earlier argument should specify number of elements,
later size of each element
cc1: all warnings being treated as errors

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug general/31287] 0.190: test suite build fails with gcc 14.x

2024-01-24 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31287

--- Comment #1 from Sam James  ---
Fixed in
https://sourceware.org/git/?p=elfutils.git;a=commit;h=ae580d48278b9924da7503886b37be34378e1b04,
just needs a new release before 14 is out (or we get mjw to change his mind on
werror for releases finally :p)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug libdw/31111] Handle Clang DWARF 5 DW_AT_decl_file 0

2024-01-24 Thread gprocida at google dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=3

--- Comment #4 from gprocida at google dot com ---
The llvm-dwarfdump issues were an unfortunate red herring as I thought I had
found more problems with compilers.

Your comment 1 is exactly what I found. I'm not aware of anything further at
this stage. The LLVM developers did not seem inclined to follow GCC's approach
to the  DWARF 5 standard as written.

I think the workaround suggested in comment 3 makes sense. It makes to check
the behaviour of the various versions of GCC that support DWARF 5 against this,
particularly in regard to __va_list.

-- 
You are receiving this mail because:
You are on the CC list for the bug.