Re: build distribution fails on sparc64

BERTRAND Joël <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc64
Message-ID <[email protected]>
Martin Husemann a écrit :
> On Thu, Mar 13, 2014 at 08:52:59PM +0100, BERTRAND Joël wrote:
>> --- gcrt0.o ---
>> /usr/src/lib/csu/arch/sparc/crt0.S: Assembler messages:
>> /usr/src/lib/csu/arch/sparc/crt0.S:53: Error: detected global register
>> use not covered by .register pseudo-op
>> ...
>>
>> 	Both files come from sparc directory, not from sparc64. I'm suppose
>> there is a bug in Makefile.
>
> Need more context - this could be from the 32bit compat build part.
> Do you have any special settings in /etc/mk.conf? Like forcing -mcpu=...
> or similar?

	Yes, I have. Here is my /etc/mk.conf :
ACCEPTABLE_LICENSES+= vim-license
ACCEPTABLE_LICENSES+= gnu-agpl-v3

COPTS= -O2
CPUFLAGS= -mcpu=ultrasparc3 -mtune=ultrasparc3

PKG_OPTIONS.gcc48= nls gcc-inplace-math gcc-c++ gcc-fortran

	I have tried to add :
MACHINE_CPU=sparc64
MACHINE_ARCH=sparc64

to force /usr/src/lib/csu/arch/sparc64/crt0.S instead of 
/usr/src/lib/csu/arch/sparc/crt0.S.

	Regards,

	JKB
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.