Subject: Native building userland failed in mac68k port
To: None <tech-toolchain@netbsd.org>
From: Takeshi Shibagaki <ie9t-sbgk@asahi-net.or.jp>
List: tech-toolchain
Date: 03/07/2004 17:23:16
Hi,

Build.sh stopped with following messages in mac68k port at yesterday
-current. Please tell me how to solve this problem.

# Is this well known problem?

---------------------------------------------------------------------
CC=/usr/obj/tooldir.NetBSD-1.6ZK-m68k/bin/m68k--netbsdelf-gcc /usr/obj/tooldir.NetBSD-1.6ZK-m68k/bin/nbmkdep -d -f .depend -s .o\ .ln crt0.d crtbegin.d crtbeginS.d crtend.d crtendS.d crti.d crtn.d
/usr/obj/tooldir.NetBSD-1.6ZK-m68k/bin/m68k--netbsdelf-gcc -O2 -O -fPIC  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized -Wreturn-type -Wswitch -Wshadow  -Werror   -I- -I/usr/src/current/src/lib/csu/m68k_elf -DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=32 -I/usr/src/current/src/libexec/ld.elf_so -I/usr/src/current/src/lib/csu/m68k_elf/../common_elf -I/usr/src/current/src/lib/libc/dlfcn -DDWARF2_EH -DJCR -DDSO_HANDLE  -nostdinc -isystem /usr/src/current/dest/usr/include  -c -DCRT0 /usr/src/current/src/lib/csu/m68k_elf/crt0.c -o crt0.o
In file included from /usr/src/current/src/lib/csu/m68k_elf/crt0.c:103:
/usr/src/current/src/lib/csu/common_elf/common.c: In function `_rtld_setup':
/usr/src/current/src/lib/csu/common_elf/common.c:78: error: unable to find a register to spill in class `DATA_REGS'
/usr/src/current/src/lib/csu/common_elf/common.c:78: error: this is the insn:
(insn 34 63 35 3 0x0 (set (cc0)
        (compare (mem/s/j:SI (plus:SI (reg/v/f:SI 10 %a2 [30])
                    (const_int 4 [0x4])) [0 <variable>.version+0 S4 A32])
            (const_int 1 [0x1]))) 11 {*m68k.md:518} (nil)
    (expr_list:REG_DEAD (reg/v/f:SI 10 %a2 [30])
        (nil)))
/usr/src/current/src/lib/csu/common_elf/common.c:78: confused by earlier errors, bailing out

*** Failed target:  crt0.o
*** Failed command: /usr/obj/tooldir.NetBSD-1.6ZK-m68k/bin/m68k--netbsdelf-gcc -O2 -O -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized -Wreturn-type -Wswitch -Wshadow -Werror -I- -I/usr/src/current/src/lib/csu/m68k_elf -DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=32 -I/usr/src/current/src/libexec/ld.elf_so -I/usr/src/current/src/lib/csu/m68k_elf/../common_elf -I/usr/src/current/src/lib/libc/dlfcn -DDWARF2_EH -DJCR -DDSO_HANDLE -nostdinc -isystem /usr/src/current/dest/usr/include -c -DCRT0 /usr/src/current/src/lib/csu/m68k_elf/crt0.c -o crt0.o.o
*** Error code 1

Stop.
nbmake: stopped in /usr/src/current/src/lib/csu/m68k_elf

*** Failed target:  dependall
*** Failed command: cd /usr/src/current/src/lib/csu/m68k_elf; /usr/obj/tooldir.NetBSD-1.6ZK-m68k/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/current/src/lib/csu/m68k_elf

*** Failed target:  dependall-m68k_elf
*** Failed command: targ=dependall;dir=m68k_elf; case "$dir" in /*) echo "$targ ===> $dir"; cd "$dir"; /usr/obj/tooldir.NetBSD-1.6ZK-m68k/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> $dir"; cd "/usr/src/current/src/lib/csu/$dir"; /usr/obj/tooldir.NetBSD-1.6ZK-m68k/bin/nbmake "_THISDIR_=$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /usr/src/current/src/lib/csu

*** Failed target:  do-lib-csu
*** Failed command: (cd /usr/src/current/src/lib/csu && /usr/obj/tooldir.NetBSD-1.6ZK-m68k/bin/nbmake dependall)
*** Error code 1

Stop.
nbmake: stopped in /usr/src/current/src

*** Failed target:  build
*** Failed command: (cd /usr/src/current/src && /usr/obj/tooldir.NetBSD-1.6ZK-m68k/bin/nbmake do-lib-csu)
*** Error code 1

Stop.
nbmake: stopped in /usr/src/current/src

*** Failed target:  distribution
*** Failed command: (cd /usr/src/current/src && /usr/obj/tooldir.NetBSD-1.6ZK-m68k/bin/nbmake NOPOSTINSTALL=1 build)
*** Error code 1

Stop.
nbmake: stopped in /usr/src/current/src

ERROR: Failed to make distribution
---------------------------------------------------------------------
Takeshi Shibagaki
ie9t-sbgk@asahi-net.or.jp