No space left on OBS (build.sailfishos.org), during debug info processing

REPRODUCIBILITY: 100%
OS VERSION: N/A
HARDWARE: N/A
UI LANGUAGE: N/A
REGRESSION: YES

DESCRIPTION:

Recent release of OSM Scout on Chum (build by OBS machine build.sailfishos.org) contains non-stripped binaries. But local build is fine (distributed via Harbour and OpenRepos). This problem was reported by @nephros originally: Binaries not stripped. · Issue #327 · Karry/osmscout-sailfish · GitHub

Looking to build log: Live Build Log - SailfishOS Open Build Service
strip fails with “No space left on device” on buildroot /home/abuild/rpmbuild/BUILDROOT/...

related lines:

[ 2391s] + /usr/lib/rpm/find-debuginfo.sh -j6 --strict-build-id --build-id-seed 2.33-1.4.1.jolla --unique-debug-suffix -2.33-1.4.1.jolla.aarch64 --unique-debug-src-base harbour-osmscout-2.33-1.4.1.jolla.aarch64 -S debugsourcefiles.list /home/abuild/rpmbuild/BUILD/harbour-osmscout-2.33
[ 2392s] extracting debug info from /home/abuild/rpmbuild/BUILDROOT/harbour-osmscout-2.33-1.4.1.jolla.aarch64/usr/bin/harbour-osmscout
[ 2402s] /opt/cross/bin/aarch64-meego-linux-gnu-objcopy:/home/abuild/rpmbuild/BUILDROOT/harbour-osmscout-2.33-1.4.1.jolla.aarch64/usr/lib/debug/usr/bin/harbour-osmscout-2.33-1.4.1.jolla.aarch64.debug[.debug_loc]: No space left on device
[ 2402s] /opt/cross/bin/aarch64-meego-linux-gnu-objcopy:/home/abuild/rpmbuild/BUILDROOT/harbour-osmscout-2.33-1.4.1.jolla.aarch64/usr/bin/stZ47Tpa: cannot fill debug link section `/home/abuild/rpmbuild/BUILDROOT/harbour-osmscout-2.33-1.4.1.jolla.aarch64/usr/lib/debug/usr/bin/harbour-osmscout-2.33-1.4.1.jolla.aarch64.debug': No such file or directory

PRECONDITIONS:

Account on OBS, configured build for OSM Scout…

_service file:

<services>
  
  <service name="tar_git">
    <param name="url">https://github.com/Karry/osmscout-sailfish.git</param>    
    <param name="branch">master</param>
    <param name="revision">v2.33</param>
    <param name="debian">N</param>
    <param name="dumb">N</param>
 </service>
  
</services>

STEPS TO REPRODUCE:

  1. trigger services for OSM Scout

EXPECTED RESULT:

Package with stripped binary (approximately 6 MiB big /usr/bin/harbour-osmscout binary)

ACTUAL RESULT:

/usr/bin/harbour-osmscout binary with debug symbols

MODIFICATIONS:

NO

ADDITIONAL INFORMATION:

NO

1 Like

There is the option of a _constraints file specifying specs for the build vm.

If storage space is actually the problem, this might help.

Example:
https://build.sailfishos.org/package/view_file/home:flypig:gecko-esr91/gecko-dev/_constraints?expand=1

3 Likes

Thank you for the hint. It should help. Waiting for the build to finish…

IIRC the “Debuginfo flag” must be set (confusingly) to build with separate debuginfo files, which may also imply stripped binaries.
AFAIR the executable files generated by OBS became significantly smaller when setting the “Debuginfo flag”.
See https://build.sailfishos.org/repositories/sailfishos:chum:testing/harbour-osmscout#flag_table_debuginfo

1 Like