Compile failure with g++: error: /include: No such file or directory

59 views
Skip to first unread message

Nguyen Huy

unread,
Jul 5, 2023, 6:42:18 AM7/5/23
to enzo-dev
Hi all, 

When I "make" the machine file, it failed and the output is like below: 

Updating DEPEND
make: [Makefile:353: dep] Error 127 (ignored)
make: [Makefile:354: dep] Error 127 (ignored)
make: [Makefile:355: dep] Error 127 (ignored)
make: [Makefile:356: dep] Error 127 (ignored)
make: [Makefile:357: dep] Error 127 (ignored)
make: [Makefile:358: dep] Error 127 (ignored)
make: [Makefile:359: dep] Error 127 (ignored)
Compiling enzo.C

mpic++  -c -o enzo.o -DLINUX -DH5_USE_16_API   -D__max_subgrids=100000 -D__max_baryons=30 -D__max_cpu_per_node=8 -D__memory_pool_size=100000 -DINITS64 -DLARGE_INTS -DCONFIG_PINT_8 -DIO_32    -DUSE_MPI   -DCONFIG_PFLOAT_8 -DCONFIG_BFLOAT_8  -DUSE_HDF5_GROUPS   -DTRANSFER   -DNEW_GRID_IO -DFAST_SIB      -DENZO_PERFORMANCE    -DUSE_UUID -DSAB  -g -I/software/opt/hdf5/1.12.1/intel/2022.1.0 /include -I/Developer/CUDA/common/inc -I/software/opt/mpich/4.0.1/gcc/11.2.0/include           -I. enzo.C

g++: error: /include: No such file or directory

make: *** [Makefile:275: enzo.o] Error 1

When i tried "g++ --version", g++ is still available. 
So what should I do to solve this problem? 
I also attached the machine file below. 
Thank you for your help.

Best regards, 
Huy


Wise, John H

unread,
Jul 5, 2023, 6:45:42 AM7/5/23
to enzo...@googlegroups.com

Hi Nguyen,


It looks like you have a space at the end of your HDF5 directory,

/software/opt/hdf5/1.12.1/intel/2022.1.0, which is causing /include not to be added to it in the compiler call.


Thanks,

John

--
John Wise
Director, Center for Relativistic Astrophysics
Professor, School of Physics
Georgia Institute of Technology

From: Nguyen Huy <ssp2...@asiaa.sinica.edu.tw>
Sent: Wednesday, July 5, 2023 06:42
To: enzo-dev
Subject: [enzo-dev] Compile failure with g++: error: /include: No such file or directory

--
You received this message because you are subscribed to the Google Groups "enzo-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enzo-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/enzo-dev/d5b5d157-d932-4307-95b3-6b295394480an%40googlegroups.com.

Nguyen Huy

unread,
Jul 5, 2023, 7:06:01 AM7/5/23
to enzo-dev
Dear Prof. John Wise, 

It's work!! 
Thanks a lot. 

Huy
Reply all
Reply to author
Forward
0 new messages