Revision: 329797 kernel build problem

From: Per Gunnarsson <p.gunnarsson_at_yahoo.com>
Date: Thu, 22 Feb 2018 10:43:21 +0100
When trying to build the kernel, I get:

--- all_subdir_linux ---
/usr/src/sys/amd64/linux32/linux32_dummy.c:1:5: error: unknown type name
'sys'
--- linux_fork.o ---
ctfconvert -L VERSION -g linux_fork.o
--- nsprepkg.o ---
cc -target x86_64-unknown-freebsd12.0
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -c -O2 -pipe
-fno-strict-aliasing?? -g -nostdinc?? -I. -I/usr/src/sys
-I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
-include opt_global.h?? -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer -MD?? -MF.depend.nsprepkg.o -MTnsprepkg.o
-mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float??
-fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector
-gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
-Wno-pointer-sign -D__printf__=__freebsd_kprintf__
-Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas
-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-error-address-of-packed-member?? -mno-aes -mno-avx??
-std=iso9899:1999 -Werror??
/usr/src/sys/contrib/dev/acpica/components/namespace/nsprepkg.c
--- modules-all ---
--- linux32_dummy.o ---
?????? sys/sys/sysent.2
?????? ^
/usr/src/sys/amd64/linux32/linux32_dummy.c:1:8: error: expected
identifier or '('
?????? sys/sys/sysent.2
???????????? ^
--- all_subdir_linux64 ---
--- assym.s ---
sh /usr/src/sys/kern/genassym.sh genassym.o > assym.s
--- all_subdir_libalias ---
--- alias_smedia.o ---
cc -target x86_64-unknown-freebsd12.0
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin?? -O2 -pipe??
-fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc????
-DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/amd64.amd64/sys/GENERIC/opt_global.h -I. -I/usr/src/sys
-fno-common -g -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-I/usr/obj/usr/src/amd64.amd64/sys/GENERIC???? -MD??
-MF.depend.alias_smedia.o -MTalias_smedia.o -mcmodel=kernel
-mno-red-zone -mno-mmx -mno-sse -msoft-float??
-fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector
-gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
-Wno-pointer-sign -D__printf__=__freebsd_kprintf__
-Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas
-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-error-address-of-packed-member?? -mno-aes -mno-avx??
-std=iso9899:1999 -c /usr/src/sys/netinet/libalias/alias_smedia.c -o
alias_smedia.o
--- all_subdir_linux64 ---
--- linux_genassym.o ---
cc -target x86_64-unknown-freebsd12.0
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -c -O2 -pipe
-fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc
-DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/amd64.amd64/sys/GENERIC/opt_global.h -I. -I/usr/src/sys
-g -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-I/usr/obj/usr/src/amd64.amd64/sys/GENERIC -MD
-MF.depend.linux_genassym.o -MTlinux_genassym.o -mcmodel=kernel
-mno-red-zone -mno-mmx -mno-sse -msoft-float
-fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector
-gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
-Wno-pointer-sign -D__printf__=__freebsd_kprintf__
-Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas
-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-error-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999
/usr/src/sys/amd64/linux/linux_genassym.c
--- all_subdir_linux ---
2 errors generated.
--- all_subdir_linux64 ---
--- linux_fork.o ---
cc -target x86_64-unknown-freebsd12.0
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin?? -O2 -pipe??
-fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc????
-DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/amd64.amd64/sys/GENERIC/opt_global.h -I. -I/usr/src/sys
-fno-common -g -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-I/usr/obj/usr/src/amd64.amd64/sys/GENERIC???? -MD??
-MF.depend.linux_fork.o -MTlinux_fork.o -mcmodel=kernel -mno-red-zone
-mno-mmx -mno-sse -msoft-float?? -fno-asynchronous-unwind-tables
-ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
-Wno-pointer-sign -D__printf__=__freebsd_kprintf__
-Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas
-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-error-address-of-packed-member?? -mno-aes -mno-avx??
-std=iso9899:1999 -c /usr/src/sys/compat/linux/linux_fork.c -o linux_fork.o
--- all_subdir_linux ---
*** [linux32_dummy.o] Error code 1

Regards,

Per Gunnarsson
Received on Thu Feb 22 2018 - 08:48:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:15 UTC