Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binaries not stripped. #327

Closed
nephros opened this issue Jan 21, 2024 · 8 comments
Closed

Binaries not stripped. #327

nephros opened this issue Jan 21, 2024 · 8 comments

Comments

@nephros
Copy link

nephros commented Jan 21, 2024

The current (v2.33) version on Openrepos installs an unstripped binary that's >160MB in size.
Stripping it manually brings it down to a more reasonable 6MB.

@nephros
Copy link
Author

nephros commented Jan 21, 2024

Please adapt the build to package a stripped binary.

@nephros
Copy link
Author

nephros commented Jan 22, 2024

Correction: the Openrepos version is ok, the Chum version is not. (and it's over 200 MB).

@Karry
Copy link
Owner

Karry commented Jan 22, 2024

Thank you for report. I will re-trigger Chum build and compare log with the local one...

@Karry
Copy link
Owner

Karry commented Jan 22, 2024

Seems that debug information strip fails on Chum, because there is no space in build root:

[ 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

@Karry
Copy link
Owner

Karry commented Jan 22, 2024

Reported as bug on Forum: https://forum.sailfishos.org/t/no-space-left-on-obs-build-sailfishos-org-during-debug-info-processing/17846

I do not know about better place...

@nephros
Copy link
Author

nephros commented Jan 23, 2024

Some more observations:

  • problem seems to affect only chum repo versions >= 4.4.0.64, 4.4.0.58 makes stripped binaries
  • ... and only aarch64 architecture

Maybe unrelated, but I notice on i486, there are .o files in the install root?

e.g. this build log has a couple of these lines:

[ 1450s] + /usr/lib/rpm/find-debuginfo.sh -j6 --strict-build-id --build-id-seed 2.33-1.6.1.jolla --unique-debug-suffix -2.33-1.6.1.jolla.i386 --unique-debug-src-base harbour-osmscout-2.33-1.6.1.jolla.i386 -S debugsourcefiles.list /home/abuild/rpmbuild/BUILD/harbour-osmscout-2.33
[ 1451s] extracting debug info from /home/abuild/rpmbuild/BUILDROOT/harbour-osmscout-2.33-1.6.1.jolla.i386/usr/bin/harbour-osmscout
[ 1471s] 11422 blocks
[ 1471s] + /usr/lib/rpm/check-buildroot
[ 1474s] + /usr/lib/rpm/meego/brp-compress
[ 1474s] + /usr/lib/rpm/meego/brp-strip-static-archive /usr/bin/strip
[ 1484s] /usr/bin/strip: /home/abuild/rpmbuild/BUILDROOT/harbour-osmscout-2.33-1.6.1.jolla.i386/usr/lib/stIbFEAt/mocs_compilation.cpp.o: plugin needed to handle lto object
[ 1484s] /usr/bin/strip: /home/abuild/rpmbuild/BUILDROOT/harbour-osmscout-2.33-1.6.1.jolla.i386/usr/lib/stIbFEAt/ElevationChartWidget.cpp.o: plugin needed to handle lto object
[ 1484s] /usr/bin/strip: /home/abuild/rpmbuild/BUILDROOT/harbour-osmscout-2.33-1.6.1.jolla.i386/usr/lib/stIbFEAt/ElevationModule.cpp.o: plugin needed to handle lto object
[ 1484s] /usr/bin/strip: /home/abuild/rpmbuild/BUILDROOT/harbour-osmscout-2.33-1.6.1.jolla.i386/usr/lib/stIbFEAt/FileDownloader.cpp.o: plugin needed to handle lto object
[ 1484s] /usr/bin/strip: /home/abuild/rpmbuild/BUILDROOT/harbour-osmscout-2.33-1.6.1.jolla.i386/usr/lib/stIbFEAt/IconAnimation.cpp.o: plugin needed to handle lto object
[ 1484s] /usr/bin/strip: /home/abuild/rpmbuild/BUILDROOT/harbour-osmscout-2.33-1.6.1.jolla.i386/usr/lib/stIbFEAt/IconLookup.cpp.o: plugin needed to handle lto object
[ 1484s] /usr/bin/strip: /home/abuild/rpmbuild/BUILDROOT/harbour-osmscout-2.33-1.6.1.jolla.i386/usr/lib/stIbFEAt/InputHandler.cpp.o: plugin needed to handle lto object
[ 1484s] /usr/bin/strip: /home/abuild/rpmbuild/BUILDROOT/harbour-osmscout-2.33-1.6.1.jolla.i386/usr/lib/stIbFEAt/LocationEntry.cpp.o: plugin needed to handle lto object
[ 1484s] /usr/bin/strip: /home/abuild/rpmbuild/BUILDROOT/harbour-osmscout-2.33-1.6.1.jolla.i386/usr/lib/stIbFEAt/LocationInfoModel.cpp.o: plugin needed to handle lto object
[ 1484s] /usr/bin/strip: /home/abuild/rpmbuild/BUILDROOT/harbour-osmscout-2.33-1.6.1.jolla.i386/usr/lib/stIbFEAt/MapWidget.cpp.o: plugin needed to handle lto object
[ 1484s] /usr/bin/strip: /home/abuild/rpmbuild/BUILDROOT/harbour-osmscout-2.33-1.6.1.jolla.i386/usr/lib/stIbFEAt/OnlineTileProviderModel.cpp.o: plugin needed to handle lto object

@Karry
Copy link
Owner

Karry commented Jan 23, 2024

It seems that i486 compiler has available LTO (link time optimizations) and these *.o files in install root is side effect...

@Karry
Copy link
Owner

Karry commented Feb 1, 2024

Should be solved by setting disk requirements on OBS...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants