compiling namd: cannot find -lmodulecommlib

From: Corenflos, Steven Charles (scorenfl_at_indiana.edu)
Date: Wed Apr 23 2008 - 14:42:18 CDT

I've recompiled charm from scratch and run the megatest, it works fine with all cores. I compiled it with both the smp and tcp options.

When compiling namd it was originally giving me an error and was looking for charm in the wrong directory (./charm-5.9/net-linux-amd64 instead of ./charm-5.9/net-linux-amd64-smp-tcp). I simply moved the directory from net-linux-amd64-smp-tcp to net-linux-amd64 and ran the relink.script and then the namd installation started going much further. But now I've hit another road block with the following error message.

Thank you for any help.
-Steve

/usr/bin/ld: cannot find -lmodulecommlib
collect2: ld returned 1 exit status
Fatal Error by charmc in directory /root/programs/NAMD_2.6_Source/Linux-amd64-g++
   Command g++ -fPIC -m64 -m64 -D_REENTRANT -rdynamic -D_REENTRANT -D_REENTRANT -I/root/programs/NAMD_2.6_Source/charm-5.9/net-linux-amd64/include -DCMK_OPTIMIZE=1 -Iinc -Isrc -O3 -m64 -fexpensive-optimizations -ffast-math -o namd2 -L/root/programs/NAMD_2.6_Source/charm-5.9/net-linux-amd64/bin/../lib -I/root/programs/NAMD_2.6_Source/charm-5.9/net-linux-amd64/bin/../include /root/programs/NAMD_2.6_Source/charm-5.9/net-linux-amd64/bin/../lib/libldb-rand.o obj/buildinfo.o obj/common.o obj/dcdlib.o obj/erf.o obj/fitrms.o obj/main.o obj/mainfunc.o obj/memusage.o obj/strlib.o obj/AlgSeven.o obj/AlgRecBisection.o obj/AlgNbor.o obj/AtomMap.o obj/BackEnd.o obj/BroadcastMgr.o obj/BroadcastClient.o obj/CollectionMaster.o obj/CollectionMgr.o obj/Communicate.o obj/Compute.o obj/ComputeAngles.o obj/ComputeBonds.o obj/ComputeConsForce.o obj/ComputeConsForceMsgs.o obj/ComputeCrossterms.o obj/ComputeCylindricalBC.o obj/ComputeDihedrals.o obj/ComputeDPME.o obj/ComputeDPMEMsgs.o obj/ComputeDPMTA.o obj/ComputeEField.o obj/Compu
teEwald.o obj/ComputeExt.o obj/ComputeFullDirect.o obj/ComputeHomePatch.o obj/ComputeHomePatches.o obj/ComputeImpropers.o obj/ComputeGlobal.o obj/ComputeGlobalMsgs.o obj/ComputeMap.o obj/ComputeMgr.o obj/ComputeNonbondedSelf.o obj/ComputeNonbondedPair.o obj/ComputeNonbondedUtil.o obj/ComputeNonbondedStd.o obj/ComputeNonbondedFEP.o obj/ComputeNonbondedLES.o obj/ComputeNonbondedPProf.o obj/ComputePatch.o obj/ComputePatchPair.o obj/ComputePme.o obj/ComputeRestraints.o obj/ComputeSphericalBC.o obj/ComputeStir.o obj/ComputeTclBC.o obj/ConfigList.o obj/Controller.o obj/ccsinterface.o obj/DataStream.o obj/DumpBench.o obj/FreeEnergyAssert.o obj/FreeEnergyGroup.o obj/FreeEnergyLambda.o obj/FreeEnergyLambdMgr.o obj/FreeEnergyParse.o obj/FreeEnergyRestrain.o obj/FreeEnergyRMgr.o obj/FreeEnergyVector.o obj/GlobalMaster.o obj/GlobalMasterServer.o obj/GlobalMasterTest.o obj/GlobalMasterIMD.o obj/GlobalMasterTcl.o obj/GlobalMasterSMD.o obj/GlobalMasterTMD.o obj/GlobalMasterFreeEnergy.o obj/GlobalMasterEasy.o obj/Glo!
 balMaste
rMisc.o obj/GromacsTopFile.o obj/heap.o obj/HomePatch.o obj/IMDOutput.o obj/InfoStream.o obj/LdbCoordinator.o obj/LJTable.o obj/Measure.o obj/MStream.o obj/MigrateAtomsMsg.o obj/Molecule.o obj/NamdCentLB.o obj/NamdNborLB.o obj/NamdState.o obj/NamdOneTools.o obj/Node.o obj/Output.o obj/Parameters.o obj/ParseOptions.o obj/Patch.o obj/PatchMgr.o obj/PatchMap.o obj/PDB.o obj/PDBData.o obj/PmeBase.o obj/PmeKSpace.o obj/PmeRealSpace.o obj/ProcessorPrivate.o obj/ProxyMgr.o obj/ProxyPatch.o obj/Rebalancer.o obj/RecBisection.o obj/ReductionMgr.o obj/RefineOnly.o obj/ScriptTcl.o obj/Sequencer.o obj/Set.o obj/Settle.o obj/SimParameters.o obj/Sync.o obj/TclCommands.o obj/WorkDistrib.o obj/pub3dfft.o obj/vmdsock.o obj/parm.o obj/imd.o obj/dcdplugin.o moduleinit22481.o -lmoduleNeighborLB -lmodulecommlib /root/programs/NAMD_2.6_Source/charm-5.9/net-linux-amd64/bin/../lib/libmemory-default.o /root/programs/NAMD_2.6_Source/charm-5.9/net-linux-amd64/bin/../lib/libthreads-default.o -lck -lconv-cplus-y -lconv-core -lconv-util -
lpthread -lpthread -lpthread -lckqt -ldl -lm -lmoduleNeighborLB -lmodulecommlib -lm returned error code 1
charmc exiting...
rm -f moduleinit22481.C moduleinit22481.o
make: *** [namd2] Error 1

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 05:21:00 CST