Hi, I'm trying to create a package for OpenDX in the Spack package manager. On macOS, I encounter dozens of build issues. On Linux, I get a bit further, but the build eventually crashes with:
sh ../../../libtool --tag=CC --mode=compile /data/keeling/a/adamjs5/spack/lib/spack/env/gcc/gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -Dlinux -g -O2 -D_GNU_SOURCE -c -o memory.lo memory.c
/data/keeling/a/adamjs5/spack/lib/spack/env/gcc/gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -Dlinux -g -O2 -D_GNU_SOURCE -c memory.c -o memory.o
memory.c:68:23: fatal error: linux/sys.h: No such file or directory
#include <linux/sys.h>
^
compilation terminated.
make[4]: *** [memory.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/tmp/adamjs5/spack-stage/spack-stage-opendx-master-vhflyigo5hjmi427b4ulxirw6azbmjxc/spack-src/src/exec/libdx'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/adamjs5/spack-stage/spack-stage-opendx-master-vhflyigo5hjmi427b4ulxirw6azbmjxc/spack-src/src/exec/libdx'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/adamjs5/spack-stage/spack-stage-opendx-master-vhflyigo5hjmi427b4ulxirw6azbmjxc/spack-src/src/exec'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/adamjs5/spack-stage/spack-stage-opendx-master-vhflyigo5hjmi427b4ulxirw6azbmjxc/spack-src/src'
make: *** [all-recursive] Error 1
I think linux/sys.h is a private header that isn't included in the OS when Linux gets built. I can try removing the #include, but I have no idea what the repercussions of this are.
Hi, I'm trying to create a package for OpenDX in the Spack package manager. On macOS, I encounter dozens of build issues. On Linux, I get a bit further, but the build eventually crashes with:
I think
linux/sys.his a private header that isn't included in the OS when Linux gets built. I can try removing the#include, but I have no idea what the repercussions of this are.