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

Failed to compile the library in Linux with gfortran version using gfortran version 6.3.1 #25

Open
WangYun1995 opened this issue Feb 5, 2021 · 4 comments

Comments

@WangYun1995
Copy link

WangYun1995 commented Feb 5, 2021

Hello, @leonfoks

Following your instructions, I typed cmake ../src in the command line, and everything is OK. Then I typed make to compile the library. However, it failed and returned to me error information as follows.

[ 81%] Building Fortran object CMakeFiles/coretran.dir/spatial/m_KdTree.f90.o
[ 83%] Building Fortran object CMakeFiles/coretran.dir/spatial/m_geometry.f90.o
[ 84%] Building Fortran object CMakeFiles/coretran.dir/spatial/sm_KdTreeBranch_class.f90.o
[ 86%] Building Fortran object CMakeFiles/coretran.dir/spatial/sm_KdTreeSearch_class.f90.o
/home/wangy/downloads/coretran/src/spatial/sm_KdTreeSearch_class.f90:1135:0:

   module procedure rangeSearch_KD!(search, tree, D, lowerBound, upperBound) result(iPoints)
 
internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c:1419
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
CMakeFiles/coretran.dir/build.make:731: recipe for target 'CMakeFiles/coretran.dir/spatial/sm_KdTreeSearch_class.f90.o' failed
make[2]: *** [CMakeFiles/coretran.dir/spatial/sm_KdTreeSearch_class.f90.o] Error 1
CMakeFiles/Makefile2:116: recipe for target 'CMakeFiles/coretran.dir/all' failed
make[1]: *** [CMakeFiles/coretran.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
make: *** [all] Error 2

Could you help me address this issue?

@WangYun1995 WangYun1995 changed the title Failed to compile the library in Linux Failed to compile the library in Linux with gfortran version using gfortran version 6.3.1 Feb 6, 2021
@leonfoks
Copy link
Owner

leonfoks commented Feb 8, 2021

Hi @WangYun1995 ! Thanks for trying out Coretran!

I'm not entirely sure, but the message states a compiler error. I just tested my install with gfortran v 10 and it worked.
Can you try using an updated version of gfortran please?

Thanks!

@WangYun1995
Copy link
Author

Hi @leonfoks

After I deleted module procedure rangeSearch_KD and all related stuff, I compiled the library successfully.

Since all my needs are 2D tree and 3D tree, this solution is totally OK.

@leonfoks
Copy link
Owner

leonfoks commented Feb 9, 2021

I've made a slight change to my imports in submodules. If you have time and can try a completely fresh compile that would help to see if it fixed it. Remove the entire build folder and run the cmake command again to make sure its fresh!

@WangYun1995
Copy link
Author

WangYun1995 commented Feb 10, 2021

I can say for sure that "internal compiler error" indicates the version of my compiler is too low since "coretran" works well on Windows with gfortran 7.4.

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