Bug 22675 - Failed elfutils 0.170 tests
Summary: Failed elfutils 0.170 tests
Status: RESOLVED INVALID
Alias: None
Product: elfutils
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-04 22:04 UTC by Guido Trentalancia
Modified: 2018-03-31 12:46 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guido Trentalancia 2018-01-04 22:04:31 UTC
FAIL: run-strip-reloc.sh
FAIL: run-strip-strmerge.sh
FAIL: run-readelf-self.sh

---

/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure readelf -w debugfile1 /home/guido/elfutils-0.170/src/strip
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure readelf -w debugfile2 /home/guido/elfutils-0.170/src/strip
*** failure --reloc-debug-sections not smaller /home/guido/elfutils-0.170/src/strip.o
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure readelf -w debugfile1 /home/guido/elfutils-0.170/src/strip.o
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure readelf -w debugfile2 /home/guido/elfutils-0.170/src/strip.o
*** failure --reloc-debug-sections not smaller strip-uncompressed.o
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure readelf -w debugfile1 strip-uncompressed.o
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure readelf -w debugfile2 strip-uncompressed.o
*** failure --reloc-debug-sections not smaller strip-compressed.o
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure readelf -w debugfile1 strip-compressed.o
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure readelf -w debugfile2 strip-compressed.o
FAIL run-strip-reloc.sh (exit status: 1)

---

elflint /home/guido/elfutils-0.170/tests/elfstrmerge
No errors
elfstrmerge
elflint merged.elf
No errors
strip
elflint merged.elf.stripped
No errors
elflint merged.elf.debug
No errors
unstrip
elflint remerged.elf
No errors
elfcmp
elflint /home/guido/elfutils-0.170/tests/elfstrmerge.o
No errors
elfstrmerge
elflint merged.elf
No errors
strip
elflint merged.elf.stripped
No errors
elflint merged.elf.debug
No errors
unstrip
/home/guido/elfutils-0.170/src/unstrip: more sections in stripped file than debug file -- arguments reversed?
FAIL run-strip-strmerge.sh (exit status: 1)

---

/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure in /home/guido/elfutils-0.170/src/readelf -a -w /home/guido/elfutils-0.170/src/addr2line
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure in /home/guido/elfutils-0.170/src/readelf -a -w /home/guido/elfutils-0.170/src/elfcmp
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure in /home/guido/elfutils-0.170/src/readelf -a -w /home/guido/elfutils-0.170/src/elflint
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure in /home/guido/elfutils-0.170/src/readelf -a -w /home/guido/elfutils-0.170/src/nm
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure in /home/guido/elfutils-0.170/src/readelf -a -w /home/guido/elfutils-0.170/src/objdump
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure in /home/guido/elfutils-0.170/src/readelf -a -w /home/guido/elfutils-0.170/src/readelf
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure in /home/guido/elfutils-0.170/src/readelf -a -w /home/guido/elfutils-0.170/src/size.o
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure in /home/guido/elfutils-0.170/src/readelf -a -w /home/guido/elfutils-0.170/src/strip.o
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure in /home/guido/elfutils-0.170/src/readelf -a -w /home/guido/elfutils-0.170/libelf/libelf.so
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure in /home/guido/elfutils-0.170/src/readelf -a -w /home/guido/elfutils-0.170/libdw/libdw.so
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure in /home/guido/elfutils-0.170/src/readelf -a -w /home/guido/elfutils-0.170/backends/libebl_i386.so
/home/guido/elfutils-0.170/src/readelf: cannot get debug context descriptor: No DWARF information found
*** failure in /home/guido/elfutils-0.170/src/readelf -a -w /home/guido/elfutils-0.170/backends/libebl_x86_64.so
FAIL run-readelf-self.sh (exit status: 1)
Comment 1 Mark Wielaard 2018-01-04 22:55:46 UTC
How did you configure?
What build environment? (gcc, binutils versions, etc.)

It almost looks like the build didn't include -g DWARF information, so the self-tests failed.
Comment 2 Guido Trentalancia 2018-01-05 13:33:25 UTC
I confirm.

When the CFLAGS environment variable is not passed to the configure script with compiler optimization options, all tests are passed.

Previously I was passing options such as "-O3" and "-fomit-frame-pointer" in CFLAGS.
Comment 3 Mark Wielaard 2018-01-05 16:16:11 UTC
(In reply to Guido Trentalancia from comment #2)
> I confirm.
> 
> When the CFLAGS environment variable is not passed to the configure script
> with compiler optimization options, all tests are passed.
> 
> Previously I was passing options such as "-O3" and "-fomit-frame-pointer" in
> CFLAGS.

OK. In that case simply pass CFLAGS="-g -O3 -fomit-frame-pointer" and you'll find all tests will PASS. The self-tests need debuginfo.