[llvm-bugs] [Bug 47914] New: Compilation master (691eb814c1ae38d5015bf070dfed3fd54d542582 ) on Cygwin
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Oct 20 03:53:47 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47914
Bug ID: 47914
Summary: Compilation master
(691eb814c1ae38d5015bf070dfed3fd54d542582 ) on Cygwin
Product: new-bugs
Version: trunk
Hardware: PC
OS: other
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: albert.tests at gmail.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
I tried to compile the master version (691eb814c1ae38d5015bf070dfed3fd54d542582
) on Cygwin with GCC 9.3.0 and got the error:
[ 0%] Building CXX object
lib/Support/CMakeFiles/LLVMSupport.dir/CrashRecoveryContext.cpp.o
/cygdrive/e/Programs/LLVM/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:348:25:
error: elements of array ‘sigaction PrevActions [6]’ have incomplete type
348 | static struct sigaction PrevActions[NumSignals];
| ^~~~~~~~~~~
/cygdrive/e/Programs/LLVM/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:348:25:
error: storage size of ‘PrevActions’ isn’t known
/cygdrive/e/Programs/LLVM/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:
In function ‘void CrashRecoverySignalHandler(int)’:
/cygdrive/e/Programs/LLVM/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:374:3:
error: ‘sigemptyset’ was not declared in this scope
374 | sigemptyset(&SigMask);
| ^~~~~~~~~~~
/cygdrive/e/Programs/LLVM/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:375:3:
error: ‘sigaddset’ was not declared in this scope
375 | sigaddset(&SigMask, Signal);
| ^~~~~~~~~
/cygdrive/e/Programs/LLVM/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:376:15:
error: ‘SIG_UNBLOCK’ was not declared in this scope
376 | sigprocmask(SIG_UNBLOCK, &SigMask, nullptr);
| ^~~~~~~~~~~
/cygdrive/e/Programs/LLVM/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:376:3:
error: ‘sigprocmask’ was not declared in this scope
376 | sigprocmask(SIG_UNBLOCK, &SigMask, nullptr);
| ^~~~~~~~~~~
/cygdrive/e/Programs/LLVM/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:
In function ‘void installExceptionOrSignalHandlers()’:
/cygdrive/e/Programs/LLVM/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:393:20:
error: aggregate ‘sigaction Handler’ has incomplete type and cannot be defined
393 | struct sigaction Handler;
| ^~~~~~~
/cygdrive/e/Programs/LLVM/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:396:3:
error: ‘sigemptyset’ was not declared in this scope
396 | sigemptyset(&Handler.sa_mask);
| ^~~~~~~~~~~
/cygdrive/e/Programs/LLVM/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:399:52:
error: invalid use of incomplete type ‘struct sigaction’
399 | sigaction(Signals[i], &Handler, &PrevActions[i]);
| ^
/cygdrive/e/Programs/LLVM/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:348:15:
note: forward declaration of ‘struct sigaction’
348 | static struct sigaction PrevActions[NumSignals];
| ^~~~~~~~~
/cygdrive/e/Programs/LLVM/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:
In function ‘void uninstallExceptionOrSignalHandlers()’:
/cygdrive/e/Programs/LLVM/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:406:51:
error: invalid use of incomplete type ‘struct sigaction’
406 | sigaction(Signals[i], &PrevActions[i], nullptr);
| ^
/cygdrive/e/Programs/LLVM/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:348:15:
note: forward declaration of ‘struct sigaction’
348 | static struct sigaction PrevActions[NumSignals];
| ^~~~~~~~~
make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/build.make:460:
lib/Support/CMakeFiles/LLVMSupport.dir/CrashRecoveryContext.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:14907:
lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
make: *** [Makefile:172: all] Error 2
--
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/20201020/27512e03/attachment-0001.html>
More information about the llvm-bugs
mailing list