Hello everyone! I'm a newbie using MFEM. When I run the example ginkgo something like: g++ ex1.cpp -o ex1 . It reports: fatal error: mfem.hpp: No such file or directory. I have no idea about it. May you help me?
Thank you!
Hi @nghiakvnvsd ,
I think you cannot just use g++ to compile examples and you can follow the instructions here.
It would be better if you show us more information about building mfem.
To add to @fanronghong's answer, you need to first configure and build mfem with MFEM_USE_GINGKO=YES and then go and do make in the ginkgo examples directory.
thanks for replying!!! I don't know how to build mfem with? it is something like: make ex1 MFEM_USE_GINKGO=YES???
I try doing: sudo make install MFEM_USE_GINGKO=YES and it reports:
mkdir -p ./mfem/lib
/usr/bin/install -m 640 libmfem.a ./mfem/lib
mkdir -p ./mfem/include/mfem
/usr/bin/install -m 640 mfem.hpp mfem-performance.hpp \
./mfem/include/mfem
for hdr in mfem.hpp mfem-performance.hpp; do \
printf '// Auto-generated file.\n#include "mfem/'$hdr'"\n' \
./mfem/include/$hdr && chmod 640 ./mfem/include/$hdr; done
mkdir -p ./mfem/include/mfem/config
/usr/bin/install -m 640 config/_config.hpp ./mfem/include/mfem/config/config.hpp
/usr/bin/install -m 640 config/tconfig.hpp ./mfem/include/mfem/config
for dir in general linalg mesh fem fem/libceed; do \
mkdir -p ./mfem/include/mfem/$dir && \
/usr/bin/install -m 640 $dir/.hpp ./mfem/include/mfem/$dir; \
done
for dir in fem; do \
mkdir -p ./mfem/include/mfem/$dir && \
/usr/bin/install -m 640 $dir/.okl ./mfem/include/mfem/$dir; \
done
mkdir -p ./mfem/include/mfem/fem/libceed
/usr/bin/install -m 640 fem/libceed/*.h ./mfem/include/mfem/fem/libceed
mkdir -p ./mfem/share/mfem
make -C config config-mk CONFIG_MK=config-install.mk
make[1]: Entering directory '/home/ubuntu/Downloads/mfem-4.1/config'
make[1]: Leaving directory '/home/ubuntu/Downloads/mfem-4.1/config'
/usr/bin/install -m 640 config/config-install.mk ./mfem/share/mfem/config.mk
rm -f config/config-install.mk
/usr/bin/install -m 640 config/test.mk ./mfem/share/mfem/test.mk
But when I go ginkgo example directory and run: make ex1, it reports: makefile:48: * MFEM is not configured with GINKO. Stop.
Sorry about that. I have no background about installing c++ library. May you help me?
And also, I build hypre:
~> tar -zxvf hypre-2.19.0.tar.gz
~> cd hypre-2.19.0/src/
~/hypre-2.19.0/src> ./configure --disable-fortran
~/hypre-2.19.0/src> make -j
~/hypre-2.19.0/src> cd ../..
~> ln -s hypre-2.19.0 hypre
when I run: make -j it reports the error:
Making blas ...
make[1]: Entering directory '/home/ubuntu/Downloads/hypre-2.19.0/src/blas'
O -DHAVE_CONFIG_H -I.. -I../utilities -c dasum.c
O -DHAVE_CONFIG_H -I.. -I../utilities -c daxpy.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dasum.o' failed
make[1]: [dasum.o] Error 127 (ignored)
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../utilities -c dcopy.c
../config/Makefile.config:42: recipe for target 'daxpy.o' failed
make[1]: [daxpy.o] Error 127 (ignored)
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../utilities -c ddot.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dcopy.o' failed
make[1]: [dcopy.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../utilities -c dgemm.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'ddot.o' failed
make[1]: [ddot.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../utilities -c dgemv.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dgemm.o' failed
make[1]: [dgemm.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'dgemv.o' failed
make[1]: [dgemv.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../utilities -c dger.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dger.o' failed
make[1]: [dger.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../utilities -c dnrm2.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dnrm2.o' failed
make[1]: [dnrm2.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../utilities -c drot.c
O -DHAVE_CONFIG_H -I.. -I../utilities -c dscal.c
make[1]: O: Command not found
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'drot.o' failed
make[1]: [drot.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'dscal.o' failed
make[1]: [dscal.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../utilities -c dswap.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dswap.o' failed
make[1]: [dswap.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../utilities -c dsymm.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dsymm.o' failed
make[1]: [dsymm.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../utilities -c dsymv.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dsymv.o' failed
make[1]: [dsymv.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../utilities -c dsyr2.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dsyr2.o' failed
make[1]: [dsyr2.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../utilities -c dsyr2k.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dsyr2k.o' failed
make[1]: [dsyr2k.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../utilities -c dsyrk.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dsyrk.o' failed
make[1]: [dsyrk.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../utilities -c dtrmm.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dtrmm.o' failed
make[1]: [dtrmm.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../utilities -c dtrmv.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dtrmv.o' failed
make[1]: [dtrmv.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../utilities -c dtrsm.c
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../utilities -c dtrsv.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dtrsm.o' failed
make[1]: [dtrsm.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'dtrsv.o' failed
make[1]: [dtrsv.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../utilities -c f2c.c
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../utilities -c idamax.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'f2c.o' failed
make[1]: [f2c.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'idamax.o' failed
make[1]: [idamax.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../utilities -c lsame.c
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../utilities -c xerbla.c
../config/Makefile.config:42: recipe for target 'lsame.o' failed
make[1]: [lsame.o] Error 127 (ignored)
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'xerbla.o' failed
make[1]: [xerbla.o] Error 127 (ignored)
make[1]: Leaving directory '/home/ubuntu/Downloads/hypre-2.19.0/src/blas'
Making lapack ...
make[1]: Entering directory '/home/ubuntu/Downloads/hypre-2.19.0/src/lapack'
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dbdsqr.c
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dgebd2.c
make[1]: O: Command not found
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dbdsqr.o' failed
make[1]: [dbdsqr.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'dgebd2.o' failed
make[1]: [dgebd2.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dgebrd.c
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dgelq2.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dgebrd.o' failed
make[1]: [dgebrd.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dgelqf.c
make[1]: O: Command not found
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dgelq2.o' failed
make[1]: [dgelq2.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dgels.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dgelqf.o' failed
make[1]: [dgelqf.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dgeqr2.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dgels.o' failed
make[1]: [dgels.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dgeqrf.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dgeqr2.o' failed
make[1]: [dgeqr2.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dgesvd.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dgeqrf.o' failed
make[1]: [dgeqrf.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dgetrf.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dgesvd.o' failed
make[1]: [dgesvd.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dgetri.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dgetrf.o' failed
make[1]: [dgetrf.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dgetrs.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dgetri.o' failed
make[1]: [dgetri.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dgetf2.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dgetrs.o' failed
make[1]: [dgetrs.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlabad.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dgetf2.o' failed
make[1]: [dgetf2.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlabrd.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlabad.o' failed
make[1]: [dlabad.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlacpy.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlabrd.o' failed
make[1]: [dlabrd.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlae2.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlacpy.o' failed
make[1]: [dlacpy.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlaev2.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlae2.o' failed
make[1]: [dlae2.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlange.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlaev2.o' failed
make[1]: [dlaev2.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlanst.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlange.o' failed
make[1]: [dlange.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlansy.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlanst.o' failed
make[1]: [dlanst.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlapy2.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlansy.o' failed
make[1]: [dlansy.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlarfb.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlapy2.o' failed
make[1]: [dlapy2.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlarf.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlarfb.o' failed
make[1]: [dlarfb.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlarfg.c
../config/Makefile.config:42: recipe for target 'dlarf.o' failed
make[1]: O: Command not found
make[1]: [dlarf.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlarft.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlarfg.o' failed
make[1]: [dlarfg.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlartg.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlarft.o' failed
make[1]: [dlarft.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlas2.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlartg.o' failed
make[1]: [dlartg.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlascl.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlas2.o' failed
make[1]: [dlas2.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlaset.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlascl.o' failed
make[1]: [dlascl.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlasq1.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlaset.o' failed
make[1]: [dlaset.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlasq2.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlasq1.o' failed
make[1]: [dlasq1.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlasq3.c
../config/Makefile.config:42: recipe for target 'dlasq2.o' failed
make[1]: O: Command not found
make[1]: [dlasq2.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlasq4.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlasq3.o' failed
make[1]: [dlasq3.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlasq5.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlasq4.o' failed
make[1]: [dlasq4.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlasq6.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlasq5.o' failed
make[1]: [dlasq5.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlasr.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlasq6.o' failed
make[1]: [dlasq6.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlasrt.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlasr.o' failed
make[1]: [dlasr.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlassq.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlasrt.o' failed
make[1]: [dlasrt.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlaswp.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlassq.o' failed
make[1]: [dlassq.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlasv2.c
../config/Makefile.config:42: recipe for target 'dlaswp.o' failed
make[1]: [dlaswp.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlatrd.c
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dorg2l.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dlasv2.o' failed
make[1]: [dlasv2.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'dlatrd.o' failed
make[1]: [dlatrd.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dorg2r.c
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dorgbr.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dorg2l.o' failed
make[1]: [dorg2l.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'dorg2r.o' failed
make[1]: [dorg2r.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dorgl2.c
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dorglq.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dorgbr.o' failed
make[1]: [dorgbr.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'dorgl2.o' failed
make[1]: [dorgl2.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dorgql.c
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dorgqr.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dorglq.o' failed
make[1]: [dorglq.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'dorgql.o' failed
make[1]: [dorgql.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dorgtr.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dorgqr.o' failed
make[1]: [dorgqr.o] Error 127 (ignored)
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dorm2r.c
../config/Makefile.config:42: recipe for target 'dorgtr.o' failed
make[1]: [dorgtr.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dormbr.c
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dorml2.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dorm2r.o' failed
make[1]: [dorm2r.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'dormbr.o' failed
make[1]: [dormbr.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dormlq.c
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dormqr.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dorml2.o' failed
make[1]: [dorml2.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'dormlq.o' failed
make[1]: [dormlq.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dpotf2.c
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dpotrf.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dormqr.o' failed
make[1]: [dormqr.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'dpotf2.o' failed
make[1]: [dpotf2.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dpotrs.c
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dsteqr.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dpotrf.o' failed
make[1]: [dpotrf.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'dpotrs.o' failed
make[1]: [dpotrs.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dsterf.c
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dsyev.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dsteqr.o' failed
make[1]: [dsteqr.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dsygs2.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dsterf.o' failed
make[1]: [dsterf.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'dsyev.o' failed
make[1]: [dsyev.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dsygst.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dsygs2.o' failed
make[1]: [dsygs2.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dsygv.c
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dsytd2.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dsygst.o' failed
make[1]: [dsygst.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'dsygv.o' failed
make[1]: [dsygv.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dsytrd.c
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dtrtri.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dsytd2.o' failed
make[1]: [dsytd2.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dtrti2.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'dsytrd.o' failed
make[1]: [dsytrd.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'dtrtri.o' failed
make[1]: [dtrtri.o] Error 127 (ignored)
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c ieeeck.c
../config/Makefile.config:42: recipe for target 'dtrti2.o' failed
make[1]: [dtrti2.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c ilaenv.c
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c lsame.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'ieeeck.o' failed
make[1]: [ieeeck.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'ilaenv.o' failed
make[1]: [ilaenv.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c xerbla.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'lsame.o' failed
make[1]: [lsame.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I../blas -I../utilities -c dlamch.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'xerbla.o' failed
make[1]: [xerbla.o] Error 127 (ignored)
make[1]: O: Command not found
Makefile:109: recipe for target 'dlamch.o' failed
make[1]: [dlamch.o] Error 127 (ignored)
make[1]: Leaving directory '/home/ubuntu/Downloads/hypre-2.19.0/src/lapack'
Making utilities ...
make[1]: Entering directory '/home/ubuntu/Downloads/hypre-2.19.0/src/utilities'
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c F90_HYPRE_error.c
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c F90_HYPRE_general.c
../config/Makefile.config:42: recipe for target 'F90_HYPRE_error.o' failed
make[1]: [F90_HYPRE_error.o] Error 127 (ignored)
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c HYPRE_version.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'F90_HYPRE_general.o' failed
make[1]: [F90_HYPRE_general.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c amg_linklist.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'HYPRE_version.o' failed
make[1]: [HYPRE_version.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c binsearch.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'amg_linklist.o' failed
make[1]: [amg_linklist.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c exchange_data.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'binsearch.o' failed
make[1]: [binsearch.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c fortran_matrix.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'exchange_data.o' failed
make[1]: [exchange_data.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c hypre_ap.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'fortran_matrix.o' failed
make[1]: [fortran_matrix.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c hypre_complex.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'hypre_ap.o' failed
make[1]: [hypre_ap.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c hypre_cuda_utils.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'hypre_complex.o' failed
make[1]: [hypre_complex.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c hypre_error.c
../config/Makefile.config:42: recipe for target 'hypre_cuda_utils.o' failed
make[1]: [hypre_cuda_utils.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c hypre_general.c
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c hypre_hopscotch_hash.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'hypre_general.o' failed
make[1]: [hypre_general.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c hypre_memory.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'hypre_hopscotch_hash.o' failed
make[1]: [hypre_hopscotch_hash.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c hypre_merge_sort.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'hypre_memory.o' failed
make[1]: [hypre_memory.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c hypre_mpi_comm_f2c.c
make[1]: O: Command not found
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'hypre_merge_sort.o' failed
make[1]: [hypre_merge_sort.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c hypre_nvtx.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'hypre_error.o' failed
make[1]: [hypre_error.o] Error 127 (ignored)
../config/Makefile.config:42: recipe for target 'hypre_mpi_comm_f2c.o' failed
make[1]: [hypre_mpi_comm_f2c.o] Error 127 (ignored)
make[1]: O: Command not found
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c hypre_omp_device.c
../config/Makefile.config:42: recipe for target 'hypre_nvtx.o' failed
make[1]: [hypre_nvtx.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c hypre_prefix_sum.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'hypre_omp_device.o' failed
make[1]: [hypre_omp_device.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c hypre_printf.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'hypre_prefix_sum.o' failed
make[1]: [hypre_prefix_sum.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c hypre_qsort.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'hypre_printf.o' failed
make[1]: [hypre_printf.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c mpistubs.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'hypre_qsort.o' failed
make[1]: [hypre_qsort.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c qsplit.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'mpistubs.o' failed
make[1]: [mpistubs.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c random.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'qsplit.o' failed
make[1]: [qsplit.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c threading.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'random.o' failed
make[1]: [random.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c timer.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'threading.o' failed
make[1]: [threading.o] Error 127 (ignored)
O -DHAVE_CONFIG_H -I.. -I./.. -I. -c timing.c
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'timer.o' failed
make[1]: [timer.o] Error 127 (ignored)
make[1]: O: Command not found
../config/Makefile.config:42: recipe for target 'timing.o' failed
make[1]: [timing.o] Error 127 (ignored)
Building libHYPRE_utilities.a ...
ar -rcu libHYPRE_utilities.a .o
ar: u' modifier ignored sinceD' is the default (see `U')
ar: *.o: No such file or directory
Makefile:93: recipe for target 'libHYPRE_utilities.a' failed
make[1]: [libHYPRE_utilities.a] Error 1
make[1]: Leaving directory '/home/ubuntu/Downloads/hypre-2.19.0/src/utilities'
Makefile:86: recipe for target 'all' failed
make: * [all] Error 1
Most helpful comment
To add to @fanronghong's answer, you need to first configure and build mfem with
MFEM_USE_GINGKO=YESand then go and domakein the ginkgo examples directory.