Subject: toolchain/26259: recent change to usr.bin/make breaks cross-build of tools on (at least) Linux
To: None <gnats-bugs@gnats.netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: netbsd-bugs
Date: 07/12/2004 11:03:37
>Number:         26259
>Category:       toolchain
>Synopsis:       recent change to usr.bin/make breaks cross-build of tools on (at least) Linux
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 12 09:04:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Lubomir Sedlacik
>Release:        -current sources since 01-Jul-04
>Organization:
>Environment:
System: Linux 2.4.25
Architecture: i386
Machine: i386
>Description:

===> build.sh started: Mon Jul 12 11:01:59 CEST 2004
===> No /www/src/tools.i386/bin/nbmake, needs building.
===> Bootstrapping nbmake
checking for sh... /bin/sh
checking for gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix... 
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking how to run the C preprocessor... cc -E
checking for regex.h... yes
checking for poll.h... yes
checking for regfree in -lregex... no
checking for library containing regfree... none required
checking for setenv... yes
checking for strdup... yes
checking for strerror... yes
checking for strftime... yes
checking for vsnprintf... yes
configure: creating ./config.status
config.status: creating buildmake.sh
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /www/src/NetBSD/src/tools/make/../../usr.bin/make/arch.c
In file included from /www/src/NetBSD/src/tools/make/../../usr.bin/make/arch.c:144:
/www/src/NetBSD/src/tools/make/../../usr.bin/make/make.h:103: parse error

the offending change:

   1.51  (jmc  01-Jul-04): #if !defined(__unused)
-> 1.51  (jmc  01-Jul-04): #if __GNUC_PREREQ__(2, 7)
   1.51  (jmc  01-Jul-04): #define __unused        __attribute__((__unused__))
   1.51  (jmc  01-Jul-04): #else
   1.51  (jmc  01-Jul-04): #define __unused        /* delete */
   1.51  (jmc  01-Jul-04): #endif
   1.51  (jmc  01-Jul-04): #endif

>How-To-Repeat:
build.sh tools on a Linux (and possibly others) machine
>Fix:
n/a
>Release-Note:
>Audit-Trail:
>Unformatted: