Siegmar,
that looks like a libtool issue : "-z noexecstack" is not correctly
passed to cc
a simple workaround is to append "-Wl,-z -Wl,noexecstack" to your LDFLAGS
(and do not pass "-z noexecstack" to LDFLAGS nor CFLAGS)
Cheers,
Gilles
On 1/19/2016 11:19 PM, Siegmar Gross wrote:
Hi Gilles,
we have installed "execstack", but it doesn't work as expected.
loki lib64 110 execstack -c libmpi_java.so.1.2.0
execstack: libmpi_java.so.1.2.0: Unknown debugging section
.debug_funcnames
loki lib64 111
We've also tried to build it with "cc" instead of "gcc", but it
failed, because "configure" still uses "-Wall" and friends, although
it used the correct compilers. I've removed "-Wall" and "-Wno-..."
from all Makefiles. Unfortunately there are still some "-Wl,...",
so that "make" fails.
...
mkdir .libs
cc -m64 -m64 -o execstack execstack.o checksum.o data.o dso.o dwarf2.o
fptr.o hashtab.o mdebug.o stabs.o crc32.o arch-i386.o arch-alpha.o
arch-ppc.o arch-ppc64.o arch-sparc.o arch-sparc64.o arch-x86_64.o
arch-mips.o arch-s390.o arch-s390x.o arch-arm.o arch-sh.o arch-ia64.o
-lelf
dso.o: In function `fdopen_dso':
dso.c:(.text+0x1bd1): undefined reference to `__start_pl_arch'
dso.c:(.text+0x1be6): undefined reference to `__stop_pl_arch'
dso.c:(.text+0x1c73): undefined reference to `__stop_pl_arch'
dso.c:(.text+0x1c87): undefined reference to `__stop_pl_arch'
dso.o: In function `update_dso':
dso.c:(.text+0x7212): undefined reference to `strdupa'
dso.c:(.text+0x7231): undefined reference to `strdupa'
Makefile:266: recipe for target 'execstack' failed
make[2]: *** [execstack] Error 2
Hopefully you find the place where you must add "-z noexecstack",
so that the warnings for Java programs will not appear in future
Open MPI versions.
Best regards
Siegmar
Am 15.01.2016 um 14:05 schrieb Siegmar Gross:
Hi Gilles,
"execstack" isn't available at our system and it isn't part of the
repository
for SuSE Linux Enterprise Server or Desktop. Next week I'll ask our
admin,
if he can try to locate and install the program.
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
_______________________________________________
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/28285.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/28300.php