[odb-users] Build libodb on OS X (Solved)

Sverre Eplov sverre at awion.dk
Thu Feb 4 11:45:21 EST 2016


I should have mentioned that in my post, but I already tried that while attempting to get the configure systems check to work - the output when doing './configure CXX=clang++" is:



....

checking for -force_load linker flag... yes

checking how to run the C preprocessor... /usr/bin/clang++

configure: error: in `/Users/sverre/tmp/package-1.1.0':

configure: error: C preprocessor "/usr/bin/clang++" fails sanity check

See `config.log' for more details

....




So without the specific specifications for the CC compiler and preprocessor, the configure script attempts to use the C++ compiler to check for C preprossor, and does a full compile (which chokes on the "Syntax Error" in the file to be compiled). 



Btw, I've managed to compile the libraries from GIT using clang, now I need to recompile odb using GCC - the binary download of odb 2.4.0 won't work with the libraries compiled from GIT. (Version mismatch). I need to work out an efficent way to recompile and install all libraries using clang, and then how to compile odb with GCC. It's libcutl I need to figure out how to compile and link to odb with GCC, even though the one installed on the system is compiled with clang. 



br,

 /Sverre

>> Hi Sverre,
>> 
>> Sverre Eplov <sverre at awion.dk> writes:
>> 
>> > ./configure CC=clang CPP=‘clang -E’
>> 
>> I bet if you just specified CXX=clang++ (there are no C files in libodb,
>> only C++, so setting CC doesn't change anything) and let configure
>> decide which preprocessor to use automatically, everything would have
>> worked fine. Sometimes less is really more ;-).
>> 
>> Boris


More information about the odb-users mailing list