coretran icon indicating copy to clipboard operation
coretran copied to clipboard

Build with shared libs off - fails with coretranTest

Open rmcd-mscb opened this issue 5 years ago • 1 comments

Building cortran with shared libs off fails with coretranTest. Build succeds with coretran but fails with the test as below. Build with sharedlibs on succeeds. Not sure if this is a cmake issue or not. Any help would be appreciated.

[ 91%] Building Fortran object CMakeFiles/coretran.dir/time/ProgressBar_Class.f90.o [ 92%] Linking Fortran static library /home/rmcd/git/coretran/lib/libcoretran.a [ 92%] Built target coretran [ 94%] Linking Fortran executable /home/rmcd/git/coretran/bin/coretranTest /opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lm /opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lm /opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -ldl /opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lm /opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lpthread /opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lc collect2: error: ld returned 1 exit status make[2]: *** [/home/rmcd/git/coretran/bin/coretranTest] Error 1 make[1]: *** [tests/CMakeFiles/coretranTest.dir/all] Error 2 make: *** [all] Error 2

rmcd-mscb avatar Oct 19 '18 16:10 rmcd-mscb

Looks like I dropped the ball on this one @rmcd-mscb Let me take a look. Thanks for the bug report!

leonfoks avatar Feb 11 '21 04:02 leonfoks