Skip to content
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

Experiencing compile error on Ubuntu 18.04LTS #415

Closed
yonghoonlee opened this issue Mar 18, 2020 · 4 comments
Closed

Experiencing compile error on Ubuntu 18.04LTS #415

yonghoonlee opened this issue Mar 18, 2020 · 4 comments
Assignees

Comments

@yonghoonlee
Copy link

I am getting following error while compiling with gcc, g++, gfortran, openblas, and all other dependencies with ubuntu apt packaged libraries.
I turned on with the option BUILD_OPENFAST_CPP_API and BUILD_TESTING options with cmake.
Also, I cloned directly from the master branch of official github repository and recursively cloned with the submodules included in the openfast.
Following is the error message I am getting now:

[ 80%] Building Fortran object modules/openfast-library/CMakeFiles/openfast_postlib.dir/src/FAST_Subs.f90.o
gfortran: internal compiler error: Killed (program f951)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-7/README.Bugs for instructions.
modules/openfast-library/CMakeFiles/openfast_postlib.dir/build.make:110: recipe for target 'modules/openfast-library/CMakeFiles/openfast_postlib.dir/src/FAST_Subs.f90.o' failed
make[2]: *** [modules/openfast-library/CMakeFiles/openfast_postlib.dir/src/FAST_Subs.f90.o] Error 4
CMakeFiles/Makefile2:2328: recipe for target 'modules/openfast-library/CMakeFiles/openfast_postlib.dir/all' failed
make[1]: *** [modules/openfast-library/CMakeFiles/openfast_postlib.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

@rafmudaf
Copy link
Collaborator

Can you describe your system? Is this a virtual machine?

@rafmudaf rafmudaf self-assigned this Mar 18, 2020
@yonghoonlee
Copy link
Author

yonghoonlee commented Mar 18, 2020

Yes, this is the VM running on VMWare Fusion on Mac.
VM setting was 1-core, 4GB RAM, 60GB of mounted root space without separate partition for home directory, Ubuntu 18.04 LTS, Fully-updated through official apt repositories, VMWare-supported driver installed.

@rafmudaf
Copy link
Collaborator

Try giving it more RAM, like 8GB. Also try switching the build type to CMAKE_BUILD_TYPE=RelWithDebInfo. The linking step in Release mode takes a lot of memory.

@yonghoonlee
Copy link
Author

Thank you @rafmudaf Your advice was helpful in resolving the situation above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants