Created attachment 359628 [details] build.log charmc> ----------- Module dependency search ------------ charmc> ----------- Module dependency search complete ------------ ls: cannot access libldb-*: No such file or directory Fatal Error by charmc in directory /var/tmp/portage/sci-chemistry/namd-2.9/work/NAMD_2.9_Source/Linux-x86_64-g++ Unknown load balancer rand / /usr/lib64/libldb-rand.o charmc exiting... make: *** [namd2] Error 1
namd needs the static libraries of charm. I have added a use dependence to the charm ebuild to force static-libs. Please re-emerge charm and namd and let me know if you still see this problem.
A static charm library has the disadvantage that namd does used the latest one, but the one it was build with. I would prefer to force namd to use the shared charm library. Or we make charm, SLOT="0/${PV}" and namd depend on "charm:=".
I agree. I will look at namd's build system again and see whether I can coerce it into using dynamic charm libraries.
It turns out that the problem was with upstream charm. When their build system builds libraries, the process is entirely driven from the static library side, and the dynamic libraries are made in addition if requested during build time. However, the build system does not build all static libraries as dynamic ones, which is why the namd build failed. I have submitted a patch to upstream charm to fix this and backported that patch to charm-6.5.1. Please try to emerge charm and namd again and see whether it is working now. (see https://charm.cs.illinois.edu/redmine/issues/304)