BZ #127: Problem building CACAO 0.99.4 for MIPS 32 on linux

Status fields:

creation_ts:2009-05-04 12:02
component:build system
version:0.99.4
rep_platform:mips32
op_sys:Linux
bug_status:RESOLVED
resolution:WORKSFORME
reporter:fsa@ubiwhere.com
I was tryting to build CACAO along with some other jvm to run on ASUS WL-500G Premium
(MIPS-32 Broadcom BCM94704) running OpenWrt Kamikaze 8.09 (kernel 2.4). Using the
toolchain provided by the kamikaze i tryed to build CACAO using the GNU Classpath 0.97.2
and later the 0.98 version.

../configure --host=mipsel-linux --disable-gtk-peer --disable-gconf-peer --with-java-
runtime-library-prefix=(path to GNU classpath) --with-jni --disable-zlib --disable-zip

Running make i get a problem with cacaoh:

../../../src/classes/classes:/home/fsa/classpath98/linux/usr/share/classpath/glibj.zip
-d .java.lang.Class
/bin/bash: line 2: ../../../src/cacaoh/cacaoh: cannot execute binary file

Since i was building CACAO on Ubuntu, i tryed to build cacaoh for linux and using it
instead:

../configure --host=mipsel-linux --disable-gtk-peer --disable-gconf-peer --with-java-
runtime-library-prefix=(path to GNU classpath) --with-jni --disable-zlib --disable-zip
--with-cacaoh=(path to cacaoh)

This time when running make i get:

mipsel-linux-gcc -DHAVE_CONFIG_H -I. -I../../../../../../src/vm/jit/mips/linux
-I../../../../.. -I../../../../../../src -I../../../../../../src/vm/jit/mips
-I../../../../../src -I/home/user/classpath98/linux/usr/include
-I/home/user/classpath98/linux/usr/include -D__MIPS__ -D__LINUX__ -std=c99 -pedantic
-Wall -Wno-long-long -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600
-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_REENTRANT -g -O2 -MT md-os.lo -MD -MP -MF
.deps/md-os.Tpo -c ../../../../../../src/vm/jit/mips/linux/md-os.c  -fPIC -DPIC -o .libs
/md-os.o
../../../../../../src/vm/jit/mips/linux/md-os.c: In function
`md_signal_handler_sigsegv':
../../../../../../src/vm/jit/mips/linux/md-os.c:111: error: structure has no member
named `gpregs'
../../../../../../src/vm/jit/mips/linux/md-os.c:152: error: `CTX_EPC' undeclared (first
use in this function)
../../../../../../src/vm/jit/mips/linux/md-os.c:152: error: (Each undeclared identifier
is reported only once
../../../../../../src/vm/jit/mips/linux/md-os.c:152: error: for each function it appears
in.)
../../../../../../src/vm/jit/mips/linux/md-os.c:97: warning: unused variable `cause'
../../../../../../src/vm/jit/mips/linux/md-os.c: In function `md_executionstate_read':
../../../../../../src/vm/jit/mips/linux/md-os.c:276: error: structure has no member
named `gpregs'
../../../../../../src/vm/jit/mips/linux/md-os.c:288: error: `CTX_EPC' undeclared (first
use in this function)
../../../../../../src/vm/jit/mips/linux/md-os.c: In function `md_executionstate_write':
../../../../../../src/vm/jit/mips/linux/md-os.c:346: error: `CTX_EPC' undeclared (first
use in this function)

Comment #1 by stefan@complang.tuwien.ac.at on 2010-09-22 09:32:27

The build worked for me the last time I checked, plus it's easier now without cacaoh.

Comment #2 by stefan@complang.tuwien.ac.at on 2010-09-22 09:36:17

MIPS is a big PITA anyway, because every board seems to report signals in different and
undocumented ways.