Packaging fails with "new rpath '$ORIGIN/../../../../../../../../lib' too large; maximum length 32"
Building v5.7.0-RC1 on Linux, packaging (make install
) fails with error "new rpath '$ORIGIN/../../../../../../../../lib' too large; maximum length 32".
This error is fixed by reverting commit fc45a386.
Full error message:
Copying /home/paraview/build/install/lib/python2.7/site-packages/scipy/sparse/linalg/eigen/arpack/_arpack.so ==> lib/python2.7/site-packages/scipy/sparse/linalg/eigen/arpack
Updating the rpath in /package/lib/python2.7/site-packages/scipy/sparse/linalg/eigen/arpack/_arpack.so: /home/paraview/build/install/lib -> $ORIGIN/../../../../../../../../lib
CMake Error at /home/paraview/paraview-superbuild/superbuild/cmake/scripts/fixup_python.unix.cmake:26 (message):
Failed to install Python module _arpack:
/sbin/ldconfig: Can't stat /libx32: No such file or directory
/sbin/ldconfig: Path `/usr/lib' given more than once
/sbin/ldconfig: Path `/usr/lib64' given more than once
/sbin/ldconfig: Can't stat /usr/libx32: No such file or directory
new rpath '$ORIGIN/../../../../../../../../lib' too large; maximum length
32
Traceback (most recent call last):
File "/home/paraview/paraview-superbuild/superbuild/cmake/scripts/fixup_bundle.unix.py", line 713, in <module>
main(sys.argv[1:])
File "/home/paraview/paraview-superbuild/superbuild/cmake/scripts/fixup_bundle.unix.py", line 705, in main
_install_binary(main_exe, is_excluded, bundle_dest, opts.libdir, installed, manifest, opts.source, dry_run=opts.dry_run)
File "/home/paraview/paraview-superbuild/superbuild/cmake/scripts/fixup_bundle.unix.py", line 626, in _install_binary
remove_prefix_rpaths(binary_destination, binary.bundle_location, sources)
File "/home/paraview/paraview-superbuild/superbuild/cmake/scripts/fixup_bundle.unix.py", line 527, in remove_prefix_rpaths
chrpath()
File "/home/paraview/paraview-superbuild/superbuild/cmake/scripts/fixup_bundle.unix.py", line 39, in __call__
raise RuntimeError('failed to execute pipeline:\n%s' % stderr)
RuntimeError: failed to execute pipeline:
None
Call Stack (most recent call first):
/home/paraview/paraview-superbuild/superbuild/cmake/scripts/fixup_python.unix.cmake:33 (superbuild_unix_install_python_module)
/home/paraview/paraview-superbuild/superbuild/cmake/scripts/fixup_python.unix.cmake:40 (superbuild_unix_install_python_module)
/home/paraview/paraview-superbuild/superbuild/cmake/scripts/fixup_python.unix.cmake:40 (superbuild_unix_install_python_module)
/home/paraview/paraview-superbuild/superbuild/cmake/scripts/fixup_python.unix.cmake:40 (superbuild_unix_install_python_module)
/home/paraview/paraview-superbuild/superbuild/cmake/scripts/fixup_python.unix.cmake:40 (superbuild_unix_install_python_module)
cmake_install.cmake:980 (superbuild_unix_install_python_module)