Giter Club home page Giter Club logo

Comments (10)

molind avatar molind commented on July 22, 2024 3

@dbaston It works! I have sent pull request.

from geos.

jsonn avatar jsonn commented on July 22, 2024 1

Please check the list of options from https://lld.llvm.org/missingkeyfunction.html#missing-key-function

from geos.

molind avatar molind commented on July 22, 2024

Forgot to mention that i'm using libgeos 3.8.0 from brew. On macOS Catalyna 10.15.3, in Xcode 11.3.1

from geos.

dbaston avatar dbaston commented on July 22, 2024

This sounds similar to a unit test that also fails on OS X: https://github.com/libgeos/geos/blob/master/tests/unit/geom/CoordinateArraySequenceFactoryTest.cpp#L56

That failure has been reported at least three times and never resolved:
https://trac.osgeo.org/geos/ticket/299
https://trac.osgeo.org/geos/ticket/328
https://trac.osgeo.org/geos/ticket/894

from geos.

molind avatar molind commented on July 22, 2024

Black magic.

from geos.

molind avatar molind commented on July 22, 2024

Built debug version of geos 3.8.0 from sources. Tried it. It works without issues. Very interesting.

And now most of geos_c also won't work correctly because it relies on dynamic_cast<LineString *> a lot.

from geos.

molind avatar molind commented on July 22, 2024

Now I've tried static version from brew. No issues.

from geos.

molind avatar molind commented on July 22, 2024

next step. nm -gC libgeos.dylib shows bunch of vtables

00000000000ac920 S vtable for geos::geom::LinearRing
00000000000acf88 S vtable for geos::geom::MultiPoint
00000000000ab498 S vtable for geos::geom::LineSegment
00000000000ad178 S vtable for geos::geom::MultiPolygon
00000000000ac8a8 S vtable for geos::geom::GeometryFactory
00000000000acd98 S vtable for geos::geom::MultiLineString
00000000000abb50 S vtable for geos::geom::CoordinateSequence
00000000000ac670 S vtable for geos::geom::GeometryCollection
00000000000abe00 S vtable for geos::geom::CoordinateArraySequence
00000000000ac860 S vtable for geos::geom::GeometryComponentFilter
00000000000ab570 S vtable for geos::geom::CoordinateArraySequenceFactory
00000000000adb38 S vtable for geos::geom::prep::PreparedPoint
00000000000adbc8 S vtable for geos::geom::prep::PreparedPolygon
00000000000adaa8 S vtable for geos::geom::prep::PreparedLineString
00000000000ada08 S vtable for geos::geom::prep::BasicPreparedGeometry
00000000000add30 S vtable for geos::geom::prep::PreparedPolygonCovers
00000000000adcd8 S vtable for geos::geom::prep::PreparedPolygonContains
00000000000ad978 S vtable for geos::geom::util::PointExtracter
00000000000ad9c0 S vtable for geos::geom::util::PolygonExtracter
00000000000ad7d8 S vtable for geos::geom::util::CoordinateOperation
00000000000ad8b0 S vtable for geos::geom::util::GeometryTransformer
00000000000ad928 S vtable for geos::geom::util::LinearComponentExtracter
00000000000ad788 S vtable for geos::geom::util::ComponentCoordinateExtracter
00000000000ad830 S vtable for geos::geom::util::Densifier::DensifyTransformer
00000000000ad368 S vtable for geos::geom::Point
00000000000ad598 S vtable for geos::geom::Polygon
00000000000ac2e0 S vtable for geos::geom::Geometry::GeometryChangedFilter
00000000000ac318 S vtable for geos::geom::Geometry

no vtable for LineString as you may notice.

from geos.

molind avatar molind commented on July 22, 2024

Compiled same version on Ubuntu 18.04 and vtable persists. Looks like a compile issue.

macOS:

% c++ --version
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin19.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Ubuntu

$ c++ --version
clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

from geos.

dbaston avatar dbaston commented on July 22, 2024

Thank you for the link, @jsonn. @molind , I wonder what happens if you move the definition of LineString's destructor from the header to the source file?

from geos.

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.