Subject: toolchain/17100: Build on RedHat
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kent@netbsd.org>
List: netbsd-bugs
Date: 05/29/2002 22:08:43
>Number:         17100
>Category:       toolchain
>Synopsis:       Build on RedHat
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 29 22:09:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     TAMURA Kent
>Release:        -current
>Organization:
hauN
>Environment:
Linux hoge 2.2.14-5.0p #1 Fri Sep 22 19:11:52 JST 2000 i686 unknown

>Description:
When I tried to build NetBSD-current on RedHat Linux/i386 6.2, I caught
the following error:

dependall ===> libc
<snip>
sh /home/kent/src/lib/libc/sys/makelintstub -o LintSysNormal.c  -s /home/kent/sparc64/root/usr/include/sys/syscall.h accept.S <snip> sysarch.S
/home/kent/src/lib/libc/sys/makelintstub: cpp: command not found
syscall accept not found!
*** Error code 1

cpp is usually not on $PATH in RedHat 6.2.

>How-To-Repeat:
cd src
mkdir -p ../sparc64/tools ../sparc64/root ../sparc64/obj
/bin/sh build.sh -m sparc64 -r -U -T ../sparc64/tools -D ../sparc64/root -O ../sparc64/obj

>Fix:
lib/libc/sys/makelintstub should use cpp for the target, $TOOLDIR/bin/*-netbsd*-cpp.

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