NetBSD-Bugs archive

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

Re: kern/57514: Self build fails on evbarm-aarch64



The following reply was made to PR kern/57514; it has been noted by GNATS.

From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/57514: Self build fails on evbarm-aarch64
Date: Mon, 10 Jul 2023 12:44:09 +0300

 >  Where did you set ``-march=armv8-a+nofp+nosimd''? For this purpose,
 >  you should use CPUFLAGS; see mk.conf(5) for more details. In this
 >  case, standard optimization flags seem to be override by this MD
 >  flag.
 
 I think it's exactly this.
 
 There's a bug in the kernel makefiles that is so old it became a
 feature.  share/mk uses COPTS as "additional flags to the compiler",
 but the kernel makefiles use COPTS as its own private variable not
 intended to be set by the user and conf/Makefile.kern.inc has
 
 DEFCOPTS?=      -O2
 COPTS?=         ${DEFCOPTS}
 DBG=            # might contain unwanted -Ofoo
 
 So when people habitually set COPTS they use -O2 and their kernels
 stop fitting the boot media, etc...
 
 -uwe
 


Home | Main Index | Thread Index | Old Index