Re: [AMBER] Compilation problems for parallel build after applying patches

From: Miguel Ortiz Lombardia <miguel.ortiz-lombardia.afmb.univ-mrs.fr>
Date: Tue, 12 Feb 2013 20:50:28 +0100

El 12/02/13 18:20, Jason Swails escribió:
> Weird. I'm going to guess there is a libnetcdf.a (and probably
> libnetcdff.a) in /usr/lib64, /usr/lib or something like that (maybe
> /opt/local/lib?) (which were probably built with the GNU compilers?) I'm
> guessing it's trying to link that library instead of the one in
> $AMBERHOME/lib.
>
> Try modifying the config.h file and replace
>
> -L$(BASEDIR)/lib -lnetcdf
>
> with
>
> $(BASEDIR)/lib/libnetcdf.a
>
> This should appear in two places in the config.h file: the NETCDFLIB
> variable and the FLIBS variable. This should _force_ the linker to use the
> AMBER NetCDF library (which you've just shown has the necessary symbols).
>
> Good luck,
> Jason
>
> 2013/2/12 Miguel Ortiz Lombardía <miguel.ortiz-lombardia.afmb.univ-mrs.fr>
>
>> Le 12/02/13 17:29, Jason Swails a écrit :
>>> nm $AMBERHOME/lib/libnetcdf.a | grep netcdf_mp_nf90_def_dim_
>> 0000000000000330 T _netcdf_mp_nf90_def_dim_
>> 000000000005d900 S _netcdf_mp_nf90_def_dim_.eh
>>
>>
>> --
>> Miguel Ortiz Lombardía
>>
>> Architecture et Fonction des Macromolécules Biologiques (UMR7257)
>> CNRS, Aix-Marseille Université
>> Case 932, 163 Avenue de Luminy, 13288 Marseille cedex 9, France
>> Tel: +33(0) 491 82 55 93
>> Fax: +33(0) 491 26 67 20
>> mailto:miguel.ortiz-lombardia.afmb.univ-mrs.fr
>> http://www.afmb.univ-mrs.fr/Miguel-Ortiz-Lombardia
>>
>> _______________________________________________
>> AMBER mailing list
>> AMBER.ambermd.org
>> http://lists.ambermd.org/mailman/listinfo/amber
>>
>
>
>

Spot on, Jason!
Indeed, I installed recently a software that I could only compile with
the gnu compilers and that required a certain version of NetCDF.

The modifications in the config.h file that you suggested did the trick
and the parallel installation ended without errors.

Thanks a lot!
Cheers,

-- 
Miguel Ortiz Lombardía
Architecture et Fonction des Macromolécules Biologiques (UMR7257)
CNRS, Aix-Marseille Université
Case 932, 163 Avenue de Luminy, 13288 Marseille cedex 9, France
Tel: +33(0) 491 82 55 93
Fax: +33(0) 491 26 67 20
mailto:miguel.ortiz-lombardia.afmb.univ-mrs.fr
http://www.afmb.univ-mrs.fr/Miguel-Ortiz-Lombardia
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Tue Feb 12 2013 - 12:00:02 PST
Custom Search