perf build broken after updating to bintuils 2.34.90.20200706-1ubuntu1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Debian) |
Fix Released
|
Unknown
|
|||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Groovy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
After updating to binutils 2.34.90.
/usr/bin/
/usr/bin/
/usr/bin/
collect2: error: ld returned 1 exit status
The file mentioned in the error (libtraceevent-
$ cat lib/traceevent/
{
warning;
};
The same file generated in a Focal environment (w/ binutils 2.34-6ubuntu1) looks as following:
$ cat lib/traceevent/
{
free;
memset;
realloc;
sprintf;
strcmp;
strdup;
strncmp;
warning;
};
And here is the chunk of Makefile that is generating this file:
define do_generate_
xargs echo "U w W" | tr 'w ' 'W\n' | sort -u | xargs echo`;\
if [ "$$symbol_type" = "U W" ];then \
) > $2; \
else \
fi
My guess is that something changed in the output of `nm` to show the @ charaters that ld does not like.
This problem is currently breaking all kernel builds in Groovy.
Changed in linux (Debian): | |
status: | Unknown → New |
Changed in linux (Debian): | |
status: | New → Fix Released |
Adding the specific command that is reporting error:
gcc -Wbad-function-cast -Wdeclaration- after-statement -Wformat-security -Wformat-y2k -Winit-self -Wmissing- declarations -Wmissing- prototypes -Wnested-externs -Wno-system-headers -Wold-style- definition -Wpacked -Wredundant-decls -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wwrite-strings -Wformat -Wstrict-aliasing=3 -Wshadow -DHAVE_ ARCH_X86_ 64_SUPPORT -Iarch/ x86/include/ generated -DHAVE_ SYSCALL_ TABLE_SUPPORT -DHAVE_ PERF_REGS_ SUPPORT -DHAVE_ ARCH_REGS_ QUERY_REGISTER_ OFFSET -Werror -O6 -fno-omit- frame-pointer -ggdb3 -funwind-tables -Wall -Wextra -std=gnu99 -fstack- protector- all -D_FORTIFY_SOURCE=2 -I/home/ arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ perf/lib/ include -I/home/ arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ perf/util/ include -I/home/ arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ perf/arch/ x86/include -I/home/ arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ include/ -I/home/ arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ arch/x86/ include/ uapi -I/home/ arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ include/ uapi -I/home/ arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ arch/x86/ include/ -I/home/ arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ arch/x86/ -I/home/ arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ perf/util -I/home/ arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ perf -I/home/ arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ lib/ -D_LARGEFILE64_ SOURCE -D_FILE_ OFFSET_ BITS=64 -D_GNU_SOURCE -DHAVE_ SYNC_COMPARE_ AND_SWAP_ SUPPORT -DHAVE_ PTHREAD_ ATTR_SETAFFINIT Y_NP -DHAVE_ PTHREAD_ BARRIER -DHAVE_EVENTFD -DHAVE_ GET_CURRENT_ DIR_NAME -DHAVE_GETTID -DHAVE_ DWARF_GETLOCATI ONS_SUPPORT -DHAVE_ GLIBC_SUPPORT -DHAVE_AIO_SUPPORT -DHAVE_ SCHED_GETCPU_ SUPPORT -DHAVE_ SETNS_SUPPORT -DHAVE_ LIBELF_ SUPPORT -DHAVE_ LIBELF_ MMAP_SUPPORT -DHAVE_ ELF_GETPHDRNUM_ SUPPORT -DHAVE_ GELF_GETNOTE_ SUPPORT -DHAVE_ ELF_GETSHDRSTRN DX_SUPPORT -DHAVE_ DWARF_SUPPORT -DHAVE_ LIBBPF_ SUPPORT -DHAVE_BPF_PROLOGUE -DHAVE_JITDUMP -DHAVE_ DWARF_UNWIND_ SUPPORT -DNO_LIBUNWIND_ DEBUG_FRAME -DHAVE_ LIBUNWIND_ SUPPORT -DHAVE_ LIBCRYPTO_ SUPPORT -DHAVE_ SLANG_SUPPORT -DNO_LIBPERL -DHAVE_ TIMERFD_ SUPPORT -DNO_LIBPYTHON -DHAVE_ CPLUS_DEMANGLE_ SUPPORT -DHAVE_ZLIB_SUPPORT -DHAVE_LZMA_SUPPORT -DHAVE_ LIBCAP_ SUPPORT -DHAVE_ BACKTRACE_ SUPPORT -DHAVE_ LIBNUMA_ SUPPORT -DHAVE_ KVM_STAT_ SUPPORT -DHAVE_ AUXTRACE_ SUPPORT -DHAVE_JVMTI_CMLR -Wl,-z,noexecstack -lunwind-x86_64 -lunwind -llzma -Xlinker --dynamic- list=/home/ arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ lib/traceevent/ plugins/ libtraceevent- dynamic- list \ pmu-events- in.o -Wl,--whole-archive /home/arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ lib/api/ libapi. a /home/arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ lib/traceevent/ libtraceevent. a /home/arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ lib/subcmd/ libsubcmd. a /home/arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ perf/lib/ libperf. a /home/arighi/ canonical/ kernel/ ubuntu/ unstable/ linux/tools/ lib/bpf/ libbpf. a -Wl,--no- whole-archive -Wl,--start-group -lpthread -lrt -lm -ldl -lelf -ldw -lunwind-x86_64 -lunwind -llzma -lcrypto -lslang -liberty -lz -llz...
perf-in.o pmu-events/