On ubuntu
c compiler cannot create executables
Write down the cause (in my case) when the error occurs
When configuring
# ./configure --prefix=/usr/local/openmpi-4.0.4 CC=gcc CFLAGS=-03
However, the above error occurred.
generally,
# apt install build-essential
If you install gcc (or g ++, make) all at once, it will be solved, but in my case it was the latest version.
./configure --prefix=/usr/local/openmpi-4.0.4 CC=gcc CFLAGS=-03
To
./configure --prefix=/usr/local/openmpi-4.0.4 CC=gcc CFLAGS=-O3
And change from the number "0" to the capital letter O "O".
The difference is clear in this article, but it was hard to see on ubuntu's CUI.
https://askubuntu.com/questions/647583/how-to-fix-configure-error-c-compiler-cannot-create-executables
Recommended Posts