Giter Club home page Giter Club logo

Comments (13)

prabhuramachandran avatar prabhuramachandran commented on May 19, 2024 1

Hi @yurivict -- Thanks for the instructions. I've managed to setup a VM with FreeBSD.
I've fixed one of the issues in pypr/cyarray#1
I am able to reproduce your error and see a few more things I can fix. I hope I should be able to fix it soon. BTW, I think the package will build fine with gcc but I would like to make sure that it works with clang also.

from pysph.

prabhuramachandran avatar prabhuramachandran commented on May 19, 2024

This looks like a C++ compiler setup issue from the look of it. I build on OS X with their clang (and also with gcc) but haven't tried on another system with clang.

from pysph.

yurivict avatar yurivict commented on May 19, 2024

@prabhuramachandran I have clang-6.0.1. What clang did you try on OS X?
clang-7.0.0 fails the same way.

from pysph.

yurivict avatar yurivict commented on May 19, 2024

It builds if in this file/place to remove the comparator element from the std::sort template parameters.

from pysph.

prabhuramachandran avatar prabhuramachandran commented on May 19, 2024

@yurivict -- I have this, which seems a bit meaningless Apple LLVM version 10.0.0 (clang-1000.10.44.4) .
Do the tests pass with your modifications? The additional comparator is needed for one of the calls. Perhaps there is a better way of doing this? I will need to investigate this more closely and will do so when I get some time later this week.

from pysph.

prabhuramachandran avatar prabhuramachandran commented on May 19, 2024

@yurivict -- would you be willing to help with this? I am unable to reproduce the error so am not sure how best to proceed. Could you please send me the full error message? Thanks.

from pysph.

yurivict avatar yurivict commented on May 19, 2024

Now it breaks with this message:

pyzoltan/core/carray.cpp:44253:3: error: cannot initialize return object of type 'int' with an rvalue of type 'nullptr_t'
  import_array();
  ^~~~~~~~~~~~~~

This file appears to be C++ generated from python.

from pysph.

prabhuramachandran avatar prabhuramachandran commented on May 19, 2024

carray is now in its own package called cyarray from pypi or here https://github.com/pypr/cyarray. import_array ought to work as it is used all over the place for numpy, again, if you share the full log -- you can directly email me if you don't want to attach it here.

from pysph.

prabhuramachandran avatar prabhuramachandran commented on May 19, 2024

I am thinking of trying freebsd on a virtual machine, so if you can tell me the steps you followed to perform the installation on a fresh system, that would help.

from pysph.

yurivict avatar yurivict commented on May 19, 2024
  1. Download this ISO image: https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/12.0/FreeBSD-12.0-RELEASE-amd64-disc1.iso
  2. Create a VirtualBox VM with it.
  3. While installing it in VM, choose to install the ports collection
  4. Boot this VM up
  5. Download this shar: https://people.freebsd.org/~yuri/py-PySPH.shar
  6. Unpack it while in /usr/ports
  7. Go into the port: /usr/ports/science/py-PySPH
  8. Type 'make'

It will begin to build the port, and fail with the error above.

from pysph.

yurivict avatar yurivict commented on May 19, 2024

You can also execute 'pkg install python36' to install it from binary, and prevent its rebuild.

from pysph.

yurivict avatar yurivict commented on May 19, 2024

Thanks for fixing the issues. We mostly use clang on FreeBSD.
I will try to create a port again, once you are done.

Yuri

from pysph.

prabhuramachandran avatar prabhuramachandran commented on May 19, 2024

Hi @yurivict -- I've fixed the issues in pysph and compyle. If you use master of cyarray, compyle and pysph it should work on freebsd with clang. It should also work fine with openmp. Please let us know if you run into any other issues.

from pysph.

Related Issues (20)

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.