[Sablevm-user] gcc 3.0.2 error
Brought to you by:
egagnon
From: Chris S. <cbs...@ya...> - 2001-11-24 21:24:17
|
I'm using gcc 3.0.2. I was using 2.96 but I saw your note that this wasn't a real release so I upgraded to 3.0.2 with the same problem. This is the compile line for native_interface.c gcc -DHAVE_CONFIG_H -I. -I. -I../../src/include -I./include -g -O2 -Wall -W -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wlong-long -O3 -finline-functions -funroll-loops -c native_interface.c -fPIC -DPIC -o .libs/native_interface.lo In file included from includes.h:33, from native_interface.c:8: include/jni.h:489: warning: declaration of `index' shadows global declaration include/jni.h:491: warning: declaration of `index' shadows global declaration native_interface.c:322: warning: declaration of `index' shadows global declaration native_interface.c:324: warning: declaration of `index' shadows global declaration native_interface.c:860: warning: declaration of `index' shadows global declaration native_interface.c: In function `SetObjectArrayElement': native_interface.c:862: warning: declaration of `index' shadows global declaration native_interface.c: In function `CallVoidMethodV': native_interface.c:1374: `jbyte' is promoted to `int' when passed through `...' native_interface.c:1374: (so you should pass `int' not `jbyte' to `va_arg') ... This is line 1374: ALL_METHODS (CALL_METHOD_V) And if I unravel it all, this is the first offending line: locals[i++].jint = __builtin_va_arg (args, jbyte); } break; case (_svmt_u8) 'C': { But here's the funny part. I really just want a Java interpreter. So I tried building Sun's CVM (j2me) interpreter and got basically the same problem, va_arg in the jni handler. Well, I thought it was funny. Any clue? thanks, Chris Sears cbs...@ya... __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 |