Thread: [Sablevm-developer] assert fails with new staging version
Brought to you by:
egagnon
From: David <db...@cs...> - 2004-04-26 03:57:57
|
Hi, I get this assertion failure with the new staging version: > $HOME/local/sablevm-jit/bin/sablevm-direct-debug -Y a sablevm-direct-debug: native_interface.c:1263: _svmf_internal_CallNonvirtualVoidMethodV: Assertion `_svmf_is_set_flag (method->class_info->state, 0x0004)' failed. Abort #6 0x400470d2 in _svmf_internal_CallNonvirtualVoidMethodV (env=3D0x804d7a8, this=3D0x8063918, class=3D0x8063398, methodID=3D0x413349e8, args=3D0xbfffc57c) at native_interface.c:1262 #7 0x4006ad54 in NewObject (_env=3D0x804d7a8, cls=3D0x8063398,=20 methodID=3D0x413349e8) at native_interface.c:23150 #8 0x413ae5cc in Java_gnu_java_nio_channels_FileChannelImpl_init ( env=3D0x804d7a8, clazz=3D0x8063398) at gnu_java_nio_channels_FileChannelImpl.c:139 It looks that somehow VMClass.setInitialize does not get call for some unknown reason for a class initialization. David --- David B=E9langer Graduate Student School of Computer Science McGill University Office: MC226 Web page: http://www.cs.mcgill.ca/~dbelan2/ Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt |
From: Etienne G. <gag...@uq...> - 2004-04-28 03:30:35
|
I had a similar problem, until I scrapped all precompiled/pre-generated code, and recompiled everything. Then, I was unable to reproduce it. Can you: $ svn st --no-ignore | grep ^I | awk '{print $2}' | xargs rm -rf then rebuild, and tell me if you are still able to reproduce the bug? Thanks, Etienne David B=E9langer wrote: > Hi, >=20 > I get this assertion failure with the new staging version: >=20 >=20 >>$HOME/local/sablevm-jit/bin/sablevm-direct-debug -Y a >=20 > sablevm-direct-debug: native_interface.c:1263: > _svmf_internal_CallNonvirtualVoidMethodV: Assertion `_svmf_is_set_flag > (method->class_info->state, 0x0004)' failed. > Abort >=20 >=20 > #6 0x400470d2 in _svmf_internal_CallNonvirtualVoidMethodV > (env=3D0x804d7a8, > this=3D0x8063918, class=3D0x8063398, methodID=3D0x413349e8, > args=3D0xbfffc57c) > at native_interface.c:1262 > #7 0x4006ad54 in NewObject (_env=3D0x804d7a8, cls=3D0x8063398,=20 > methodID=3D0x413349e8) at native_interface.c:23150 > #8 0x413ae5cc in Java_gnu_java_nio_channels_FileChannelImpl_init ( > env=3D0x804d7a8, clazz=3D0x8063398) > at gnu_java_nio_channels_FileChannelImpl.c:139 >=20 >=20 >=20 > It looks that somehow VMClass.setInitialize does not get call for some > unknown reason for a class initialization. >=20 > David >=20 > --- >=20 > David B=E9langer > Graduate Student > School of Computer Science > McGill University > Office: MC226 >=20 > Web page: http://www.cs.mcgill.ca/~dbelan2/ > Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek > For a limited time only, get FREE Ground shipping on all orders of $35 > or more. Hurry up and shop folks, this offer expires April 30th! > http://www.thinkgeek.com/freeshipping/?cpg=12297 > _______________________________________________ > Sablevm-developer mailing list > Sab...@li... > https://lists.sourceforge.net/lists/listinfo/sablevm-developer >=20 >=20 --=20 Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |
From: David <db...@cs...> - 2004-04-28 07:07:39
|
Hi, yes, I still have it. I built it clean from svn/staging, using the default options except enable debug and --with-threading=3Ddirect. Does anyone else has it? This is when it is compiled with --enable-debugging-features (otherwise the assert is not there). It does not seem to depend on other factors: It happens both on my Gentoo/ppc and Debian/x86 machines. gcc 2.95 or 3.3.x. switch or direct does not matter. SableVM seems to run fine if not compiled with the debugging mode, no crash happens. On Debian/x86, I do get these warnings that I did not get before: For SableVM CP: =2E/autogen.sh=20 libtoolize (GNU libtool) 1.4.3 libtoolize: minimum version required: 1.4.2 autoconf (GNU Autoconf) 2.59 autoconf: minimum version required: 2.59 autoheader (GNU Autoconf) 2.59 autoheader: minimum version required: 2.59 automake (GNU automake) 1.7.6 automake: minimum version required: 1.7.0 aclocal (GNU automake) 1.7.6 aclocal: minimum version required: 1.7.0 libtoolize ... aclocal ... autoheader ... svn: Path is not a working copy directory svn: '.' is not a working copy configure.ac:13: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from... configure.ac:13: the top level automake ... configure.ac:13: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from... configure.ac:13: the top level autoconf ... svn: Path is not a working copy directory svn: '.' is not a working copy configure.ac:13: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from... configure.ac:13: the top level Finished For SableVM: =2E/autogen.sh=20 svn: Path is not a working copy directory svn: '.' is not a working copy You can now run ./configure. Any idea? David On Tue, Apr 27, 2004 at 10:41:34PM -0400, Etienne Gagnon wrote: > I had a similar problem, until I scrapped all precompiled/pre-generated > code, and recompiled everything. Then, I was unable to reproduce it. >=20 > Can you: >=20 > $ svn st --no-ignore | grep ^I | awk '{print $2}' | xargs rm -rf >=20 > then rebuild, and tell me if you are still able to reproduce the bug? >=20 > Thanks, >=20 > Etienne >=20 > David B=E9langer wrote: > >Hi, > > > >I get this assertion failure with the new staging version: > > > > > >>$HOME/local/sablevm-jit/bin/sablevm-direct-debug -Y a > > > >sablevm-direct-debug: native_interface.c:1263: > >_svmf_internal_CallNonvirtualVoidMethodV: Assertion `_svmf_is_set_flag > >(method->class_info->state, 0x0004)' failed. > >Abort > > > > > >#6 0x400470d2 in _svmf_internal_CallNonvirtualVoidMethodV > >(env=3D0x804d7a8, > > this=3D0x8063918, class=3D0x8063398, methodID=3D0x413349e8, > > args=3D0xbfffc57c) > > at native_interface.c:1262 > >#7 0x4006ad54 in NewObject (_env=3D0x804d7a8, cls=3D0x8063398,=20 > > methodID=3D0x413349e8) at native_interface.c:23150 > >#8 0x413ae5cc in Java_gnu_java_nio_channels_FileChannelImpl_init ( > > env=3D0x804d7a8, clazz=3D0x8063398) > > at gnu_java_nio_channels_FileChannelImpl.c:139 > > > > > > > >It looks that somehow VMClass.setInitialize does not get call for some > >unknown reason for a class initialization. > > > >David > > > >--- > > > >David B=E9langer > >Graduate Student > >School of Computer Science > >McGill University > >Office: MC226 > > > >Web page: http://www.cs.mcgill.ca/~dbelan2/ > >Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek > >For a limited time only, get FREE Ground shipping on all orders of $35 > >or more. Hurry up and shop folks, this offer expires April 30th! > >http://www.thinkgeek.com/freeshipping/?cpg=12297 > >_______________________________________________ > >Sablevm-developer mailing list > >Sab...@li... > >https://lists.sourceforge.net/lists/listinfo/sablevm-developer > > > > >=20 >=20 > --=20 > Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ > SableVM: http://www.sablevm.org/ > SableCC: http://www.sablecc.org/ >=20 --=20 --- David B=E9langer Graduate Student School of Computer Science McGill University Office: MC226 Web page: http://www.cs.mcgill.ca/~dbelan2/ Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt |
From: Etienne G. <gag...@uq...> - 2004-04-29 05:08:55
|
David B=E9langer wrote: > yes, I still have it. I built it clean from svn/staging, using the > default options except enable debug and --with-threading=3Ddirect. OK. I analyzed the situation, and found out the bug. It's not a regression due to merging with newer classpath, as I thought it was. It's an old, but hidden "false" bug that was exposed by the merge. Mainly, when recursive initialization happens, the VM can actually call a method on a yet uninitialized class. The failing assetion was thus a wrong assertion. I have commented it, for now, as it would be better to actually add an "in-progress-initialization" state and check for this state in the assertion. Of course, this only showed in debug mode, as it was an assertion bug (and assertions are off in production mode). So, you can consider the bug fixed in staging. Etienne --=20 Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |
From: Fabien R. <re...@ne...> - 2004-04-29 11:29:19
|
Hello, I´d like to use sablevm with qt-emebedded on an arm embedded platform. I don´t have X installed (I run graphics applications with the FrameBuffer). What is the minimum I have to install to run java applications with qt lib ? Fabien |
From: Grzegorz B. P. <ga...@de...> - 2004-04-30 05:14:03
|
On (29/04/04 13:29), Fabien Renaud wrote: > Hello, Hi Fabien, > I?d like to use sablevm with qt-emebedded on an arm embedded platform. Great! > I don?t have X installed (I run graphics applications with the > FrameBuffer). > What is the minimum I have to install to run java applications with qt lib ? I am not sure what kind of "minimum" you think of. A minimum development suite needed to compile it all? I guess everything as usuall besides gtk libraries (and pass --disable-gtk-pee to configure script). I've just talked w/ jserv (see http://www.advogato.org/person/jserv/) and he might be also interested in trying qt-embedded with SableVM. Though I wouldn't want you guys to end up waiting for each other to start the tests :-) So, Fabien, just go on and tell us whether it works for you or what are the problems, if any. I am pretty sure that on the JVM side we'll be able to help you in case of any troubles. Though, if I get it right, qt-embedded simply uses some JNI to glue QT to Java, so I am not terribly worried. Should be quite easy. Let us know, Grzegorz B. Prokopski -- Grzegorz B. Prokopski <ga...@de...> Debian GNU/Linux http://www.debian.org SableVM - LGPLed JVM http://www.sablevm.org Why SableVM ?!? http://devel.sablevm.org/wiki/WhySableVM |
From: Fabien R. <re...@ne...> - 2004-04-30 13:48:38
|
Hello , Thanks you for yours answers. That´s should be not so easy for me because I´m a beginner with all it´s related to Java. Humm, I´ve already a problem : I installed libffi ( from gcc 3.4 tarball ). All seemed ok but now I can´t ./configure sablevm : checking for ffi_prep_cif in -lffi... no ***ERROR: libffi is missing I set CFLAGS, LDFLAGS, LD_LIBRARY_PATH ( like in this page : http://devel.sablevm.org/wiki/LibFFI ) ( I have the stable release 1.1.3 ) Cheers, Fabien Grzegorz B. Prokopski wrote: >On (29/04/04 13:29), Fabien Renaud wrote: > > >>Hello, >> >> > >Hi Fabien, > > > >>I?d like to use sablevm with qt-emebedded on an arm embedded platform. >> >> > >Great! > > > >>I don?t have X installed (I run graphics applications with the >>FrameBuffer). >>What is the minimum I have to install to run java applications with qt lib ? >> >> > >I am not sure what kind of "minimum" you think of. A minimum >development suite needed to compile it all? I guess everything as usuall >besides gtk libraries (and pass --disable-gtk-pee to configure script). > >I've just talked w/ jserv (see http://www.advogato.org/person/jserv/) >and he might be also interested in trying qt-embedded with SableVM. >Though I wouldn't want you guys to end up waiting for each other to >start the tests :-) > >So, Fabien, just go on and tell us whether it works for you or what >are the problems, if any. I am pretty sure that on the JVM side we'll >be able to help you in case of any troubles. Though, if I get it right, >qt-embedded simply uses some JNI to glue QT to Java, so I am not >terribly worried. Should be quite easy. > >Let us know, > > Grzegorz B. Prokopski > > > |
From: Chris P. <chr...@ma...> - 2004-04-30 14:04:08
|
Fabien Renaud wrote: > Hello , > > Thanks you for yours answers. That´s should be not so easy for me > because I´m a beginner with all it´s related to Java. > Humm, I´ve already a problem : > > I installed libffi ( from gcc 3.4 tarball ). All seemed ok but now I > can´t ./configure sablevm : > checking for ffi_prep_cif in -lffi... no > ***ERROR: libffi is missing > > I set CFLAGS, LDFLAGS, LD_LIBRARY_PATH ( like in this page : > http://devel.sablevm.org/wiki/LibFFI ) You need to substitute '/home/gadek/' with the location where libffi is installed on your system. Only if you installed it in your home directory will '/home/fabien/' (or rather '/home/`whoami`/') work. Type './configure --help' and look at the '--prefix' option, and maybe re-install libffi with './configure --prefix=${HOME}', or instead do something like 'find / -name 'libffi.*' to determine where it's already been installed. Cheers, Chris |
From: Fabien R. <re...@ne...> - 2004-04-30 14:21:22
|
I didn´t set to /home/gadek but where libffi is ( and I use --prefix option ) Cheers, Fabien Chris Pickett wrote: > Fabien Renaud wrote: > >> Hello , >> >> Thanks you for yours answers. That´s should be not so easy for me >> because I´m a beginner with all it´s related to Java. >> Humm, I´ve already a problem : >> >> I installed libffi ( from gcc 3.4 tarball ). All seemed ok but now I >> can´t ./configure sablevm : >> checking for ffi_prep_cif in -lffi... no >> ***ERROR: libffi is missing >> >> I set CFLAGS, LDFLAGS, LD_LIBRARY_PATH ( like in this page : >> http://devel.sablevm.org/wiki/LibFFI ) > > > You need to substitute '/home/gadek/' with the location where libffi > is installed on your system. Only if you installed it in your home > directory will '/home/fabien/' (or rather '/home/`whoami`/') work. > Type './configure --help' and look at the '--prefix' option, and maybe > re-install libffi with './configure --prefix=${HOME}', or instead do > something like 'find / -name 'libffi.*' to determine where it's > already been installed. > > Cheers, > Chris > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle > 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Sablevm-developer mailing list > Sab...@li... > https://lists.sourceforge.net/lists/listinfo/sablevm-developer > > |
From: Chris P. <chr...@ma...> - 2004-04-30 14:37:42
|
Hi Fabien, Can you please type out the exact sequence of commands you give, and changes you make to gcc files, from the beginning? I know this is probably a lot to ask, but it seems we could spend a while trying to guess why SableVM cannot find libffi. If you do this, someone like Greg more familiar with libffi will be able to help you much better. Cheers, Chris Fabien Renaud wrote: > I didn´t set to /home/gadek but where libffi is ( and I use --prefix > option ) > > Cheers, > Fabien > > > > Chris Pickett wrote: > > >>Fabien Renaud wrote: >> >> >>>Hello , >>> >>>Thanks you for yours answers. That´s should be not so easy for me >>>because I´m a beginner with all it´s related to Java. >>>Humm, I´ve already a problem : >>> >>>I installed libffi ( from gcc 3.4 tarball ). All seemed ok but now I >>>can´t ./configure sablevm : >>>checking for ffi_prep_cif in -lffi... no >>>***ERROR: libffi is missing >>> >>>I set CFLAGS, LDFLAGS, LD_LIBRARY_PATH ( like in this page : >>>http://devel.sablevm.org/wiki/LibFFI ) >> >> >>You need to substitute '/home/gadek/' with the location where libffi >>is installed on your system. Only if you installed it in your home >>directory will '/home/fabien/' (or rather '/home/`whoami`/') work. >>Type './configure --help' and look at the '--prefix' option, and maybe >>re-install libffi with './configure --prefix=${HOME}', or instead do >>something like 'find / -name 'libffi.*' to determine where it's >>already been installed. >> >>Cheers, >>Chris >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: Oracle 10g >>Get certified on the hottest thing ever to hit the market... Oracle >>10g. Take an Oracle 10g class now, and we'll give you the exam FREE. >>http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click >>_______________________________________________ >>Sablevm-developer mailing list >>Sab...@li... >>https://lists.sourceforge.net/lists/listinfo/sablevm-developer >> >> > > > > |
From: Fabien R. <re...@ne...> - 2004-04-30 14:57:56
|
Ok set -v ^^ Well I get a libffi from gcc 3.4 tarball I apply this patch : libffi/configure.in~ 2003-10-22 01:02:59.000000000 +0200 +++ libffi/configure.in 2003-11-11 12:33:40.000000000 +0100 @@ -29,6 +29,7 @@ else libffi_basedir= fi +libffi_basedir= AC_SUBST(libffi_basedir) AC_CONFIG_AUX_DIR(${libffi_basedir}..) Then I mkdir libffi_bin at the top of gcc cd libffi_bin ; ../libffi/configure --prefix=/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin --host=arm-linux --build=i386 make export LDFLAGS= -L/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin export LDFLAGS= -L/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin/include export LD_LIBRARY_PATH=/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin Then I install sablevm-classpath : ./configure --prefix=/path/to/sablevm_bin --build=i386 --host=arm-linux --includedir=/home/commgw/renaud/montavista/pro/devkit/arm/xscale_le/target/usr/include --disable-gtk-peer Ok for the moment,no problem. Now I run sablevm like this : ./configure --prefix=/path/to/sablevm_bin --build=i386 --host=arm-linux --includedir=/home/commgw/renaud/montavista/pro/devkit/arm/xscale_le/target/usr/include -disable-gtk-peer --with-threading=direct And then I have the foloing message : checking for ffi_prep_cif in -lffi... no ***ERROR: libffi is missing humm I have set CC, AR, NM, ... before Cheers, Fabien Chris Pickett wrote: > Hi Fabien, > > Can you please type out the exact sequence of commands you give, and > changes you make to gcc files, from the beginning? I know this is > probably a lot to ask, but it seems we could spend a while trying to > guess why SableVM cannot find libffi. If you do this, someone like > Greg more familiar with libffi will be able to help you much better. > > Cheers, > Chris > > Fabien Renaud wrote: > >> I didn´t set to /home/gadek but where libffi is ( and I use --prefix >> option ) >> >> Cheers, >> Fabien >> >> >> >> Chris Pickett wrote: >> >> >>> Fabien Renaud wrote: >>> >>> >>>> Hello , >>>> >>>> Thanks you for yours answers. That´s should be not so easy for me >>>> because I´m a beginner with all it´s related to Java. >>>> Humm, I´ve already a problem : >>>> >>>> I installed libffi ( from gcc 3.4 tarball ). All seemed ok but now >>>> I can´t ./configure sablevm : >>>> checking for ffi_prep_cif in -lffi... no >>>> ***ERROR: libffi is missing >>>> >>>> I set CFLAGS, LDFLAGS, LD_LIBRARY_PATH ( like in this page : >>>> http://devel.sablevm.org/wiki/LibFFI ) >>> >>> >>> >>> You need to substitute '/home/gadek/' with the location where libffi >>> is installed on your system. Only if you installed it in your home >>> directory will '/home/fabien/' (or rather '/home/`whoami`/') work. >>> Type './configure --help' and look at the '--prefix' option, and >>> maybe re-install libffi with './configure --prefix=${HOME}', or >>> instead do something like 'find / -name 'libffi.*' to determine >>> where it's already been installed. >>> >>> Cheers, >>> Chris >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: Oracle 10g >>> Get certified on the hottest thing ever to hit the market... Oracle >>> 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. >>> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click >>> _______________________________________________ >>> Sablevm-developer mailing list >>> Sab...@li... >>> https://lists.sourceforge.net/lists/listinfo/sablevm-developer >>> >>> >> >> >> >> > > |
From: Chris P. <chr...@ma...> - 2004-04-30 15:34:18
|
Fabien Renaud wrote: > Ok set -v ^^ > > Well I get a libffi from gcc 3.4 tarball > I apply this patch : > libffi/configure.in~ 2003-10-22 01:02:59.000000000 +0200 > +++ libffi/configure.in 2003-11-11 12:33:40.000000000 +0100 > @@ -29,6 +29,7 @@ > else > libffi_basedir= > fi > +libffi_basedir= > AC_SUBST(libffi_basedir) > AC_CONFIG_AUX_DIR(${libffi_basedir}..) > > Then I mkdir libffi_bin at the top of gcc > cd libffi_bin ; > ../libffi/configure > --prefix=/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin --host=arm-linux > --build=i386 > make > export LDFLAGS= -L/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin > export LDFLAGS= -L/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin/include > export LD_LIBRARY_PATH=/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin Please try export LDFLAGS=-L/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin export CFLAGS=-I/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin/include export LD_LIBRARY_PATH=/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin which is the closest thing to what's written in the wiki and see if that helps. If that doesn't work, please try something like cd libffi_bin ../libffi/configure --prefix=${HOME} --host=arm-linux --build=i386 make make install export LDFLAGS=-L/home/commgw/renaud/lib export CFLAGS=-I/home/commgw/renaud/include export LD_LIBRARY_PATH=/home/commgw/renaud/lib Cheers, Chris |
From: Fabien R. <re...@ne...> - 2004-05-03 07:10:17
|
Ok actually the lib was not installed ( I only had libffi.la and thought that was ok ) I set prefix to another directory than /home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin and now it-s installed. I onnly have to set the differents paths but that should be ok. Thanks you Chris & Grzegorz Cheers, Fabien Chris Pickett wrote: > Fabien Renaud wrote: > >> Ok set -v ^^ >> >> Well I get a libffi from gcc 3.4 tarball >> I apply this patch : >> libffi/configure.in~ 2003-10-22 01:02:59.000000000 +0200 >> +++ libffi/configure.in 2003-11-11 12:33:40.000000000 +0100 >> @@ -29,6 +29,7 @@ >> else >> libffi_basedir= >> fi >> +libffi_basedir= >> AC_SUBST(libffi_basedir) >> AC_CONFIG_AUX_DIR(${libffi_basedir}..) >> >> Then I mkdir libffi_bin at the top of gcc >> cd libffi_bin ; >> ../libffi/configure >> --prefix=/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin >> --host=arm-linux --build=i386 >> make >> export LDFLAGS= -L/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin >> export LDFLAGS= -L/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin/include >> export LD_LIBRARY_PATH=/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin > > > Please try > > export LDFLAGS=-L/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin > export CFLAGS=-I/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin/include > export LD_LIBRARY_PATH=/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin > > which is the closest thing to what's written in the wiki and see if > that helps. If that doesn't work, please try something like > > cd libffi_bin > ../libffi/configure --prefix=${HOME} --host=arm-linux --build=i386 > make > make install > export LDFLAGS=-L/home/commgw/renaud/lib > export CFLAGS=-I/home/commgw/renaud/include > export LD_LIBRARY_PATH=/home/commgw/renaud/lib > > Cheers, > Chris > > |
From: Fabien R. <re...@ne...> - 2004-05-03 08:08:13
|
I have now another problem. I set all my flags but the make wants to take a lib in /usr/lib ( it´s x86 lib). I´ve put the lib into libffi directory ( no problem with libffi ) The LD_LIBRARY_PATH ans LDFLAGS points on this directory. Can I exclude /usr/lib ? Cheers, Fabien Fabien Renaud wrote: > Ok actually the lib was not installed ( I only had libffi.la and > thought that was ok ) > I set prefix to another directory than > /home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin and now it-s installed. > I onnly have to set the differents paths but that should be ok. > > Thanks you Chris & Grzegorz > > Cheers, > > Fabien > > > Chris Pickett wrote: > >> Fabien Renaud wrote: >> >>> Ok set -v ^^ >>> >>> Well I get a libffi from gcc 3.4 tarball >>> I apply this patch : >>> libffi/configure.in~ 2003-10-22 01:02:59.000000000 +0200 >>> +++ libffi/configure.in 2003-11-11 12:33:40.000000000 +0100 >>> @@ -29,6 +29,7 @@ >>> else >>> libffi_basedir= >>> fi >>> +libffi_basedir= >>> AC_SUBST(libffi_basedir) >>> AC_CONFIG_AUX_DIR(${libffi_basedir}..) >>> >>> Then I mkdir libffi_bin at the top of gcc >>> cd libffi_bin ; >>> ../libffi/configure >>> --prefix=/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin >>> --host=arm-linux --build=i386 >>> make >>> export LDFLAGS= -L/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin >>> export LDFLAGS= -L/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin/include >>> export LD_LIBRARY_PATH=/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin >> >> >> >> Please try >> >> export LDFLAGS=-L/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin >> export CFLAGS=-I/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin/include >> export LD_LIBRARY_PATH=/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin >> >> which is the closest thing to what's written in the wiki and see if >> that helps. If that doesn't work, please try something like >> >> cd libffi_bin >> ../libffi/configure --prefix=${HOME} --host=arm-linux --build=i386 >> make >> make install >> export LDFLAGS=-L/home/commgw/renaud/lib >> export CFLAGS=-I/home/commgw/renaud/include >> export LD_LIBRARY_PATH=/home/commgw/renaud/lib >> >> Cheers, >> Chris >> >> > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle > 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Sablevm-developer mailing list > Sab...@li... > https://lists.sourceforge.net/lists/listinfo/sablevm-developer > > |
From: Fabien R. <re...@ne...> - 2004-05-03 08:22:21
|
I link /usr/lib/libltdl.so on my good lib ( I know that´s not really good) Now I have some libtool warnings ( libxxxx was moved ) and finally : sablevm.o(.text+0x5c): In function `displayFileContent': : undefined reference to `rpl_malloc' sablevm.o(.text+0x4cc): In function `getLine': : undefined reference to `rpl_malloc' sablevm.o(.text+0x10d4): In function `getProperties': : undefined reference to `rpl_malloc' sablevm.o(.text+0x11b4): In function `getProperties': : undefined reference to `rpl_malloc' sablevm.o(.text+0x11e8): In function `getProperties': : undefined reference to `rpl_malloc' sablevm.o(.text+0x14e8): more undefined references to `rpl_malloc' follow collect2: ld returned 1 exit status Fabien Renaud wrote: > Ok actually the lib was not installed ( I only had libffi.la and > thought that was ok ) > I set prefix to another directory than > /home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin and now it-s installed. > I onnly have to set the differents paths but that should be ok. > > Thanks you Chris & Grzegorz > > Cheers, > > Fabien > > > Chris Pickett wrote: > >> Fabien Renaud wrote: >> >>> Ok set -v ^^ >>> >>> Well I get a libffi from gcc 3.4 tarball >>> I apply this patch : >>> libffi/configure.in~ 2003-10-22 01:02:59.000000000 +0200 >>> +++ libffi/configure.in 2003-11-11 12:33:40.000000000 +0100 >>> @@ -29,6 +29,7 @@ >>> else >>> libffi_basedir= >>> fi >>> +libffi_basedir= >>> AC_SUBST(libffi_basedir) >>> AC_CONFIG_AUX_DIR(${libffi_basedir}..) >>> >>> Then I mkdir libffi_bin at the top of gcc >>> cd libffi_bin ; >>> ../libffi/configure >>> --prefix=/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin >>> --host=arm-linux --build=i386 >>> make >>> export LDFLAGS= -L/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin >>> export LDFLAGS= -L/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin/include >>> export LD_LIBRARY_PATH=/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin >> >> >> >> Please try >> >> export LDFLAGS=-L/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin >> export CFLAGS=-I/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin/include >> export LD_LIBRARY_PATH=/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin >> >> which is the closest thing to what's written in the wiki and see if >> that helps. If that doesn't work, please try something like >> >> cd libffi_bin >> ../libffi/configure --prefix=${HOME} --host=arm-linux --build=i386 >> make >> make install >> export LDFLAGS=-L/home/commgw/renaud/lib >> export CFLAGS=-I/home/commgw/renaud/include >> export LD_LIBRARY_PATH=/home/commgw/renaud/lib >> >> Cheers, >> Chris >> >> > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle > 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Sablevm-developer mailing list > Sab...@li... > https://lists.sourceforge.net/lists/listinfo/sablevm-developer > > |
From: Fabien R. <re...@ne...> - 2004-05-04 08:58:58
|
Soon, I´ll be able to run QT embedded applications but ... I have a little problem. I set -p "sablevm.boot.class.path=my_path" and -c "my_path_where_there_is_helloworld.class" There is no problem but it doen´t check in "my_path_where_there_is_helloworld.class" so he cannot find helloworld.class If i move my helloworld.class in "my_path" that´s works well. I´m sure that´s a newbie problem :( Cheers, Fabien |
From: David <db...@cs...> - 2004-05-05 22:47:52
|
On Tue, May 04, 2004 at 10:58:58AM +0200, Fabien Renaud wrote: > Soon, I=B4ll be able to run QT embedded applications but ... I have a=20 > little problem. > I set -p "sablevm.boot.class.path=3Dmy_path" and -c=20 > "my_path_where_there_is_helloworld.class" > There is no problem but it doen=B4t check in=20 > "my_path_where_there_is_helloworld.class" so he cannot find helloworld.= class > If i move my helloworld.class in "my_path" that=B4s works well. >=20 Hi, I cannot see what could be wrong unless the path is not specified correctly. If you don't specify the boot class path and use the default one, do you get the same error? Please copy and paste the full command line to report problems. Sometimes it happens to me what I think is correct but I don't do what I think I am doing and then it doesn't work... David --- David B=E9langer Graduate Student School of Computer Science McGill University Office: MC226 Web page: http://www.cs.mcgill.ca/~dbelan2/ Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt |
From: Fabien R. <re...@ne...> - 2004-05-06 07:01:48
|
Hi, If I don´t set boot.class.path I have "cannot create vm" because directories are not the same than the machine where I cross compiled (and sanlevm wants to search in these). My command : sablevm -Y -c "/home/java/tests" -p "sablevm.boot.class.path=/home/java/classpath" -p "sablevm.verbose.methods=true" -p "sablevm.boot.library.path=/home/java/sablevm/lib" helloworld And I do this command in /home/java/tests where is my helloworld.class Fabien David Bélanger wrote: >On Tue, May 04, 2004 at 10:58:58AM +0200, Fabien Renaud wrote: > > >>Soon, I´ll be able to run QT embedded applications but ... I have a >>little problem. >>I set -p "sablevm.boot.class.path=my_path" and -c >>"my_path_where_there_is_helloworld.class" >>There is no problem but it doen´t check in >>"my_path_where_there_is_helloworld.class" so he cannot find helloworld.class >>If i move my helloworld.class in "my_path" that´s works well. >> >> >> > >Hi, > >I cannot see what could be wrong unless the path is not specified >correctly. If you don't specify the boot class path and use the default >one, do you get the same error? > >Please copy and paste the full command line to report problems. >Sometimes it happens to me what I think is correct but I don't do what I >think I am doing and then it doesn't work... > >David > >--- > >David Bélanger >Graduate Student >School of Computer Science >McGill University >Office: MC226 > >Web page: http://www.cs.mcgill.ca/~dbelan2/ >Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt > > > > |
From: Chris P. <chr...@ma...> - 2004-05-06 13:58:03
|
Hi Fabien, Assuming you only specified --prefix to configure when installing SableVM: sablevm \ --property=sablevm.boot.class.path=${PREFIX}/share/sablevm/sablevm-classpath/ --property=sablevm.boot.library.path=${PREFIX}/lib/sablevm/sablevm-classpath/ HelloWorld should work (watch out for line wrapping or lack thereof in the above). If things are in different places, you just need to specify the two different sablevm-classpath directories. Cheers, Chris Fabien Renaud wrote: > Hi, > > If I don´t set boot.class.path I have "cannot create vm" because > directories are not the same than the machine where I cross compiled > (and sanlevm wants to search in these). > > My command : > sablevm -Y -c "/home/java/tests" -p > "sablevm.boot.class.path=/home/java/classpath" -p > "sablevm.verbose.methods=true" -p > "sablevm.boot.library.path=/home/java/sablevm/lib" helloworld > And I do this command in /home/java/tests where is my helloworld.class > > Fabien > > David Bélanger wrote: > > >>On Tue, May 04, 2004 at 10:58:58AM +0200, Fabien Renaud wrote: >> >> >> >>>Soon, I´ll be able to run QT embedded applications but ... I have a >>>little problem. >>>I set -p "sablevm.boot.class.path=my_path" and -c >>>"my_path_where_there_is_helloworld.class" >>>There is no problem but it doen´t check in >>>"my_path_where_there_is_helloworld.class" so he cannot find helloworld.class >>>If i move my helloworld.class in "my_path" that´s works well. >>> >>> >>> >> >>Hi, >> >>I cannot see what could be wrong unless the path is not specified >>correctly. If you don't specify the boot class path and use the default >>one, do you get the same error? >> >>Please copy and paste the full command line to report problems. >>Sometimes it happens to me what I think is correct but I don't do what I >>think I am doing and then it doesn't work... >> >>David >> >>--- >> >>David Bélanger >>Graduate Student >>School of Computer Science >>McGill University >>Office: MC226 >> >>Web page: http://www.cs.mcgill.ca/~dbelan2/ >>Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt >> >> >> >> > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Sablevm-developer mailing list > Sab...@li... > https://lists.sourceforge.net/lists/listinfo/sablevm-developer > |
From: Fabien R. <re...@ne...> - 2004-05-04 13:22:53
|
Hello, I´d like to have more informations about how to use qt lib. I know there is libqtjava but if I want to use awt or swing, how can I do ? There is an implemtation for kaffe (kaffe-awt-qt) but for sableVM ? Can I adapt kaffe-awt-qt easily for sablevm ? Sorry for all these questions but I don´t have IRC for the moment :( Cheers, Fabien |
From: David <db...@cs...> - 2004-05-05 22:44:09
|
On Tue, May 04, 2004 at 03:22:49PM +0200, Fabien Renaud wrote: > Hello, >=20 > I=B4d like to have more informations about how to use qt lib. > I know there is libqtjava but if I want to use awt or swing, how can I=20 > do ? There is an implemtation for kaffe (kaffe-awt-qt) but for sableVM = ? > Can I adapt kaffe-awt-qt easily for sablevm ? > Sorry for all these questions but I don=B4t have IRC for the moment :( >=20 Hi, The interface between SableVM and Classpath is relatively small. SableVM does not really care how the awt is implemented. So, I suspect all the changes you will have to do will be in Classpath. You will have = to replace the current awt-gtk implementation with awt-qt and rebuild Classpath. I don't know what it actually involves. David --- David B=E9langer Graduate Student School of Computer Science McGill University Office: MC226 Web page: http://www.cs.mcgill.ca/~dbelan2/ Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt |
From: Grzegorz B. P. <ga...@de...> - 2004-04-30 15:48:00
|
On (30/04/04 16:57), Fabien Renaud wrote: > Ok set -v ^^ > > Well I get a libffi from gcc 3.4 tarball > I apply this patch : > libffi/configure.in~ 2003-10-22 01:02:59.000000000 +0200 > +++ libffi/configure.in 2003-11-11 12:33:40.000000000 +0100 > @@ -29,6 +29,7 @@ > else > libffi_basedir= > fi > +libffi_basedir= > AC_SUBST(libffi_basedir) > AC_CONFIG_AUX_DIR(${libffi_basedir}..) > > Then I mkdir libffi_bin at the top of gcc > cd libffi_bin ; > ../libffi/configure > --prefix=/home/commgw/renaud/gcc/gcc-3.4.0/libffi_bin --host=arm-linux > --build=i386 > make "make install" seems to be missing here. Are you sure the libffi*.so and ffi.h headers are installed in tthe --prefix location? GBP -- Grzegorz B. Prokopski <ga...@de...> Debian GNU/Linux http://www.debian.org SableVM - LGPLed JVM http://www.sablevm.org Why SableVM ?!? http://devel.sablevm.org/wiki/WhySableVM |
From: Fabien R. <re...@ne...> - 2004-06-02 15:36:53
|
Hello, sablevm-1.1.3 works on my machine. I want to compile 1.1.5 (even if there is still not qtjava support :( ) I have the message "undefined refereence to rpl_malloc". I looked quicly at the files and saw malloc is renamed rpl_malloc. I´d like to know why I have this problem now and not before ( you don´t speek about rpl_malloc in Changelog ) What can I do to remove properly the "#define malloc rpl_malloc" ? Cheers, Fabien |
From: Fabien R. <re...@ne...> - 2004-06-03 14:30:17
|
Hello, I try to install sablevm 1.1.5 but there is some problems. I use CFLAGS, LDFLAGS and LD_LIBRARY_PATH to specify the path to libffi directory. Why have I to specify it too with --libdir option ?? If I run make install, sablevm libs go into --libdir !! Is there a problem or is it me ? Cheers, Fabien |
From: Fabien R. <re...@ne...> - 2004-06-03 14:35:57
|
Fabien Renaud wrote: > Hello, > > I try to install sablevm 1.1.5 but there is some problems. > I use CFLAGS, LDFLAGS and LD_LIBRARY_PATH to specify the path to > libffi directory. > Why have I to specify it too with --libdir option ?? > > If I run make install, sablevm libs go into --libdir !! > > Is there a problem or is it me ? > > > Cheers, > > Fabien > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the new InstallShield X. > >> From Windows to Linux, servers to mobile, InstallShield X is the one > > installation-authoring solution that does it all. Learn more and > evaluate today! http://www.installshield.com/Dev2Dev/0504 > _______________________________________________ > Sablevm-developer mailing list > Sab...@li... > https://lists.sourceforge.net/lists/listinfo/sablevm-developer > I have forgotten to say that I have no problems during ./configure, only during make. |