You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please make sure to put any logs, terminal output, or code in
[fenced code blocks]. Please also read the [contributing guidelines]
before submitting a new issue.
Defect/Bug Report
Building json-fortran fails to link unless the OpenCoarrays caf script is modified to link against libcaf_mpi.so instead of libcaf_mpi.a.
OpenCoarrays Version: 2.4.0-8-g7aafb20
Fortran Compiler: gfortran 9.0.1
C compiler used for building lib:gcc 9.0.1
Installation method: install.sh
Output of uname -a: Linux Sourcery-Institute-VM 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
MPI library being used: MPICH 3.2
Machine architecture and number of physical cores: macBook Pro with 4-core 2.7 GHz Intel core i7
Version of CMake: 3.12.3
Observed Behavior
[ 8%] Linking Fortran shared library lib/libjsonfortran.so
/usr/bin/ld: /home/rouson/Desktop/Builds/opt/opencoarrays/2.3.1-7aafb2/gnu/9.0.1/lib/libcaf_mpi.a(mpi_caf.c.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Error: comand:
`/home/rouson/Builds/opt/gnu/9.0.1/bin/gfortran -I/home/rouson/Desktop/Builds/opt/opencoarrays/2.3.1-7aafb2/gnu/9.0.1/include/OpenCoarrays-2.4.0-8-g7aafb20_GNU-9.0.1 -fcoarray=lib -Wl,-rpath -Wl,/home/rouson/Builds/opt/mpich/3.2/gnu/9.0.0/lib -Wl,--enable-new-dtags -L/home/rouson/Desktop/Builds/opt/mpich/3.2/gnu/9.0.0/lib -fPIC -fbacktrace -fno-omit-frame-pointer -O3 -DNDEBUG -O3 -shared -Wl,-soname,libjsonfortran.so.6.10 -o lib/libjsonfortran.so.6.10.0 CMakeFiles/jsonfortran.dir/src/json_kinds.F90.o CMakeFiles/jsonfortran.dir/src/json_parameters.F90.o CMakeFiles/jsonfortran.dir/src/json_string_utilities.F90.o CMakeFiles/jsonfortran.dir/src/json_value_module.F90.o CMakeFiles/jsonfortran.dir/src/json_file_module.F90.o CMakeFiles/jsonfortran.dir/src/json_module.F90.o /home/rouson/Desktop/Builds/opt/opencoarrays/2.3.1-7aafb2/gnu/9.0.1/lib/libcaf_mpi.a /home/rouson/Builds/opt/mpich/3.2/gnu/9.0.0/lib/libmpifort.so /home/rouson/Builds/opt/mpich/3.2/gnu/9.0.0/lib/libmpi.so`
failed to compile.
CMakeFiles/jsonfortran.dir/build.make:158: recipe for target 'lib/libjsonfortran.so.6.10.0' failed
make[6]: *** [lib/libjsonfortran.so.6.10.0] Error 1
CMakeFiles/Makefile2:523: recipe for target 'CMakeFiles/jsonfortran.dir/all' failed
make[5]: *** [CMakeFiles/jsonfortran.dir/all] Error 2
CMakeFiles/Makefile2:705: recipe for target 'CMakeFiles/build_tests.dir/rule' failed
make[4]: *** [CMakeFiles/build_tests.dir/rule] Error 2
Makefile:396: recipe for target 'build_tests' failed
make[3]: *** [build_tests] Error 2
CMakeFiles/json-fortran.dir/build.make:112: recipe for target 'TPLs/Stamp/json-fortran/json-fortran-build' failed
make[2]: *** [TPLs/Stamp/json-fortran/json-fortran-build] Error 2
CMakeFiles/Makefile2:147: recipe for target 'CMakeFiles/json-fortran.dir/all' failed
make[1]: *** [CMakeFiles/json-fortran.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Expected Behavior
Successful build of json-fortran.
Workaround
Replace libcaf_mpi.a with libcaf_mpi.soin the installedcaf` script.
Append the installed OpenCoarrays lib directory to the LD_LIBRARY_PATH.
The text was updated successfully, but these errors were encountered:
Please make sure to put any logs, terminal output, or code in
[fenced code blocks]. Please also read the [contributing guidelines]
before submitting a new issue.
Defect/Bug Report
Building json-fortran fails to link unless the OpenCoarrays
caf
script is modified to link againstlibcaf_mpi.so
instead oflibcaf_mpi.a
.2.4.0-8-g7aafb20
gfortran 9.0.1
gcc 9.0.1
install.sh
uname -a
:Linux Sourcery-Institute-VM 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Observed Behavior
Expected Behavior
Successful build of json-fortran.
Workaround
libcaf_mpi.a
with libcaf_mpi.soin the installed
caf` script.lib
directory to theLD_LIBRARY_PATH
.The text was updated successfully, but these errors were encountered: