Subject: Re: Cross building NetBSD-current for sparc fails
To: None <port-sparc@NetBSD.org, current-users@NetBSD.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: current-users
Date: 07/15/2006 05:01:40
On Thu, Jul 13, 2006 at 11:51:09 +0000, Matthias Scheler wrote:
> I'm trying to cross build NetBSD-sparc current (2006-07-13 sources) on my
> NetBSD-i386 3.0_STABLE box. The build fails because the compiler
> apparently generates opcodes which the assembler doesn't understand:
>
> # compile libstdc++-v3_4/atomicity.o
> /home/tron/obj/tooldir.NetBSD-3.0_STABLE-i386/bin/sparc--netbsdelf-c++ -O2 -Werror -fno-implicit-templates -fdiagnostics-show-location=once -nostdinc++ -cxx-isystem /home/tron/obj/destdir.sparc/usr/include/g++ -I/src/NetBSD-current/src/gnu/dist/gcc4/gcc -I/src/NetBSD-current/src/gnu/dist/gcc4/include -I/src/NetBSD-current/src/gnu/dist/gcc4/libstdc++-v3/libsupc++ -I/src/NetBSD-current/src/gnu/lib/libstdc++-v3_4/../libstdc++-v3_4/arch/sparc -I. -DHAVE_STDLIB_H -DHAVE_STRING_H -I/src/NetBSD-current/src/gnu/dist/gcc4/libstdc++-v3/include -nostdinc -isystem /home/tron/obj/destdir.sparc/usr/include -c /src/NetBSD-current/src/gnu/lib/libstdc++-v3_4/atomicity.cc -o atomicity.o
> /tmp/ccVi3yPr.s: Assembler messages:
> /tmp/ccVi3yPr.s:14: Fatal error: Unknown opcode: `xchg{l} {[%g1+%lo(_ZN9__gnu_cxx15_Atomicity_lockILi0EE17_S_atomicity_lockE)],%g2|%g2,[%g1+%lo(_ZN9__gnu_cxx15_Atomicity_lockILi0EE17_S_atomicity_lockE)]}'
Looks like an i386 instruction has crept into sparc output. What is
the contents of the .s file?
SY, Uwe
--
uwe@ptc.spbu.ru | Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen