Subject: port-arm/13973: bsd.owk.mk implicitly sets OBJECT_FMT=ELF if MACHINE_ARCH==arm
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tsutsui@ceres.dti.ne.jp>
List: netbsd-bugs
Date: 09/16/2001 21:46:30
>Number:         13973
>Category:       port-arm
>Synopsis:       bsd.owk.mk 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
>Closed-Date:
>Last-Modified:
>Originator:     Izumi Tsutsui
>Release:        NetBSD-current 1.5X 20010916
>Organization:
Izumi Tsutsui	Himeji City, Japan
>Environment:
System: NetBSD/cats 1.5X
Architecture: arm32
Machine: cats
>Description:
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/bsd.owk.mk implicitly sets OBJECT_FMT=ELF
even on ports which still use a.out (like cats).

>How-To-Repeat:
Code inspection, or make any binaries after rebuild make(1):
---
# cd /usr/src/usr.bin/make
# make
[..snip..]
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/gas.new/Makefile also has problem (arm vs. arm32).

>Fix:
No idea. (Fix bsd.own.mk or param.h ?)

---
>Release-Note:
>Audit-Trail:
>Unformatted: