Hi Gilles,

now I can answer the second part of your email. "LDFLAGS='-m64 -mt -z 
noexecstack'"
didn't help.


loki java 114 ompi_info | grep "Built on:"
                Built on: Fr 15. Jan 15:02:52 CET 2016

loki java 115 head 
/export2/src/openmpi-1.10.2/openmpi-v1.10.1-140-g31ff573-Linux.x86_64.64_cc/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Open MPI configure v1.10.1-140-g31ff573, which was
generated by GNU Autoconf 2.69.  Invocation command line was

$ ../openmpi-v1.10.1-140-g31ff573/configure --prefix=/usr/local/openmpi-1.10.2_64_cc --libdir=/usr/local/openmpi-1.10.2_64_cc/lib64 --with-jdk-bindir=/usr/local/jdk1.8.0_66/bin --with-jdk-headers=/usr/local/jdk1.8.0_66/include JAVA_HOME=/usr/local/jdk1.8.0_66 LDFLAGS=-m64 -mt -z noexecstack CC=cc CXX=CC FC=f95 CFLAGS=-m64 -mt -z noexecstack CXXFLAGS=-m64 -library=stlport4 FCFLAGS=-m64 CPP=cpp CXXCPP=cpp --enable-mpi-cxx --enable-cxx-exceptions --enable-mpi-java --enable-heterogeneous --enable-mpi-thread-multiple --with-hwloc=internal --without-verbs --with-wrapper-cflags=-m64 -mt --with-wrapper-cxxflags=-m64 -library=stlport4 --with-wrapper-fcflags=-m64 --with-wrapper-ldflags=-mt --enable-debug

loki java 116 mpiexec -np 4 --host loki --slot-list 0:0-5,1:0-5 java 
MsgSendRecvMain
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /usr/local/openmpi-1.10.2_64_cc/lib64/libmpi_java.so.1.2.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', 
or link it with '-z noexecstack'.
...


Best regards

Siegmar




On 01/15/16 08:01, Gilles Gouaillardet wrote:
Siegmar,

did you try to run
execstack -c /usr/local/openmpi-1.10.2_64_cc/lib64/libmpi_java.so.1.2.0

and did this help ?

the message suggests you link with -z noexecstack,
you added this to your CFLAGS and not LDFLAGS

would you mind trying to configure with LDFLAGS='-m64 -mt -z noexecstack' and 
see if it helps ?

Cheers,

Gilles

On 1/14/2016 11:30 PM, Siegmar Gross wrote:
Hi,

I've successfully built openmpi-v1.10.1-140-g31ff573 on my machine
(SUSE Linux Enterprise Server 12.0 x86_64) with gcc-5.2.0 and
Sun C 5.13. Unfortunately I get warnings if I use my cc version
running a Java program, although I added "-z noexecstack" to
CFLAGS. I used the following commands to build the package.


mkdir openmpi-v1.10.1-140-g31ff573-${SYSTEM_ENV}.${MACHINE_ENV}.64_cc
cd openmpi-v1.10.1-140-g31ff573-${SYSTEM_ENV}.${MACHINE_ENV}.64_cc

../openmpi-v1.10.1-140-g31ff573/configure \
  --prefix=/usr/local/openmpi-1.10.2_64_cc \
  --libdir=/usr/local/openmpi-1.10.2_64_cc/lib64 \
  --with-jdk-bindir=/usr/local/jdk1.8.0_66/bin \
  --with-jdk-headers=/usr/local/jdk1.8.0_66/include \
  JAVA_HOME=/usr/local/jdk1.8.0_66 \
  LDFLAGS="-m64 -mt" \
  CC="cc" CXX="CC" FC="f95" \
  CFLAGS="-m64 -mt -z noexecstack" CXXFLAGS="-m64 -library=stlport4" 
FCFLAGS="-m64" \
  CPP="cpp" CXXCPP="cpp" \
  --enable-mpi-cxx \
  --enable-cxx-exceptions \
  --enable-mpi-java \
  --enable-heterogeneous \
  --enable-mpi-thread-multiple \
  --with-hwloc=internal \
  --without-verbs \
  --with-wrapper-cflags="-m64 -mt" \
  --with-wrapper-cxxflags="-m64 -library=stlport4" \
  --with-wrapper-fcflags="-m64" \
  --with-wrapper-ldflags="-mt" \
  --enable-debug \
  |& tee log.configure.$SYSTEM_ENV.$MACHINE_ENV.64_cc

make |& tee log.make.$SYSTEM_ENV.$MACHINE_ENV.64_cc





loki java 115 ompi_info | egrep -e "Open MPI repo revision:" -e "C compiler 
absolute:"
  Open MPI repo revision: v1.10.1-140-g31ff573
     C compiler absolute: /opt/solstudio12.4/bin/cc

loki java 116 mpiexec -np 4 --host loki --slot-list 0:0-5,1:0-5 java 
MsgSendRecvMain
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library
/usr/local/openmpi-1.10.2_64_cc/lib64/libmpi_java.so.1.2.0 which might have 
disabled stack guard. The VM will try to
fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', 
or link it with '-z noexecstack'.
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library
/usr/local/openmpi-1.10.2_64_cc/lib64/libmpi_java.so.1.2.0 which might have 
disabled stack guard. The VM will try to
fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', 
or link it with '-z noexecstack'.
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library
/usr/local/openmpi-1.10.2_64_cc/lib64/libmpi_java.so.1.2.0 which might have 
disabled stack guard. The VM will try to
fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', 
or link it with '-z noexecstack'.
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library
/usr/local/openmpi-1.10.2_64_cc/lib64/libmpi_java.so.1.2.0 which might have 
disabled stack guard. The VM will try to
fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', 
or link it with '-z noexecstack'.

Now 3 processes are sending greetings.

Greetings from process 1:
  message tag:    3
  message length: 4
  message:        loki
...


Does anybody know how I can get rid of the messages or can somebody
fix the problem directly in the distribution? Please let me know if
you need anything else. Thank you very much for any help in advance.


Best regards

Siegmar
_______________________________________________
users mailing list
us...@open-mpi.org
Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
Link to this post: 
http://www.open-mpi.org/community/lists/users/2016/01/28275.php


_______________________________________________
users mailing list
us...@open-mpi.org
Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
Link to this post: 
http://www.open-mpi.org/community/lists/users/2016/01/28282.php

Reply via email to