machine/endian.h' file not found
- Reply: Dave Cottlehuber: "Re: machine/endian.h' file not found"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 18 Jul 2024 10:37:13 UTC
Hi, I did try to compile drm-515-kmod from ports on FreeBSD 14.1-RELEASE p2 which is upgraded from 14.0 (freebsd-update upgrade) and I got: --- dma-buf-kmod.o --- In file included from /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/drivers/dma-buf/dma-buf-kmod.c:30: In file included from /usr/src/sys/sys/param.h:116: /usr/src/sys/sys/types.h:45:10: fatal error: 'machine/endian.h' file not found 45 | #include <machine/endian.h> | ^~~~~~~~~~~~~~~~~~ 1 error generated. *** [dma-buf-kmod.o] Error code 1 make[1]: stopped in /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/dmabuf --- dma-fence-array.o --- In file included from /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/drivers/dma-buf/dma-fence-array.c:27: In file included from /usr/src/sys/sys/param.h:116: /usr/src/sys/sys/types.h:45:10: fatal error: 'machine/endian.h' file not found 45 | #include <machine/endian.h> | ^~~~~~~~~~~~~~~~~~ --- dma-fence.o --- In file included from /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/drivers/dma-buf/dma-fence.c:27: In file included from /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/linuxkpi/bsd/include/linux/dma-fence.h:30: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/err.h:32: /usr/src/sys/sys/types.h:45:10: fatal error: 'machine/endian.h' file not found 45 | #include <machine/endian.h> | ^~~~~~~~~~~~~~~~~~ --- dma-fence-chain.o --- In file included from /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/drivers/dma-buf/dma-fence-chain.c:27: In file included from /usr/src/sys/sys/param.h:116: /usr/src/sys/sys/types.h:45:10: fatal error: 'machine/endian.h' file not found 45 | #include <machine/endian.h> | ^~~~~~~~~~~~~~~~~~ --- sync_file.o --- In file included from /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/drivers/dma-buf/sync_file.c:9: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/file.h:32: In file included from /usr/src/sys/sys/param.h:116: /usr/src/sys/sys/types.h:45:10: fatal error: 'machine/endian.h' file not found 45 | #include <machine/endian.h> | ^~~~~~~~~~~~~~~~~~ --- dma-resv.o --- In file included from /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/drivers/dma-buf/dma-resv.c:36: In file included from /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/linuxkpi/gplv2/include/linux/dma-resv.h:42: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/ww_mutex.h:29: In file included from /usr/src/sys/sys/param.h:116: /usr/src/sys/sys/types.h:45:10: fatal error: 'machine/endian.h' file not found 45 | #include <machine/endian.h> | ^~~~~~~~~~~~~~~~~~ --- dma-buf.o --- In file included from /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/drivers/dma-buf/dma-buf.c:30: In file included from /usr/src/sys/sys/param.h:116: /usr/src/sys/sys/types.h:45:10: fatal error: 'machine/endian.h' file not found 45 | #include <machine/endian.h> | ^~~~~~~~~~~~~~~~~~ --- dma-fence-array.o --- 1 error generated. *** [dma-fence-array.o] Error code 1 make[1]: stopped in /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/dmabuf --- dma-fence.o --- 1 error generated. *** [dma-fence.o] Error code 1 make[1]: stopped in /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/dmabuf --- dma-fence-chain.o --- 1 error generated. *** [dma-fence-chain.o] Error code 1 make[1]: stopped in /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/dmabuf --- sync_file.o --- 1 error generated. *** [sync_file.o] Error code 1 make[1]: stopped in /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/dmabuf --- dma-resv.o --- 1 error generated. *** [dma-resv.o] Error code 1 make[1]: stopped in /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/dmabuf --- dma-buf.o --- 1 error generated. *** [dma-buf.o] Error code 1 make[1]: stopped in /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/dmabuf 7 errors make[1]: stopped in /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/dmabuf make: stopped in /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0 ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /usr/ports/graphics/drm-515-kmod Thank you. -- “I hate books; they only teach us to talk about things we know nothing about.” ― Jean-Jacques Rousseau