-
Notifications
You must be signed in to change notification settings - Fork 69
Build failed due to implicit declaration #97
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
Comments
Changes in compiler, use gcc 13 or older. https://gcc.gnu.org/gcc-14/changes.html |
I'm having the same problem in Ubuntu, and Debian is having the same problem as well despite their package bug being closed (it looks like an erroneous merge/diagnostic). See https://launchpadlibrarian.net/741773910/buildlog_ubuntu-oracular-amd64.scalapack_2.2.1-3.1ubuntu2_BUILDING.txt.gz. We cannot use an older compiler, so the above option is not an option for us. |
Any plans or guidelines on how to solve this but still compile with GCC 14? |
This can be actually worked around by adding the |
Hi @davidedelvento, How did you implement this? I naively added -DCMAKE_C_FLAGS="-Wno-error=implicit-function-declaration" to the cmake command line but this hasn't worked. Fab |
I don't recall the details, but I did get it to work. My shell history has invocation of FC=mpif90 CFLAGS="...." FFLAGS="...." make -j 32 However these were only "throw away" experiments, which I do to explore what works and what doesn't, but I don't carefully document. In fact I use SPACK for all my installs.SPACK: https://github.com/spack/spack/ Once it did get it to work, I implemented it by patching spack's
under the Note that if you didn't ever use spack before, it has a steep learning curve. It's very well worth, but only if you install lots of things from source with intention to keep several versions of the same software and/or same version compiled with different options and/or with different compilers. If you do that, spack makes your life much easier. If you don't (i.e. if you just casually install one piece of software occasionally because your distro does not provide what you need), then spack is overkill and adds lots of complexity which you would hate. If you don't want to use spack, I recommend asking |
Thanks @davidedelvento. I'll have a dig around and will report back if I get it working. |
Update: I found that using -DCMAKE_C_FLAGS="-Wno-error=implicit-function-declaration" with cmake resulted in some parts being ignored. Using -fpermissive (which downgrades the error to warnings) allows me to build ScaLAPACK. |
I've found similar issues, but I don't know what to do.
The text was updated successfully, but these errors were encountered: