Git Product home page Git Product logo

Comments (4)

Canop avatar Canop commented on May 24, 2024

What exact command is used for building broot ?

from broot.

Porkepix avatar Porkepix commented on May 24, 2024

Just cargo build --release, see https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=broot-git#n27
But some build options and environments comes from https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/blob/main/makepkg.conf?ref_type=heads which is where lto comes from, but I don't know enough of its internals to explain how does it interact.
I also wanted to do a manual cargo build while requiring it to do a lto build, but couldn't find the right options or documentations to do so.

from broot.

Canop avatar Canop commented on May 24, 2024

Here's why I don't understand:

I already build for arch with cargo build --release, you find the result in https://github.com/Canop/broot/releases/tag/v1.36.0
And broot in release mode is always built with the lto option, because of this line: https://github.com/Canop/broot/blob/main/Cargo.toml#L91

from broot.

Porkepix avatar Porkepix commented on May 24, 2024

All I can say is that, on the advice of people on IRC, broot as for the two other rust packages I have with similar issues, is back to building fine if I remove/disable using an exclamation mark lto from this line: https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/blob/main/makepkg.conf?ref_type=heads#L100
This is also the reason distro builds stable releases by adding that option, as visible here: https://gitlab.archlinux.org/archlinux/packaging/packages/broot/-/blob/main/PKGBUILD?ref_type=heads#L15

If you try to build stable's PKGBUILD but remove this line, you should run into the same issue as me.

When I was looking for ways to reproduce this with only cargo, outside of makepkg's environment, I wasn't able to find good ways to do it, but seemed to find things about something like two "levels" of lto, maybemakepkg is trying to do a more "pushed" one which trigger that issue? (I've honestly no idea, here).

from broot.

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.