Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPATH check should limit how much it prints to stdout #4572

Open
Micket opened this issue Jul 3, 2024 · 0 comments
Open

RPATH check should limit how much it prints to stdout #4572

Micket opened this issue Jul 3, 2024 · 0 comments
Labels
change request EasyBuild-5.0-blocker Blocker for EasyBuild 5.0 EasyBuild-5.0 EasyBuild 5.0
Milestone

Comments

@Micket
Copy link
Contributor

Micket commented Jul 3, 2024

I was testing a eb ParaView-5.12.0-foss-2023a.eb --module-only --rebuild with 5.0.x and forgot that it now does rpath by default (I don't think trace affects this?), so, it printed 68k lines of output to stdout; about 12MB of output to stdout.

== Temporary log file in case of crash /dev/shm/eb-v6bewr7c/easybuild-t9k5kewo.log
== processing EasyBuild easyconfig /apps/easybuild-easyconfigs/easybuild/easyconfigs/p/ParaView/ParaView-5.12.0-foss-2023b.eb
== building and installing ParaView/5.12.0-foss-2023b...
  >> installation prefix: /apps/Test2/software/ParaView/5.12.0-foss-2023b
== fetching files [skipped]
== creating build dir, resetting environment...
  >> build dir: /dev/shm/ParaView/5.12.0/foss-2023b
== ... (took < 1 sec)
== unpacking [skipped]
== patching [skipped]
== preparing...
  >> loading toolchain module: foss/2023b
  >> loading modules for build dependencies:
  >>  * CMake/3.27.6-GCCcore-13.2.0
  >> loading modules for (runtime) dependencies:
  >>  * Python/3.11.5-GCCcore-13.2.0
  >>  * SciPy-bundle/2023.11-gfbf-2023b
  >>  * Boost/1.83.0-GCC-13.2.0
  >>  * XZ/5.4.4-GCCcore-13.2.0
  >>  * HDF5/1.14.3-gompi-2023b
  >>  * netCDF/4.9.2-gompi-2023b
  >>  * libdrm/2.4.117-GCCcore-13.2.0
  >>  * Mesa/23.1.9-GCCcore-13.2.0
  >>  * Qt6/6.6.3-GCCcore-13.2.0
  >>  * zlib/1.2.13-GCCcore-13.2.0
  >>  * FFmpeg/6.0-GCCcore-13.2.0
  >>  * Szip/2.1.1-GCCcore-13.2.0
  >> defining build environment for foss/2023b toolchain
== ... (took 13 secs)
== configuring [skipped]
== building [skipped]
== testing [skipped]
== installing [skipped]
== taking care of extensions [skipped]
== restore after iterating...
== ... (took < 1 sec)
== postprocessing [skipped]
== sanity checking...
  >> file 'bin/paraview' found: OK
  >> file 'bin/pvserver' found: OK
  >> file 'bin/pvpython' found: OK
  >> (non-empty) directory 'include/paraview-5.12' found: OK
  >> (non-empty) directory 'lib/python3.11/site-packages' found: OK
  >> loading modules: ParaView/5.12.0-foss-2023b...
  >> running command 'python -c "import paraview"' ...
  >> result for command 'python -c "import paraview"': OK
== ... (took 2 mins 27 secs)
== FAILED: Installation ended unsuccessfully: Sanity check failed: No '(RPATH)' found in 'readelf -d' output for /apps/Test2/software/ParaView/5.12.0-foss-2023b/bin/vtkWrapClientServer-pv5.12:        linux-vdso.so.1 (0x00007fff481a4000)
        libc.so.6 => /lib64/libc.so.6 (0x00007ff4911f7000)
        libvtkWrappingTools-pv5.12.so.1 => /apps/Test2/software/ParaView/5.12.0-foss-2023b/bin/../lib64/libvtkWrappingTools-pv5.12.so.1 (0x00007ff49178a000)
        libmpi.so.40 => /apps/Test2/software/OpenMPI/4.1.6-GCC-13.2.0/lib/libmpi.so.40 (0x00007ff491662000)
        /lib64/ld-linux-x86-64.so.2 (0x00007ff4915bc000)
        libopen-rte.so.40 => /apps/Test2/software/OpenMPI/4.1.6-GCC-13.2.0/lib/libopen-rte.so.40 (0x00007ff49113f000)
        libopen-pal.so.40 => /apps/Test2/software/OpenMPI/4.1.6-GCC-13.2.0/lib/libopen-pal.so.40 (0x00007ff491090000)
        librt.so.1 => /lib64/librt.so.1 (0x00007ff490e88000)
        libutil.so.1 => /lib64/libutil.so.1 (0x00007ff490c84000)
        libhwloc.so.15 => /apps/Test2/software/hwloc/2.9.2-GCCcore-13.2.0/lib/libhwloc.so.15 (0x00007ff491601000)
        libpciaccess.so.0 => /apps/Test2/software/libpciaccess/0.17-GCCcore-13.2.0/lib/libpciaccess.so.0 (0x00007ff4915f5000)
        libxml2.so.2 => /apps/Test2/software/libxml2/2.11.5-GCCcore-13.2.0/lib/libxml2.so.2 (0x00007ff490b25000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007ff490921000)
        libz.so.1 => /lib64/libz.so.1 (0x00007ff490709000)
        liblzma.so.5 => /apps/Test2/software/XZ/5.4.4-GCCcore-13.2.0/lib/liblzma.so.5 (0x00007ff4906db000)
        libevent_core-2.1.so.7 => /apps/Test2/software/libevent/2.1.12-GCCcore-13.2.0/lib/libevent_core-2.1.so.7 (0x00007ff4906a4000)
        libevent_pthreads-2.1.so.7 => /apps/Test2/software/libevent/2.1.12-GCCcore-13.2.0/lib/libevent_pthreads-2.1.so.7 (0x00007ff4915ee000)
        libm.so.6 => /lib64/libm.so.6 (0x00007ff490322000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ff490102000)

[snip: 68k lines of output followed here...]

Ouch. I think rpath check should limit itself to some small number of lines in stdout, because it gets silly with larger packages like this.

@Micket Micket added this to the 5.0 milestone Jul 3, 2024
@Micket Micket added the EasyBuild-5.0 EasyBuild 5.0 label Jul 3, 2024
@boegel boegel added the EasyBuild-5.0-blocker Blocker for EasyBuild 5.0 label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change request EasyBuild-5.0-blocker Blocker for EasyBuild 5.0 EasyBuild-5.0 EasyBuild 5.0
Projects
Status: Changed default
Development

No branches or pull requests

2 participants