-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid memory reference during builds for s390x #348
Comments
Feel free to propose a PR. We can merge it when CI is back (CI down for now). |
IBM Systems is providing s390 and s390x. s390 is 32 bit. s390x is the chosen architecture and 64 bit. We build only for the 64 bit mainframe architecture. That is a good explanation about that: https://www.ibm.com/docs/en/cics-ts/5.6?topic=basics-24-bit-31-bit-64-bit-addressing "64-bit architecture, uses 64-bit storage addresses and 64-bit integer arithmetic and logical instructions" is following from these slides: KIT Z Architecture lecture That is a nice extension with a deeper insight into the memory management. I look, that I can find the issue this week based on these 2 tutorials/lecture slides. |
The linux-vdso64.so is applied. The manpage is saying that about the s390x architecture:
|
If s390x uses 64-bit integers, you may need to set |
I set the INTERFACE64=1 in our spec file. I have got a new error message now:
|
Not even surprised! :D Years ago, I tried to PR a patch for this problem, but the CI was failing for reasons I never understood?!... I guess at the time, CI boxes where old and were shipped with openmpi version ( I should retrieve the commit and PR it soon: hope CI won't break this time and may fix this problem too... |
The patch was not compatible with the version 3.8.0. Therefore, I have tested it based on the master branch. We have got new error messages (and more). |
Expected behavior
All builds for s390x should be successful for openSUSE Tumbleweed.
Actual behavior
arpack-ng packages for mpi are failing because of a invalid memory reference.
Error messages
arpack-ng:openmpi1
arpack-ng:openmpi2
arpack-ng:openmpi3
Where/how to reproduce the problem
arpack-ng: 3.8.0
OS: openSUSE Tumbleweed for the architecture s390x
compiler: gcc-c++-11-6.1 openmpi3-3.1.6-4.1 cmake-3.23.0-1.1 gcc-fortran-11-6.1
environment:
export 'FFLAGS=-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC'
export 'FCFLAGS=-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC'
export 'CFLAGS=-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC'
export 'CXXFLAGS=-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC'
export LD_LIBRARY_PATH=/usr/lib64/mpi/gcc/openmpi3/lib64
export CC=/usr/lib64/mpi/gcc/openmpi3/bin/mpicc
export CXX=/usr/lib64/mpi/gcc/openmpi3/bin/mpic++
export F77=/usr/lib64/mpi/gcc/openmpi3/bin/mpif77
export MPIF77=/usr/lib64/mpi/gcc/openmpi3/bin/mpif77
configure: /usr/bin/cmake /home/abuild/rpmbuild/BUILD/arpack-ng-3.8.0/. '-GUnix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_INSTALL_LIBDIR:PATH=lib64 -DCMAKE_INSTALL_LIBEXECDIR=/usr/libexec -DCMAKE_BUILD_TYPE=RelWithDebInfo '-DCMAKE_C_FLAGS=-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC -DNDEBUG' '-DCMAKE_CXX_FLAGS=-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC -DNDEBUG' '-DCMAKE_Fortran_FLAGS=-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC -DNDEBUG' '-DCMAKE_EXE_LINKER_FLAGS=-flto=auto -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now' '-DCMAKE_MODULE_LINKER_FLAGS=-flto=auto -Wl,--as-needed' '-DCMAKE_SHARED_LINKER_FLAGS=-flto=auto -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now' -DLIB_SUFFIX=64 -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF -DCMAKE_COLOR_MAKEFILE:BOOL=OFF -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_MODULES_INSTALL_DIR=/usr/lib64/cmake/parpack-openmpi3 -DCMAKE_INSTALL_PREFIX:PATH=/usr/lib64/mpi/gcc/openmpi3 -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib64/mpi/gcc/openmpi3/lib64 -DCMAKE_SKIP_RPATH:BOOL=OFF -DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON -DCMAKE_CXX_COMPILER_VERSION=11.2.1 -DMPI:BOOL=ON -DPYTHON3:BOOL=OFF
Steps to reproduce the problem
Error message
Notes, remarks
The text was updated successfully, but these errors were encountered: