Announcement

Collapse
No announcement yet.

pts/build-llvm 1.2.0 failing on Windows 10

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • pts/build-llvm 1.2.0 failing on Windows 10

    Hi,

    I'm getting the following build errors when benchmarking v1.2.0 of pts/build-llvm on Windows 10:

    Code:
    /cygdrive/d/pts/build-llvm-1.2.0/llvm-10.0.0.src/lib/Support/CrashRecoveryContext.cpp:343:25: error: elements of array ‘sigaction PrevActions [6]’ have incomplete type
    343 | static struct sigaction PrevActions[NumSignals];
    | ^~~~~~~~~~~
    /cygdrive/d/pts/build-llvm-1.2.0/llvm-10.0.0.src/lib/Support/CrashRecoveryContext.cpp:343:25: error: storage size of ‘PrevActions’ isn’t known
    /cygdrive/d/pts/build-llvm-1.2.0/llvm-10.0.0.src/lib/Support/CrashRecoveryContext.cpp: In function ‘void CrashRecoverySignalHandler(int)’:
    /cygdrive/d/pts/build-llvm-1.2.0/llvm-10.0.0.src/lib/Support/CrashRecoveryContext.cpp:369:3: error: ‘sigemptyset’ was not declared in this scope
    369 | sigemptyset(&SigMask);
    | ^~~~~~~~~~~
    /cygdrive/d/pts/build-llvm-1.2.0/llvm-10.0.0.src/lib/Support/CrashRecoveryContext.cpp:370:3: error: ‘sigaddset’ was not declared in this scope
    370 | sigaddset(&SigMask, Signal);
    | ^~~~~~~~~
    /cygdrive/d/pts/build-llvm-1.2.0/llvm-10.0.0.src/lib/Support/CrashRecoveryContext.cpp:371:15: error: ‘SIG_UNBLOCK’ was not declared in this scope
    371 | sigprocmask(SIG_UNBLOCK, &SigMask, nullptr);
    | ^~~~~~~~~~~
    /cygdrive/d/pts/build-llvm-1.2.0/llvm-10.0.0.src/lib/Support/CrashRecoveryContext.cpp:371:3: error: ‘sigprocmask’ was not declared in this scope
    371 | sigprocmask(SIG_UNBLOCK, &SigMask, nullptr);
    | ^~~~~~~~~~~
    /cygdrive/d/pts/build-llvm-1.2.0/llvm-10.0.0.src/lib/Support/CrashRecoveryContext.cpp: In function ‘void installExceptionOrSignalHandlers()’:
    /cygdrive/d/pts/build-llvm-1.2.0/llvm-10.0.0.src/lib/Support/CrashRecoveryContext.cpp:387:20: error: aggregate ‘sigaction Handler’ has incomplete type and cannot be defined
    387 | struct sigaction Handler;
    | ^~~~~~~
    [ 5%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/FormattedStream.cpp.o
    /cygdrive/d/pts/build-llvm-1.2.0/llvm-10.0.0.src/lib/Support/CrashRecoveryContext.cpp:390:3: error: ‘sigemptyset’ was not declared in this scope
    390 | sigemptyset(&Handler.sa_mask);
    | ^~~~~~~~~~~
    /cygdrive/d/pts/build-llvm-1.2.0/llvm-10.0.0.src/lib/Support/CrashRecoveryContext.cpp:393:52: error: invalid use of incomplete type ‘struct sigaction’
    393 | sigaction(Signals[i], &Handler, &PrevActions[i]);
    | ^
    /cygdrive/d/pts/build-llvm-1.2.0/llvm-10.0.0.src/lib/Support/CrashRecoveryContext.cpp:343:15: note: forward declaration of ‘struct sigaction’
    343 | static struct sigaction PrevActions[NumSignals];
    | ^~~~~~~~~
    /cygdrive/d/pts/build-llvm-1.2.0/llvm-10.0.0.src/lib/Support/CrashRecoveryContext.cpp: In function ‘void uninstallExceptionOrSignalHandlers()’:
    /cygdrive/d/pts/build-llvm-1.2.0/llvm-10.0.0.src/lib/Support/CrashRecoveryContext.cpp:400:51: error: invalid use of incomplete type ‘struct sigaction’
    400 | sigaction(Signals[i], &PrevActions[i], nullptr);
    | ^
    /cygdrive/d/pts/build-llvm-1.2.0/llvm-10.0.0.src/lib/Support/CrashRecoveryContext.cpp:343:15: note: forward declaration of ‘struct sigaction’
    343 | static struct sigaction PrevActions[NumSignals];
    | ^~~~~~~~~
    make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/build.make:427: lib/Support/CMakeFiles/LLVMSupport.dir/CrashRecoveryContext.cpp.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    [ 5%] Linking CXX static library ../../../lib/libbenchmark.a
    [ 5%] Built target benchmark
    Scanning dependencies of target benchmark_main
    [ 5%] Building CXX object utils/benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o
    [ 5%] Linking CXX static library ../../../lib/libbenchmark_main.a
    [ 5%] Built target benchmark_main
    make[1]: *** [CMakeFiles/Makefile2:1131: lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    [ 5%] Built target obj.llvm-tblgen
    make: *** [Makefile:152: all] Error 2
    
    The test quit with a non-zero exit status.
    
    
    Running Post-Test Script
    
    
    The following tests failed to properly run:
    
    - pts/build-llvm-1.2.0
    I reverted to v1.1.0 which works fine.

  • #2
    Transposed to GitHub issue, you may delete this thread.

    Comment

    Working...
    X