Skip to content

Allow custom strip #211

@koutoftimer

Description

@koutoftimer

There is a repo sqrc executing

sh c++/build-app-image.sh

produces

Calling strip on library AppDir/usr/lib/libpng16.so.16 
ERROR: Strip call failed: /tmp/.mount_linuxdZhkhaq/usr/bin/strip: AppDir/usr/lib/libpng16.so.16: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdZhkhaq/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libpng16.so.16'

AI Studio suggested to use

export NO_STRIP=1

But I'm wondering whether there is a way to use "my" strip that exists on my machine and up to date with Qt distribution.

Full log
[ + ] Tools ready.
/tmp/sqrc-build-u8Jycq ~/src/sqrc
-- The C compiler identification is GNU 14.3.1
-- The CXX compiler identification is GNU 14.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/sqrc-build-u8Jycq
[ 10%] Building CXX object libs/QR-Code-generator/cpp/CMakeFiles/qrcodegen.dir/BitBuffer.cpp.o
[ 20%] Building CXX object libs/QR-Code-generator/cpp/CMakeFiles/qrcodegen.dir/QrSegment.cpp.o
[ 30%] Building CXX object libs/QR-Code-generator/cpp/CMakeFiles/qrcodegen.dir/QrCode.cpp.o
[ 40%] Linking CXX static library libqrcodegen.a
[ 40%] Built target qrcodegen
[ 40%] Built target sqrc_autogen_timestamp_deps
[ 50%] Automatic MOC and UIC for target sqrc
[ 50%] Built target sqrc_autogen
[ 60%] Building CXX object src/CMakeFiles/sqrc.dir/mainwindow.cpp.o
[ 70%] Building CXX object src/CMakeFiles/sqrc.dir/sqrc_autogen/mocs_compilation.cpp.o
[ 90%] Building CXX object src/CMakeFiles/sqrc.dir/qsquarelayout.cpp.o
[ 90%] Building CXX object src/CMakeFiles/sqrc.dir/main.cpp.o
[100%] Linking CXX executable sqrc
[100%] Built target sqrc
[ 40%] Built target qrcodegen
[ 40%] Built target sqrc_autogen_timestamp_deps
[ 50%] Built target sqrc_autogen
[100%] Built target sqrc
Install the project...
-- Install configuration: ""
-- Installing: AppDir/usr/share/applications/sqrc.desktop
-- Installing: AppDir/usr/share/icons/hicolor/128x128/apps/sqrc.svg
-- Installing: AppDir/usr/bin/sqrc

-- Creating basic AppDir structure -- 
Creating directory AppDir/usr/bin/ 
Creating directory AppDir/usr/lib/ 
Creating directory AppDir/usr/share/applications/ 
Creating directory AppDir/usr/share/icons/hicolor/ 
Creating directory AppDir/usr/share/icons/hicolor/16x16/apps/ 
Creating directory AppDir/usr/share/icons/hicolor/32x32/apps/ 
Creating directory AppDir/usr/share/icons/hicolor/64x64/apps/ 
Creating directory AppDir/usr/share/icons/hicolor/128x128/apps/ 
Creating directory AppDir/usr/share/icons/hicolor/256x256/apps/ 
Creating directory AppDir/usr/share/icons/hicolor/scalable/apps/ 

-- Deploying dependencies for existing files in AppDir -- 
Deploying dependencies for ELF file AppDir/usr/bin/sqrc 
Deploying shared library /usr/lib64/libQt5Svg.so.5
Deploying shared library /usr/lib64/libQt5Widgets.so.5
Deploying shared library /usr/lib64/libQt5Gui.so.5
Deploying shared library /usr/lib64/libQt5Core.so.5
Skipping deployment of blacklisted library /usr/lib/gcc/x86_64-pc-linux-gnu/15/libstdc++.so.6 
Skipping deployment of blacklisted library /usr/lib64/libm.so.6 
Skipping deployment of blacklisted library /usr/lib/gcc/x86_64-pc-linux-gnu/15/libgcc_s.so.1 
Skipping deployment of blacklisted library /usr/lib64/libc.so.6 
Skipping deployment of blacklisted library /usr/lib64/libz.so.1 
Skipping deployment of blacklisted library /usr/lib64/libGL.so.1 
Deploying shared library /usr/lib64/libpng16.so.16
Skipping deployment of blacklisted library /usr/lib64/libharfbuzz.so.0 
Deploying shared library /usr/lib64/libmd4c.so.0
Deploying shared library /usr/lib64/libdouble-conversion.so.3
Deploying shared library /usr/lib64/libicui18n.so.77
Deploying shared library /usr/lib64/libicuuc.so.77
Deploying shared library /usr/lib64/libpcre2-16.so.0
Deploying shared library /usr/lib64/libglib-2.0.so.0
Skipping deployment of blacklisted library /usr/lib64/libGLdispatch.so.0 
Skipping deployment of blacklisted library /usr/lib64/libGLX.so.0 
Skipping deployment of blacklisted library /usr/lib64/libfreetype.so.6 
Deploying shared library /usr/lib64/libgraphite2.so.3
Deploying shared library /usr/lib64/libicudata.so.77
Deploying shared library /usr/lib64/libpcre2-8.so.0
Skipping deployment of blacklisted library /usr/lib64/libX11.so.6 
Deploying shared library /usr/lib64/libbz2.so.1
Skipping deployment of blacklisted library /usr/lib64/libxcb.so.1 
Deploying shared library /usr/lib64/libXau.so.6
Deploying shared library /usr/lib64/libXdmcp.so.6

