Subject: compilation error
To: None <port-hp700@netbsd.org>
From: Jaka Jejcic <keks@kibla.org>
List: port-hp700
Date: 04/29/2003 14:36:24
--5mCyUwZo2JvN/JJP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I have trouble cross-compiling hp700 kernel on i386.
I downloaded the toolchain and build tools successfully:

# env EXTERNAL_TOOLCHAIN="/usr/current/cross-hp700" ./build.sh -m hp700 \
	-D /usr/current/hp700 -T /usr/current/cross-hp700 tools

works. (cross-hp700 is the dir where my new toolchain is and /usr/current
is the base of the -current source tree)

now I try compiling the new kernel:

# env EXTERNAL_TOOLCHAIN="/usr/current/cross-hp700" ./build.sh -m hp700 -D /usr/current/hp700 -T /usr/current/cross-hp700 kernel=GENERIC

but it fails: <output attached>

any suggestions?

jj



--5mCyUwZo2JvN/JJP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="output.txt"

/usr/current/src/sys/sys/ucontext.h:52: parse error before "mcontext_t"
/usr/current/src/sys/sys/ucontext.h:52: warning: no semicolon at end of struct o
r union
In file included from /usr/current/src/sys/sys/lwp.h:49,
                 from /usr/current/src/sys/sys/proc.h:53,
                 from /tmp/21567.c:8:
/usr/current/src/sys/sys/ucontext.h:107: parse error before "mcontext_t"
/usr/current/src/sys/sys/ucontext.h:107: warning: function declaration isn't a p
rototype
/usr/current/src/sys/sys/ucontext.h:108: warning: type defaults to `int' in decl
aration of `mcontext_t'
/usr/current/src/sys/sys/ucontext.h:108: parse error before '*' token
/usr/current/src/sys/sys/ucontext.h:108: warning: function declaration isn't a p
rototype
In file included from /usr/current/src/sys/sys/proc.h:53,
                 from /tmp/21567.c:8:
/usr/current/src/sys/sys/lwp.h:95: field `l_md' has incomplete type
In file included from /usr/current/src/sys/uvm/uvm_extern.h:454,
                 from /usr/current/src/sys/uvm/uvm.h:46,
                 from /tmp/21567.c:13:
/usr/current/src/sys/uvm/uvm_pmap.h:108: conflicting types for `pmap_activate'
hppa/pmap.h:132: previous declaration of `pmap_activate'
/tmp/21567.c: In function `f65':
/tmp/21567.c:126: structure has no member named `p_forw'
/tmp/21567.c:127: structure has no member named `p_back'
/tmp/21567.c:128: structure has no member named `p_addr'
/tmp/21567.c:129: structure has no member named `p_priority'
/tmp/21567.c:131: structure has no member named `p_wchan'
/tmp/21567.c:135: `SRUN' undeclared (first use in this function)
/tmp/21567.c:135: (Each undeclared identifier is reported only once
/tmp/21567.c:135: for each function it appears in.)
/tmp/21567.c:136: `SONPROC' undeclared (first use in this function)
*** Error code 1

Stop.
nbmake: stopped in /usr/current/src/sys/arch/hp700/compile/GENERIC

ERROR: make depend failed in /usr/current/src/sys/arch/hp700/compile/GENERIC
*** BUILD ABORTED ***


--5mCyUwZo2JvN/JJP--