compilation error

Jaka Jejcic <[email protected]>
Newsgroups gmane.os.netbsd.ports.hp700
Message-ID <[email protected]>
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
output.txt (text/plain, 1.9 KB)
/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 ***
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.