Bug#1068840: llvm-toolchain-14: FTBFS on mips64el: /<<PKGBUILDDIR>>/compiler-rt/lib/builtins/clear_cache.c:97:3: error: implicit declaration of function 'syscall' is invalid in C99 [-Werror, -Wimplicit-function-declaration]

Sebastian Ramacher sramacher at debian.org
Thu Apr 11 20:27:15 BST 2024


Source: llvm-toolchain-14
Version: 1:14.0.6-19
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramacher at debian.org

https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-14&arch=mips64el&ver=1%3A14.0.6-19&stamp=1712480299&raw=0

[122/276] /<<PKGBUILDDIR>>/build-llvm/./bin/clang --target=mips64el-linux-gnuabi64 -DVISIBILITY_HIDDEN  -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG  -mips32r2 -mabi=32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -MD -MT CMakeFiles/clang_rt.builtins-mipsel.dir/clear_cache.c.o -MF CMakeFiles/clang_rt.builtins-mipsel.dir/clear_cache.c.o.d -o CMakeFiles/clang_rt.builtins-mipsel.dir/clear_cache.c.o -c /<<PKGBUILDDIR>>/compiler-rt/lib/builtins/clear_cache.c
FAILED: CMakeFiles/clang_rt.builtins-mipsel.dir/clear_cache.c.o 
/<<PKGBUILDDIR>>/build-llvm/./bin/clang --target=mips64el-linux-gnuabi64 -DVISIBILITY_HIDDEN  -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG  -mips32r2 -mabi=32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -MD -MT CMakeFiles/clang_rt.builtins-mipsel.dir/clear_cache.c.o -MF CMakeFiles/clang_rt.builtins-mipsel.dir/clear_cache.c.o.d -o CMakeFiles/clang_rt.builtins-mipsel.dir/clear_cache.c.o -c /<<PKGBUILDDIR>>/compiler-rt/lib/builtins/clear_cache.c
/<<PKGBUILDDIR>>/compiler-rt/lib/builtins/clear_cache.c:97:3: error: implicit declaration of function 'syscall' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
  syscall(__NR_cacheflush, start, (end_int - start_int), BCACHE);
  ^
1 error generated.
[123/276] /<<PKGBUILDDIR>>/build-llvm/./bin/clang --target=mips64el-linux-gnuabi64 -DVISIBILITY_HIDDEN  -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG  -mips32r2 -mabi=32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -MD -MT CMakeFiles/clang_rt.builtins-mipsel.dir/gcc_personality_v0.c.o -MF CMakeFiles/clang_rt.builtins-mipsel.dir/gcc_personality_v0.c.o.d -o CMakeFiles/clang_rt.builtins-mipsel.dir/gcc_personality_v0.c.o -c /<<PKGBUILDDIR>>/compiler-rt/lib/builtins/gcc_personality_v0.c
[124/276] /<<PKGBUILDDIR>>/build-llvm/./bin/clang --target=mips64el-linux-gnuabi64 -DVISIBILITY_HIDDEN  -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG  -mips32r2 -mabi=32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -MD -MT CMakeFiles/clang_rt.builtins-mipsel.dir/emutls.c.o -MF CMakeFiles/clang_rt.builtins-mipsel.dir/emutls.c.o.d -o CMakeFiles/clang_rt.builtins-mipsel.dir/emutls.c.o -c /<<PKGBUILDDIR>>/compiler-rt/lib/builtins/emutls.c
[125/276] /<<PKGBUILDDIR>>/build-llvm/./bin/clang --target=mips64el-linux-gnuabi64 -DVISIBILITY_HIDDEN  -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG  -mips64r2 -mabi=64 -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -MD -MT CMakeFiles/clang_rt.builtins-mips64el.dir/comparetf2.c.o -MF CMakeFiles/clang_rt.builtins-mips64el.dir/comparetf2.c.o.d -o CMakeFiles/clang_rt.builtins-mips64el.dir/comparetf2.c.o -c /<<PKGBUILDDIR>>/compiler-rt/lib/builtins/comparetf2.c
[126/276] /<<PKGBUILDDIR>>/build-llvm/./bin/clang --target=mips64el-linux-gnuabi64 -DVISIBILITY_HIDDEN  -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG  -mips64r2 -mabi=64 -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -MD -MT CMakeFiles/clang_rt.builtins-mips64el.dir/addtf3.c.o -MF CMakeFiles/clang_rt.builtins-mips64el.dir/addtf3.c.o.d -o CMakeFiles/clang_rt.builtins-mips64el.dir/addtf3.c.o -c /<<PKGBUILDDIR>>/compiler-rt/lib/builtins/addtf3.c
[127/276] /<<PKGBUILDDIR>>/build-llvm/./bin/clang --target=mips64el-linux-gnuabi64 -DVISIBILITY_HIDDEN  -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG  -mips64r2 -mabi=64 -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -MD -MT CMakeFiles/clang_rt.builtins-mips64el.dir/divtc3.c.o -MF CMakeFiles/clang_rt.builtins-mips64el.dir/divtc3.c.o.d -o CMakeFiles/clang_rt.builtins-mips64el.dir/divtc3.c.o -c /<<PKGBUILDDIR>>/compiler-rt/lib/builtins/divtc3.c
ninja: build stopped: subcommand failed.

FAILED: runtimes/builtins-stamps/builtins-build /<<PKGBUILDDIR>>/build-llvm/runtimes/builtins-stamps/builtins-build 
cd /<<PKGBUILDDIR>>/build-llvm/runtimes/builtins-bins && /usr/bin/cmake --build .
ninja: build stopped: subcommand failed.

make[1]: *** [debian/rules:713: debian-full-build] Error 1

Cheers
-- 
Sebastian Ramacher



More information about the Pkg-llvm-team mailing list