Comments (11)
Ah, rustc fixed something on their side. Closing.
from geo.
Thank you for providing the reproduction details, but I'm still having trouble reproducing this.
Note that I am running on macos.
I'm not very familiar with cross, but I installed it and everything seemed to just work.
$ rustc --version
rustc 1.69.0 (84c898d65 2023-04-16)
$ cross build --release
...
Finished release [optimized] target(s) in 2.30s
$ rustc --version
rustc 1.71.0-nightly (39c6804b9 2023-04-19)
$ cross +nightly build --release
...
Finished release [optimized] target(s) in 1.97s
Do things work for you on rust stable?
One thing I'll note is that error is originating inside of some deprecated code that I think we could probably delete at this point. Do you want to try building from this branch which removes the deprecated code?
https://github.com/georust/geo/tree/mkirk/remove-deprecated-map-coords
from geo.
Another user is hitting this issue @AlterionX - can you clarify, were you able to get this working on an updated nightly?
(And which version was it that worked for you?)
from geo.
Fork with problematic compilation portion panic-ing instead: https://github.com/AlterionX/geo/tree/monkeypatch
from geo.
I'm running on WSL Ubuntu, architecture is x86_64. cross
is accessing Docker on windows.
If you're on Mac, perhaps it's not causing a problem due to the mac's architecture being ARM?
I would expect that changing the branch to the version listed to resolve the issues.
from geo.
Yep, I was able to get it working on nightly @michaelkirk . Not sure which version, but I assume 2023-04-20
I ended up resetting my PC so might take a bit to check the most recent nightly though.
from geo.
This might be a bug on our side, according to rust-lang/rust#110475.
from geo.
Started hitting this as well installing a crate that depends on geo
. Here are some versions and logs in case it helps anyone.
$ rustup -V
rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.71.0-nightly (18bfe5d8a 2023-05-14)`
$ cargo install geoq
# ...truncated
error[E0275]: overflow evaluating the requirement `[closure@/Users/horace/.cargo/registry/src/index.crates.io-6f17d22bba15001f/geo-0.23.1/src/algorithm/map_coords.rs:855:69: 855:72]: Fn<(geo_types::Coord<T>,)>`
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`geo`)
= note: required for `&[closure@/Users/horace/.cargo/registry/src/index.crates.io-6f17d22bba15001f/geo-0.23.1/src/algorithm/map_coords.rs:855:69: 855:72]` to implement `Fn<(geo_types::Coord<T>,)>`
= note: 128 redundant requirements hidden
= note: required for `&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&...` to implement `Fn<(geo_types::Coord<T>,)>`
= note: the full type name has been written to '/var/folders/75/9336gq4s19s_h_cd11cfx8q80000gn/T/cargo-installxywk3g/release/deps/geo-f93e1a6d8732e9b2.long-type-369038258378914190.txt'
For more information about this error, try `rustc --explain E0275`.
error: could not compile `geo` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `geoq v0.0.25`, intermediate artifacts can be found at `/var/folders/75/9336gq4s19s_h_cd11cfx8q80000gn/T/cargo-installxywk3g`
I'll be honest I had not run into the recursion_limit
before. Does it have to be set by the crate publisher? Is it possible for me to increase the limit for my own build when I depend on the crate?
from geo.
@worace the recursion limit is a red herring. There might have been a bug in some geo
code that tried to keep some deprecated methods working. We removed the code, but there's no release yet.
Unfortunately, the easiest fix is probably pinning an older nightly (or using cargo install --locked
as suggested in the original issue).
from geo.
ok good to know. I'll try the next release of geo
whenever it comes out
from geo.
This has been published just now with https://crates.io/crates/geo/0.25.0
from geo.
Related Issues (20)
- Happy 1,000th issue geo 🎉
- Panic due to integer overflow in Line::delta logic, and thus Line::slope HOT 6
- Offer `Triangulate` algorithm trait HOT 14
- Clarify that the `triangles` method does _not_ do triangulation HOT 3
- ML-assisted contributions
- Nightly build error with `1.71.0-nightly` HOT 2
- Integrate the RINEX crate to the community HOT 8
- Incorrect convex hull for nearly collinear points HOT 4
- Implement convex hull for geometries other than Polygon HOT 1
- Traits: How to represent `Polygon EMPTY`? HOT 2
- SimplifyVwPreserve seems to be borken. HOT 9
- "cargo add geo-types -F rstar" -> failed to resolve: use of undeclared crate or module `approx` HOT 1
- Add Monotone Chain algorithm.
- Add a (Robust)LineIntersector HOT 1
- simplify_vw_preserve causing self-intersecting ring HOT 12
- Panic in the intersection function HOT 2
- Recursion overflow HOT 1
- GeodesicBearing produces NAN when y value is outside of [-90, 90] HOT 6
- Improve Documentation for HaversineIntermediate HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geo.