I am getting this error:
Making dependency list for source file UOPwrite.C g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -isystem /home/jano/.cache/yay/openfoam/src/ThirdParty-6/platforms/linux64Gcc/openmpi-2.1.1/include -IlnInclude -I. -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OpenFOAM/lnInclude -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OSspecific/POSIX/lnInclude -fPIC -c UOPwrite.C -o /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/UOPwrite.o g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -isystem /home/jano/.cache/yay/openfoam/src/ThirdParty-6/platforms/linux64Gcc/openmpi-2.1.1/include -IlnInclude -I. -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OpenFOAM/lnInclude -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OSspecific/POSIX/lnInclude -fPIC -c UIPread.C -o /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/UIPread.o g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -isystem /home/jano/.cache/yay/openfoam/src/ThirdParty-6/platforms/linux64Gcc/openmpi-2.1.1/include -IlnInclude -I. -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OpenFOAM/lnInclude -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OSspecific/POSIX/lnInclude -fPIC -c UPstream.C -o /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/UPstream.o g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -isystem /home/jano/.cache/yay/openfoam/src/ThirdParty-6/platforms/linux64Gcc/openmpi-2.1.1/include -IlnInclude -I. -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OpenFOAM/lnInclude -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OSspecific/POSIX/lnInclude -fPIC -c PstreamGlobals.C -o /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/PstreamGlobals.o g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -isystem /home/jano/.cache/yay/openfoam/src/ThirdParty-6/platforms/linux64Gcc/openmpi-2.1.1/include -IlnInclude -I. -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OpenFOAM/lnInclude -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OSspecific/POSIX/lnInclude -fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/UOPwrite.o /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/UIPread.o /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/UPstream.o /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/PstreamGlobals.o -L/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/lib \ -L/home/jano/.cache/yay/openfoam/src/ThirdParty-6/platforms/linux64Gcc/openmpi-2.1.1/lib64 -L/home/jano/.cache/yay/openfoam/src/ThirdParty-6/platforms/linux64Gcc/openmpi-2.1.1/lib -lmpi -o /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32Opt/lib/openmpi-2.1.1/libPstream.so /usr/bin/ld: cannot find -lmpi collect2: error: ld returned 1 exit status make: *** [/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/wmake/makefiles/general:169: /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32Opt/lib/openmpi-2.1.1/libPstream.so] Error 1 ==> ERROR: A failure occurred in build(). Aborting... Error making: openfoam
Pinned Comments
petronny commented on 2020-08-04 08:36 (UTC) (edited on 2023-04-14 08:48 (UTC) by petronny)
Pre-built binaries of this package and its dependencies can be found in the arch4edu repository.