BZ #117: cacao-cldc doesn't compile

Status fields:

creation_ts:2008-12-15 12:08
component:vm
version:default branch
rep_platform:All
op_sys:All
bug_status:RESOLVED
resolution:FIXED
reporter:glegris-bugzilla@thenesis.org
Configuration
=============
./configure --prefix=/shared/development/JVM/cacao/cacao-hg-bin --enable-java=cldc1.1
--with-java-runtime-library=cldc1.1 --with-build-java-runtime-library-
classes=/shared/development/JVM/cacao/cldc-classes-cvs --with-java-runtime-library-
classes=/shared/development/JVM/cacao/cldc-classes-cvs --with-
jni_h=/shared/development/JVM/classpath/classpath-cvs-bin/include --with-
jni_md_h=/shared/development/JVM/classpath/classpath-cvs-bin/include --enable-jni
--enable-annotations=no --enable-assertion=no

Result
======
make[4]: Entering directory `/shared/development/JVM/cacao/cacao-hg/src/vm'
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..
-I../../src -I../../src/vm/jit/i386 -I../../src/vm/jit/i386/linux -I../../src
-I../../contrib/vmlog -I../../src/native -I/shared/development/JVM/classpath/classpath-
cvs-bin/include -I/shared/development/JVM/classpath/classpath-cvs-bin/include -std=c++98
-pedantic -Wall -Wno-long-long  -m32 -D__I386__ -D__LINUX__ -D_POSIX_C_SOURCE=200112L
-D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_REENTRANT -g -O0 -MT
access.lo -MD -MP -MF .deps/access.Tpo -c -o access.lo access.cpp
 g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src/vm/jit/i386
-I../../src/vm/jit/i386/linux -I../../src -I../../contrib/vmlog -I../../src/native
-I/shared/development/JVM/classpath/classpath-cvs-bin/include
-I/shared/development/JVM/classpath/classpath-cvs-bin/include -std=c++98 -pedantic -Wall
-Wno-long-long -m32 -D__I386__ -D__LINUX__ -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600
-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_REENTRANT -g -O0 -MT access.lo -MD -MP -MF
.deps/access.Tpo -c access.cpp  -fPIC -DPIC -o .libs/access.o
In file included from ../../src/threads/atomic.hpp:53,
                 from ../../src/threads/lockword.hpp:95,
                 from ../../src/vm/global.h:233,
                 from ../../src/native/jni.hpp:79,
                 from ../../src/vm/vm.hpp:35,
                 from ../../src/threads/posix/condition-posix.hpp:58,
                 from ../../src/threads/condition.hpp:34,
                 from ../../src/threads/posix/thread-posix.hpp:43,
                 from ../../src/threads/thread.hpp:35,
                 from ../../src/mm/dumpmemory.hpp:214,
                 from ../../src/mm/memory.hpp:50,
                 from access.cpp:33:
../../src/vm/jit/i386/md-atomic.hpp:68:2: warning: #warning is a GCC extension
../../src/vm/jit/i386/md-atomic.hpp:68:2: warning: #warning Should we use cmpxchg8b or a
generic version?
access.cpp:185: error: expected `}' at end of input
make[4]: *** [access.lo] Error 1
make[4]: Leaving directory `/shared/development/JVM/cacao/cacao-hg/src/vm'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/shared/development/JVM/cacao/cacao-hg/src/vm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/shared/development/JVM/cacao/cacao-hg/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/shared/development/JVM/cacao/cacao-hg'
make: *** [all] Error 2

Comment #1 by glegris-bugzilla@thenesis.org on 2008-12-15 13:29:53

Created an attachment (id=54)
Fixes the compile issue

Comment #2 by stefan@complang.tuwien.ac.at on 2008-12-15 13:51:35

I will commit this (I assume you don't have commit rights).

Comment #3 by stefan@complang.tuwien.ac.at on 2008-12-15 13:57:08

Changeset fff832488c79.

Thanks for the patch!

Attachment id=54

date:2008-12-15 13:29
desc:Fixes the compile issue
type:text/plain
download:cacao-tip.diff