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

build_type Release/RelWithDebInfo #15

Open
ViliusSutkus89 opened this issue Aug 16, 2024 · 5 comments
Open

build_type Release/RelWithDebInfo #15

ViliusSutkus89 opened this issue Aug 16, 2024 · 5 comments

Comments

@ViliusSutkus89
Copy link
Contributor

Just did all 4 arches pdf2htmlex build for both build types.
RelWithDebInfo du -hs ~/.conan2/p is 8.2G
Release du -hs ~/.conan2/p is 6.8G

I don't think this is the biggest issue

I've looked at this a bit more, yes, the full build tree doesn't differ that much, but final binaries do differ a lot.

Linux x86_64 odr.core build with pdf2htmlEX.

RelWithDebInfo:

ls -lh /home/user/.conan2/p/b/odrco846defc3ae240/p/bin
total 432M
-rwxr-xr-x 1 user user 144M Aug 16 15:54 back_translate
-rwxr-xr-x 1 user user 145M Aug 16 15:54 meta
-rwxr-xr-x 1 user user 144M Aug 16 15:54 translate

Release:

ls -lh /home/user/.conan2/p/b/odrcof29b0b8019606/p/bin
total 71M
-rwxr-xr-x 1 user user 24M Aug 16 16:09 back_translate
-rwxr-xr-x 1 user user 24M Aug 16 16:09 meta
-rwxr-xr-x 1 user user 24M Aug 16 16:09 translate

We do need debug info for Android builds, do we make actual use of that in other platforms?

@ViliusSutkus89
Copy link
Contributor Author

I've stuffed the server

ERROR: 
Error uploading file: conan_export.tgz, '400: No space left on device'
ERROR: 
Error uploading file: conan_sources.tgz, '400: No space left on device'
ERROR: 

It doesn't even respond to conan list's anymore

@andiwand
Copy link
Member

I wonder if we need debug symbols at all for most of the libraries. pdf2htmlex makes sense if we think we can fix bugs there. But for the dependencies of it I wonder if we should just rather use Release

I cleaned the backups out should have space again

@ViliusSutkus89
Copy link
Contributor Author

I don't think it's up again, mate ☠️

@ViliusSutkus89
Copy link
Contributor Author

I've did a few rebuilds and on Android the size doesn't really change between RelWithDebInfo and Release. Gradle removes a lot when it strips symbols, so there's no need to worry about this on Android.

I'm more concerned about Linux binaries, because there's no gradle that strips binaries.

Do we even make any use of debug symbols on Linux?

@andiwand
Copy link
Member

I don't think it's up again, mate ☠️

Should be back up

I've did a few rebuilds and on Android the size doesn't really change between RelWithDebInfo and Release. Gradle removes a lot when it strips symbols, so there's no need to worry about this on Android.

Right this is what I expected. I guess the question is more if we really need the debug infos of our dependencies. I would argue that we are only interested in debug symbols of code we maintain and we have under control. To me this is odr.core and maybe pdf2htmlex. But the dependencies of those we don't really control so if there is an exception / signal coming from there it is a problem we would fix on our side because we use the library in the wrong way or we update the dependency.

I'm more concerned about Linux binaries, because there's no gradle that strips binaries.

Do we even make any use of debug symbols on Linux?

For linux we do not need the debug symbols at all at the moment. They are safe to be removed completely.

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