Closed sp2ong closed 4 years ago
Hi We tried to compile the latest MMDVM on Pi-Star v4.1.1, which use the Raspbian BUSTER version, after installation
apt install git binutils-arm-none-eabi gcc-arm-none-eabi gdb-arm-none-eabi libstdc++-arm-none-eabi-newlib autoconf libtool pkg-config libusb-1.0-0 libusb-1.0-0-dev
and run compile MMDVM for MMDVM POG version board
MMDVM# make -f Makefile.CMSIS echo "#define GITVERSION \"eb9c0df\"" > GitVersion.h mkdir -p obj mkdir -p bin arm-none-eabi-g++ -MMD -mthumb -mlittle-endian -mcpu=cortex-m3 -Wall -I. -ISTM32F10X_Lib/CMSIS/Include -ISTM32F10X_Lib/CMSIS/De vice/ST/STM32F1xx/Include -Isystem_stm32f1xx -DSTM32F105xC -DMADEBYMAKEFILE -DSTM32F1 -Os -flto -ffunction-sections -fdata-sec tions -g -nostdlib -fno-exceptions -fno-rtti -c DMRDMOTX.cpp -o obj/DMRDMOTX.o ..... Include -Isystem_stm32f1xx -DSTM32F105xC -DMADEBYMAKEFILE -DSTM32F1 -Os -flto -ffunction-sections -fdata-sections -g -c system_stm32f1xx/startup_stm32f105xc.S -o obj/startup_stm32f105xc.o arm-none-eabi-g++ obj/DMRDMOTX.o obj/IOSTM.o obj/SerialArduino.o obj/FMCTCSSRX.o obj/SampleRB.o obj/POCSAGTX.o obj/FMDownsampl er.o obj/FMCTCSSTX.o obj/FMKeyer.o obj/IODue.o obj/SerialPort.o obj/DStarRX.o obj/FMBlanking.o obj/CalNXDN.o obj/FMTimer.o obj/ FM.o obj/SerialSTM_CMSIS.o obj/MMDVM.o obj/YSFRX.o obj/IO.o obj/DMRIdleRX.o obj/YSFTX.o obj/P25TX.o obj/CalDStarRX.o obj/DStarT X.o obj/SerialRB.o obj/NXDNRX.o obj/Utils.o obj/P25RX.o obj/CalPOCSAG.o obj/FMTimeout.o obj/IOSTM_CMSIS.o obj/RSSIRB.o obj/DMRD MORX.o obj/CalFM.o obj/DMRSlotRX.o obj/IOTeensy.o obj/DMRRX.o obj/CalDMR.o obj/I2CTeensy.o obj/CalP25.o obj/FMDownsampleRB.o ob j/DMRSlotType.o obj/NXDNTX.o obj/CalRSSI.o obj/CalDStarTX.o obj/SerialSTM.o obj/DMRTX.o obj/CWIdTX.o obj/system_stm32f1xx.o obj /startup_stm32f105xc.o -mthumb -mlittle-endian -mcpu=cortex-m3 -Wall -I. -ISTM32F10X_Lib/CMSIS/Include -ISTM32F10X_Lib/CMSIS/De vice/ST/STM32F1xx/Include -Isystem_stm32f1xx -DSTM32F105xC -DMADEBYMAKEFILE -DSTM32F1 -Os -flto -ffunction-sections -fdata-sec tions -g -Wl,--gc-sections -Wl,-Map=bin/mmdvm.map -Wl,--no-wchar-size-warning --specs=nosys.specs --specs=nano.specs -LSTM32F10 X_Lib/CMSIS/Lib/GCC/ -Tsystem_stm32f1xx/gcc.ld -larm_cortexM3l_math -o bin/mmdvm.elf arm-none-eabi-g++: internal compiler error: Killed (program lto1) Please submit a full bug report, with preprocessed source if appropriate. See https://gcc.gnu.org/bugs/ for instructions. lto-wrapper: fatal error: arm-none-eabi-g++ returned 4 exit status compilation terminated. /usr/lib/gcc/arm-none-eabi/7.3.1/../../../arm-none-eabi/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status make: *** [Makefile.CMSIS:145: bin/mmdvm.elf] Error 1
It looks it is a problem with Pi-Star v4.1. On PC version of Debian BUSTER compiled without problem firmware but I am not checked on MMDVM board
Hi We tried to compile the latest MMDVM on Pi-Star v4.1.1, which use the Raspbian BUSTER version, after installation
apt install git binutils-arm-none-eabi gcc-arm-none-eabi gdb-arm-none-eabi libstdc++-arm-none-eabi-newlib autoconf libtool pkg-config libusb-1.0-0 libusb-1.0-0-dev
and run compile MMDVM for MMDVM POG version board
MMDVM# make -f Makefile.CMSIS echo "#define GITVERSION \"eb9c0df\"" > GitVersion.h mkdir -p obj mkdir -p bin arm-none-eabi-g++ -MMD -mthumb -mlittle-endian -mcpu=cortex-m3 -Wall -I. -ISTM32F10X_Lib/CMSIS/Include -ISTM32F10X_Lib/CMSIS/De vice/ST/STM32F1xx/Include -Isystem_stm32f1xx -DSTM32F105xC -DMADEBYMAKEFILE -DSTM32F1 -Os -flto -ffunction-sections -fdata-sec tions -g -nostdlib -fno-exceptions -fno-rtti -c DMRDMOTX.cpp -o obj/DMRDMOTX.o ..... Include -Isystem_stm32f1xx -DSTM32F105xC -DMADEBYMAKEFILE -DSTM32F1 -Os -flto -ffunction-sections -fdata-sections -g -c system_stm32f1xx/startup_stm32f105xc.S -o obj/startup_stm32f105xc.o arm-none-eabi-g++ obj/DMRDMOTX.o obj/IOSTM.o obj/SerialArduino.o obj/FMCTCSSRX.o obj/SampleRB.o obj/POCSAGTX.o obj/FMDownsampl er.o obj/FMCTCSSTX.o obj/FMKeyer.o obj/IODue.o obj/SerialPort.o obj/DStarRX.o obj/FMBlanking.o obj/CalNXDN.o obj/FMTimer.o obj/ FM.o obj/SerialSTM_CMSIS.o obj/MMDVM.o obj/YSFRX.o obj/IO.o obj/DMRIdleRX.o obj/YSFTX.o obj/P25TX.o obj/CalDStarRX.o obj/DStarT X.o obj/SerialRB.o obj/NXDNRX.o obj/Utils.o obj/P25RX.o obj/CalPOCSAG.o obj/FMTimeout.o obj/IOSTM_CMSIS.o obj/RSSIRB.o obj/DMRD MORX.o obj/CalFM.o obj/DMRSlotRX.o obj/IOTeensy.o obj/DMRRX.o obj/CalDMR.o obj/I2CTeensy.o obj/CalP25.o obj/FMDownsampleRB.o ob j/DMRSlotType.o obj/NXDNTX.o obj/CalRSSI.o obj/CalDStarTX.o obj/SerialSTM.o obj/DMRTX.o obj/CWIdTX.o obj/system_stm32f1xx.o obj /startup_stm32f105xc.o -mthumb -mlittle-endian -mcpu=cortex-m3 -Wall -I. -ISTM32F10X_Lib/CMSIS/Include -ISTM32F10X_Lib/CMSIS/De vice/ST/STM32F1xx/Include -Isystem_stm32f1xx -DSTM32F105xC -DMADEBYMAKEFILE -DSTM32F1 -Os -flto -ffunction-sections -fdata-sec tions -g -Wl,--gc-sections -Wl,-Map=bin/mmdvm.map -Wl,--no-wchar-size-warning --specs=nosys.specs --specs=nano.specs -LSTM32F10 X_Lib/CMSIS/Lib/GCC/ -Tsystem_stm32f1xx/gcc.ld -larm_cortexM3l_math -o bin/mmdvm.elf arm-none-eabi-g++: internal compiler error: Killed (program lto1) Please submit a full bug report, with preprocessed source if appropriate. See https://gcc.gnu.org/bugs/ for instructions. lto-wrapper: fatal error: arm-none-eabi-g++ returned 4 exit status compilation terminated. /usr/lib/gcc/arm-none-eabi/7.3.1/../../../arm-none-eabi/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status make: *** [Makefile.CMSIS:145: bin/mmdvm.elf] Error 1