Comments (5)
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.
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.
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.
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.
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)
- Subset collections have broken relations when using a `Frame` for reading
- API docs for podio, including python bindings
- `podio-dump` output of overview table can be improved
- podio readers do not handle non-existant files gracefully
- Reenable podio tests in edm4hep workflows
- Required match of Python versions? HOT 1
- Crash in ROOT::Experimental::TTaskGroup::~TTaskGroup() on macOS HOT 13
- Components should have a Description and Author field
- Version preprocessor macros are not really usable
- The Frame API should also provide information on the types of the stored collections HOT 3
- CollectionIDs should not depend on the insertion order HOT 3
- ROOTFrameWriter can produce unreadable files without warning
- Unable to save a vector of data in a tree HOT 2
- Schema Evolution ToDo-List for v1.1
- Issue with clang format in the tests HOT 1
- Handle writing of datamodel definitions of dependent models properly
- Problems in the IO code HOT 2
- Generated cc files are deleted on cmake --target clear HOT 2
- Invalid files cause irrecoverable crashes in `ROOTReader::openFile(...)` HOT 2
- PODIO implicit plug-in mechanism is not robust enough
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 podio.