Re: Errors building netbsd-8 on sparc64

Martin Husemann <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc64
Message-ID <[email protected]>
On Mon, Oct 09, 2017 at 09:08:17AM +0200, Martin Husemann wrote:
> On Mon, Oct 09, 2017 at 06:43:43AM +0100, Sad Clouds wrote:
> > Hi commenting out these two in mk.conf resulted in a successful build
> > 
> > COPTS+=-pipe
> > CPUFLAGS+=-mcpu=ultrasparc
> > 
> > I think it's the CPUFLAGS option that causes issues. This looks like a
> > NetBSD bug, as I mentioned previously, it used to work for years, until
> > now.
> 
> It has to be: the default for -mcpu is ultrasparc anyway, so this is a no-op
> at the compiler level.

I can not reproduce it, but I used a slightly different variation:

.if ! defined(_ETC_MK_PIPE_DONE)
_ETC_MK_PIPE_DONE=1
CFLAGS += -pipe
.endif

.if ${MACHINE} == "sparc"
CFLAGS+= -mcpu=v8 -mtune=supersparc
.elif ${MACHINE} == "sparc64"
CPUFLAGS+=-mcpu=ultrasparc
.endif


Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.