Source: likwid
Version: 4.1.0+dfsg1-2
Severity: important
Justification: fails to build from source
Thanks for addressing #827881. However, x32 builds of likwid are
still failing, because something's passing -m32, so GCC tries to build
for i386 and complains that architecture-specific headers are absent:
===> COMPILE GCCX86/access_x86.o
gcc -c -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -O2
-g -m32 -Wno-format -fPIC -fPIC -fvisibility=hidden -std=c99 -Wdate-time
-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DPAGE_ALIGNMENT=4096 -DLIKWID_MONITOR_LOCK
-DDEBUGLEV=0 -DVERSION=4 -DRELEASE=1 -DCFGFILE=/etc/likwid.cfg
-DTOPOFILE=/etc/likwid_topo.cfg -DINSTALL_PREFIX=/usr -DMAX_NUM_THREADS=263
-DMAX_NUM_NODES=64 -DACCESSDAEMON=/usr/sbin/likwid-accessD
-DGROUPPATH=/usr/share/likwid/perfgroups -D_GNU_SOURCE -DCOLOR=BLUE
-DHAS_MEMPOLICY -DHAS_SCHEDAFFINITY -DLIKWID_USE_HWLOC -DACCESSMODE=1
-I./src/includes -I/usr/include/lua5.2 -Iext/hwloc/include -I./GCCX86
./src/access_x86.c -o GCCX86/access_x86.o
In file included from /usr/include/stdlib.h:24:0,
from ./src/access_x86.c:1:
/usr/include/features.h:361:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.
make[2]: *** [GCCX86/access_x86.o] Error 1
In general, there is absolutely no need to specify -m32 or -m64 unless
you're actually looking to cross-compile; GCC already knows to target
the native architecture by default. Could you please remove any
references to these flags?
Thanks!