It looks as though the configuration went okay, no errors occurred. Then, when I try and ./run_cmake again it runs into the same error. My gfortran is not above version.
Best,
WS
> On Jul 29, 2020, at 3:50 PM, Gustaf Olsson <gustaf.olsson.lnu.se> wrote:
>
> So, just make sure you have the right compilers:
>
>
> ~ which gcc
>
> /usr/bin/gcc
>
> ~ gcc --version
>
> ...
>
> Apple clang version 11.0.3 (clang-1103.0.32.62)
>
> ...
>
> ~ clang --version
>
> ...
>
> Apple clang version 11.0.3 (clang-1103.0.32.62)
>
> ...
>
> Meaning that /usr/bin/gcc is a symlink to /usr/bin/clang (they are the same)
>
> ~ which gfortran
> /usr/local/bin/gfortran
> ~ gfortran --version
> GNU Fortran (Homebrew GCC 10.1.0) 10.1.0
>
> I have not managed to compile amber using any version of gcc higher then 7, this is why I switch to gcc7 or lower. So for you I hope that the output is 7.X.X or lower.
>
> If these things are correct, you should go to "/path/to/amber20_src/" and try to do a "./configure -macAccelerate clang" and see what happens.
>
> Best regards
> // Gustaf
>
> ________________________________
> Från: Walton Smith <smit7450.mylaurier.ca>
> Skickat: den 29 juli 2020 16:26:19
> Till: AMBER Mailing List
> Ämne: Re: [AMBER] Error building Amber
>
> When I try and run the legacy build it gives me this error: ERROR:
>
> Wrong compiler. You specify compiler=gnu but actually using clang
> Please change compiler option to clang, or set correct PATH (or CC, CXX) to GNU compiler
>
> I thought that I fixed the compiler issue and set the correct path. Again, I’m a huge noob when it comes to using terminal. Maybe this will give you more insight into the issue?
>
> WS
>
>
>> On Jul 29, 2020, at 7:58 AM, Gustaf Olsson <gustaf.olsson.lnu.se> wrote:
>>
>> 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 <david.case.rutgers.edu>
>> 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.
>>
>> ....dac
>>
>>
>> _______________________________________________
>> AMBER mailing list
>> AMBER.ambermd.org
>> http://lists.ambermd.org/mailman/listinfo/amber
>> _______________________________________________
>> AMBER mailing list
>> AMBER.ambermd.org
>> http://lists.ambermd.org/mailman/listinfo/amber
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Wed Jul 29 2020 - 17:30:02 PDT