Re: [AMBER] Error building Amber

From: Gustaf Olsson <>
Date: Wed, 29 Jul 2020 11:58:32 +0000

I had conflicting headers as I had not restarted my computer after the Xcode update, this resolved the stdio.h issue.

However, when I try to use the cmake configure script now I also fail with an error:

    ld: unknown option: --no-as-needed
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [cmTC_99500] Error 1
    make: *** [cmTC_99500/fast] Error 2

I am not sure that the OSX linker supports the "no-as-needed" option.

This fails with both gcc7 and 10. The "legacy" configure script finishes though I have not yet had time to see if the build succeeds.

// Gustaf

Från: David A Case <>
Skickat: den 29 juli 2020 05:17:05
Till: AMBER Mailing List
Ämne: Re: [AMBER] Error building Amber

>On Tue, Jul 28, 2020, Walton Smith wrote:
>>I have a libbz2.1.0.tbd file but no libbz2.dylib file in /usr/lib. My
>>version of Xcode is version 11.6.

Quick update: I've upgraded to XCode 11.6, and OSX 10.15.6. I don't see any
.tbd files in /usr/lib, just .dylib files.

Amber installation using cmake runs fine for me.

So, one needs to figure out how it is you don't have libbz2.dylib (and, I'm
assuming, other *.dylib files) in /usr/lib. I use a mac, but am no OSX guru
by any means. I don't see any obvious hits on Google. We'll see if any other
OSX user on the list reports a configuration like yours.


AMBER mailing list
AMBER mailing list
Received on Wed Jul 29 2020 - 05:00:03 PDT
Custom Search