-
Notifications
You must be signed in to change notification settings - Fork 60
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
Compilation issue - missing function definitions? #81
Comments
Add the flag |
Thanks, @zerothi ! I appreciate your help. Your suggestion got me past this type of error, but unfortunately some others came up. I ended up forcing the C standard to 90 (using -DCMAKE_C_STANDARD=90 but there are other ways to do this). That seems to have allowed me to build. For my application this is probably easiest, but yes you are right I could probably disable this and other errors in the way you suggested also. |
If I recall I managed to build it using that flag, but I was using make files. Perhaps if you show the errors we could help /figure out what to do |
Hello. I just looked through my log files. Actually I think that you are right, your fix worked for scalapack and I was seeing another error for a different package (not scalapack) that my project builds after scalapack. I think that your fix also works. Thanks and sorry for the trouble. |
Great, I still think the definitions should be made in the repo, so let's keep this issue open. |
Thanks for the workaround. With the following changes to CDEFS = -DAdd_
FC = mpifort
CC = mpicc
CCFLAGS = -O3 -diag-disable=10441 -Wno-error=implicit-function-declaration
BLASLIB = -L/opt/intel/oneapi/mkl/2023.2.0/lib -I/opt/intel/oneapi/mkl/2023.2.0/include -lmkl_intel_lp64 -lmkl_sequential -lmkl_core
LAPACKLIB =
LIBS = $(LAPACKLIB) $(BLASLIB) I could compile with Intel OneAPI 2023.2.0
(Note that this issue and Issue #31 comment on the same problem.) |
Clang 15 and later now have this enabled by default into an error. |
Effectively a duplicate of #31 |
Hello,
I am attempting to compile scalapack with intel oneapi 2022 compiler, with gcc headers from gcc 10.2
When compiling, I keep getting errors along the lines of:
error: call to undeclared function 'BI_ivmcopy'; ISO C99 and later do not support implicit function declarations
My initial solution is to add function definitions to Bdef.h . This is tedious however because similar errors occur for other functions.
How would you suggest that I fix this? If you do not have any other ideas I can continue to add more function definitions to Bdef.h and I think that it will compile eventually, but I appreciate your thoughts as to a different solution.
The text was updated successfully, but these errors were encountered: