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: Takahiro Kambe <taca%back-street.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/57514: Self build fails on evbarm-aarch64
Date: Mon, 10 Jul 2023 18:56:28 +0900 (JST)

 In message <20230710094502.706F41A923E%mollari.NetBSD.org@localhost>
 	on Mon, 10 Jul 2023 09:45:02 +0000 (UTC),
 	Valery Ushakov <uwe%stderr.spb.ru@localhost> wrote:
 >  >  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 have never changed machine dependent compiler options.
 
 >  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...
 Oh, that's my case.
 
 My old /etc/mk.conf contains:
 
 	COPTS+=	-pipe
 
 Removing this line solve the problem.
 
 -- 
 Takahiro Kambe <taca%back-street.net@localhost>
 


Home | Main Index | Thread Index | Old Index