http://llvm.org/bugs/show_bug.cgi?id=15761
Bug ID: 15761
Summary: missing trailing space in EXTRA_FLAGS prevents libc++
from compiling
Product: libc++
Version: 3.2
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: release blocker
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
There is a missing space at the end of the EXTRA_FLAGS variable inside the
buildit script that prevents libc++ from compiling. Currently:
EXTRA_FLAGS="-std=c++0x -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion \
-Wnewline-eof -Wpadded -Wmissing-prototypes -Wstrict-aliasing=2 \
-Wstrict-overflow=4"
Produces the following error in MacOS:
+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-c -g -Os -arch i386 -arch x86_64 -std=c++0x -fstrict-aliasing -Wall -Wextra
-Wshadow -Wconversion -Wnewline-eof -Wpadded -Wmissing-prototypes
-Wstrict-aliasing=2 -Wstrict-overflow=4-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/
-nostdinc++ -I../include ../src/algorithm.cpp
clang: warning: unknown warning option '-Wstrict-overflow=4-isysroot'; did you
mean '-Wshift-overflow'?
clang: warning:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/:
'linker' input unused
warning: unknown warning option '-Wstrict-overflow=4-isysroot'; did you mean
'-Wshift-overflow'? [-Wunknown-warning-option]
As you see there is a missing space between -Wstrict-overflow=4 and -isysroot.
This can be fixed by just appending an extra space:
EXTRA_FLAGS="-std=c++0x -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion \
-Wnewline-eof -Wpadded -Wmissing-prototypes -Wstrict-aliasing=2 \
-Wstrict-overflow=4 "
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs