Re: [AMBER] compilation error: /usr/bin/ld: cannot find -lStatistics

From: Su, Shiquan <ssu2.utk.edu>
Date: Sat, 6 Jul 2013 00:12:38 +0000

Dear Jason:
No, there is no libStatistics.a file in your $AMBERHOME/lib folder.
I can find the libStatistics.a in the following folder, it looks normal comparing to other library:
[shiquan1.kfslogin1 Statistics]$ ls
BaseStats_boost.cpp libStatistics.la ols.lo pls.cpp sheet.lo
BaseStats_boost.h Makefile ols.o pls.h sheet.o
BaseStats.cpp Makefile.am pca.cpp pls.lo table_boost.h
BaseStats.h Makefile.in pca.h pls.o table.h
BaseStats.lo ols.cpp pca.lo sheet.cpp
BaseStats.o ols.h pca.o sheet.h
[shiquan1.kfslogin1 Statistics]$ cd .libs
[shiquan1.kfslogin1 .libs]$ pwd
/nics/e/sw/keeneland-centos6.2/amber/12/centos6.2_gnu4.4.6_sandybridge/amber12/AmberTools/src/mtkpp/src/Statistics/.libs
[shiquan1.kfslogin1 .libs]$ ls
libStatistics.a libStatistics.la libStatistics.lai
[shiquan1.kfslogin1 .libs]$

However, when I look at the following libtool link line carefully, I see something strange, the paths after -L all end with /amber12, which don't exist in the system at all! For example:
-L/sw/kfs/amber/12/centos6.2_gnu4.4.6_sandybridge/amber12/AmberTools/src/mtkpp/src/Molecule/amber12
-L/sw/kfs/amber/12/centos6.2_gnu4.4.6_sandybridge/amber12/AmberTools/src/mtkpp/src/Statistics/amber12

[shiquan1.kfslogin1 mtkpp]$ ls /sw/kfs/amber/12/centos6.2_gnu4.4.6_sandybridge/amber12/AmberTools/src/mtkpp/src/Molecule/amber12
ls: cannot access /sw/kfs/amber/12/centos6.2_gnu4.4.6_sandybridge/amber12/AmberTools/src/mtkpp/src/Molecule/amber12: No such file or directory
[shiquan1.kfslogin1 mtkpp]$ ls /sw/kfs/amber/12/centos6.2_gnu4.4.6_sandybridge/amber12/AmberTools/src/mtkpp/src/Statistics/amber12
ls: cannot access /sw/kfs/amber/12/centos6.2_gnu4.4.6_sandybridge/amber12/AmberTools/src/mtkpp/src/Statistics/amber12: No such file or directory
[shiquan1.kfslogin1 mtkpp]$ ls /sw/kfs/amber/12/centos6.2_gnu4.4.6_sandybridge/amber12/AmberTools/src/mtkpp/src/Statistics/
BaseStats_boost.cpp libStatistics.la ols.lo pls.cpp sheet.lo
BaseStats_boost.h Makefile ols.o pls.h sheet.o
BaseStats.cpp Makefile.am pca.cpp pls.lo table_boost.h
BaseStats.h Makefile.in pca.h pls.o table.h
BaseStats.lo ols.cpp pca.lo sheet.cpp
BaseStats.o ols.h pca.o sheet.h
[shiquan1.kfslogin1 mtkpp]$

I suspect somethings propagate incorrectly to generate the wrong paths into the Makefile under:
/nics/e/sw/keeneland-centos6.2/amber/12/centos6.2_gnu4.4.6_sandybridge/amber12/AmberTools/src/mtkpp/tools


libtool: link: g++ -DNDEBUG -DUSE_TINYXML -DTIXML_USE_STL -DC99_OK -O2
-fPIC -DHAVE_ZLIB -o MTKppConstants MTKppConstants.o
-L/sw/kfs/amber/12/centos6.2_gnu4.4.6_snadybridge/amber12/AmberTools/src/mtkpp/src/Diagnostics
-L../src/Molecule -L../src/Log -L../src/Graph -L../src/GA -L../src/Parsers
-L../src/tinyxml
/sw/kfs/amber/12/centos6.2_gnu4.4.6_snadybridge/amber12/AmberTools/src/mtkpp/src/Molecule/.libs/libMolecule.a
-L/sw/kfs/amber/12/centos6.2_gnu4.4.6_snadybridge/amber12/AmberTools/src/mtkpp/src/Graph/amber12
-L/sw/kfs/amber/12/centos6.2_gnu4.4.6_snadybridge/amber12/AmberTools/src/mtkpp/src/Log/amber12
-L/sw/kfs/amber/12/centos6.2_gnu4.4.6_snadybridge/amber12/AmberTools/src/mtkpp/src/Diagnostics/amber12
/sw/kfs/amber/12/centos6.2_gnu4.4.6_snadybridge/amber12/AmberTools/src/mtkpp/src/Log/.libs/libLog.a
/sw/kfs/amber/12/centos6.2_gnu4.4.6_snadybridge/amber12/AmberTools/src/mtkpp/src/Graph/.libs/libGraph.a
/sw/kfs/amber/12/centos6.2_gnu4.4.6_snadybridge/amber12/AmberTools/src/mtkpp/src/GA/.libs/libGA.a
/sw/kfs/amber/12/centos6.2_gnu4.4.6_snadybridge/amber12/AmberTools/src/mtkpp/src/Parsers/.libs/libParsers.a
-L/sw/kfs/amber/12/centos6.2_gnu4.4.6_snadybridge/amber12/AmberTools/src/mtkpp/src/Molecule/amber12
-L/sw/kfs/amber/12/centos6.2_gnu4.4.6_snadybridge/amber12/AmberTools/src/mtkpp/src/Statistics/amber12
-L/sw/kfs/amber/12/centos6.2_gnu4.4.6_snadybridge/amber12/AmberTools/src/mtkpp/src/GA/amber12
-L/sw/kfs/amber/12/centos6.2_gnu4.4.6_snadybridge/amber12/AmberTools/src/mtkpp/src/tinyxml/amber12
../src/Molecule/.libs/libMolecule.a ../src/Graph/.libs/libGraph.a
/sw/kfs/amber/12/centos6.2_gnu4.4.6_snadybridge/amber12/AmberTools/src/mtkpp/src/Diagnostics/.libs/libDiagnostics.a
-lz -lStatistics ../src/Log/.libs/libLog.a ../src/GA/.libs/libGA.a
../src/tinyxml/.libs/libtinyxml.a
/sw/kfs/amber/12/centos6.2_gnu4.4.6_snadybridge/amber12/AmberTools/src/mtkpp/src/tinyxml/.libs/libtinyxml.a
/usr/bin/ld: cannot find -lStatistics

On Jul 5, 2013, at 5:52 PM, Jason Swails wrote:

If you do not need MTK++, you can configure with the -nomtkpp flag to skip
it.

Since I've never seen this error, I don't know how to fix it.

Is there a libStatistics.a file in your $AMBERHOME/lib folder?

HTH,
Jason



_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Fri Jul 05 2013 - 17:30:02 PDT
Custom Search