-
Notifications
You must be signed in to change notification settings - Fork 466
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
Build issue, compiling on Ubuntu Linux 64* recipe for target *** failed #420
Comments
The functions that it is not finding during linking are from the This might help with installing them: https://askubuntu.com/questions/623578/installing-blas-and-lapack-packages |
Thank you! seager1989@seager1989-VirtualBox:/usr/local/lib$ ls I specified their directory during Cmake and it also did not work with the same error. I also noticed some warnings during Cmake (WARNING: Target "icedynlib" requests linking to directory "/usr/local/lib". Targets may link only to libraries. CMake is dropping the item). Cmake: $make install
) Error: |
What happens if you specify the full paths for the libraries: The '__builtin_memset' memory warning can be safely ignored (it's a false positive due to the way the code is structured). We haven't had a chance to modify that so it doesn't occur yet. |
If to do so, the error was changed to the 'libnwtclibs.so' as below details. I do not know if this helps. [ 7%] Linking Fortran shared library libnwtclibs.so |
Oh! I missed the I suspect you need to install the full set of libraries as outlined in the link above. |
I tried to do so to install the BLAS and LAPACK by the following command. I tried three ways to specify their directory:
They presented the same error as I mentioned at the beginning. |
@rafmudaf do you have any thoughts here? |
I suggest removing any lapack and blas libraries you installed manually and leave the ones installed from You could read the CMake section of the docs to understand this more. |
Thank you for your suggestions! Actually, each time, I remove the content in build folder as I rebuilt the OpenFAST. As you suggested, I removed the other lapack and blas, but the code was still running with the same error. Then, I try to run a single "$cmake .. " and it was working. I do not know why? To find the reason for this weird phenomenon, I ran the following five setups by adding the options one by one (with the build folder removed each time). ##install1 ##install2 ##install3 ##install4##Running with the same error##
Do you have any suggestions for these two? Thank you and be safe! |
|
Thank you, Andy, The directory used before: Also, Thank you Rafael for all of your help. |
Excellent. It looks like we can close this then. |
Bug description
I am a beginner on the OpenFAST and try to make it on a virtual box based Ubuntu Linux 64 bit system. I assigned 11G RAM for this system and using the following cmake command and them make. The errors with the feature of 'receipe for targer *** failed'.
CMAKE:
$ cmake .. -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_BUILD_TYPE=Debug
Then,
$ make install
The detailed error information:
"
[ 15%] Linking Fortran executable inflowwind_driver
../nwtc-library/libnwtclibs.so: undefined reference to
lsame_' ../nwtc-library/libnwtclibs.so: undefined reference to
sggev_'../nwtc-library/libnwtclibs.so: undefined reference to
dgemm_' ../nwtc-library/libnwtclibs.so: undefined reference to
dposv_'../nwtc-library/libnwtclibs.so: undefined reference to
spptrf_' ../nwtc-library/libnwtclibs.so: undefined reference to
dpptrf_'../nwtc-library/libnwtclibs.so: undefined reference to
sgetri_' ../nwtc-library/libnwtclibs.so: undefined reference to
dgesv_'../nwtc-library/libnwtclibs.so: undefined reference to
dgetrf_' ../nwtc-library/libnwtclibs.so: undefined reference to
sgesvd_'../nwtc-library/libnwtclibs.so: undefined reference to
sgemm_' ../nwtc-library/libnwtclibs.so: undefined reference to
dgbsv_'../nwtc-library/libnwtclibs.so: undefined reference to
sgetrs_' ../nwtc-library/libnwtclibs.so: undefined reference to
sgetrf_'../nwtc-library/libnwtclibs.so: undefined reference to
dggev_' ../nwtc-library/libnwtclibs.so: undefined reference to
xerbla_'../nwtc-library/libnwtclibs.so: undefined reference to
sgbsv_' ../nwtc-library/libnwtclibs.so: undefined reference to
sgesv_'../nwtc-library/libnwtclibs.so: undefined reference to
sposv_' ../nwtc-library/libnwtclibs.so: undefined reference to
dgesvd_'../nwtc-library/libnwtclibs.so: undefined reference to
dgetrs_' ../nwtc-library/libnwtclibs.so: undefined reference to
dgetri_'collect2: error: ld returned 1 exit status
modules/inflowwind/CMakeFiles/inflowwind_driver.dir/build.make:148: recipe for target 'modules/inflowwind/inflowwind_driver' failed
make[2]: *** [modules/inflowwind/inflowwind_driver] Error 1
CMakeFiles/Makefile2:1040: recipe for target 'modules/inflowwind/CMakeFiles/inflowwind_driver.dir/all' failed
make[1]: *** [modules/inflowwind/CMakeFiles/inflowwind_driver.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
"
I checked some similar issues including increase RAM, using RelWithDebInfo build type, and change to debug mode, but they can not work on this problem.
It is appreciated if someone to can give suggestions to fix this issue? Thanks
The text was updated successfully, but these errors were encountered: