<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Compilation master (691eb814c1ae38d5015bf070dfed3fd54d542582 ) on Cygwin"
href="https://bugs.llvm.org/show_bug.cgi?id=47914">47914</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Compilation master (691eb814c1ae38d5015bf070dfed3fd54d542582 ) on Cygwin
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>albert.tests@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>