Project

General

Profile

Actions

Bug #1539

closed

Build fails on OSX 10.9 with "--debug"

Added by Junxiao Shi over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
High
Category:
Base
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

./waf configure succeeds, but ./waf configure --debug fails.

config.log of failing build complains argument unused during compilation: '-fdiagnostics-color'.

monaco:ndn-cxx shijunxiao$ ./waf distclean
'distclean' finished successfully (0.005s)
monaco:ndn-cxx shijunxiao$ ./waf configure
Setting top to                           : /Users/shijunxiao/code/ndn-cxx 
Setting out to                           : /Users/shijunxiao/code/ndn-cxx/build 
Checking for 'g++' (c++ compiler)        : /usr/bin/g++ 
Checking allowed flags for c++ compiler  : -std=c++03 -pedantic -Wall -Wno-long-long -O2 -g 
Checking for program doxygen             : /opt/local/bin/doxygen 
Checking for program tar                 : /usr/bin/tar 
Checking for program sphinx-build        : not found 
Checking for program sh                  : /bin/sh 
Checking for framework CoreFoundation    : yes 
Checking for framework CoreServices      : yes 
Checking for framework Security          : yes 
Checking for OpenSSL library             : yes 
Checking for program pkg-config          : /opt/local/bin/pkg-config 
Checking for 'sqlite3'                   : yes 
Checking Crypto++ lib                    : 562 
Checking if CryptoPP library works       : yes 
Checking boost includes                  : 1.55.0 
Checking boost libs                      : ok 
Checking for boost linkage               : ok 
Checking for library pthread             : yes 
Checking for library rt                  : not found 
Checking for compiler flags ['-fPIC']    : yes 
'configure' finished successfully (1.978s)
monaco:ndn-cxx shijunxiao$ cp build/config.log ../config1.log
monaco:ndn-cxx shijunxiao$ ./waf distclean
'distclean' finished successfully (0.021s)
monaco:ndn-cxx shijunxiao$ ./waf configure --debug
Setting top to                           : /Users/shijunxiao/code/ndn-cxx 
Setting out to                           : /Users/shijunxiao/code/ndn-cxx/build 
Checking for 'g++' (c++ compiler)        : /usr/bin/g++ 
Checking allowed flags for c++ compiler  : -std=c++03 -pedantic -Wall -Wno-long-long -O0 -g3 -fcolor-diagnostics -fdiagnostics-color -Werror 
Checking for program doxygen             : /opt/local/bin/doxygen 
Checking for program tar                 : /usr/bin/tar 
Checking for program sphinx-build        : not found 
Checking for program sh                  : /bin/sh 
Checking for framework CoreFoundation    : not found 
Compiling on OSX, but CoreFoundation, CoreServices, or Security framework is not functional.
The frameworks are known to work only with Apple-specific compilers: llvm-gcc-4.2 or clang
Checking for OpenSSL library             : not found 
The configuration failed
(complete log in /Users/shijunxiao/code/ndn-cxx/build/config.log)
monaco:ndn-cxx shijunxiao$ cp build/config.log ../config2.log
monaco:ndn-cxx shijunxiao$ /usr/bin/g++ -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix

Files

config1.log (20.1 KB) config1.log config.log from ./waf configure Junxiao Shi, 04/25/2014 11:34 AM
config2.log (11.4 KB) config2.log config.log from ./waf configure --debug Junxiao Shi, 04/25/2014 11:34 AM
Actions #1

Updated by Anonymous over 10 years ago

I can't reproduce this (OS X 10.9.2). However, my compiler is newer than yours:

$ /usr/bin/g++ -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
Actions #2

Updated by Junxiao Shi over 10 years ago

  • Tracker changed from Task to Bug
Actions #3

Updated by Alex Afanasyev over 10 years ago

  • Assignee set to Alex Afanasyev

My compiler doesn't generate warnings for -fdiagnostics-color flag, so I cannot reproduce the problem as well. However, I did a small tweak that should fix the problem. If the fix works, then I will add it to NFD and other projects as well.

Actions #4

Updated by Alex Afanasyev over 10 years ago

  • Status changed from New to Code review
Actions #5

Updated by Junxiao Shi over 10 years ago

  • Status changed from Code review to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF