Re: build distribution fails on sparc64
Martin Husemann <[email protected]>
| Newsgroups | gmane.os.netbsd.ports.sparc64 |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Mar 17, 2014 at 09:25:36AM +0100, Joël BERTRAND wrote: > I have tried to build distribution from scratch. With COPTS=-O2 and > CPUFLAGS=-mcpu=ultrasparc3 -mtune=ultrasparc3, it stops with error as it > tries to compile sparc32 code with 64 bits instructions. If I remove > CPUFLAGS, it runs like a charm. I suppose there is a bug somewhere. > Maybe compat32 code should undef CPUFLAGS. I don't think CPUFLAGS is the problem. Your build looses the -m32 and other flags passed to the compat build. These are *added* to both COPTS and CPUFLAGS, so overwriting both of those makes it fail. AFAICT you are never supposed to unconditionally kill COPTS and set it to something new. Martin