Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486206 - sci-chemistry/namd-2.9 fails with sys-cluster/charm-6.5.1-r1
Summary: sci-chemistry/namd-2.9 fails with sys-cluster/charm-6.5.1-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Nicolas Bock
URL: https://charm.cs.illinois.edu/redmine...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-27 16:45 UTC by Christoph Junghans (RETIRED)
Modified: 2013-10-18 16:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,137.13 KB, text/x-log)
2013-09-27 16:45 UTC, Christoph Junghans (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Junghans (RETIRED) gentoo-dev 2013-09-27 16:45:27 UTC
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
Comment 1 Nicolas Bock gentoo-dev 2013-10-02 15:40:38 UTC
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.
Comment 2 Christoph Junghans (RETIRED) gentoo-dev 2013-10-07 10:46:48 UTC
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:=".
Comment 3 Nicolas Bock gentoo-dev 2013-10-07 16:28:32 UTC
I agree. I will look at namd's build system again and see whether I can coerce it into using dynamic charm libraries.
Comment 4 Nicolas Bock gentoo-dev 2013-10-15 04:48:21 UTC
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)