Subject: toolchain/15888: nbmake compilation problems on HP-UX
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jarkko.teppo@er-grp.com>
List: netbsd-bugs
Date: 03/12/2002 11:25:29
>Number:         15888
>Category:       toolchain
>Synopsis:       nbmake compilation problems on HP-UX
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 12 11:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jarkko Teppo
>Release:        
>Organization:
>Environment:
HP-UX kurt B.10.20 U 9000/715 2013082669 unlimited-user licence

>Description:
While trying to cross-compile from HP-UX on PA-RISC to hp300, building
of nbmake (via ./build.sh -a m68k -b -d -m hp300 -r 
-D /home/src/nb/destdir_hp300 -O /home/src/nb/obj_hp300 
-R /home/src/nb/hp300_release 
-T /home/src/nb/hpux-parisc2hp300-tools ) and HOST_CC not set (therefore
defaulting to HPs Ansi CC the build bombs out with:

cc  -O -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -DMAKE_BOOTSTRAP -I/home/src/nb/src/tools/make/../../usr.bin/make -c /home/src/nb/src/tools/make/../../usr.bin/make/dir.c
cc  -O -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -DMAKE_BOOTSTRAP -I/home/src/nb/src/tools/make/../../usr.bin/make -c /home/src/nb/src/tools/make/../../usr.bin/make/for.c
cc: "/home/src/nb/src/tools/make/../../usr.bin/make/for.c", line 213: error 1000: Unexpected symbol: "in".

ERROR: build of nbmake failed
*** BUILD ABORTED ***
#

And with HOST_CC set to /opt/gcc/bin/gcc:
/opt/gcc/bin/gcc  -O -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -DMAKE_BOOTSTRAP -I/home/src/nb/src/tools/make/../../usr.bin/make -c /home/src/nb/src/tools/make/../../usr.bin/make/util.c
/home/src/nb/src/usr.bin/make/util.c: In function `srandom':
/home/src/nb/src/usr.bin/make/util.c:179: argument `seed' doesn't match prototype
/opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/3.0.1/include/stdlib.h:273: prototype declaration
/home/src/nb/src/usr.bin/make/util.c: In function `utimes':
/home/src/nb/src/usr.bin/make/util.c:213: argument `file' doesn't match prototype
/usr/include/sys/time.h:504: prototype declaration
/home/src/nb/src/usr.bin/make/util.c:213: argument `tvp' doesn't match prototype
/usr/include/sys/time.h:504: prototype declaration

ERROR: build of nbmake failed
*** BUILD ABORTED ***
#

Where:
extern int utimes(const char *path, const struct timeval amtimes[2]);

Sources from March 8th 2002. This is a very low priority "bug" but I
thought someone might be curious.
>How-To-Repeat:
Try building via ./build.sh on HP-UX.
>Fix:
None yet.
>Release-Note:
>Audit-Trail:
>Unformatted: