stcorp / coda

The Common Data Access toolset
http://stcorp.github.io/coda/doc/html/index.html
BSD 3-Clause "New" or "Revised" License
39 stars 17 forks source link

Problem when installing coda 2.21 with ./configure on MacOS 10.14.6 #41

Closed quitcaz closed 5 years ago

quitcaz commented 5 years ago

Installation process with ./configure breaks down with error : "checking the archiver (ar) interface... unknown configure: error: could not determine ar interface"

svniemeijer commented 5 years ago

Can you please provide the config.log file that was generated?

And can you let me know what you get on the command line if you run ar?

quitcaz commented 5 years ago

config.log

if I run ar (for example ar -r arch_test file1.txt file2.txt) : it says: 'creating archive arch_test'

svniemeijer commented 5 years ago

The log file complains with the following:

configure:4666: ar cru libconftest.a conftest.o >&5
/opt/local/bin/ranlib: object: libconftest.a(conftest.o) malformed object (unknown load command 1)
ar: internal ranlib command failed

I am not sure what is going on (I am also building CODA on macOS 10.14.6 and without problems).

I assume you are using MacPorts (due to the /opt/local paths)? But this is something I am also using myself, so that is probably not the problem.

Could you maybe check that the ranlib tool on your system works correctly? For me this is in /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib, but yours is likely at /Library/Developer/CommandLineTools/usr/bin/ranlib.

Is your MacPorts and Xcode up-to-date?

svniemeijer commented 5 years ago

(what I forget to add, is to check your system ranlib, by removing/disabling the ranlib from /opt/local/bin)

quitcaz commented 5 years ago

OK thanks I tried to run macport and it said there was a platform mismatch so I'll start with that...

svniemeijer commented 5 years ago

Closing issue as there was no further feedback.