Re: [gmx-users] GROMACS 4.6.3 Static Linking

2013-07-31 Thread Szilárd Páll
On Thu, Jul 25, 2013 at 5:55 PM, Mark Abraham wrote: > That combo is supposed to generate a CMake warning. > > I also get a warning during linking that some shared library will have > to provide some function (getpwuid?) at run time, but the binary is > static. That warning has always popped up f

Re: [gmx-users] GROMACS 4.6.3 Static Linking

2013-07-25 Thread Mark Abraham
That combo is supposed to generate a CMake warning. I also get a warning during linking that some shared library will have to provide some function (getpwuid?) at run time, but the binary is static. Mark On Thu, Jul 25, 2013 at 4:21 PM, Andrew R Turner wrote: > Mark, > > A bit of testing has re

Re: [gmx-users] GROMACS 4.6.3 Static Linking

2013-07-25 Thread Andrew R Turner
Mark, A bit of testing has revealed that it is the "-DGMX_PREFER_STATIC_LIBS=ON" flag that makes the difference. With this flag you end up with dynamic executables that do not work (I think due to some glibc problem I have not yet tracked down) whereas if I exclude this option then I get

Re: [gmx-users] GROMACS 4.6.3 Static Linking

2013-07-25 Thread Mark Abraham
Vitaly has it upside down - it is normally required to build a static binary on Crays. cmake .. -DBUILD_SHARED_LIBS=off just works for building static binaries for me with 4.6.3 on lindgren, a Cray XE6, when using PrgEnv-gnu/4.0.46 Mark On Wed, Jul 24, 2013 at 8:58 AM, Andrew R Turner wrote: >

Re: [gmx-users] GROMACS 4.6.3 Static Linking

2013-07-24 Thread Andrew R Turner
Hi Vitaly, Impossible just for v4.6.3? It was certainly possible to create static executables for a Cray XE using v4.6.1 (I know, because I have done it). I followed the same procedure for 4.6.3 and have only managed to get dynamic executables (which do not work) hence my question. I will

Re: [gmx-users] GROMACS 4.6.3 Static Linking

2013-07-20 Thread Dr. Vitaly Chaban
Soneone said here that static versions are impossible for Cray... Dr. Vitaly V. Chaban On Fri, Jul 19, 2013 at 12:55 PM, Andrew R Turner wrote: > Hi > > I am having problems creating static versions of the GROMACS binaries for > a Cray XE6 (www.hector.ac.uk). The build process I am using is d

Re: [gmx-users] GROMACS 4.6.3 Static Linking

2013-07-19 Thread Andrew R Turner
Hi Mark, What does build_*/src/buildinfo.h have to say about the compiler flags that are getting used? /** C compiler flags used to build */ #define BUILD_CFLAGS"-msse2-Wextra -Wno-missing-field-initializers -Wno-sign-compare -Wall -Wno-unused -Wunused-value -static -O3 -

Re: [gmx-users] GROMACS 4.6.3 Static Linking

2013-07-19 Thread Mark Abraham
What does build_*/src/buildinfo.h have to say about the compiler flags that are getting used? Mark On Fri, Jul 19, 2013 at 12:55 PM, Andrew R Turner wrote: > Hi > > I am having problems creating static versions of the GROMACS binaries for a > Cray XE6 (www.hector.ac.uk). The build process I am u

[gmx-users] GROMACS 4.6.3 Static Linking

2013-07-19 Thread Andrew R Turner
Hi I am having problems creating static versions of the GROMACS binaries for a Cray XE6 (www.hector.ac.uk). The build process I am using is documented at: http://www.hector.ac.uk/support/documentation/software/gromacs/compiling_4-6-1_phase3.php and successfully produced static binaries for