Giter Site home page Giter Site logo

Errors When Building Project about onnx-scala HOT 5 CLOSED

samdow avatar samdow commented on May 29, 2024
Errors When Building Project

from onnx-scala.

Comments (5)

EmergentOrder avatar EmergentOrder commented on May 29, 2024 1

First step, I've updated the README to first suggest sbt publishLocal without the +, which signifies cross-build (in our case, build against all of Scala 2.11, 2.12, 2.13 Milestone, and Dotty/3.0, where possible).
The default build doesn't need to include all of those possibilities.

As for the issue with the cross-build you found, I can't reproduce the StackoverflowError on my machine.

Try adding export SBT_OPTS="-XX:+CMSClassUnloadingEnabled -Xmx28G -Xss8M -XX:MaxMetaspaceSize=1024M" to your ~/.bashrc or Mac profile file or your OS's equivalent.

Or, if that doesn't work, try sbt -mem 12288 publishLocal.

Please let me know if these resolve your issue.

I think the dependency error is a consequence of the StackoverflowError.

Thanks for your interest in the project! A working backend is coming soon.
To follow progress on the underlying Java wrapper to nGraph see: bytedeco/javacpp-presets#642

from onnx-scala.

EmergentOrder avatar EmergentOrder commented on May 29, 2024 1

Ok, I can reproduce the dependency error now. It looks you need to do the default build first, and then the cross-build, in order to not get the error. I'll fix this so you can invoke the cross-build on its own.

from onnx-scala.

EmergentOrder avatar EmergentOrder commented on May 29, 2024 1

Good point; I just noticed that it no longer worked on my machine with 1.4.4. 1.4.3 is actually good enough for now, so I'll switch to use that here, for now.

from onnx-scala.

EmergentOrder avatar EmergentOrder commented on May 29, 2024

Actually, I didn't delete my ivy cache before testing just now, will do that to see if I get the dependency error.

from onnx-scala.

samdow avatar samdow commented on May 29, 2024

Thanks for the quick reply and for building the project! I had some issues with the dependency with the default build because I think only the snapshot for JavaCPP 1.4.3 is released (it worked if I downgraded the sbt to use 1.4.3 instead of 1.4.4). I ended up downloading 1.4.4 and building from source, figuring that you've been contributing so much to it, it's probably necessary. Figured I would just note this if someone else runs into this issue while building. Looking forward to playing around with the project! Thanks for your help!

from onnx-scala.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.