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

compile error with gcc + MPICH #24

Open
wyfSunflower opened this issue Jul 21, 2023 · 1 comment
Open

compile error with gcc + MPICH #24

wyfSunflower opened this issue Jul 21, 2023 · 1 comment

Comments

@wyfSunflower
Copy link

make MPICXX=mpic++ CXX=g++
mpic++ -cxx=g++ -fopenmp --std=c++11 -I/usr/include/mpi/ -I./include -I./include/GMDP -O3 -flto -fwhole-program -march=native -o bin/BFS src/BFS.cpp -lboost_serialization
g++: error: unrecognized command-line option ‘-cxx=g++’
make: *** [Makefile:54: bin/BFS] Error 1

@wyfSunflower
Copy link
Author

os: ubuntu 22.04

g++ --version
g++ (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mpichversion
MPICH Version: 4.0
MPICH Release date: Fri Jan 21 10:42:29 CST 2022
MPICH Device: ch4:ofi
MPICH configure: --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --with-libfabric=/usr --with-slurm=/usr --with-device=ch4:ofi --with-pm=hydra --with-hwloc-prefix=/usr --with-wrapper-dl-type=none --enable-shared --without-yaksa --prefix=/usr --enable-fortran=all --disable-rpath --disable-wrapper-rpath --sysconfdir=/etc/mpich --libdir=/usr/lib/x86_64-linux-gnu --includedir=/usr/include/x86_64-linux-gnu/mpich --docdir=/usr/share/doc/mpich CPPFLAGS= CFLAGS= CXXFLAGS= FFLAGS=-O2 -ffile-prefix-map=/build/mpich-0xgrG5/mpich-4.0=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -fallow-invalid-boz -fallow-argument-mismatch FCFLAGS=-O2 -ffile-prefix-map=/build/mpich-0xgrG5/mpich-4.0=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -fallow-invalid-boz -fallow-argument-mismatch BASH_SHELL=/bin/bash
MPICH CC: gcc -g -O2 -ffile-prefix-map=/build/mpich-0xgrG5/mpich-4.0=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -O2
MPICH CXX: g++ -g -O2 -ffile-prefix-map=/build/mpich-0xgrG5/mpich-4.0=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -O2
MPICH F77: gfortran -O2 -ffile-prefix-map=/build/mpich-0xgrG5/mpich-4.0=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -fallow-invalid-boz -fallow-argument-mismatch -g -O2 -ffile-prefix-map=/build/mpich-0xgrG5/mpich-4.0=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -cpp -fallow-invalid-boz -fallow-argument-mismatch -O2
MPICH FC: gfortran -O2 -ffile-prefix-map=/build/mpich-0xgrG5/mpich-4.0=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -fallow-invalid-boz -fallow-argument-mismatch -g -O2 -ffile-prefix-map=/build/mpich-0xgrG5/mpich-4.0=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -cpp -fallow-invalid-boz -fallow-argument-mismatch -O2
MPICH Custom Information:

dpkg -l | grep boost
ii libboost-all-dev 1.74.0.3ubuntu7 amd64 Boost C++ Libraries development files (ALL) (default version)
ii libboost-atomic-dev:amd64 1.74.0.3ubuntu7 amd64 atomic data types, operations, and memory ordering constraints (default version)
ii libboost-atomic1.74-dev:amd64 1.74.0-14ubuntu3 amd64 atomic data types, operations, and memory ordering constraints
ii libboost-atomic1.74.0:amd64 1.74.0-14ubuntu3 amd64 atomic data types, operations, and memory ordering constraints
ii libboost-chrono-dev:amd64 1.74.0.3ubuntu7 amd64 C++ representation of time duration, time point, and clocks (default version)

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

1 participant