Hello,

I faced the problem trying to build SLURM trunk with hwloc that was
installed by non-standard path. The compilation aborted with the following
error:

Making all in slurmd
make[4]: Entering directory
`/home/artpol/WORK/Development/SLURM/mpi_plugin/src/slurm/src/slurmd/slurmd'
gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../slurm
 -DLIBSLURM_SO=\"/usr/local/lib/libslurm.so\" -I../../..   -g -O2 -pthread
-fno-gcse -MT slurmd.o -MD -MP -MF .deps/slurmd.Tpo -c -o slurmd.o slurmd.c
slurmd.c:48:21: fatal error: hwloc.h: No such file or directory
 #  include <hwloc.h>
                     ^
compilation terminated.

I was able to fix it with the attached patch. I am sure that a lot of
people use non-standard hwloc installations so it might be something that
I'm doing wrong. Let me know if that is the case.

-- 
С Уважением, Поляков Артем Юрьевич
Best regards, Artem Y. Polyakov
diff --git a/src/slurmd/slurmd/Makefile.am b/src/slurmd/slurmd/Makefile.am
index ec090ba..b191bbf 100644
--- a/src/slurmd/slurmd/Makefile.am
+++ b/src/slurmd/slurmd/Makefile.am
@@ -6,7 +6,7 @@ AUTOMAKE_OPTIONS = foreign
 sbin_PROGRAMS = slurmd
 
 AM_CPPFLAGS = -DLIBSLURM_SO=\"$(libdir)/libslurm.so\" \
-	-I$(top_srcdir)
+	-I$(top_srcdir) $(HWLOC_CPPFLAGS)
 
 slurmd_LDADD = 					   \
 	$(top_builddir)/src/common/libdaemonize.la \

Reply via email to