[LLVMbugs] [Bug 19120] New: '-stdlib=libc++' unused during compilation

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 12 16:15:53 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19120

            Bug ID: 19120
           Summary: '-stdlib=libc++' unused during compilation
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: oroppas at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

LLVM_ENABLE_LIBCXX:BOOL=ON appends '-stdlib=libc++' to CMAKE_CXX_FLAGS,
CMAKE_EXE_LINKER_FLAGS, CMAKE_SHARED_LINKER_FLAGS, and
CMAKE_MODULE_LINKER_FLAGS, however, the flag conflict with '-nostdinc++' used
during the build process of libcxx:

/usr/bin/clang++   -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dcxx_EXPORTS -march=native
-mtune=native -flto -pipe -fstack-protector --param=ssp-buffer-size=4 
-stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter
-Wwrite-strings -Wmissing-field-initializers -pedantic -Wno-long-long
-Wcovered-switch-default -Wnon-virtual-dtor -std=c++11 -fcolor-diagnostics
-ffunction-sections -fdata-sections -nostdinc++ -Werror=return-type -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error -pedantic  -O3
-DNDEBUG -fPIC -Iprojects/libcxx/lib
-I/home/ryuta/devel/llvm/src/llvm/projects/libcxx/lib -Iinclude
-I/home/ryuta/devel/llvm/src/llvm/include
-I/home/ryuta/devel/llvm/src/llvm/projects/libcxx/include    -Werror -fPIC -MMD
-MT projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/utility.cpp.o -MF
"projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/utility.cpp.o.d" -o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/utility.cpp.o -c
/home/ryuta/devel/llvm/src/llvm/projects/libcxx/src/utility.cpp

clang-3.5: warning: argument unused during compilation: '-stdlib=libc++'

We can either set '-stdlib=libc++' a bit more carefully on llvm/cmake side or
remove this particular flag later on libcxx/cmake side.

-- 
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/20140312/6a986ccc/attachment.html>


More information about the llvm-bugs mailing list