NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Stable kernel 9.0 compilation fail



Hi Martin,

Thanks for the indication. I don't know why but I had not file
"/etc/mk.conf" after the standard installation.
I have found one model of the file"/etc/mk.conf" in a NetBSD Wiki and I
have used it by adding
only an option to compile for the native architecture.

You will find the file "/etc/mk.conf" I have used in attachment.

Could you Please indicate me what instructions are useful in this file
to compile
correctly the kernel (I was successful when compiling the tools)?

Thanks for the help

Best regards

Le 17.08.20 à 11:46, Martin Husemann a écrit :
On Mon, Aug 17, 2020 at 09:55:16AM +0200, Pierre Dupond wrote:

-Wall -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wsystem-headers
-Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow
-Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter
-Wno-sign-compare -Wsign-compare -Wformat=2 -Wno-format-zero-length
-Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
-Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition
-Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code
-Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter
-Wold-style-definition -Wno-sign-compare -march=native
--sysroot=/usr/src/obj/destdir.amd64


You must have messed with the compiler flags, maybe something in your
/etc/mk.conf ?

I get:

-Werror -Wall -Wno-main
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
-Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow
-Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign
-Wno-attributes -Wextra -Wno-unused-parameter -Wold-style-definition
-Wno-sign-compare --sysroot=/others/hosts/amd64-9


Martin

# This is /etc/mk.conf
#

.if defined(BSD_PKG_MK) || defined(BUILDING_HTDOCS)
# The following lines apply to both pkgsrc and htdocs.

#...
LOCALBASE=          /usr/pkg
#...

.else
# The following lines apply to the base system.

WARNS= 4

CPUFLAGS+=-march=native
.endif


Home | Main Index | Thread Index | Old Index