Parse error in a package file

Hello! I'm building the haskell-jvm-bridge (http://sourceforge.net/projects/jvm- bridge/). The final step of the building procedure is to install the package of haskell- jvm-bridge. When I enter ghc-pkg -a -f javavm.ghc-pkg I'm getting the error javavm.ghc-pkg: parse error in package config file The original file looks as shown below. <original-file> Package { name = "javavm", import_dirs = ["c:/Programme/haskell-jvm-bridge-0.3- RC1/imports/"], source_dirs = [], library_dirs = [ "c:/Programme/haskell-jvm-bridge-0.3-RC1/lib/"-L ], hs_libraries = [], extra_libraries = ["stdc++","JVMBridge","JVMInvocation","HaskellJVMBridge"-L,"jvm_imp"], include_dirs = [], c_includes = [], package_deps = ["lang","concurrent","haskell98"], extra_ghc_opts = ["-fglasgow-exts","-fallow-undecidable-instances"], extra_cc_opts = [], extra_frameworks = [-L ], extra_ld_opts = [ "-Wl,-rpath,c:/Programme/haskell-jvm-bridge-0.3-RC1/lib/"-L ] } </original-file> I noted that some package files have the form [ Package, Package, ... ], and changed the original file: <original-file> [Package { name = "javavm", import_dirs = ["c:/Programme/haskell-jvm-bridge-0.3- RC1/imports/"], source_dirs = [], library_dirs = [ "c:/Programme/haskell-jvm-bridge-0.3-RC1/lib/"-L ], hs_libraries = [], extra_libraries = ["stdc++","JVMBridge","JVMInvocation","HaskellJVMBridge"-L,"jvm_imp"], include_dirs = [], c_includes = [], package_deps = ["lang","concurrent","haskell98"], extra_ghc_opts = ["-fglasgow-exts","-fallow-undecidable-instances"], extra_cc_opts = [], extra_frameworks = [-L ], extra_ld_opts = [ "-Wl,-rpath,c:/Programme/haskell-jvm-bridge-0.3-RC1/lib/"-L ] }] </original-file> This didn't help me, I got the same error message. Please tell me what's wrong with this package file. Thanks in advance Dmitri Pissarenko -- Dmitri Pissarenko Software Engineer http://dapissarenko.com

Dmitri Pissarenko
Hello!
I'm building the haskell-jvm-bridge (http://sourceforge.net/projects/jvm- bridge/).
The final step of the building procedure is to install the package of haskell- jvm-bridge.
When I enter ghc-pkg -a -f javavm.ghc-pkg I'm getting the error
javavm.ghc-pkg: parse error in package config file
(snip)
Please tell me what's wrong with this package file.
Looks like there are a bunch of mis-placed "-L"s in the file. Maybe they need to be quoted? peace, isaac

Looks like there are a bunch of mis-placed "-L"s in the file. Maybe they need to be quoted?
Do you mean this 1) Before: library_dirs = [ "c:/Programme/haskell-jvm-bridge-0.3-RC1/lib/"-L ], After: library_dirs = [ "c:/Programme/haskell-jvm-bridge-0.3-RC1/lib/", "-L" ], 2) Before: extra_libraries = ["stdc++","JVMBridge","JVMInvocation","HaskellJVMBridge"-L,"jvm_imp"], After: extra_libraries = ["stdc++","JVMBridge","JVMInvocation","HaskellJVMBridge","-L",,"jvm_imp"], 3) Before: extra_ld_opts = [ "-Wl,-rpath,c:/Programme/haskell-jvm-bridge-0.3-RC1/lib/"-L ] After: extra_ld_opts = [ "-Wl,-rpath,c:/Programme/haskell-jvm-bridge-0.3-RC1/lib/", "- L" ] ? Thanks Dmitri Pissarenko -- Dmitri Pissarenko Software Engineer http://dapissarenko.com
participants (2)
-
Dmitri Pissarenko
-
Isaac Jones