Subject: Re: bootxx_ffsv1 compilation failure on amd64
To: Nicolas Joly <njoly@pasteur.fr>
From: dixie <dixieml@imap.cc>
List: current-users
Date: 12/22/2005 16:12:14
This is a multi-part message in MIME format.
--------------080106010001020906070409
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Nicolas Joly wrote:
>On Wed, Dec 21, 2005 at 08:41:45PM +0000, David Laight wrote:
>
>
>>On Wed, Dec 21, 2005 at 09:31:08PM +0100, Nicolas Joly wrote:
>>
>>
>>>Hi,
>>>
>>>I just noticed, while updating my -current amd64 workstation, that
>>>`bootxx_ffsv1' does not compile anymore :
>>>
>>>
>>>/local/src/NetBSD/src/common/lib/libc/arch/x86_64/string/memchr.S:13: Error: bad register name `%sil'
>>>
>>>
>>Looks like it is trying to compile the amd64 assembler functions.
>>The boot code is actually i386 code.
>>
>>
>
>Yep. Problem gone with christos fix.
>Thanks a lot.
>
>
>
Assembly issues here :)
macppc kernel compilation fails on target kern/ffs.o
I attach the error message.
Tools are 3.99.14, I was using build.sh.
Thank you for any hint :)
--
dixie
I'm here only to improve my Inglisc.
--------------080106010001020906070409
Content-Type: text/plain;
name="failure"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="failure"
# compile kern/ffs.o
/usr/tools/bin/powerpc--netbsd-gcc -D_LOCORE -I/usr/src/sys/lib/libkern/arch/pow
erpc -Dmacppc=macppc -I../../. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DDI
AGNOSTIC -DZS_CONSOLE_ABORT -DFORCE_FUNCTION_KEYS -DOFB_ENABLE_CACHE -DMAXUSERS=
10 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../common/lib/libc/q
uad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -I/usr/src/sys/li
b/libkern/../../../common/lib/libc/arch/powerpc/string -I/usr/src/sys/dist/ipf
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad -I/usr/src/sys/lib/libk
ern/../../../common/lib/libc/string -I/usr/src/sys/lib/libkern/../../../common/l
ib/libc/arch/powerpc/string -nostdinc -isystem /usr/obj/destdir.macppc/usr/inc
lude -c -traditional-cpp /usr/src/common/lib/libc/arch/powerpc/string/ffs.S -
o ffs.o.tmp
/usr/src/common/lib/libc/arch/powerpc/string/ffs.S: Assembler messages:
/usr/src/common/lib/libc/arch/powerpc/string/ffs.S:34: Error: bad expression
/usr/src/common/lib/libc/arch/powerpc/string/ffs.S:34: Error: syntax error; foun
d `4' but expected `,'
/usr/src/common/lib/libc/arch/powerpc/string/ffs.S:34: Error: junk at end of lin
e: `4,%3'
/usr/src/common/lib/libc/arch/powerpc/string/ffs.S:35: Error: bad expression
/usr/src/common/lib/libc/arch/powerpc/string/ffs.S:35: Error: syntax error; foun
d `3' but expected `,'
/usr/src/common/lib/libc/arch/powerpc/string/ffs.S:35: Error: junk at end of lin
e: `3,%4,%3'
/usr/src/common/lib/libc/arch/powerpc/string/ffs.S:36: Error: bad expression
/usr/src/common/lib/libc/arch/powerpc/string/ffs.S:36: Error: syntax error; foun
d `3' but expected `,'
/usr/src/common/lib/libc/arch/powerpc/string/ffs.S:36: Error: junk at end of lin
e: `3,%3'
/usr/src/common/lib/libc/arch/powerpc/string/ffs.S:37: Error: bad expression
/usr/src/common/lib/libc/arch/powerpc/string/ffs.S:37: Error: syntax error; foun
d `0' but expected `,'
/usr/src/common/lib/libc/arch/powerpc/string/ffs.S:37: Error: junk at end of lin
e: `0,32'
/usr/src/common/lib/libc/arch/powerpc/string/ffs.S:38: Error: bad expression
/usr/src/common/lib/libc/arch/powerpc/string/ffs.S:38: Error: syntax error; foun
d `3' but expected `,'
/usr/src/common/lib/libc/arch/powerpc/string/ffs.S:38: Error: junk at end of lin
e: `3,%3,%0'
*** Failed target: ffs.o
*** Failed command: /usr/tools/bin/powerpc--netbsd-gcc -D_LOCORE -I/usr/src/sys/
lib/libkern/arch/powerpc -Dmacppc=macppc -I../../. -I/usr/src/sys/arch -I/usr/sr
c/sys -nostdinc -DDIAGNOSTIC -DZS_CONSOLE_ABORT -DFORCE_FUNCTION_KEYS -DOFB_ENAB
LE_CACHE -DMAXUSERS=10 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../
../common/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/stri
ng -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/powerpc/string -I/us
r/src/sys/dist/ipf -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad -I/u
sr/src/sys/lib/libkern/../../../common/lib/libc/string -I/usr/src/sys/lib/libker
n/../../../common/lib/libc/arch/powerpc/string -nostdinc -isystem /usr/obj/destd
ir.macppc/usr/include -c -traditional-cpp /usr/src/common/lib/libc/arch/powerpc/
string/ffs.S -o ffs.o.tmp
*** Error code 1
Stop.
nbmake: stopped in /usr/obj/sys/arch/macppc/compile/HORUS/lib/kern
*** Failed target: /usr/obj/sys/arch/macppc/compile/HORUS/lib/kern/libkern.a
*** Failed command: cd /usr/obj/sys/arch/macppc/compile/HORUS/lib/kern && /usr/t
ools/bin/nbmake -f /usr/src/sys/lib/libkern/Makefile KERNDIR=/usr/src/sys/lib/li
bkern CC=/usr/tools/bin/powerpc--netbsd-gcc CFLAGS=\ -mno-strict-align\ -msoft-f
loat\ \ -Wa,-maltivec\ \ -ffreestanding\ \ \ -O2\ -Wreturn-type\ -Werror\ -Wall\
-Wno-main\ -Wno-format-zero-length\ -Wpointer-arith\ -Wmissing-prototypes\ -Wst
rict-prototypes\ -Wreturn-type\ -Wswitch\ -Wshadow\ -Wcast-qual\ -Wwrite-strings
\ -Wno-sign-compare\ \ -fno-zero-initialized-in-bss\ \ AS=/usr/tools/bin/powerpc
--netbsd-as AFLAGS=\ \ \ -D_LOCORE LORDER=NM=/usr/tools/bin/powerpc--netbsd-nm\
MKTEMP=/usr/tools/bin/nbmktemp\ /usr/tools/bin/nblorder TSORT=/usr/tools/bin/nbt
sort\ -q LD=/usr/tools/bin/powerpc--netbsd-ld STRIP=/usr/tools/bin/powerpc--netb
sd-strip AR=/usr/tools/bin/powerpc--netbsd-ar NM=/usr/tools/bin/powerpc--netbsd-
nm RANLIB=/usr/tools/bin/powerpc--netbsd-ranlib SIZE=/usr/tools/bin/powerpc--net
bsd-size MACHINE=macppc MACHINE_ARCH=powerpc KERNCPPFLAGS=-Dmacppc=macppc\ -I../
../.\ -I/usr/src/sys/arch\ -I/usr/src/sys\ -nostdinc\ -DDIAGNOSTIC\ -DZS_CONSOLE
_ABORT\ -DFORCE_FUNCTION_KEYS\ -DOFB_ENABLE_CACHE\ -DMAXUSERS=10\ -D_KERNEL\ -D_
KERNEL_OPT\ -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad\ -I/usr/src
/sys/lib/libkern/../../../common/lib/libc/string\ -I/usr/src/sys/lib/libkern/../
../../common/lib/libc/arch/powerpc/string\ -I/usr/src/sys/dist/ipf KERNMISCCPPFL
AGS= LINTFLAGS=-bcehnxzFS libkern.a
*** Error code 1
Stop.
nbmake: stopped in /usr/obj/sys/arch/macppc/compile/HORUS
ERROR: Failed to make all in /usr/obj/sys/arch/macppc/compile/HORUS
*** BUILD ABORTED ***
--------------080106010001020906070409--