NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/40540: netbsd-3 fails to build clean on cross build for vax; bsd.sys.mk tried to -std=c99



>Number:         40540
>Category:       bin
>Synopsis:       netbsd-3 fails to build clean on cross build for vax; 
>bsd.sys.mk tried to -std=c99
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 02 18:15:00 +0000 2009
>Originator:     Brad Parker
>Release:        netbsd-3
>Organization:
>Environment:
cross build for vax on linux EWS3
>Description:
While trying to build netbsd-3 (from cvs) the build failed because
bsd.sys.mk tried to put "-std=c99" as an argument to gcc and
the gcc used in the build doesn't understand that argument.


>How-To-Repeat:
Build netbsd-3 from cvs.

I use this script:

cd src && \ 
./build.sh -m vax \
        -D $REL/destdir/vax \
        -O $REL/objdir/vax \
        -T $REL/tooldir \
        -R $REL/releasedir \
        -U release

>Fix:
As per Alan Barrett (thanks!) I changed (in bsd.sys.mk)

.if ${WARNS} > 3

to

.if ${WARNS} > 3 && defined(HAVE_GCC) && ${HAVE_GCC} >= 3

which matches -current and now it compiles fine.




Home | Main Index | Thread Index | Old Index