DEBUG: Executing shell function do_compile
NOTE: make -j 10
  DESCEND            src libtracefs.so
  COMPILE FPIC       tracefs-utils.o
  COMPILE FPIC       tracefs-instance.o
  COMPILE FPIC       tracefs-events.o
  COMPILE FPIC       tracefs-tools.o
  COMPILE FPIC       tracefs-marker.o
  COMPILE FPIC       tracefs-kprobes.o
  COMPILE FPIC       tracefs-hist.o
  COMPILE FPIC       tracefs-filter.o
  COMPILE FPIC       tracefs-dynevents.o
  COMPILE FPIC       tracefs-eprobes.o
  COMPILE FPIC       tracefs-uprobes.o
  COMPILE FPIC       tracefs-record.o
  COMPILE FPIC       tracefs-vsock.o
  COMPILE FPIC       tracefs-perf.o
flex -o sqlhist-lex.c sqlhist.l
  COMPILE FPIC       sqlhist.tab.o
tracefs-perf.c:34:9: error: call to undeclared function 'syscall'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        return syscall(__NR_perf_event_open, event, pid, cpu, group_fd, flags);
               ^
tracefs-perf.c:44:25: error: call to undeclared function 'getpagesize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        perf_mmap = mmap(NULL, MAP_SIZE,
                               ^
tracefs-perf.c:37:23: note: expanded from macro 'MAP_SIZE'
#define MAP_SIZE (9 * getpagesize())
                      ^
tracefs-perf.c:63:35: error: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        fd = perf_event_open(&perf_attr, getpid(), cpu, -1, 0);
                                         ^
tracefs-perf.c:69:3: error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                close(fd);
                ^
tracefs-perf.c:79:16: error: call to undeclared function 'getpagesize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        munmap(mpage, MAP_SIZE);
                      ^
tracefs-perf.c:37:23: note: expanded from macro 'MAP_SIZE'
#define MAP_SIZE (9 * getpagesize())
                      ^
5 errors generated.
  COMPILE FPIC       tracefs-sqlhist.o
make[1]: *** [Makefile:55: TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/libtracefs/1.7.0-r0/git/src/tracefs-perf.o] Error 1
make[1]: *** Waiting for unfinished jobs....
  COMPILE FPIC       sqlhist-lex.o
make: *** [Makefile:386: TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/libtracefs/1.7.0-r0/git/lib/libtracefs.so.1.7.0] Error 2
ERROR: oe_runmake failed
WARNING: TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/libtracefs/1.7.0-r0/temp/run.do_compile.1531205:179 exit 1 from 'exit 1'
WARNING: Backtrace (BB generated script): 
	#1: bbfatal_log, TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/libtracefs/1.7.0-r0/temp/run.do_compile.1531205, line 179
	#2: die, TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/libtracefs/1.7.0-r0/temp/run.do_compile.1531205, line 164
	#3: oe_runmake, TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/libtracefs/1.7.0-r0/temp/run.do_compile.1531205, line 169
	#4: base_do_compile, TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/libtracefs/1.7.0-r0/temp/run.do_compile.1531205, line 147
	#5: do_compile, TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/libtracefs/1.7.0-r0/temp/run.do_compile.1531205, line 141
	#6: main, TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/libtracefs/1.7.0-r0/temp/run.do_compile.1531205, line 189

Error details

Submitted on:
13/06/23 10:22
Error type:
Recipe
Task:
do_compile
Recipe:
libtracefs
Recipe version:
1.7.0-r0
Machine:
qemuarm64
Distro:
yoe
Build system:
x86_64-linux
Target system:
aarch64-yoe-linux-musl
Host distro:
ubuntu-22.04/ubuntu-22.04
Branch:
HEAD
Commit:
7822b15b6d77fad9d5a83f7d96eacb19a6fefba2
Build:
#165737
Submitter:
ab@rdk
Similar errors:
1
Open a bug