Re: staging broken with --enable-debugging-features
David Bélanger <[email protected]>
| Newsgroups | gmane.comp.java.vm.sablevm.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Dec 07, 2004 at 07:13:28PM -0500, Etienne Gagnon wrote:
> Hi David,
>
> David Bélanger wrote:
> >Before committing it, I want to compile and test, but I get many of these:
> >...
> >Any idea how to fix them?
> >Gentoo Linux/PowerPC, gcc 3.4.3.
>
> I'm on Debian PowerPC, and I didn't get these, using gcc 3.3.5. Can you
> give me your full set of configure options?
>
> i.e., are you simply using
> ./configure --prefix=... --enable-debugging-features
> make
>
> This does not give me any warning.
>
> Etienne
>
Hi Etienne,
I get them with debugging-features enabled:
./configure --enable-debugging-features --prefix=$HOME/local/staging
And the warnings:
gcc -DHAVE_CONFIG_H -I. -I. -I../../src/include -I./include -I./inlinability -Iinlinability -DBOOT_CLASS_PATH=\"/home/david/local/staging/share/sablevm-classpath:/home/david/local/staging/share/sablevm-classpath/libclasspath.jar:/home/david/local/staging/share/sablevm-classpath/resources.jar\" -DBOOT_LIBRARY_PATH=\"/home/david/local/staging/lib/sablevm-classpath\" -g -O2 -Wall -fno-gcse -fno-strict-aliasing -std=iso9899:1990 -pedantic -Werror -O0 -W -fno-builtin -Wshadow -Wpointer-arith -Wbad-function-cast -Wundef -Wcast-align -Wwrite-strings -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-long-long -MT libsablevm.lo -MD -MP -MF .deps/libsablevm.Tpo -c libsablevm.c -fPIC -DPIC -o .libs/libsablevm.o
In file included from libsablevm.c:103:
native.c: In function `_svmf_bind_native_method':
native.c:607: warning: ISO C forbids conversion of object pointer to function pointer type
native.c:617: warning: ISO C forbids conversion of object pointer to function pointer type
In file included from invoke_interface.c:187,
from libsablevm.c:116:
vm_args.c: In function `JNI_CreateJavaVM':
vm_args.c:6: warning: ISO C forbids conversion of object pointer to function pointer type
vm_args.c:15: warning: ISO C forbids conversion of object pointer to function pointer type
vm_args.c:24: warning: ISO C forbids conversion of object pointer to function pointer type
In file included from libsablevm.c:120:
java_lang_VMRuntime.c: In function `Java_java_lang_VMRuntime_nativeLoad':
java_lang_VMRuntime.c:407: warning: ISO C forbids conversion of object pointer to function pointer type
make[5]: *** [libsablevm.lo] Error 1
make[5]: Leaving directory `/home/david/work/svn_sablejit/staging/staging-sablevm/src/libsablevm'
I didn't find a solution yet but I think it is specific to gcc 3.4 from
what I found on the web.
David
---
David Bélanger
Web page: http://www.cs.mcgill.ca/~dbelan2/
Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt