SOLVED Fedora - Patcher built but cannot compile or go live


#1

Was a nightmare to get git to build on Fedora. Finally got patcher to build.

When trying to go live or upload to internal flash it fails with:

Compiling patch... with /home/ryanpg/src/axoloti/axoloti/firmware
BDIR = /home/ryanpg/src/axoloti/axoloti/build
FIRMWARE = .
Build precompiled header
arm-none-eabi-g++ -nostdlib -fno-exceptions -fno-rtti -mcpu=cortex-m4 -O3 -fomit-frame-pointer -falign-functions=16 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Wunused-parameter -DCORTEX_USE_FPU=TRUE -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB -std=c++11 -DARM_MATH_CM4 -D__FPU_PRESENT -fno-math-errno -fno-threadsafe-statics -fno-use-cxa-atexit -Wno-unused-parameter -I/home/ryanpg/src/axoloti/axoloti/CMSIS/Include -I/home/ryanpg/src/axoloti/axoloti/CMSIS/DSP_Lib/Include -I/home/ryanpg/src/axoloti/axoloti/chibios/os/ports/common/ARMCMx/CMSIS/include -I/home/ryanpg/src/axoloti/axoloti/chibios/os/ports/common/ARMCMx -I/home/ryanpg/src/axoloti/axoloti/chibios/os/ports/GCC/ARMCMx -I/home/ryanpg/src/axoloti/axoloti/chibios/os/ports/GCC/ARMCMx/STM32F4xx -I/home/ryanpg/src/axoloti/axoloti/chibios/os/kernel/include -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/include -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32F4xx -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32 -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32/GPIOv2 -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32/I2Cv1 -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32/OTGv1 -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32/RTCv2 -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32/SPIv1 -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32/TIMv1 -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32/USARTv1 -I/home/ryanpg/src/axoloti/axoloti/chibios/boards/ST_STM32F4_DISCOVERY -I/home/ryanpg/src/axoloti/axoloti/chibios/ext/fatfs/src -I. -I/home/ryanpg/src/axoloti/axoloti/chibios -I./mutable_instruments -Winvalid-pch -MD -MP -c ./xpatch.h -o /home/ryanpg/src/axoloti/axoloti/build/xpatch.h.gch
arm-none-eabi-g++: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
compilation terminated.
make: *** [Makefile.patch:54: /home/ryanpg/src/axoloti/axoloti/build/xpatch.h.gch] Error 1
shell task failed, exit value: 2
Compiling patch failed ( /home/ryanpg/src/axoloti/axoloti/patches/octa_synth.axp )

I can fix that by:

sudo ln -s /usr/libexec/gcc/arm-none-eabi/9.2.0/cc1plus /usr/bin/cc1plus

But, then it fails with:

Generate code complete
Start compiling patch
Compiling patch... with /home/ryanpg/src/axoloti/axoloti/firmware
BDIR = /home/ryanpg/src/axoloti/axoloti/build
FIRMWARE = .
Build precompiled header
arm-none-eabi-g++ -nostdlib -fno-exceptions -fno-rtti -mcpu=cortex-m4 -O3 -fomit-frame-pointer -falign-functions=16 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Wunused-parameter -DCORTEX_USE_FPU=TRUE -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB -std=c++11 -DARM_MATH_CM4 -D__FPU_PRESENT -fno-math-errno -fno-threadsafe-statics -fno-use-cxa-atexit -Wno-unused-parameter -I/home/ryanpg/src/axoloti/axoloti/CMSIS/Include -I/home/ryanpg/src/axoloti/axoloti/CMSIS/DSP_Lib/Include -I/home/ryanpg/src/axoloti/axoloti/chibios/os/ports/common/ARMCMx/CMSIS/include -I/home/ryanpg/src/axoloti/axoloti/chibios/os/ports/common/ARMCMx -I/home/ryanpg/src/axoloti/axoloti/chibios/os/ports/GCC/ARMCMx -I/home/ryanpg/src/axoloti/axoloti/chibios/os/ports/GCC/ARMCMx/STM32F4xx -I/home/ryanpg/src/axoloti/axoloti/chibios/os/kernel/include -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/include -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32F4xx -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32 -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32/GPIOv2 -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32/I2Cv1 -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32/OTGv1 -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32/RTCv2 -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32/SPIv1 -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32/TIMv1 -I/home/ryanpg/src/axoloti/axoloti/chibios/os/hal/platforms/STM32/USARTv1 -I/home/ryanpg/src/axoloti/axoloti/chibios/boards/ST_STM32F4_DISCOVERY -I/home/ryanpg/src/axoloti/axoloti/chibios/ext/fatfs/src -I. -I/home/ryanpg/src/axoloti/axoloti/chibios -I./mutable_instruments -Winvalid-pch -MD -MP -c ./xpatch.h -o /home/ryanpg/src/axoloti/axoloti/build/xpatch.h.gch
In file included from ./xpatch.h:2:
./patch.h:20:10: fatal error: stdint.h: No such file or directory
20 | #include
| ^~~~~~~~~~
compilation terminated.
make: *** [Makefile.patch:54: /home/ryanpg/src/axoloti/axoloti/build/xpatch.h.gch] Error 1
shell task failed, exit value: 2
Compiling patch failed ( /home/ryanpg/src/axoloti/axoloti/patches/octa_synth.axp )

Any pointers?

Thanks!
Ryan


#2

Finally got git to build and run.

I had to remove local arm eabi packages.

I had to install:
glibc-*.i686
libstdc++-*.i686

It built using the build.sh script in platform_linux.


#3

Did you get Axoloti Patcher to run?

In your first post:
sudo ln -s /usr/libexec/gcc/arm-none-eabi/9.2.0/cc1plus /usr/bin/cc1plus

That looks wrong. /user/bin/cc1plus should not point to a cross-compiler.


#4

Yes, that was wrong. I got everything working Patcher and all.