[llvm-bugs] [Bug 45840] New: Unable to build test-suite on Windows because of POSIX dependency
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 8 02:20:43 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45840
Bug ID: 45840
Summary: Unable to build test-suite on Windows because of POSIX
dependency
Product: Test Suite
Version: 10.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Programs Tests
Assignee: unassignedbugs at nondot.org
Reporter: dpetrov at accesssoftek.com
CC: llvm-bugs at lists.llvm.org
Created attachment 23464
--> https://bugs.llvm.org/attachment.cgi?id=23464&action=edit
test-suite build output
Current test-suite documentation https://llvm.org/docs/TestSuiteGuide.html does
not describe setup process for Windows platforms, especially from the build
step. I have tryed to fix it going down through build logs in console but new
errors were appearing. It is unable to setup environment properly now.
Mainly the reason is that the main measurement source file
"..test-suite\tools\timeit.c" depends from POSIX includes like <sys/resource.h>
My suggestions would be to rewrite `timeit.c` in a cross-platform way.
Steps top reproduce:
1. Get test-suite from GitHub according to documentation
2. Run
mkdir test-suite-build
cd test-suite-build
cmake \
-DCMAKE_C_COMPILER=<full path to llvm build>/bin/clang.exe \
-DTEST_SUITE_HOST_CC=<full path to llvm build>/bin/clang.exe \
-DCMAKE_LINKER=<full path to llvm build>/bin/lld.exe \
-C../test-suite/cmake/caches/O0.cmake
3. Run
ninja
Output (shortened):
../tools/timeit.c:15:10: fatal error: 'sys/signal.h' file not found
#include <sys/signal.h>
^~~~~~~~~~~~~~
1 error generated.
--
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/20200508/fd17b541/attachment.html>
More information about the llvm-bugs
mailing list