Browse Source

fix(whl): fix whl broken: patchelf on big (> 4G) file will

make elf section broken, as a workaround, do strip firstly,
then do patchelf.

GitOrigin-RevId: c7fb7e25a6
release-1.10
Megvii Engine Team 3 years ago
parent
commit
14813d13c0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      scripts/whl/manylinux2014/do_build_common.sh

+ 1
- 1
scripts/whl/manylinux2014/do_build_common.sh View File

@@ -51,9 +51,9 @@ function patch_elf_depend_lib_mgb_mge() {
handle_strip ${BUILD_DIR}/staging/megengine/core/_imperative_rt.so handle_strip ${BUILD_DIR}/staging/megengine/core/_imperative_rt.so


cp ${BUILD_DIR}/src/libmegengine_shared.so ${LIBS_DIR} cp ${BUILD_DIR}/src/libmegengine_shared.so ${LIBS_DIR}
handle_strip ${LIBS_DIR}/libmegengine_shared.so
patchelf --remove-rpath ${LIBS_DIR}/libmegengine_shared.so patchelf --remove-rpath ${LIBS_DIR}/libmegengine_shared.so
patchelf --force-rpath --set-rpath '$ORIGIN/.' ${LIBS_DIR}/libmegengine_shared.so patchelf --force-rpath --set-rpath '$ORIGIN/.' ${LIBS_DIR}/libmegengine_shared.so
handle_strip ${LIBS_DIR}/libmegengine_shared.so


# as some version of cudnn/trt libs have dlopen libs, so we can not use auditwheel # as some version of cudnn/trt libs have dlopen libs, so we can not use auditwheel
# TODO: PR for auditwheel to support args for dlopen libs # TODO: PR for auditwheel to support args for dlopen libs


Loading…
Cancel
Save