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

under ubuntu configure error, need help #490

Open
gaowayne opened this issue May 16, 2024 · 1 comment
Open

under ubuntu configure error, need help #490

gaowayne opened this issue May 16, 2024 · 1 comment

Comments

@gaowayne
Copy link

my ubuntu is 22.04.4

root@hpeesx01-salab:/mnt/nvme2n1/wayne/ior# uname -a
Linux hpeesx01-salab 5.15.0-106-generic #116-Ubuntu SMP Wed Apr 17 09:17:56 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
root@hpeesx01-salab:/mnt/nvme2n1/wayne/ior# 

root@hpeesx01-salab:/mnt/nvme2n1/wayne/ior# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy


error log:

root@hpeesx01-salab:/mnt/nvme2n1/wayne/ior# ./configure
checking metadata... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports the include directive... yes (GNU style)
checking for mpicc... mpicc
checking for gcc... (cached) mpicc
checking whether the C compiler works... no
configure: error: in `/mnt/nvme2n1/wayne/ior':
configure: error: C compiler cannot create executables
See `config.log' for more details
root@hpeesx01-salab:/mnt/nvme2n1/wayne/ior# 

Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
... rest of stderr output deleted ...
configure:4300: $? = 0
configure:4289: mpicc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4300: $? = 1
configure:4289: mpicc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:4300: $? = 1
configure:4289: mpicc -version >&5
gcc: error: unrecognized command-line option '-version'
gcc: fatal error: no input files
compilation terminated.
configure:4300: $? = 1
configure:4320: checking whether the C compiler works
configure:4342: mpicc    conftest.c  >&5
/usr/bin/ld: cannot find -lmpi: No such file or directory
/usr/bin/ld: cannot find -lopen-rte: No such file or directory
/usr/bin/ld: cannot find -lopen-pal: No such file or directory
/usr/bin/ld: cannot find -lhwloc: No such file or directory
/usr/bin/ld: cannot find -levent_core: No such file or directory
/usr/bin/ld: cannot find -levent_pthreads: No such file or directory
collect2: error: ld returned 1 exit status
configure:4346: $? = 1
@JulianKunkel
Copy link
Collaborator

It seems that the installation of MPI is not complete/misses something or is confused.
If you like OpenMPI for example install:

openmpi-bin
libopenmpi-dev

I would also recommend not to compile as root.

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