tracktion_engine icon indicating copy to clipboard operation
tracktion_engine copied to clipboard

[Bug]: Build of tracktion examples failing on Linux

Open SavingCaustic opened this issue 1 year ago • 7 comments

Detailed steps on how to reproduce the bug

Trying to compile Tracktion examples on Linux (Ubuntu) gives build-errors at 74%.

What is the expected behaviour?

Successful build

Unit test to reproduce the error?

No response

Operating systems

Linux

What versions of the operating systems?

cmake version 3.22.1 28~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC

Architectures

x86_64

Stacktrace

74%] Linking CXX shared module EngineInPluginDemo_artefacts/Release/LV2/EngineInPluginDemo.lv2/libEngineInPluginDemo.so
make[2]: *** [CMakeFiles/EngineInPluginDemo_LV2.dir/build.make:234: EngineInPluginDemo_artefacts/Release/LV2/EngineInPluginDemo.lv2/libEngineInPluginDemo.so] Segmenteringsfel << Segmentation Error
make[2]: *** Tar bort filen ”EngineInPluginDemo_artefacts/Release/LV2/EngineInPluginDemo.lv2/libEngineInPluginDemo.so”
make[1]: *** [CMakeFiles/Makefile2:289: CMakeFiles/EngineInPluginDemo_LV2.dir/all] Fel 2
make: *** [Makefile:136: all] Fel 2

Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

I have not tested against the develop branch

Code of Conduct

  • [X] I agree to follow the Code of Conduct

SavingCaustic avatar Apr 20 '24 18:04 SavingCaustic

Can I ask how much RAM you have? And swap space?

drowaudio avatar Apr 20 '24 18:04 drowaudio

Sure, currently 8GB and no swap. Will fix and post update. Thanks!

SavingCaustic avatar Apr 20 '24 19:04 SavingCaustic

I just wonder if the linker is running out of memory...

drowaudio avatar Apr 20 '24 19:04 drowaudio

No sorry, no luck with added swap. Memory not an issue.

How to reproduce: `cd tests ./generate_examples then: Building TestRunner works but not EngineInPluginDemo. SegFault as described.

(Total noob in Tracktion, so above with a pinch of salt)

SavingCaustic avatar Apr 20 '24 20:04 SavingCaustic

It building in our CI. What version of gcc do you have installed?

drowaudio avatar Apr 20 '24 20:04 drowaudio

Man, it's old.. gcc --v => 11.4.0 c++ --v => 11.4.0

SavingCaustic avatar Apr 20 '24 20:04 SavingCaustic

I'm not sure what happening but our CI is passing on Ubuntu with gcc 11.4.0:

image

drowaudio avatar Apr 20 '24 21:04 drowaudio