<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 - ninja build fails on Solaris"
href="https://bugs.llvm.org/show_bug.cgi?id=33698">33698</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ninja build fails on Solaris
</td>
</tr>
<tr>
<th>Product</th>
<td>Build scripts
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</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>cmake
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>Fedor.Sergeev@oracle.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>There is unconditional use of linker option -Wl,-color-diagnostics in llvm
makefiles, which leads to the following failure during ninja-driven build:
[677/1340] Linking CXX shared module lib/LLVMHello.so
FAILED: lib/LLVMHello.so
: && /net/dv104/export/tools/gcc/5.4.0/sparc-S2/bin/g++ -fPIC -m64 -fPIC
-fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment
-ffunction-sections -fdata-sections -O3 -DNDEBUG -m64
-Wl,-R/net/dv104/export/tools/gcc/5.4.0/sparc-S2/lib/sparcv9
-Wl,-color-diagnostics -Wl,-z -Wl,discard-unused=sections
-Wl,-M,/export/home/fsergeev/llvm-build/sparc-50/lib/Transforms/Hello/LLVMHello.exports
-shared -o lib/LLVMHello.so
lib/Transforms/Hello/CMakeFiles/LLVMHello.dir/Hello.cpp.o
-Wl,-R"\$ORIGIN/../lib" && :
ld: fatal: option '-color-diagnostics' is only available when building a
dynamic object with an interpretor
collect2: error: ld returned 1 exit status</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>