star-bnl / star-sw

Core software for STAR experiment
26 stars 62 forks source link

SPACK problem for root4star Root6.24 #345

Closed perevbnlgov closed 2 years ago

perevbnlgov commented 2 years ago

When I run root4star I got: root4star: /lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /cvmfs/star.sdcc.bnl.gov/star-spack/spack/opt/spack/linux-rhel7-x86_64/gcc-4.8.5/libpng-1.6.37-p24imztwf53zt4m7ylxvboig4wllay3t/lib/libpng16.so.16)

/lib64/libz.so.1 exists but version is different. libz iz needed for libpng16.so Both these libraries are not used in root4star.

This problem is similar to Table in spack(Jason), why this table was removed from the Spack.

Root6.16: root.exe, root4star is working Root6.24: root.exe is working but root4star is not. But only Root6.24: root4star was recompiled after Spack was modified. Probably if Root.6.16 root.exe and root4star will be recompiled, then it will be failed as well Victor

plexoos commented 2 years ago

I just compiled root4star against both root6.16 and root6.24. The executables work for me

$ which root4star
.sl73_x8664_gcc485/bin/root4star
$ root4star -b
   ------------------------------------------------------------------
  | Welcome to ROOT 6.24/00                        https://root.cern |
  | (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Apr 14 2021, 14:33:50                 |
  | From tags/v6-24-00@v6-24-00                                      |
  | With g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)                 |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'       |
   ------------------------------------------------------------------

This problem is similar to Table in spack(Jason), why this table was removed from the Spack.

How is it similar? Does cons complain about zlib version when you link to libTable? Table was not removed from Spack but Jason added the code in StRoot/Table

plexoos commented 2 years ago

Your runtime environment may be set up incorrectly. When you load packages into your environment via spack or environment modules your LD_LIBRARY_PATH is updated accordingly. So, this:

root4star: /lib64/libz.so.1: version `ZLIB_1.2.9' not found

may indicate that dynamic loader is not looking in the correct location for the library

perevbnlgov commented 2 years ago

I found the problem and made a workaround

When I run root4star 6.24 it requests library libpng16.so This lirary exists in Spack as libpng16.so libpng16 in its turn, requests libz.so version 1.2.9. Such lirary exists in Spack, version 1.2.11 but not used. Linker is trying to use standard /lib64/libz.so with more old version 1.2.7 with no success I found in Spack library with version 1.2.11 /cvmfs/star.sdcc.bnl.gov/star-spack/spack/opt/spack/linux-rhel7-x86_64/gcc-4.8.5/zlib-1.2.11-vhzh5cfaki5lx5sjuth5iuojq5azdkbd/lib/ and added it to LD_LIBRARY_PATH After it root4star loaded. It is a hack, it must be some more elegant way Victor

perevbnlgov commented 2 years ago

Sorry guys, it was my fault. No need to change Spack installation. Victor

starsdong commented 2 years ago

Victor, I see there are quite some discussions related to the ROOT6 development. It seems some (at least this one) are settled. Do you have anything that you want to bring up at tomorrow's S&C man meeting?

perevbnlgov commented 2 years ago

Hi Xin, not tomorrow but next week for sure. Victor

On 2022-05-10 13:38, Xin Dong wrote:

Victor, I see there are quite some discussions related to the ROOT6 development. It seems some (at least this one) are settled. Do you have anything that you want to bring up at tomorrow's S&C man meeting?

-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you authored the thread.Message ID: @.***>

Links:

[1] https://github.com/star-bnl/star-sw/issues/345#issuecomment-1122685301 [2] https://github.com/notifications/unsubscribe-auth/ANQUL7IXGJQYWCI4AGW7WZLVJKNJVANCNFSM5VIVSP3Q

plexoos commented 2 years ago

Sounds like the original issue has been resolved

starsdong commented 2 years ago

Hi Victor,

Just to confirm with you that we will schedule an agenda item on the ROOT6 discussion this Wed. Will you be able to lead the discussion?

Thanks and Best Regards

/xin

On Tue, May 10, 2022 at 1:57 PM perevbnlgov @.***> wrote:

Hi Xin, not tomorrow but next week for sure. Victor

On 2022-05-10 13:38, Xin Dong wrote:

Victor, I see there are quite some discussions related to the ROOT6 development. It seems some (at least this one) are settled. Do you have anything that you want to bring up at tomorrow's S&C man meeting?

-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you authored the thread.Message ID: @.***>

Links:

[1] https://github.com/star-bnl/star-sw/issues/345#issuecomment-1122685301 [2]

https://github.com/notifications/unsubscribe-auth/ANQUL7IXGJQYWCI4AGW7WZLVJKNJVANCNFSM5VIVSP3Q

— Reply to this email directly, view it on GitHub https://github.com/star-bnl/star-sw/issues/345#issuecomment-1122852959, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACZ6XOBT4WJBJIHZBSUKHE3VJLEULANCNFSM5VIVSP3Q . You are receiving this because you commented.Message ID: @.***>

--

Xin Dong Nuclear Science Division, Lawrence Berkeley National Laboratory MS70R0319, One Cyclotron Road Berkeley, CA 94720, USA Tel: +1-510-486-4121 Email: @.***

perevbnlgov commented 2 years ago

Hi /xin,

discussion this Wed. Will you be able to lead the discussion? yes, I will. Victor

On 2022-05-16 12:22, Xin Dong wrote:

Hi Victor,

Just to confirm with you that we will schedule an agenda item on the ROOT6 discussion this Wed. Will you be able to lead the discussion?

Thanks and Best Regards

/xin

On Tue, May 10, 2022 at 1:57 PM perevbnlgov @.***> wrote:

Hi Xin, not tomorrow but next week for sure. Victor

On 2022-05-10 13:38, Xin Dong wrote:

Victor, I see there are quite some discussions related to the ROOT6 development. It seems some (at least this one) are settled. Do you have anything that you want to bring up at tomorrow's S&C man meeting?

-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you authored the thread.Message ID: @.***>

Links:

[1]

https://github.com/star-bnl/star-sw/issues/345#issuecomment-1122685301 [2]

https://github.com/notifications/unsubscribe-auth/ANQUL7IXGJQYWCI4AGW7WZLVJKNJVANCNFSM5VIVSP3Q

— Reply to this email directly, view it on GitHub

https://github.com/star-bnl/star-sw/issues/345#issuecomment-1122852959, or unsubscribe

https://github.com/notifications/unsubscribe-auth/ACZ6XOBT4WJBJIHZBSUKHE3VJLEULANCNFSM5VIVSP3Q . You are receiving this because you commented.Message ID: @.***>

--

Xin Dong Nuclear Science Division, Lawrence Berkeley National Laboratory MS70R0319, One Cyclotron Road Berkeley, CA 94720, USA Tel: +1-510-486-4121 Email: @.***

-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you authored the thread.Message ID: @.***>

Links:

[1] https://github.com/star-bnl/star-sw/issues/345#issuecomment-1127875801 [2] https://github.com/notifications/unsubscribe-auth/ANQUL7IHBYIF4VUOBEHCHX3VKJY3PANCNFSM5VIVSP3Q