Thread: [Sablevm-user] Cygwin Compile Problems
Brought to you by:
egagnon
From: <ant...@ya...> - 2004-05-05 20:59:23
|
Hi, I'm trying to compile SableVM 1.1.3 on Cygwin. I got the sablevm-classpath-1.1.3 package to compile ok with only minimal changes, but am having problems compiling sablevm-1.1.3. It compiles fine up to: gcc -g -O2 -Wall -fno-gcse -Wno-unused -fno-strict-aliasing -o sablevm.exe sablevm.o ../libsablevm/.libs/libsablevm.a -lpthread /usr/lib/./libffi.a /usr/lib/libltdl.dll.a -lrt /usr/lib/libpopt.dll.a which fails with: sablevm.o(.text+0x1d97): In function `main': /home/jon/src/sable/sablevm-1.1.3/src/sablevm/sablevm.c:1351: undefined reference to `_JNI_CreateJavaVM' Info: resolving _poptHelpOptions by linking to __imp__poptHelpOptions (auto-import) collect2: ld returned 1 exit status <thread /usr/lib/./libffi.a /usr/lib/libltdl.dll.a -lrt /usr/lib/libpopt.dll.a /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: cannot find -lrt collect2: ld returned 1 exit status I'm using Cygwin 1.5.9-1 & gcc 3.3.1. Anyone got any ideas? Thanks, Antony ____________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html |
From: David <db...@cs...> - 2004-05-05 22:24:29
|
Hi, SableVM 1.1.3 does not have Cygwin support... Some code necessary to get it work on Cygwin has been merged in the development version (called the staging version). I am not sure if the code is sufficient yet to have SableVM compile out-of-the-box on that platform but it is one step closer. So, I would recommend that you obtain SableVM development tree (staging branch): http://devel.sablevm.org/wiki/Getting Note that this will require to have subversion as well as the automake/autoconf tools. You can also get a daily snapshot here: http://devel.sablevm.org/shot/ We are working improving the configuration to autodetect if -lrt is needed. Meanwhile, with a staging version, it can be fixed by removing -lrt in src/libsablevm/Makefile.am and running ./autogen.sh then ./configure etc. David On Wed, May 05, 2004 at 09:59:16PM +0100, Antony Baxter wrote: > Hi, >=20 > I'm trying to compile SableVM 1.1.3 on Cygwin. I got > the=20 > sablevm-classpath-1.1.3 package to compile ok with > only minimal changes,=20 > but am having problems compiling sablevm-1.1.3. It > compiles fine up to: >=20 > gcc -g -O2 -Wall -fno-gcse -Wno-unused > -fno-strict-aliasing -o=20 > sablevm.exe sablevm.o ../libsablevm/.libs/libsablevm.a > -lpthread=20 > /usr/lib/./libffi.a /usr/lib/libltdl.dll.a -lrt > /usr/lib/libpopt.dll.a >=20 > which fails with: >=20 > sablevm.o(.text+0x1d97): In function `main': > /home/jon/src/sable/sablevm-1.1.3/src/sablevm/sablevm.c:1351: > undefined=20 > reference to `_JNI_CreateJavaVM' > Info: resolving _poptHelpOptions by linking to > __imp__poptHelpOptions=20 > (auto-import) > collect2: ld returned 1 exit status > <thread /usr/lib/./libffi.a /usr/lib/libltdl.dll.a > -lrt=20 > /usr/lib/libpopt.dll.a > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld= : >=20 > cannot find -lrt > collect2: ld returned 1 exit status >=20 > I'm using Cygwin 1.5.9-1 & gcc 3.3.1. Anyone got any > ideas? >=20 > Thanks, >=20 > Antony >=20 >=20 >=20 > =09 > =09 > =09 > ____________________________________________________________ > Yahoo! Messenger - Communicate instantly..."Ping"=20 > your friends today! Download Messenger Now=20 > http://uk.messenger.yahoo.com/download/index.html >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to=20 > deliver higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=3Dosdnemail3 > _______________________________________________ > Sablevm-user mailing list > Sab...@li... > https://lists.sourceforge.net/lists/listinfo/sablevm-user --=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-05-06 23:37:57
|
In fact, Melanie Lord got SableVM to work under Cygwin. Her "raw" work is in he sandbox: svn ls svn://svn.sablevm.org/developers/mlord/sandbox I have incorporated, latelym the most important part of it into the staging branch (i.e. not using lt_dlopen(NULL) for internal VM calls), but there were some additional minor changes required to get sablevm and sablevm-classpath to work on cygwin. The thing is, all is left to do is to integrate these changes "cleanly" in sablevm[-classpath], so that we don't break the build on other platforms. Etienne On Wed, May 05, 2004 at 06:24:25PM -0400, David B?langer wrote: > > Hi, > > SableVM 1.1.3 does not have Cygwin support... > > Some code necessary to get it work on Cygwin has been merged in the > development version (called the staging version). I am not sure if the > code is sufficient yet to have SableVM compile out-of-the-box on that > platform but it is one step closer. > > So, I would recommend that you obtain SableVM development tree (staging > branch): > http://devel.sablevm.org/wiki/Getting > Note that this will require to have subversion as well as the > automake/autoconf tools. > You can also get a daily snapshot here: http://devel.sablevm.org/shot/ > > We are working improving the configuration to autodetect if -lrt is > needed. Meanwhile, with a staging version, it can be fixed by removing > -lrt in src/libsablevm/Makefile.am and running ./autogen.sh then > ./configure etc. > > > David > > On Wed, May 05, 2004 at 09:59:16PM +0100, Antony Baxter wrote: > > Hi, > > > > I'm trying to compile SableVM 1.1.3 on Cygwin. I got > > the > > sablevm-classpath-1.1.3 package to compile ok with > > only minimal changes, > > but am having problems compiling sablevm-1.1.3. It > > compiles fine up to: > > > > gcc -g -O2 -Wall -fno-gcse -Wno-unused > > -fno-strict-aliasing -o > > sablevm.exe sablevm.o ../libsablevm/.libs/libsablevm.a > > -lpthread > > /usr/lib/./libffi.a /usr/lib/libltdl.dll.a -lrt > > /usr/lib/libpopt.dll.a > > > > which fails with: > > > > sablevm.o(.text+0x1d97): In function `main': > > /home/jon/src/sable/sablevm-1.1.3/src/sablevm/sablevm.c:1351: > > undefined > > reference to `_JNI_CreateJavaVM' > > Info: resolving _poptHelpOptions by linking to > > __imp__poptHelpOptions > > (auto-import) > > collect2: ld returned 1 exit status > > <thread /usr/lib/./libffi.a /usr/lib/libltdl.dll.a > > -lrt > > /usr/lib/libpopt.dll.a > > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: > > > > cannot find -lrt > > collect2: ld returned 1 exit status > > > > I'm using Cygwin 1.5.9-1 & gcc 3.3.1. Anyone got any > > ideas? > > > > Thanks, > > > > Antony > > > > > > > > > > > > > > ____________________________________________________________ > > Yahoo! Messenger - Communicate instantly..."Ping" > > your friends today! Download Messenger Now > > http://uk.messenger.yahoo.com/download/index.html > > > > > > ------------------------------------------------------- > > 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-user mailing list > > Sab...@li... > > https://lists.sourceforge.net/lists/listinfo/sablevm-user > > -- > > --- > > 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-user mailing list > Sab...@li... > https://lists.sourceforge.net/lists/listinfo/sablevm-user -- Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |