FS#40309 - [simavr] build fails with testing

Attached to Project: Community Packages
Opened by Joel Teichroeb (klusark) - Sunday, 11 May 2014, 17:21 GMT
Last edited by Jakob Gruber (schuay) - Monday, 26 May 2014, 20:43 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jakob Gruber (schuay)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Builds fine with extra-x86_64-build, but fails currently with testing-x86_64-build. Not sure if there is a bug in one of the packages in testing, or if it's an issue with this package.


sim/run_avr.c: In function 'main':
sim/run_avr.c:67:2: warning: missing initializer for field 'frequency' of 'elf_firmware_t' [-Wmissing-field-initializers]
elf_firmware_t f = {{0}};
^
AR obj-x86_64-unknown-linux-gnu/libsimavr.a
In file included from sim/run_avr.c:28:0:
sim/sim_elf.h:45:11: note: 'frequency' declared here
uint32_t frequency;
^
SHARED obj-x86_64-unknown-linux-gnu/libsimavr.so.1
ln -sf libsimavr.so.1 obj-x86_64-unknown-linux-gnu/libsimavr.so
CC sim/run_avr.c
LD obj-x86_64-unknown-linux-gnu/run_avr.elf
/build/simavr/src/simavr/simavr/../simavr/obj-x86_64-unknown-linux-gnu/libsimavr.so: undefined reference to `gelf_getshdr'
/build/simavr/src/simavr/simavr/../simavr/obj-x86_64-unknown-linux-gnu/libsimavr.so: undefined reference to `elf_begin'
/build/simavr/src/simavr/simavr/../simavr/obj-x86_64-unknown-linux-gnu/libsimavr.so: undefined reference to `elf_end'
/build/simavr/src/simavr/simavr/../simavr/obj-x86_64-unknown-linux-gnu/libsimavr.so: undefined reference to `elf_strptr'
/build/simavr/src/simavr/simavr/../simavr/obj-x86_64-unknown-linux-gnu/libsimavr.so: undefined reference to `elf_nextscn'
/build/simavr/src/simavr/simavr/../simavr/obj-x86_64-unknown-linux-gnu/libsimavr.so: undefined reference to `elf_version'
/build/simavr/src/simavr/simavr/../simavr/obj-x86_64-unknown-linux-gnu/libsimavr.so: undefined reference to `elf_getdata'
/build/simavr/src/simavr/simavr/../simavr/obj-x86_64-unknown-linux-gnu/libsimavr.so: undefined reference to `gelf_getsym'
collect2: error: ld returned 1 exit status
../Makefile.common:165: recipe for target 'obj-x86_64-unknown-linux-gnu/run_avr.elf' failed
make[1]: *** [obj-x86_64-unknown-linux-gnu/run_avr.elf] Error 1
make[1]: Leaving directory '/build/simavr/src/simavr/simavr'
Makefile:15: recipe for target 'build-simavr' failed
make: *** [build-simavr] Error 2
==> ERROR: A failure occurred in build().
Aborting...

Steps to reproduce:
sudo testing-x86_64-build
This task depends upon

Closed by  Jakob Gruber (schuay)
Monday, 26 May 2014, 20:43 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.2-1
Comment by Doug Newgard (Scimmia) - Sunday, 11 May 2014, 20:08 GMT
Some kind of race condition? It's only failing some of the time for me, ran it 5 times, it failed 3 and succeeded 2.
Comment by Joel Teichroeb (klusark) - Monday, 19 May 2014, 07:07 GMT
It has built correctly 6 out of the last 17 times I've built it.
Comment by Jakob Gruber (schuay) - Monday, 19 May 2014, 20:37 GMT
Strange, I was able to reproduce this as well this time. Going to keep this under observation.
Comment by Jakob Gruber (schuay) - Tuesday, 20 May 2014, 08:42 GMT
Can you check if this patch helps?

http://pastie.org/private/90j7cyqovhwpur1nqxbmyw
Comment by Joel Teichroeb (klusark) - Thursday, 22 May 2014, 23:27 GMT
That patch seems to help. I've built it around 10 times with the patch now and it has not failed once.

Loading...