Subject: port-arm/13973: implicitly sets OBJECT_FMT=ELF if MACHINE_ARCH==arm
To: None <>
From: None <>
List: netbsd-bugs
Date: 09/16/2001 21:46:30
>Number:         13973
>Category:       port-arm
>Synopsis: implicitly sets OBJECT_FMT=ELF if MACHINE_ARCH==arm
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 16 05:47:00 PDT 2001
>Originator:     Izumi Tsutsui
>Release:        NetBSD-current 1.5X 20010916
Izumi Tsutsui	Himeji City, Japan
System: NetBSD/cats 1.5X
Architecture: arm32
Machine: cats
src/usr.bin/make/main.c refers <machine/param.h> to get
MACHINE_ARCH and MACHINE macros, but it is a symlink
to /usr/include/arm/param.h on arm ports. 

Both of MACHINE_ARCH and MACHINE are defined as "arm" in arm/param.h,
but currnet /usr/share/mk/ implicitly sets OBJECT_FMT=ELF
even on ports which still use a.out (like cats).

Code inspection, or make any binaries after rebuild make(1):
# cd /usr/src/usr.bin/make
# make
make: don't know how to make /usr/lib/crtbegin.o. Stop

make: stopped in /usr/src/usr.bin/make

BTW, maybe gnu/usr.bin/ also has problem (arm vs. arm32).

No idea. (Fix or param.h ?)