Skip to content

auditwheel process fails for wheels build in branch preparing the next release

In preparing the new release I'm running into a build failure with the wheels:

$ auditwheel repair wheel/*.whl
INFO:auditwheel.main_repair:Repairing lalsuite-6.83.dev20210802-cp36-cp36m-linux_x86_64.whl
patchelf: unsupported overlap of SHT_NOTE and PT_NOTE
Traceback (most recent call last):
  File "/usr/local/bin/auditwheel", line 8, in <module>
    sys.exit(main())
  File "/opt/_internal/tools/lib/python3.9/site-packages/auditwheel/main.py", line 51, in main
    rval = args.func(args, p)
  File "/opt/_internal/tools/lib/python3.9/site-packages/auditwheel/main_repair.py", line 123, in execute
    out_wheel = repair_wheel(args.WHEEL_FILE,
  File "/opt/_internal/tools/lib/python3.9/site-packages/auditwheel/repair.py", line 73, in repair_wheel
    patcher.replace_needed(fn, soname, new_soname)
  File "/opt/_internal/tools/lib/python3.9/site-packages/auditwheel/patcher.py", line 56, in replace_needed
    check_call(['patchelf', '--replace-needed', so_name, new_so_name,
  File "/opt/python/cp39-cp39/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['patchelf', '--replace-needed', 'liblalinference.so.22', 'liblalinference-058ee320.so.22.0.0', 'lalapps/bin/lalapps_TwoSpectTemplateBank']' returned non-zero exit status 1.

This happens in both my personal namespace and lscsoft/lalsuite.