Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cannot build with gcc-bridge on macOS 10.12.5 #147

Closed
jeremydouglass opened this issue Jul 10, 2017 · 5 comments
Closed

Cannot build with gcc-bridge on macOS 10.12.5 #147

jeremydouglass opened this issue Jul 10, 2017 · 5 comments

Comments

@jeremydouglass
Copy link
Member

jeremydouglass commented Jul 10, 2017

I cannot build recent versions of the mode on macOS 10.12.5 (16F73) -- the step to download gcc-bridge fails.

  1. checked out aed8ba6
  2. built with ./scripts/generate-ant-file.sh; ant install

See the log below for details on gcc-bridge. Strange that it is passing Travis-CI correctly. Is there a new OS-level dependency?

BUILD FAILED
/Users/jeremydouglass/git/Processing.R/build.xml:43: Unable to resolve artifact: Missing:
----------
1) org.renjin:gcc-bridge-plugin:jar:apple-x86_64:0.8.2411

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.renjin -DartifactId=gcc-bridge-plugin -Dversion=0.8.2411 -Dclassifier=apple-x86_64 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.renjin -DartifactId=gcc-bridge-plugin -Dversion=0.8.2411 -Dclassifier=apple-x86_64 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
  	1) org.apache.maven:super-pom:pom:2.0
  	2) org.renjin:renjin-cli:jar:0.8.2411
  	3) org.renjin:renjin-gnur-compiler:jar:0.8.2411
  	4) org.renjin:gcc-bridge-compiler:jar:0.8.2411
  	5) org.renjin:gcc-bridge-plugin:jar:apple-x86_64:0.8.2411

----------
1 required artifact is missing.

for artifact: 
  org.apache.maven:super-pom:pom:2.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  remote.repository (https://nexus.bedatadriven.com/content/groups/public/)

@gaocegege
Copy link
Member

gaocegege commented Jul 10, 2017

Yeah, travis downloads org.renjin:gcc-bridge-plugin:jar:linux-x86_64:0.8.2411, not org.renjin:gcc-bridge-plugin:jar:apple-x86_64:0.8.2411.

I think it is why renjin only supports to be built in Ubuntu.

I will test the mode built in Linux in macOS.

@gaocegege
Copy link
Member

The mode works well although it uses linux-x86_64 in macOS.

@gaocegege
Copy link
Member

ant install works well if we don't download the jars from renjin's repository. Using jars in lib directly is a possible solution to this issue and #140

@gaocegege
Copy link
Member

http://alvinalexander.com/blog/post/java/how-determine-operating-system-os-ant-build-script

I changed the code to:

    <target name="checkos">
        <condition property="isWindows" value="true">
            <os family="windows" />
        </condition>

        <condition property="isLinux" value="true">
            <os family="unix" />
        </condition>

        <condition property="isLinux" value="false">
            <os family="mac" />
        </condition>
    </target>

Not sure if it works. I will have a try when I am home.

@jeremydouglass
Copy link
Member Author

Great -- confirming that I have been able to build on macOS ever since this fix went in.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants