Giter Club home page Giter Club logo

Comments (9)

akstrfn avatar akstrfn commented on May 27, 2024 2

Hi,

I'm the current maintainer of AUR package. This is a bug in tilemaker v3.0.0 because only difference to "source build" is that makepkg reads CFLAGS and CXXFLAGS from makepkg.conf. AUR is after all just source builds packaged most of the time. I've tested makepkg build without these flags by adding !buildflags to PKGBUILD options and everything worked.

These are default flags used by makepkg which reproduce the assertion error

CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
        -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \
        -fstack-clash-protection -fcf-protection \
        -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"

Assertion gives suggestion that there is out of bounds access so checking _GLIBCXX_ASSERTIONS was a first suspect.

I've tested the command used to reproduce failure for builds with and without _GLIBCXX_ASSERTIONS

  • works: cmake -S. -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"

  • fails: cmake -S. -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS"

Note that master branch doesnt seem to be affected with this problem only v3.0.0

from tilemaker.

systemed avatar systemed commented on May 27, 2024

What OS are you running on?

from tilemaker.

systemed avatar systemed commented on May 27, 2024

(And how much RAM?)

from tilemaker.

Zelzahn avatar Zelzahn commented on May 27, 2024

My OS is Arch LInux x86_64, and I have 16 GB of RAM.

Edit: I have also installed the package through the AUR. So I will build from source to make sure that the way it's built isn't the cause of this crash.

from tilemaker.

systemed avatar systemed commented on May 27, 2024

On my Ubuntu box it's running fine with the Belgium extract from Geofabrik: max RAM used c. 6GB, complete in 1m41. So yes, I'd try building from source.

from tilemaker.

Zelzahn avatar Zelzahn commented on May 27, 2024

Alright, when building from source it works (v3 and master). So this can be closed, and I'll have a look at the AUR package.

from tilemaker.

systemed avatar systemed commented on May 27, 2024

I'm the current maintainer of AUR package.

For which thank you. :)

Note that master branch doesnt seem to be affected with this problem only v3.0.0

So if I tag a 3.0.1 release then this will be resolved, I guess?

from tilemaker.

akstrfn avatar akstrfn commented on May 27, 2024

For which thank you. :)

Thank you for the program, maintaining packages is much less work than building the program :)

So if I tag a 3.0.1 release then this will be resolved, I guess?

I think so. Just tried testing it again and the example pbf file is not available anymore so hopefully I did previous tests correctly...

from tilemaker.

lfrancke avatar lfrancke commented on May 27, 2024

I am running into the same crash.
So if you're up for a 3.0.1 release that'd be fabulous!

from tilemaker.

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.