ROOT Version: 6.22.0 with patches Platform: AWS Linux 2 Compiler: g++ ? (I used -DCMAKE_CXX_COMPILER=/usr/bin/g++ flag, but I’m not sure what’s the compiler nor how to check which is used)
Context: I have created a custom ROOT compilation for AWS Lambda and was able to successfully run it on Python3.8 Lambda a month ago after compiling ROOT on dockerized amazonlinux:2.
However, since then some underlying change inside linux broke cling. Here’s a stacktrace (very long):
This stacktrace is coming from executing this script:
As mentioned, previously this worked fine both on AWS Lambda and on docker container based on amazonlinux:2. The issue happened only on AWS Lambda without any input from my side: I changed nothing in my deployment package, so it must be something with underlying system difference. I’m kind of lost how to solve this stacktrace due to my mediocre C++ experience. Any clues how I could debug it?
/mnt/cern_root/root is where i run cmake with this flag: -DCMAKE_INSTALL_PREFIX=/mnt/cern_root/root_install
/mnt/cern_root/root_install is where it should install (?) according to this flag^
I tested on docker with only /mnt/cern_root/root_install existing out of these and it worked.
In Lambda environment it failed with error as you can see above.
My thoughts:
For some reason, the installed ROOT still targets original /root_src dir which i removed, as I thought root_install (install location) would sufffice.
I might need to copy some more things from source code dir/compilation dir to install dir, but I have no idea why they were left behind.
For more info how I compiled a docker script:
@vvassilev Can you tell me how can I fix that exception? All help is greatly appreciated.
Edit: In original (docker) location it works correctly even after removing both /root_src and /mnt/cern_root/root, but for some reason on Lambda it fails as you can see.
That was it, I needed to a) provide libcxx with my installation and b) target CPATH to include it from nonstandard location (at my /mnt/… dir) . Thank you very much for help @vvassilev