-- Copying files into AppDir -- 
Copying file /usr/lib64/libQt5Core.so.5 to AppDir/usr/lib/libQt5Core.so.5 
Copying file /usr/lib64/libQt5Gui.so.5 to AppDir/usr/lib/libQt5Gui.so.5 
Copying file /usr/lib64/libQt5Svg.so.5 to AppDir/usr/lib/libQt5Svg.so.5 
Copying file /usr/lib64/libQt5Widgets.so.5 to AppDir/usr/lib/libQt5Widgets.so.5 
Copying file /usr/lib64/libXau.so.6 to AppDir/usr/lib/libXau.so.6 
Copying file /usr/lib64/libXdmcp.so.6 to AppDir/usr/lib/libXdmcp.so.6 
Copying file /usr/lib64/libbz2.so.1 to AppDir/usr/lib/libbz2.so.1 
Copying file /usr/lib64/libdouble-conversion.so.3 to AppDir/usr/lib/libdouble-conversion.so.3 
Copying file /usr/lib64/libglib-2.0.so.0 to AppDir/usr/lib/libglib-2.0.so.0 
Copying file /usr/lib64/libgraphite2.so.3 to AppDir/usr/lib/libgraphite2.so.3 
Copying file /usr/lib64/libicudata.so.77 to AppDir/usr/lib/libicudata.so.77 
Copying file /usr/lib64/libicui18n.so.77 to AppDir/usr/lib/libicui18n.so.77 
Copying file /usr/lib64/libicuuc.so.77 to AppDir/usr/lib/libicuuc.so.77 
Copying file /usr/lib64/libmd4c.so.0 to AppDir/usr/lib/libmd4c.so.0 
Copying file /usr/lib64/libpcre2-16.so.0 to AppDir/usr/lib/libpcre2-16.so.0 
Copying file /usr/lib64/libpcre2-8.so.0 to AppDir/usr/lib/libpcre2-8.so.0 
Copying file /usr/lib64/libpng16.so.16 to AppDir/usr/lib/libpng16.so.16 
Calling strip on library AppDir/usr/lib/libQt5Core.so.5 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libQt5Core.so.5: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libQt5Core.so.5'
 
Calling strip on library AppDir/usr/lib/libQt5Gui.so.5 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libQt5Gui.so.5: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libQt5Gui.so.5'
 
Calling strip on library AppDir/usr/lib/libQt5Svg.so.5 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libQt5Svg.so.5: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libQt5Svg.so.5'
 
Calling strip on library AppDir/usr/lib/libQt5Widgets.so.5 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libQt5Widgets.so.5: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libQt5Widgets.so.5'
 
Calling strip on library AppDir/usr/lib/libXau.so.6 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libXau.so.6: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libXau.so.6'
 
Calling strip on library AppDir/usr/lib/libXdmcp.so.6 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libXdmcp.so.6: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libXdmcp.so.6'
 
Calling strip on library AppDir/usr/lib/libbz2.so.1 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libbz2.so.1: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libbz2.so.1'
 
Calling strip on library AppDir/usr/lib/libdouble-conversion.so.3 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libdouble-conversion.so.3: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libdouble-conversion.so.3'
 
Calling strip on library AppDir/usr/lib/libglib-2.0.so.0 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libglib-2.0.so.0: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libglib-2.0.so.0'
 
Calling strip on library AppDir/usr/lib/libgraphite2.so.3 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libgraphite2.so.3: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libgraphite2.so.3'
 
Calling strip on library AppDir/usr/lib/libicudata.so.77 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libicudata.so.77: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libicudata.so.77'
 
Calling strip on library AppDir/usr/lib/libicui18n.so.77 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libicui18n.so.77: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libicui18n.so.77'
 
Calling strip on library AppDir/usr/lib/libicuuc.so.77 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libicuuc.so.77: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libicuuc.so.77'
 
Calling strip on library AppDir/usr/lib/libmd4c.so.0 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libmd4c.so.0: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libmd4c.so.0'
 
Calling strip on library AppDir/usr/lib/libpcre2-16.so.0 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libpcre2-16.so.0: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libpcre2-16.so.0'
 
Calling strip on library AppDir/usr/lib/libpcre2-8.so.0 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libpcre2-8.so.0: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libpcre2-8.so.0'
 
Calling strip on library AppDir/usr/lib/libpng16.so.16 
ERROR: Strip call failed: /tmp/.mount_linuxdGjYRTy/usr/bin/strip: AppDir/usr/lib/libpng16.so.16: unknown type [0x13] section `.relr.dyn'
/tmp/.mount_linuxdGjYRTy/usr/bin/strip: Unable to recognise the format of the input file `AppDir/usr/lib/libpng16.so.16'
 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions