Compiling NWChem 6.6 (ubuntu 14.04)

From NWChem

You are viewing a single post from the thread title above
Jump to: navigation, search

Click here for full thread
Gets Around
Threads 24
Posts 86
Hi, NwChem developers.

Some old issue returns
http://www.nwchem-sw.org/index.php/Special:AWCforum/st/id1348/Incomplete_EXTRA_LIBS_for_LI...

in Ubuntu python-config --libs returns:
-lpthread -ldl -lutil -lm -lpython2.7
without -lz for some reason.

therefore linking fails.

For this reason in NWChem 6.5 source -lz added to python-config --libs returns
https://github.com/jeffhammond/nwchem/blob/master/src/config/makefile.h#L2005

But this is not in version 6.6


P.S.

To make situation a bit clearer I want to add two links:
https://docs.python.org/2/extending/embedding.html#compiling-and-linking-under-unix-like-s...
https://bugs.python.org/issue15590

Quote:username

to link an embedded interpreter, SYSLIBS should be used,
which might not be complete.
However in this case MODLIBS is missing.


run python
>>> import sysconfig
>>> sysconfig.get_config_var('LIBS')
'-lpthread -ldl  -lutil'
>>> sysconfig.get_config_var('SYSLIBS')
'-lm'
>>> sysconfig.get_config_var('MODLIBS')
'-L/usr/lib -lz'


python-config --libs returns same as sysconfig.get_config_var('LIBS') and sysconfig.get_config_var('SYSLIBS') but sysconfig.get_config_var('MODLIBS') output is obviously missing.


with respect
Vladimir
Edited On 2:23:59 AM PDT - Wed, Sep 30th 2015 by Vladimir


Who's here now Members 0 Guests 0 Bots/Crawler 0


AWC's: 2.5.10 MediaWiki - Stand Alone Forum Extension
Forum theme style by: AWC