Menu

#126 LV2 symbols stripped in Guitarix --debug build.

open
nobody
None
v1.0_(example)
1
2021-07-14
2021-07-14
Anonymous
No

I'm trying to generate LV2 plugins with debug symbols to figure out why gx_amp fails to convolve amp responses on Rasbberry PI 4/raspbian with a propietary LV2 host (mine). Despite proving a --debug argument to the build steps, LV .so files have been stripped of symbols. I did my best to wade through the wscript files, but I'm not python-able.

Environment: Raspberry PI 4/Raspbian (debian)

Steps to repro:
./waf clean

./waf configure --debug
./waf build --debug -v | tee log.txt

The build completes. Symbols are generated, but are stripped by a build step. e.g.:

08:19:26 [35mrunner[0m ['/usr/bin/strip', 'src/LV2/gxautowah.lv2/gxautowah.so']

(and so on for each LV2 plugin .so, and only for LV2 plugin .so files).

Fix:

I'm not python literate so I'm reluctant to check in the correct change.

Commenting out the following line prevents symbol stripping:

trunk/wscript:
if opt.lv2:
#xxx conf.gxload('strip')
conf.gxload('lv2')

But a proper fix should make it conditional on the presence of the --debug flags.
Result:

No symbols on any of the LV2 .so files.

Expected result:

Debug symbols on any of the LV2.so files.

Context:
Source compliation has finished. Seems to be a post-processing step.

[1473/1614] Compiling src/LV2/gx_w20.lv2/manifest.ttl.in
[1474/1614] Processing build/src/LV2/gx_amp.lv2/gx_amp.so
[1475/1614] Processing build/src/LV2/gx_amp.lv2/gx_amp_gui.so
08:19:26 [35mrunner[0m ['/usr/bin/strip', 'src/LV2/gx_amp.lv2/gx_amp.so']
08:19:26 [35mrunner[0m ['/usr/bin/strip', 'src/LV2/gx_amp.lv2/gx_amp_gui.so']
[1476/1614] Processing build/src/LV2/gx_amp_stereo.lv2/gx_amp_stereo.so

Presumably something to do with

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB