jgcarroll / root-snap Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi I love the concept of downloading root with snap but I'm having an issue with having root display any graphical output; it's like if it was automatically running in bash mode every time I open it, it doesn't even show the graphical "splash image" when I run it from the terminal. Could this be related to the version of Ubuntu that I'm using? I'm currently on Ubuntu 23.10 by the way.
If I understood snap build procedure correctly, root-snap is being built at ubuntu-latest
image.
ubuntu-latest
is at this moment quite old - github actions docu says, it's ubuntu 20.04 containing openssl1xx.
Since ubuntu 22.04, there is openssl3, and this causes missing libssl dependencies - eg:
jose@jose-t14s:/snap/root-framework/880$ pwd
/snap/root-framework/880
jose@jose-t14s:/snap/root-framework/880$ ldd ./usr/local/lib/libNet.so
linux-vdso.so.1 (0x00007ffc51dc1000)
libRIO.so => /snap/root-framework/880/./usr/local/lib/libRIO.so (0x00007f76fc29e000)
libssl.so.1.1 => not found
libcrypto.so.1.1 => not found
libCore.so => /snap/root-framework/880/./usr/local/lib/libCore.so (0x00007f76fbbf9000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f76fbbf4000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f76fb800000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f76fbbd2000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f76fb400000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f76fbbcd000)
libThread.so => /snap/root-framework/880/./usr/local/lib/libThread.so (0x00007f76fbb3a000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f76fba51000)
/lib64/ld-linux-x86-64.so.2 (0x00007f76fc929000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f76fb78a000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f76fb75f000)
libxxhash.so.0 => /lib/x86_64-linux-gnu/libxxhash.so.0 (0x00007f76fba3a000)
liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f76fb73f000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f76fb723000)
libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f76fb674000)
jose@jose-t14s:/snap/root-framework/880$
This causes build failures for certain user-written utilities at our research center.
Workaround was to use binary tarball distributed by CERN, but it would be nice to have working snap with recent Ubuntu too.
Note: For convenience, the following report is also expressed in a failing GitHub actions workflow.
Trying the following on Ubuntu 20.04:
sudo apt-get -y install build-essential
sudo snap install root-framework
make
fails with this minimal Makefile
:
default:
g++ -ggdb -Wl,--no-as-needed `root-config --libs --ldflags` `root-config --cflags` analysis.C -o analysis
and this minimal program:
#define analysis_cxx
#include <TFile.h>
int main() {
TFile foo("foo.root", "RECREATE");
return 0;
}
with the following error:
2021-08-09T17:55:18.0191215Z g++ -ggdb -Wl,--no-as-needed `root-config --libs --ldflags` `root-config --cflags` analysis.C -o analysis
2021-08-09T17:55:18.0767497Z mkdir: cannot create directory ‘/run/user/1001’: Permission denied
2021-08-09T17:55:19.3374273Z mkdir: cannot create directory ‘/run/user/1001’: Permission denied
2021-08-09T17:55:22.6204821Z /usr/bin/ld: warning: libxxhash.so.0, needed by /snap/root-framework/252/usr/local/lib/libCore.so, not found (try using -rpath or -rpath-link)
2021-08-09T17:55:22.6208117Z /usr/bin/ld: warning: libROOTNTuple.so, needed by /snap/root-framework/252/usr/local/lib/libROOTDataFrame.so, not found (try using -rpath or -rpath-link)
2021-08-09T17:55:22.6237494Z /usr/bin/ld: /snap/root-framework/252/usr/local/lib/libROOTDataFrame.so: undefined reference to `ROOT::Experimental::Detail::RColumn::MapPage(unsigned long)'
2021-08-09T17:55:22.6254088Z /usr/bin/ld: /snap/root-framework/252/usr/local/lib/libROOTDataFrame.so: undefined reference to `ROOT::Experimental::RNTupleDescriptor::FindFieldId(std::basic_string_view<char, std::char_traits<char> >) const'
2021-08-09T17:55:22.6263163Z /usr/bin/ld: /snap/root-framework/252/usr/local/lib/libROOTDataFrame.so: undefined reference to `ROOT::Experimental::Detail::RFieldFuse::ConnectRecursively(unsigned long, ROOT::Experimental::Detail::RPageSource&, ROOT::Experimental::Detail::RFieldBase&)'
2021-08-09T17:55:22.6265838Z /usr/bin/ld: /snap/root-framework/252/usr/local/lib/libROOTDataFrame.so: undefined reference to `ROOT::Experimental::RNTupleDescriptor::GetFieldZeroId() const'
2021-08-09T17:55:22.6268044Z /usr/bin/ld: /snap/root-framework/252/usr/local/lib/libROOTDataFrame.so: undefined reference to `ROOT::Experimental::Detail::RFieldBase::GenerateValue()'
2021-08-09T17:55:22.6270403Z /usr/bin/ld: /snap/root-framework/252/usr/local/lib/libROOTDataFrame.so: undefined reference to `ROOT::Experimental::RNTupleDescriptor::GetQualifiedFieldName[abi:cxx11](unsigned long) const'
2021-08-09T17:55:22.6272302Z /usr/bin/ld: /snap/root-framework/252/usr/local/lib/libCore.so: undefined reference to `XXH64_canonicalFromHash'
2021-08-09T17:55:22.6273645Z /usr/bin/ld: /snap/root-framework/252/usr/local/lib/libCore.so: undefined reference to `XXH64'
2021-08-09T17:55:22.6276070Z /usr/bin/ld: /snap/root-framework/252/usr/local/lib/libROOTDataFrame.so: undefined reference to `ROOT::Experimental::Detail::RPageSource::Create(std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> >, ROOT::Experimental::RNTupleReadOptions const&)'
2021-08-09T17:55:22.6280151Z /usr/bin/ld: /snap/root-framework/252/usr/local/lib/libROOTDataFrame.so: undefined reference to `ROOT::Experimental::Detail::RFieldBase::Create(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
2021-08-09T17:55:22.6282411Z /usr/bin/ld: /snap/root-framework/252/usr/local/lib/libCore.so: undefined reference to `XXH64_hashFromCanonical'
2021-08-09T17:55:22.6284346Z /usr/bin/ld: /snap/root-framework/252/usr/local/lib/libROOTDataFrame.so: undefined reference to `ROOT::Experimental::Detail::RPageSource::GetNEntries()'
2021-08-09T17:55:22.6285471Z collect2: error: ld returned 1 exit status
2021-08-09T17:55:22.6286156Z make: *** [Makefile:2: default] Error 1
2021-08-09T17:55:22.6291583Z ##[error]Process completed with exit code 2.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.