[llvm-bugs] [Bug 48568] New: fatal error: 'sys/sysctl.h' file not found
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Dec 21 12:27:45 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48568
Bug ID: 48568
Summary: fatal error: 'sys/sysctl.h' file not found
Product: Test Suite
Version: 11.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Programs Tests
Assignee: unassignedbugs at nondot.org
Reporter: nnelson at infowest.com
CC: llvm-bugs at lists.llvm.org
Ubuntu 20.10
After 11.0.1 rc2 test run
cd ~/Documents/llvm-project/llvm/utils/release/rc2/
tar xf clang+llvm-11.0.1-rc2-x86_64-linux-gnu-ubuntu-20.10.tar.xz
cd test-suite-build
export
CC=/home/nnelson/Documents/llvm-project/llvm/utils/release/rc2/clang+llvm-11.0.1-rc2-x86_64-linux-gnu-ubuntu-20.10/bin/clang
export
CXX=/home/nnelson/Documents/llvm-project/llvm/utils/release/rc2/clang+llvm-11.0.1-rc2-x86_64-linux-gnu-ubuntu-20.10/bin/clang++
cmake
-DCMAKE_C_COMPILER=/home/nnelson/Documents/llvm-project/llvm/utils/release/rc2/clang+llvm-11.0.1-rc2-x86_64-linux-gnu-ubuntu-20.10/bin/clang
\
-C../llvm-test-suite/cmake/caches/O3.cmake \
../llvm-test-suite &> cmake_final.log
make -j 31 > make.log
/usr/bin/ld: CMakeFiles/mybison.dir/files.c.o: in function `openfiles':
files.c:(.text+0x947): warning: the use of `mktemp' is dangerous, better use
`mkstemp' or `mkdtemp'
/usr/bin/ld: CMakeFiles/unix-smail.dir/deliver.c.o: in function `deliver':
deliver.c:(.text+0x153): warning: the use of `mktemp' is dangerous, better use
`mkstemp' or `mkdtemp'
/usr/bin/ld: CMakeFiles/PathFinder.dir/main.c.o: in function
`runInteractively':
main.c:(.text+0x508): warning: the `gets' function is dangerous and should not
be used.
/usr/bin/ld: CMakeFiles/office-ispell.dir/ispell.c.o: in function `main':
ispell.c:(.text+0xbbc): warning: the use of `mktemp' is dangerous, better use
`mkstemp' or `mkdtemp'
/home/nnelson/Documents/llvm-project/llvm/utils/release/rc2/llvm-test-suite/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/memstats.c:60:10:
fatal error: 'sys/sysctl.h' file not found
#include <sys/sysctl.h>
^~~~~~~~~~~~~~
1 error generated.
make[2]: ***
[MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/CMakeFiles/CLAMR.dir/build.make:362:
MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/CMakeFiles/CLAMR.dir/memstats.c.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:33683:
MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/CMakeFiles/CLAMR.dir/all] Error
2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:130: all] Error 2
tail of make.log
[ 36%] Built target tramp3d-v4
make[1]: Leaving directory
'/home/nnelson/Documents/llvm-project/llvm/utils/release/rc2/test-suite-build'
>From Khem Raj <raj.khem at gmail.com> in an email to llvm-dev.
Since 5.5 release Linux has dropped sysctl syscall see
https://github.com/torvalds/linux/commit/61a47c1ad3a4dc6882f01ebdc88138ac62d0df03
and subsequently, glibc also dropped the sys/sysctl.h header and
sysctl function. So perhaps tests need to cater for that
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201221/2fc81c75/attachment.html>
More information about the llvm-bugs
mailing list