falkTX / Carla

Audio plugin host
https://kx.studio/carla
1.6k stars 147 forks source link

build Windows bridge on Raspberry Pi #1749

Closed flappix closed 1 year ago

flappix commented 1 year ago

Hi, I try to compile the windows bridge on a Raspberry Pi 3. I installed Box86 with its corresponding wine and mingw (version 10).

When I run the command for building

make win32 CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++

the process gets stuck while compiling source/modules/juce_audio_processors/juce_audio_processors.cpp. When I open htop it shows me that the following process (cc1plus) entered state D (uninterruptable sleep). It does not consume any cpu usage but it does consume around 600MB of RAM. I let it run for several hours but nothing happend.

root      3551 84.8 73.3 626724 559536 pts/1   D+   03:10   1:45 /usr/lib/gcc/i686-w64-mingw32/10-win32/cc1plus -I . -I ../../includes -I ../../utils -I ../../includes/vst3sdk -I .. -I ../mingw-std-threads -MD ../../../build/juce_audio_processors/Release/juce_audio_processors.cpp.win32.d -MP -MQ ../../../build/juce_audio_processors/Release/juce_audio_processors.cpp.win32.o -D_POSIX_SOURCE -U_REENTRANT -D BUILDING_CARLA -D REAL_BUILD -D NDEBUG -D HAVE_DGL -D HAVE_OPENGL -D DGL_OPENGL -D DONT_SET_USING_DGL_NAMESPACE -D DGL_NAMESPACE=CarlaDGL -D DGL_FILE_BROWSER_DISABLED -D DGL_NO_SHARED_RESOURCES -D HAVE_FLUIDSYNTH -D HAVE_FLUIDSYNTH_INSTPATCH -D HAVE_HYLIA -D HAVE_JACK -D HAVE_LIBLO -D HAVE_SDL -D HAVE_SDL2 -D HAVE_SNDFILE -D USING_JUCE -D JUCE_APP_CONFIG_HEADER="AppConfig.h" -D _WIN32_WINNT=0x0600 -D USING_JUCE_AUDIO_DEVICES -D CARLA_LIB_EXT=".dll" -D RELEASE juce_audio_processors.cpp -dumpbase juce_audio_processors.cpp -mstackrealign -mtune=generic -msse -msse2 -mfpmath=sse -m32 -march=pentiumpro -auxbase-strip ../../../build/juce_audio_processors/Release/juce_audio_processors.cpp.win32.o -O3 -Wall -Wextra -std=gnu++11 -std=gnu++14 -fno-common -ffast-math -fdata-sections -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -o -

I disabled the -quiet flag for cc1plus so it produce tons of output but for me that's rather cryptic. I cannot see any errors. Anyway I attached the complete log. compile.log

As far as I read the D state means the process is waiting for some I/O operation to take place. But which kind of operation should this be?
I'm not running a xserver. Could this be a possible issue? Tested with X, same behavior .

I really appreciate any kind of help :)

flappix commented 1 year ago

Turned out that this issue was caused either by a faulty sd card or too less swap space. Not sure which of both fixed the problem. I put a bigger larger new sd card into the Pi and created a swap space of 4GB and now it compiles without problems.