[Bug 133] setting CFLAGS usually breaks inlined

[email protected] Fri, 10 Jun 2005 18:14:24 -0400
Newsgroups gmane.comp.java.vm.sablevm.bugs
Message-ID <[email protected]>
http://sablevm.org/bugs/show_bug.cgi?id=133

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |normal



------- Additional Comments From [email protected]  2005-06-10 18:14 -------
Please *read* the bug report.  Setting CFLAGS to contain -I options should not 
in any normal case affect ability to compile with inlined engine, should it?

To make it clearer you can repeat the below experiment I've just done.
1. I have installed sablevm, with inlined engine, in some directory. It works.

gproko@cochin:/export/nobackup/localhost/gproko/work/svm-trunk$
../usr-trunk/bin/sablevm -Y blah
java.lang.ClassNotFoundException: blah not found in
java.lang.ClassLoader$1{urls=[file:/export/nobackup/localhost/gproko/work/svm-trunk/./],
parent=null}
   at java.net.URLClassLoader.findClass (URLClassLoader.java:841)
   at java.lang.ClassLoader.loadClass (ClassLoader.java:358)
   at java.lang.ClassLoader$1.loadClass (ClassLoader.java:1297)
   at java.lang.ClassLoader.loadClass (ClassLoader.java:309)
   at java.lang.VirtualMachine.main (VirtualMachine.java:99)

Then I set CFLAGS literraly to "just someting harmless" like that:

gproko@cochin:/export/nobackup/localhost/gproko/work/svm-trunk$ (export
CFLAGS=-I/tmp/blah; ./configure
--prefix=/export/nobackup/localhost/gproko/work/usr-trunk && make clean install)

...and I got this:

gproko@cochin:/export/nobackup/localhost/gproko/work/svm-trunk$
../usr-trunk/bin/sablevm -Y blah
sablevm: cannot create vm

Just to make sure I repeated clean configure w/o CFLAGS and tried again:

gproko@cochin:/export/nobackup/localhost/gproko/work/svm-trunk$ (./configure
--prefix=/export/nobackup/localhost/gproko/work/usr-trunk && make clean install)

gproko@cochin:/export/nobackup/localhost/gproko/work/svm-trunk$
../usr-trunk/bin/sablevm -Y blah java.lang.ClassNotFoundException: blah not
found in
java.lang.ClassLoader$1{urls=[file:/export/nobackup/localhost/gproko/work/svm-trunk/./],
parent=null}
   at java.net.URLClassLoader.findClass (URLClassLoader.java:841)
   at java.lang.ClassLoader.loadClass (ClassLoader.java:358)
   at java.lang.ClassLoader$1.loadClass (ClassLoader.java:1297)
   at java.lang.ClassLoader.loadClass (ClassLoader.java:309)
   at java.lang.VirtualMachine.main (VirtualMachine.java:99)

Now I guess we do agree that this is a bug? ;-)




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.