Subject: One problem with new toolchain on mac68k
To: None <,>
From: Space Case <>
List: current-users
Date: 12/28/2001 23:41:17
I have just complete a new toolchain build (don't worry, I don't plan on
using it -- I understand there's still a bug in m68k as?) on my Q650 (ELF).
There was only one hitch in the build, and it's rather strange...

The only thing in my mk.conf that relates to builds (everything else is
for pkgsrc) is the "USE_NEW_TOOLCHAIN=YES".  For environment, I have:

Going through the build dies in src/sys/lkm/arch/mac68k/iwm, like this:

<20 c610 /mac68k/iwm># ls obj/
<21 c610 /mac68k/iwm># make dependall
CC=/usr/tools/bin/m68k--netbsdelf-gcc /usr/tools/bin/nbmkdep -a -D_LOCORE -I/usr/src/sys/arch -DDIAGNOSTIC -DDDB -nostdinc -Dmc68020 -Dmac68k -nostdinc -I. -I/usr/src/sys/lkm/arch/mac68k/iwm -isystem /usr/src/sys -isystem /usr/src/sys/arch
 -traditional-cpp /usr/src/sys/arch/mac68k/obio/iwm.s
CC=/usr/tools/bin/m68k--netbsdelf-gcc /usr/tools/bin/nbmkdep -a -D_KERNEL -D_LKM -DDIAGNOSTIC -DDDB -nostdinc -Dmc68020 -Dmac68k -nostdinc -I. -I/usr/src/sys/lkm/arch/mac68k/iwm -isystem /usr/src/sys -isystem /usr/src/sys/arch  /usr/src/sys/lkm/arch/mac68k/iwm/iwm_mod.c /usr/src/sys/arch/mac68k/obio/iwm_fd.c
/usr/tools/bin/m68k--netbsdelf-gcc -g -O -m68020-40  -D_KERNEL -D_LKM -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized  -Werror -DDIAGNOSTIC -DDDB -nostdinc -Dmc68020 -Dmac68k -nostdinc -I. -I/usr/src/sys/lkm/arch/mac68k/iwm -isystem /usr/src/sys -isystem /usr/src/sys/arch  -c /usr/src/sys/lkm/arch/mac68k/iwm/iwm_mod.c
/usr/tools/bin/m68k--netbsdelf-gcc -g -O -m68020-40  -D_KERNEL -D_LKM -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized  -Werror -DDIAGNOSTIC -DDDB -nostdinc -Dmc68020 -Dmac68k -nostdinc -I. -I/usr/src/sys/lkm/arch/mac68k/iwm -isystem /usr/src/sys -isystem /usr/src/sys/arch  -c /usr/src/sys/arch/mac68k/obio/iwm_fd.c
/usr/tools/bin/m68k--netbsdelf-gcc -x assembler-with-cpp -traditional-cpp -D_LOCORE -I/usr/src/sys/arch -c /usr/src/sys/arch/mac68k/obio/iwm.s
/usr/src/sys/arch/mac68k/obio/iwm.s:66: m68k/asm.h: No such file or directory
*** Error code 1

make: stopped in /usr/src/sys/lkm/arch/mac68k/iwm
*** Error code 1

make: stopped in /usr/src/sys/lkm/arch/mac68k/iwm

If I change back to old toolchain to complete it:

<22 c610 /mac68k/iwm># make dependall
cc -x assembler-with-cpp -traditional-cpp -D_LOCORE -I/usr/src/sys/arch -c /usr/src/sys/arch/mac68k/obio/iwm.s
ld -r  -o tmp.o iwm_mod.o iwm_fd.o iwm.o
mv tmp.o iwmfd.o

It looks like it should find the file, so I don't see why it fails:

<23 c610 /mac68k/iwm># ll obj
lrwxr-xr-x  1 root  wheel  32 Nov 22 17:20 obj@ -> /usr/obj/sys/lkm/arch/mac68k/iwm
<24 c610 /mac68k/iwm># ll obj/m68k
lrwxr-xr-x  1 root  wheel  30 Dec 28 16:22 obj/m68k@ -> /usr/src/sys/arch/m68k/include
<25 c610 /mac68k/iwm># ll obj/m68k/asm.h
-rw-r--r--  1 root  wheel  7294 May 26  2001 obj/m68k/asm.h



Steve Allen -   ICQ 6709819

Faith is the quality that enables you to eat blackberry jam on a picnic
without looking to see whether the seeds move.

Contrary to popular belief, Unix is user friendly.  
It just happens to be selective about who it makes friends with.
	-Kyle Hearn  <>

God is a polythiest