Code Monkey home page Code Monkey logo

Comments (7)

michaelkirk avatar michaelkirk commented on August 20, 2024

I've reproduced this. Taking a look now.

from proj.

michaelkirk avatar michaelkirk commented on August 20, 2024

I haven't solved this yet, but some notes:

On arm64 mac:

  • Reproduced this failure using homebrew proj (7.2.1)
  • Reproduced this failure using bundled proj (7.1.0)
    • This first required resolving a "'libtiff' couldn't be found" compiler error. I think this was due to homebrew switching it's root from /usr/local -> /opt/homebrew.
  • Successfully built and passed test suite using homebrew proj 7.2.1 on rosetta (x86_64 emulator) and x86_64 toolchain

from proj.

frewsxcv avatar frewsxcv commented on August 20, 2024

I made a minimal reproduction of the issue here: https://github.com/georust/proj/blob/frewsxcv-min/src/main.rs in this draft PR #63

I have absolutely no idea what's going on 😔

from proj.

urschrei avatar urschrei commented on August 20, 2024

I think we should cast the net wider and see whether the PROJ maintainers (or anyone else in the community) have begun to test on M1, and if they have, whether they can repro this using analogous c or cpp (which I cannot write at all) wrapping the API calls. I just don't see what's wrong on the Rust side.

from proj.

michaelkirk avatar michaelkirk commented on August 20, 2024

I don't currently have access to my M1 machine, but IIRC I was able to build and pass the proj test suite (the c++ one).

I think it was as simple as running ctest from the root of the libproj directory, but my memory is fickle.

My best guess was that it had to do with how we were managing pointers, similar to what @urschrei fixed in #56 but I don't yet have any real evidence or solution.

from proj.

frewsxcv avatar frewsxcv commented on August 20, 2024

This is probably the underlying bug: rust-lang/rust-bindgen#1973

from proj.

frewsxcv avatar frewsxcv commented on August 20, 2024

This is probably the underlying bug: rust-lang/rust-bindgen#1973

Confirmed this is the bug. I got tests passing on my Macbook Air M1 with these changes: #65

from proj.

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.