
With haskell-jvm-bridge-0.2.1 I get: ghc -package javavm HelloWorld.o HelloWorld_JVM.o Class_java_io_PrintStream.o Class_java_lang_System.o -o HelloWorld gcc: unrecognized option `-rpath' gcc: unrecognized option `-rpath' gcc: unrecognized option `-rpath' /usr/bin/ld: cannot open /usr/lib/jvm-bridge/lib/: File format not recognized $ ld --version GNU ld version 2.12.90.0.1 20020307 Debian/GNU Linux Copyright 2002 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. $ gcc --version 2.95.4 $ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.2 I don't suppose anyone can hand-hold me through tracking this problem down? -- Mark

I should add that I see things like -Wl -rpath /usr/lib/jvm-bridge/lib/ in the verbose output which maybe should be -Wl,-rpath,/usr/lib/jvm-bridge/lib/ instead. -- Mark

I've been trying the JVM - Haskell bridge a few days ago and got the same errors. However this fixed it: The "make install" procedure of the jvm-bridge package adds the package information of "javavm" to /opt/ghc/lib/ghc-6.2/package.conf. After removing those options (-rpath,...) from "extra_ld_opts = []" in the javavm section and setting the LD_LIBRARY_PATH var manually to /path/to/jvmbridge/lib:/opt/sun-jdk-1.4.2.02/jre/lib/i386:/opt/sun-jdk-1.4.2.02/jre/lib/i386/client everything is working fine. regards On Tuesday 06 January 2004 20:31, Mark Carroll wrote:
I should add that I see things like -Wl -rpath /usr/lib/jvm-bridge/lib/ in the verbose output which maybe should be -Wl,-rpath,/usr/lib/jvm-bridge/lib/ instead.
-- Mark _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Wed, 7 Jan 2004, Peter Robinson wrote:
information of "javavm" to /opt/ghc/lib/ghc-6.2/package.conf. After removing those options (-rpath,...) from "extra_ld_opts = []" in the
Thanks! This was of great help. It all works if I do what's illustrated here: $ diff /usr/lib/ghc-6.2/package.conf /usr/lib/ghc-6.2/package.conf~ 415,417c415,423 < ["-Wl,-rpath,/usr/lib/jvm-bridge/lib/", < "-Wl,-rpath,/usr/lib/j2se/1.3/jre/lib/i386/", < "-Wl,-rpath,/usr/lib/j2se/1.3/jre/lib/i386/client/"], ---
["-Wl", "-rpath", "/usr/lib/jvm-bridge/lib/", "-Wl", "-rpath", "/usr/lib/j2se/1.3/jre/lib/i386/", "-Wl", "-rpath", "/usr/lib/j2se/1.3/jre/lib/i386/client/"],
-- Mark

In article
On Wed, 7 Jan 2004, Peter Robinson wrote:
information of "javavm" to /opt/ghc/lib/ghc-6.2/package.conf. After removing those options (-rpath,...) from "extra_ld_opts = []" in the
Thanks! This was of great help. It all works if I do what's illustrated here:
My preliminary report is that it's a bug in the 6.2 version of ghc-pkg. If you look at the ghc-pkg file (typically in /usr/lib/jvm-bridge/share/javavm.ghc-pkg) and compare it with "ghc-pkg -s javavm", you'll see ghc-pkg has incorrectly parsed commas within the quotes. -- Ashley Yakeley, Seattle WA

In article
I don't suppose anyone can hand-hold me through tracking this problem down?
I've been rather neglecting JVM Bridge since I got a paying job back in December. But I'll try to have a look at this over the weekend. Likely areas: GHC 6.2 changed something, or it's a GCC version thing. -- Ashley Yakeley, Seattle WA
participants (4)
-
Ashley Yakeley
-
Mark Carroll
-
Mark T.B. Carroll
-
Peter Robinson