Bug#830850: clang-3.8: 'sys/cdefs.h' file not found on armhf

Andreas Beckmann anbe at debian.org
Tue Jul 12 09:13:15 UTC 2016


Package: clang-3.8
Version: 1:3.8.1-3
Severity: important

Hi,

pocl FTBFS on armhf:

https://buildd.debian.org/status/fetch.php?pkg=pocl&arch=armhf&ver=0.13-5&stamp=1468212726

/usr/lib/llvm-3.8/bin/clang --target=armv7 -mcpu=cortex-a5 -D_CL_DISABLE_HALF -Xclang -ffake-address-space-map -emit-llvm -ffp-contract=off -Xclang -cl-std=CL2.0 -D__OPENCL_C_VERSION__=200 -D__OPENCL_VERSION__=200 -Dcl_khr_byte_addressable_store -Dcl_khr_global_int32_base_atomics -Dcl_khr_global_int32_extended_atomics -Dcl_khr_local_int32_base_atomics -Dcl_khr_local_int32_extended_atomics -Dcl_khr_spir -Dcl_khr_int64 -Dcl_khr_fp64 -Dcl_khr_int64_base_atomics -Dcl_khr_int64_extended_atomics -D__CBUILD__ -c -o printf.c.bc -include /«PKGBUILDDIR»/include/_kernel_c.h ../../../lib/kernel/printf.c
clang: warning: unknown platform, assuming -mfloat-abi=soft
clang: warning: unknown platform, assuming -mfloat-abi=soft
In file included from ../../../lib/kernel/printf.c:25:
In file included from /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include/limits.h:37:
In file included from /usr/include/limits.h:25:
/usr/include/features.h:364:12: fatal error: 'sys/cdefs.h' file not found
#  include <sys/cdefs.h>
           ^
1 error generated.
Makefile:1151: recipe for target 'printf.c.bc' failed


That works on other platforms where clang-3.8 is available.


Andreas



More information about the Pkg-llvm-team mailing list