Port-sparc64 archive

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

Re: build distribution fails on sparc64



Le 17/03/2014 10:26, Martin Husemann a écrit :
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.

Is -m32 flag added after or before mk.conf inclusion ? I have written CPUFLAGS=-mcpu=ultrasparc3 -mtune=ultrasparc3, not CPUFLAGS+=-mcpu=ultrasparc3 -mtune=ultrasparc3.

AFAICT you are never supposed to unconditionally kill COPTS and set it
to something new.

        I have tried with and without COPTS and result was the same.

        Best regards,

        JKB



Home | Main Index | Thread Index | Old Index