error: "Unsupported platform: unknown-darwin" when using JRuby's ffi and Java 
1.7 macosx-port build
---------------------------------------------------------------------------------------------------

                 Key: JRUBY-5736
                 URL: http://jira.codehaus.org/browse/JRUBY-5736
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.6.2
         Environment: jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-25 ef0212b) 
(OpenJDK 64-Bit Server VM 1.7.0-internal) [darwin-universal-java]
            Reporter: Stephen Bannasch


Using JRuby built-in ffi and a recent macosx-port Java 1.7 build generates an: 
"Unsupported platform: unknown-darwin" error.

Seems like the builds report their platform as "unknown-darwin". Also looks 
like an interaction with JRubies built-in ffi support.

Details ...

I installed jruby head using rvm using the standard Java 1.6.0_24 on Mac OS X 
10.6.7

Then using a recent build of the macosx-port Java 1.7 build:

http://www.concord.org/~sbannasch/macosx-port/java-1.7.0-internal-macosx-port-2011-04-25.tar.gz
Expand and copy to ~/Library/Java/JavaVirtualMachines
Open /Applications/Utilities/Java\ Preferences.app and move OpenJDK7 to the top 
of the list.

Note: this is *not* an mlvm build -- just the macosx-port version based off of 
the bsd-port.

Now open a new shell.

{noformat}
$ java -version
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-stephen_2011_04_16_22_03-b00)
OpenJDK 64-Bit Server VM (build 21.0-b07, mixed mode)

$ ruby --version
jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-25 ef0212b) (OpenJDK 64-Bit Server VM 
1.7.0-internal) [darwin-universal-java]
{noformat}

I then also installed rubygems 1.7.2 (but I don't think that matters):

{noformat}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to