Re: [AMBER] Compiling CPPTRAJ from GitHub

From: Daniel Roe <daniel.r.roe.gmail.com>
Date: Mon, 5 Oct 2020 10:07:46 -0400

Hi,

Did you compile Amber with configure or cmake? What options did you
use for either case?

Can GitHub cpptraj compile on its own (i.e. without the '-amberlib' flag)?

I'm trying to reproduce on my end at the moment

-Dan

On Mon, Oct 5, 2020 at 3:09 AM Gustaf Olsson <gustaf.olsson.lnu.se> wrote:
>
> Currently I am running macOS Mojave (10.14.6). There are some applications I which are still not fully supported so I am holding off of updating the OS.
>
> Using gnu/clang basically produces the same error:
>
>
>
> GNU
>
> Checking sanderlib: dyld: Library not loaded: @rpath/libsander.dylib
> Referenced from: /cpptraj.clone/./testp
> Reason: image not found
> ./configure: line 360: 3955 Abort trap: 6 ./testp > prog.out
>
> Error: Run of test program failed, compiled with: mpicxx -Wall -O3 -std=gnu++11 -I/amber20//include -o testp testp.cpp /amber20//lib/libsander.dylib
>
>
>
> CLANG
>
> Checking for sanderlib: dyld: Library not loaded: .rpath/libsander.dylib
> Referenced from: /cpptraj.clone/./testp
> Reason: image not found
> ./configure: line 360: 4332 Abort trap: 6 ./testp > prog.out
>
> Error: Run of test program failed, compiled with: clang++ -Wall -O3 -std=c++11 -I/amber20/include -o testp testp.cpp /amber20/lib/libsander.dylib
>
>
>
> Using -amberlib in combination with clang produces a similar library error, though this time with netcdf:
>
> Checking NetCDF: dyld: Library not loaded: @rpath/libnetcdf.13.dylib
> Referenced from: /cpptraj.clone/./testp
> Reason: image not found
> ./configure: line 360: 4533 Abort trap: 6 ./testp > prog.out
>
> Error: Run of test program failed, compiled with: clang++ -Wall -O3 -std=c++11 -I/amber20/include -o testp testp.cpp -L/amber20/lib -lnetcdf
>
>
>
> I do seem to have an empty DYLD_LIBRARY_PATH, where should this be pointing to get the correct includes? I have tried using the optional library flag: -sanderlib --with-sanderlib=/amber20/ without success (meaning I still get the sander library not being loaded).
>
> I have run the “c++” commands as they are as well as verbose though I see no errors or warnings, the only thing I see which could be any indication of a problem are these lines:
>
> ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1"
> ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/local/include"
> ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks"
>
> Maybe this is a OS version thing? I still think it is strange as commands seemingly executes without any errors when run manually and all the paths presented seems to point to the correct locations where there library files are located.
>
> Best regards
> // Gustaf
>
>
> > On 2 Oct 2020, at 17:41, Daniel Roe <daniel.r.roe.gmail.com> wrote:
> >
> > Hi,
> >
> > The error indicates that it was the running of the test program that
> > failed, i.e. the compile was successful. Is maybe DYLD_LIBRARY_PATH
> > not properly set? I admit I don't really ever run on Macs so this one
> > may be tough to debug for me. What OSX version are you using?
> >
> > -Dan
> >
> > On Fri, Oct 2, 2020 at 11:34 AM David A Case <david.case.rutgers.edu> wrote:
> >>
> >> On Fri, Oct 02, 2020, Gustaf Olsson wrote:
> >>
> >>> Error: Run of test program failed, compiled with: clang++ -Wall
> >>> -O3 -std=c++11 -I/Users/xxx/amber20/include -o testp testp.cpp
> >>> -L/Users/xxx/amber20/lib -lnetcdf
> >>
> >> Have you tried to run the command above by hand? Maybe the error message is
> >> getting lost somewhere. It would be most helpful to know if the error
> >> happens at the compile step or at the ld step.
> >>
> >> ....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
Received on Mon Oct 05 2020 - 07:30:03 PDT
Custom Search