Coder Social home page Coder Social logo

Comments (5)

andresailer avatar andresailer commented on July 23, 2024

The difference between podioDict linked and not is probably the linker version and the existence or default for the "--as-needed" option. If there is no symbol from podioDict used in the RootIO the linker chooses not to link the library when "--as-needed" is enabled.
I tried with the ubuntu container, adding -Wl,--no-as-needed before the podioDict library and the library was linked.

from podio.

andresailer avatar andresailer commented on July 23, 2024

In both instances the linker has the "as-needed" option, so maybe in one case it can better figure out that podioDict is needed, or the compiler is doing some optimisation ...
In #91 I add no-as-needed around podioDict when it is linked into podioRootIO, which solves the problem for ubuntu.

from podio.

tmadlener avatar tmadlener commented on July 23, 2024

It is definitely strange in my opinion. Apart from the possible (small) differences in the paths to root, gcc, etc. the output of make VERBOSE=1 is exactly the same in both containers. But I also couldn't really find anything about the default values of the linker flags, especially since they are passed to it through gcc.

But as already mentioned in #91 it seems to be solved by adding --no-as-needed around podioDict

from podio.

andresailer avatar andresailer commented on July 23, 2024

So it is maybe this: gcc on ubuntu is configured to ad "as-needed" for the linker
https://askubuntu.com/questions/1077276/why-do-gccs-linker-options-as-per-dumpspec-contain-as-needed

from podio.

tmadlener avatar tmadlener commented on July 23, 2024

Yes, I think that is very likely to be what is causing our problem. I am wondering how other projects handle this, since we can't be the only ones that want to link a root dictionary into a library, right?

from podio.

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.