[SERVER-11397] clang/xcode 5.0 doesn't understand some of our options (--dd) Created: 26/Oct/13  Updated: 26/Oct/13  Resolved: 26/Oct/13

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

For example:

$ scons --mute -j 8 --dd --cc=/usr/bin/clang --cxx=/usr/bin/clang++ --cache
scons: Reading SConscript files ...
scons version: 2.3.0
python version: 2 7 5 'final' 0
Checking whether the C++ compiler works(cached) yes
Checking whether the C compiler works(cached) yes
Checking if C++ compiler "/usr/bin/clang++" is GCC... (cached) no
Checking if C++ compiler "/usr/bin/clang++" is clang... (cached) yes
Checking if C compiler "/usr/bin/clang" is clang... (cached) yes
Checking if C compiler supports -Wno-unused-local-typedefs... (cached) yes
Checking if C compiler supports -Wno-unused-function... (cached) yes
Checking if C compiler supports -Wno-unused-private-field... (cached) yes
Checking if C compiler supports -Wno-mismatched-tags... (cached) yes
Checking if C compiler supports -Wno-deprecated-declarations... (cached) yes
Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... (cached) yes
Checking if C compiler supports -Wno-unused-const-variable... (cached) yes
Checking if C compiler supports -mmacosx-version-min=10.6... (cached) yes
Checking for C header file unistd.h... (cached) yes
Checking whether clock_gettime is declared... (cached) no
Checking for C++ header file execinfo.h... (cached) yes
Checking whether backtrace is declared... (cached) yes
Checking whether backtrace_symbols is declared... (cached) yes
Checking whether backtrace_symbols_fd is declared... (cached) yes
Checking for C library pcap... (cached) yes
Checking if __malloc_hook is declared volatile... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
Compiling build/cached/mongo/db/db.o
error: unknown warning option '-Wno-unused-local-typedefs' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-unused-const-variable'; did you mean '-Wno-unused-variable'? [-Werror,-Wunknown-warning-option]
...

I think for clang we can use "-Qunused-arguments" to get the same effect we wanted with these flags.



 Comments   
Comment by Scott Hernandez (Inactive) [ 26/Oct/13 ]

Looks like this was an XCode 4->5 upgrade issue that was fixed by wiping out my ./.scons ./build dirs from my working directory. acm says this is issue with the scons cached info.

$rm -rf .scons build

Comment by Andrew Morrow (Inactive) [ 26/Oct/13 ]

Scott -

Can you post the output of the 'configure' step of that build? We should be checking for the availability of these options before trying to use them.

Generated at Thu Feb 08 03:25:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.