Hi Mo,
If it was caused by library size, can "-gsplit-dwarf" help?
It seems not.
dh_dwz -a -O-Scmake
dwz:
debian/librocsolver0/usr/lib/x86_64-linux-gnu/librocsolver.so.0.1:
Unknown debugging section .debug_addr
dh_dwz: error: dwz --
debian/librocsolver0/usr/lib/x86_64-linux-gnu/librocsolver.so.0.1
returned exit code 1
dwz:
debian/librocsolver0-tests/usr/libexec/rocm/librocsolver0-tests/rocsolver-test:
Unknown debugging section .debug_addr
dh_dwz: error: dwz --
debian/librocsolver0-tests/usr/libexec/rocm/librocsolver0-tests/rocsolver-test
returned exit code 1
dh_dwz: error: Aborting due to earlier error
make: *** [debian/rules:21: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess
returned exit status 2
There is a Debian bug for this limitation in DWZ [1] and an upstream bug with a nice example of the problem with -gsplit-dwarf [2].
Sincerely,
Cory Bloor
[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016936
[2]: https://sourceware.org/bugzilla/show_bug.cgi?id=24756