[llvm-bugs] [Bug 33698] New: ninja build fails on Solaris

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jul 6 07:32:17 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33698

            Bug ID: 33698
           Summary: ninja build fails on Solaris
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: Fedor.Sergeev at oracle.com
                CC: llvm-bugs at lists.llvm.org

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

-- 
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/20170706/bb953ad1/attachment.html>


More information about the llvm-bugs mailing list