[llvm-bugs] [Bug 31506] New: repetition of CMAKE_CXX_FLAGS in compiler-rt/lib/sanitizer_common incompatible with -enable-newgvn option

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jan 1 08:25:37 PST 2017


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

            Bug ID: 31506
           Summary: repetition of CMAKE_CXX_FLAGS in
                    compiler-rt/lib/sanitizer_common incompatible with
                    -enable-newgvn option
           Product: new-bugs
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: howarth.mailing.lists at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Current llvm trunk with the remainder of the proposed fix for
https://llvm.org/bugs/show_bug.cgi?id=31483 applied is unable to complete a
3-stage bootstrap with '-mllvm -enable-newgvn' passed to cmake on
-DCMAKE_CXX_FLAGS due to the repetition of the CMAKE_CXX_FLAGS flags there...

[ 35%] Building CXX object
projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_libignore.cc.o
cd
/sw/src/fink.build/llvm40-4.0.0-1/build/stage2/projects/compiler-rt/lib/sanitizer_common
&& /sw/src/fink.build/llvm40-4.0.0-1/opt-bin/cc-st1-clang++  
-DHAVE_RPC_XDR_H=0 -DHAVE_TIRPC_RPC_XDR_H=0 -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I/sw/src/fink.build/llvm40-4.0.0-1/build/stage2/projects/compiler-rt/lib/sanitizer_common
-I/sw/src/fink.build/llvm40-4.0.0-1/llvm-4.0.0.src/projects/compiler-rt/lib/sanitizer_common
-I/sw/src/fink.build/llvm40-4.0.0-1/build/stage2/include
-I/sw/src/fink.build/llvm40-4.0.0-1/llvm-4.0.0.src/include  -mllvm
-enable-newgvn  -std=c++11 -stdlib=libc++ -cxx-isystem
/sw/src/fink.build/llvm40-4.0.0-1/llvm-4.0.0.src/../libcxx-4.0.0.src/include 
-L/sw/src/fink.build/llvm40-4.0.0-1/llvm-4.0.0.src/../build/last-libcxx/lib
-fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings
-Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long
-Wnon-virtual-dtor -std=c++11 -Wall -std=c++11 -O3 -DNDEBUG -arch i386 -arch
x86_64 -arch x86_64h    -mllvm -enable-newgvn  -std=c++11 -stdlib=libc++
-cxx-isystem
/sw/src/fink.build/llvm40-4.0.0-1/llvm-4.0.0.src/../libcxx-4.0.0.src/include 
-L/sw/src/fink.build/llvm40-4.0.0-1/llvm-4.0.0.src/../build/last-libcxx/lib
-fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings
-Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long
-Wnon-virtual-dtor -std=c++11 -Wall -std=c++11 -stdlib=libc++
-mmacosx-version-min=10.9 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
-fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables
-fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden
-fvisibility-inlines-hidden -fno-lto -O3 -gline-tables-only -fno-rtti -o
CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_libignore.cc.o -c
/sw/src/fink.build/llvm40-4.0.0-1/llvm-4.0.0.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_libignore.cc
clang (LLVM option parsing): for the -enable-newgvn option: may only occur zero
or one times!
make[2]: ***
[projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_allocator.cc.o]
Error 1
make[2]: *** Waiting for unfinished jobs....

-- 
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/20170101/8e981aec/attachment.html>


More information about the llvm-bugs mailing list