https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286010

--- Comment #2 from Haresh <hareshx.sankar....@intel.com> ---
It is an internal qat kernel module that we compile on FreeBSD 15 kernel.

Below is the snippet from the build of file: qae_mem_drv_utils.c

It contains this header: #include <sys/types.h>

And also the CFLAGS have -D_FORTIFY_SOURCE=2

We can remove this FORTIFY_SOURCE and disable it to unblock the build. But we
also feel since the ssp.h is user space specific it is good to get this wrapped
around !defined(_KERNEL) macro

cc  -O2 -pipe -fms-extensions -D__KERNEL__ -DKERNEL_SPACE -Wformat
-Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks
-fwrapv -Wno-missing-field-initializers -fno-strict-aliasing -fstack-protector 
-Werror -D_KERNEL -DKLD_MODULE -nostdinc 
-I/root/skaruthx/usdm/freebsd/kernel_space/../..
-I/root/skaruthx/usdm/freebsd/kernel_space/../../include -include
/root/skaruthx/usdm/freebsd/kernel_space/opt_global.h -I. -I/usr/src/sys
-I/usr/src/sys/contrib/ck/include -fno-common  -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer
-fdebug-prefix-map=./machine=/usr/src/sys/amd64/include
-fdebug-prefix-map=./x86=/usr/src/sys/x86/include
-fdebug-prefix-map=./i386=/usr/src/sys/i386/include    -MD 
-MF.depend.qae_mem_drv_utils.o -MTqae_mem_drv_utils.o -mcmodel=kernel
-mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables
-ffreestanding -fwrapv -fstack-protector  -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign
-D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wswitch
-Wno-error=tautological-compare -Wno-error=empty-body
-Wno-error=parentheses-equality -Wno-error=unused-function
-Wno-error=pointer-sign -Wno-error=shift-negative-value
-Wno-address-of-packed-member -Wno-format-zero-length   -mno-aes -mno-avx 
-std=gnu17 -c qae_mem_drv_utils.c -o qae_mem_drv_utils.o


This results in the below compilation error:

In file included from qae_mem_drv_utils.c:15:
In file included from /usr/src/sys/sys/systm.h:40:
In file included from /usr/src/sys/sys/types.h:315:
/usr/src/sys/sys/select.h:66:10: fatal error: 'ssp/ssp.h' file not found
   66 | #include <ssp/ssp.h>
      |          ^~~~~~~~~~~
1 error generated.
*** Error code 1

Stop.
make[3]: stopped making "all" in /root/skaruthx/usdm/freebsd/kernel_space
*** Error code 1

Stop.
make[2]: stopped making "all" in /root/skaruthx/usdm/freebsd
gmake[1]: *** [Makefile:232: cmn_ko] Error 1
gmake[1]: Leaving directory
'/root/skaruthx/sal/me_acceleration_layer/release_files/tlm'
gmake: *** [Makefile:105: usdm_drv_ko] Error 2

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to