Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems compiling 1.4.1 on MacOS using multiple versions of gcc-arm-none-eabi #420

Closed
sck-nogas opened this issue Nov 2, 2021 · 7 comments
Labels
Bug Something isn't working

Comments

@sck-nogas
Copy link

sck-nogas commented Nov 2, 2021

Describe the bug
Getting errors when compiling 1.4.1 on same system/compiler that worked with 1.4.0...

To Reproduce
Steps to reproduce the behavior:

  1. git pull
  2. mkdir build
  3. cd build
  4. cmake ..
  5. make firmware

Expected behavior
It compiles? :)

Additional write with output of three different compiles using three different version of the compiler
On my iMac using gcc-arm-none-eabi-9-2020-q2-update and cmake version 3.21.4 on MacOS 11.6, which previously compiled 1.4.0 correctly I pulled the updates to the repo and did a rebuild and got this error...

iBiko:portapack-mayhem sck$ git pull && rm -rf build && git submodule update --init --recursive && export PATH=~/bin/gcc-arm-none-eabi-9-2020-q2-update/bin:${PATH} && mkdir build && cd build && cmake .. && make firmware && hackrf_spiflash -w firmware/portapack-h1_h2-mayhem.bin
Already up to date.
CMake Deprecation Warning at CMakeLists.txt:21 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Cross-compiling with the gcc-arm-embedded toolchain
-- Toolchain prefix: /Users/sck/bin/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi
-- Cross-compiling with the gcc-arm-embedded toolchain
-- Toolchain prefix: /Users/sck/bin/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi
-- The C compiler identification is GNU 9.3.1
-- The CXX compiler identification is GNU 9.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/sck/bin/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/sck/bin/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The ASM compiler identification is GNU
-- Found assembler: /Users/sck/bin/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/sck/src/portapack-mayhem/build
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/ports/GCC/ARMCMx/crt0.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/ports/GCC/ARMCMx/LPC43xx_M4/vectors.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/ports/GCC/ARMCMx/chcore.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/ports/GCC/ARMCMx/chcore_v7m.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/ports/common/ARMCMx/nvic.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chsys.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chdebug.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chlists.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chvt.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chschd.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chthreads.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chdynamic.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chregistry.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chsem.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmtx.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chcond.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chevents.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmsg.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmboxes.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chqueues.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmemcore.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chheap.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmempools.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/test.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testthd.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testsem.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testmtx.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testmsg.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testmbox.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testevt.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testheap.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testpools.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testdyn.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testqueues.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testbmk.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/hal.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/adc.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/can.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/ext.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/gpt.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/i2c.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/icu.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/mac.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/mmc_spi.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/mmcsd.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/pal.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/pwm.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/rtc.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/sdc.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/serial.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/serial_usb.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/spi.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/tm.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/uart.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/usb.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx_M4/hal_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/gpt_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/i2c_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/pal_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/rtc_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/sdc_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/serial_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/spi_lld.c.obj
[ 12%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/lpc43xx.c.obj
[ 12%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/boards/PORTAPACK_BASEBAND/board.c.obj
[ 12%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband.cpp.obj
[ 12%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/message_queue.cpp.obj
[ 12%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/event.cpp.obj
[ 12%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/event_m4.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/thread_wait.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/gpdma.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband_dma.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/baseband_sgpio.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/portapack_shared_memory.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/buffer.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband_thread.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband_processor.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband_stats_collector.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_decimate.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_demodulate.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_hilbert.cpp.obj
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_hilbert.cpp: In constructor 'dsp::HilbertTransform::HilbertTransform()':
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_hilbert.cpp:27:1: warning: 'dsp::HilbertTransform::sos_i' should be initialized in the member initialization list [-Weffc++]
   27 | HilbertTransform::HilbertTransform() {
      | ^~~~~~~~~~~~~~~~
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_hilbert.cpp:27:1: warning: 'dsp::HilbertTransform::sos_q' should be initialized in the member initialization list [-Weffc++]
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_modulate.cpp.obj
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_goertzel.cpp.obj
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/matched_filter.cpp.obj
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/spectrum_collector.cpp.obj
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/tv_collector.cpp.obj
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/stream_input.cpp.obj
[ 16%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/stream_output.cpp.obj
[ 16%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_squelch.cpp.obj
[ 16%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/clock_recovery.cpp.obj
[ 16%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/packet_builder.cpp.obj
[ 16%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/dsp_fft.cpp.obj
[ 16%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/dsp_fir_taps.cpp.obj
[ 16%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/dsp_iir.cpp.obj
[ 17%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/dsp_sos.cpp.obj
[ 17%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/fxpt_atan2.cpp.obj
[ 17%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/rssi.cpp.obj
[ 17%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/rssi_dma.cpp.obj
[ 17%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/rssi_thread.cpp.obj
[ 17%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/audio_compressor.cpp.obj
[ 18%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/audio_output.cpp.obj
[ 18%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/audio_input.cpp.obj
[ 18%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/audio_dma.cpp.obj
[ 18%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/audio_stats_collector.cpp.obj
[ 18%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/utility.cpp.obj
[ 18%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/chibios_cpp.cpp.obj
[ 19%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/debug.cpp.obj
[ 19%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/gcc.cpp.obj
[ 19%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/tone_gen.cpp.obj
[ 19%] Built target baseband_shared
[ 20%] Building CXX object firmware/baseband/CMakeFiles/baseband_ert.elf.dir/proc_ert.cpp.obj
[ 20%] Linking CXX executable baseband_ert.elf
[ 20%] Built target baseband_ert.elf
[ 21%] Creating directories for 'libopencm3_hackrf_usb'
[ 21%] No download step for 'libopencm3_hackrf_usb'
[ 21%] No update step for 'libopencm3_hackrf_usb'
[ 21%] No patch step for 'libopencm3_hackrf_usb'
[ 21%] No configure step for 'libopencm3_hackrf_usb'
[ 21%] Performing build step for 'libopencm3_hackrf_usb'
  GENHDR  include/libopencm3/sam/3x/irq.yaml
  GENHDR  include/libopencm3/sam/3n/irq.yaml
  GENHDR  include/libopencm3/lpc17xx/irq.yaml
  GENHDR  include/libopencm3/lpc13xx/irq.yaml
  GENHDR  include/libopencm3/lpc43xx/m0/irq.yaml
  GENHDR  include/libopencm3/lpc43xx/m4/irq.yaml
  GENHDR  include/libopencm3/stm32/f4/irq.yaml
  GENHDR  include/libopencm3/stm32/f3/irq.yaml
  GENHDR  include/libopencm3/stm32/f2/irq.yaml
  GENHDR  include/libopencm3/stm32/f0/irq.yaml
  GENHDR  include/libopencm3/stm32/l1/irq.yaml
  GENHDR  include/libopencm3/stm32/f1/irq.yaml
  GENHDR  include/libopencm3/lm3s/irq.yaml
  GENHDR  include/libopencm3/efm32/efm32gg/irq.yaml
  GENHDR  include/libopencm3/efm32/efm32g/irq.yaml
  GENHDR  include/libopencm3/efm32/efm32tg/irq.yaml
  GENHDR  include/libopencm3/efm32/efm32lg/irq.yaml
  BUILD   lib/stm32/f0
make[5]: *** No rule to make target `/Users/sck/bin/gcc-arm-none-eabi-9-2019-q4-major/lib/gcc/arm-none-eabi/9.2.1/include/stdint.h', needed by `flash.o'.  Stop.
make[4]: *** [lib/stm32/f0] Error 2
make[3]: *** [hackrf/firmware/hackrf_usb/libopencm3_hackrf_usb-prefix/src/libopencm3_hackrf_usb-stamp/libopencm3_hackrf_usb-build] Error 2
make[2]: *** [hackrf/firmware/hackrf_usb/CMakeFiles/libopencm3_hackrf_usb.dir/all] Error 2
make[1]: *** [firmware/CMakeFiles/firmware.dir/rule] Error 2
make: *** [firmware] Error 2
iBiko:build sck$ 

That's weird, missing stdint.h? Maybe I should use a newer update of the compiler, so let's download and try again using gcc-arm-none-eabi-10-2020-q4-major and cmake version 3.21.4 on MacOS 11.6...

iBiko:~ sck$ cd src/portapack-mayhem/
iBiko:portapack-mayhem sck$ git pull && rm -rf build && git submodule update --init --recursive && export PATH=~/bin/gcc-arm-none-eabi-10-2020-q4-major/bin:${PATH} && mkdir build && cd build && cmake .. && make firmware && hackrf_spiflash -w firmware/portapack-h1_h2-mayhem.bin
Already up to date.
CMake Deprecation Warning at CMakeLists.txt:21 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Cross-compiling with the gcc-arm-embedded toolchain
-- Toolchain prefix: /Users/sck/bin/gcc-arm-none-eabi-10-2020-q4-major/arm-none-eabi
-- Cross-compiling with the gcc-arm-embedded toolchain
-- Toolchain prefix: /Users/sck/bin/gcc-arm-none-eabi-10-2020-q4-major/arm-none-eabi
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/sck/bin/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/sck/bin/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The ASM compiler identification is GNU
-- Found assembler: /Users/sck/bin/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/sck/src/portapack-mayhem/build
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/ports/GCC/ARMCMx/crt0.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/ports/GCC/ARMCMx/LPC43xx_M4/vectors.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/ports/GCC/ARMCMx/chcore.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/ports/GCC/ARMCMx/chcore_v7m.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/ports/common/ARMCMx/nvic.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chsys.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chdebug.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chlists.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chvt.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chschd.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chthreads.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chdynamic.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chregistry.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chsem.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmtx.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chcond.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chevents.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmsg.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmboxes.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chqueues.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmemcore.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chheap.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmempools.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/test.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testthd.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testsem.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testmtx.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testmsg.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testmbox.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testevt.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testheap.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testpools.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testdyn.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testqueues.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testbmk.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/hal.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/adc.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/can.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/ext.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/gpt.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/i2c.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/icu.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/mac.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/mmc_spi.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/mmcsd.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/pal.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/pwm.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/rtc.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/sdc.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/serial.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/serial_usb.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/spi.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/tm.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/uart.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/usb.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx_M4/hal_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/gpt_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/i2c_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/pal_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/rtc_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/sdc_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/serial_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/spi_lld.c.obj
[ 12%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/lpc43xx.c.obj
[ 12%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/boards/PORTAPACK_BASEBAND/board.c.obj
[ 12%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband.cpp.obj
[ 12%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/message_queue.cpp.obj
[ 12%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/event.cpp.obj
[ 12%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/event_m4.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/thread_wait.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/gpdma.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband_dma.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/baseband_sgpio.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/portapack_shared_memory.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/buffer.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband_thread.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband_processor.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband_stats_collector.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_decimate.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_demodulate.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_hilbert.cpp.obj
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_hilbert.cpp: In constructor 'dsp::HilbertTransform::HilbertTransform()':
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_hilbert.cpp:27:1: warning: 'dsp::HilbertTransform::sos_i' should be initialized in the member initialization list [-Weffc++]
   27 | HilbertTransform::HilbertTransform() {
      | ^~~~~~~~~~~~~~~~
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_hilbert.cpp:27:1: warning: 'dsp::HilbertTransform::sos_q' should be initialized in the member initialization list [-Weffc++]
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_modulate.cpp.obj
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_goertzel.cpp.obj
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_goertzel.cpp: In member function 'float dsp::GoertzelDetector::execute(const buffer_s16_t&)':
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_goertzel.cpp:44:6: warning: array subscript 2 is above array bounds of 'int16_t [2]' {aka 'short int [2]'} [-Warray-bounds]
   44 |   s[2] = s[1];
      |   ~~~^
In file included from /Users/sck/src/portapack-mayhem/firmware/baseband/dsp_goertzel.cpp:23:
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_goertzel.hpp:38:10: note: while referencing 'dsp::GoertzelDetector::s'
   38 |  int16_t s[2] { 0 };
      |          ^
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/matched_filter.cpp.obj
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/spectrum_collector.cpp.obj
/Users/sck/src/portapack-mayhem/firmware/baseband/spectrum_collector.cpp: In instantiation of 'typename T::value_type spectrum_window_hamming_3(const T&, size_t) [with T = std::array<std::complex<float>, 256>; typename T::value_type = std::complex<float>; size_t = unsigned int]':
/Users/sck/src/portapack-mayhem/firmware/baseband/spectrum_collector.cpp:145:79:   required from here
/Users/sck/src/portapack-mayhem/firmware/baseband/spectrum_collector.cpp:116:28: error: non-constant condition for static assertion
  116 |  static_assert(power_of_two(s.size()), "Array size must be power of 2");
      |                ~~~~~~~~~~~~^~~~~~~~~~
/Users/sck/src/portapack-mayhem/firmware/baseband/spectrum_collector.cpp:116:28: error: 's' is not a constant expression
/Users/sck/src/portapack-mayhem/firmware/baseband/spectrum_collector.cpp:117:19: error: 's' is not a constant expression
  117 |  constexpr size_t mask = s.size() - 1;
      |                   ^~~~
make[3]: *** [firmware/baseband/CMakeFiles/baseband_shared.dir/spectrum_collector.cpp.obj] Error 1
make[2]: *** [firmware/baseband/CMakeFiles/baseband_shared.dir/all] Error 2
make[1]: *** [firmware/CMakeFiles/firmware.dir/rule] Error 2
make: *** [firmware] Error 2
iBiko:build sck$ 

Okay, that's a different error than missing stdint.h. Hmmm, maybe I should use the absolute latest update, so download and try using gcc-arm-none-eabi-10.3-2021.10 and cmake version 3.21.4 on MacOS 11.6...

iBiko:portapack-mayhem sck$  git pull && rm -rf build && git submodule update --init --recursive && export PATH=~/bin/gcc-arm-none-eabi-10.3-2021.10/bin:${PATH} && mkdir build && cd build && cmake .. && make firmware && hackrf_spiflash -w firmware/portapack-h1_h2-mayhem.bin
Already up to date.
CMake Deprecation Warning at CMakeLists.txt:21 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Cross-compiling with the gcc-arm-embedded toolchain
-- Toolchain prefix: /Users/sck/bin/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi
-- Cross-compiling with the gcc-arm-embedded toolchain
-- Toolchain prefix: /Users/sck/bin/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi
-- The C compiler identification is GNU 10.3.1
-- The CXX compiler identification is GNU 10.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/sck/bin/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/sck/bin/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The ASM compiler identification is GNU
-- Found assembler: /Users/sck/bin/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/sck/src/portapack-mayhem/build
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/ports/GCC/ARMCMx/crt0.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/ports/GCC/ARMCMx/LPC43xx_M4/vectors.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/ports/GCC/ARMCMx/chcore.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/ports/GCC/ARMCMx/chcore_v7m.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/ports/common/ARMCMx/nvic.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chsys.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chdebug.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chlists.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chvt.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chschd.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chthreads.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chdynamic.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chregistry.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chsem.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmtx.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chcond.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chevents.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmsg.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmboxes.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chqueues.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmemcore.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chheap.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmempools.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/test.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testthd.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testsem.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testmtx.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testmsg.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testmbox.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testevt.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testheap.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testpools.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testdyn.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testqueues.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testbmk.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/hal.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/adc.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/can.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/ext.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/gpt.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/i2c.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/icu.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/mac.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/mmc_spi.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/mmcsd.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/pal.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/pwm.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/rtc.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/sdc.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/serial.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/serial_usb.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/spi.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/tm.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/uart.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/usb.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx_M4/hal_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/gpt_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/i2c_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/pal_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/rtc_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/sdc_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/serial_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/spi_lld.c.obj
[ 12%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/lpc43xx.c.obj
[ 12%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/boards/PORTAPACK_BASEBAND/board.c.obj
[ 12%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband.cpp.obj
[ 12%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/message_queue.cpp.obj
[ 12%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/event.cpp.obj
[ 12%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/event_m4.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/thread_wait.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/gpdma.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband_dma.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/baseband_sgpio.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/portapack_shared_memory.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/buffer.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband_thread.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband_processor.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband_stats_collector.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_decimate.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_demodulate.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_hilbert.cpp.obj
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_hilbert.cpp: In constructor 'dsp::HilbertTransform::HilbertTransform()':
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_hilbert.cpp:27:1: warning: 'dsp::HilbertTransform::sos_i' should be initialized in the member initialization list [-Weffc++]
   27 | HilbertTransform::HilbertTransform() {
      | ^~~~~~~~~~~~~~~~
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_hilbert.cpp:27:1: warning: 'dsp::HilbertTransform::sos_q' should be initialized in the member initialization list [-Weffc++]
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_modulate.cpp.obj
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_goertzel.cpp.obj
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_goertzel.cpp: In member function 'float dsp::GoertzelDetector::execute(const buffer_s16_t&)':
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_goertzel.cpp:44:6: warning: array subscript 2 is above array bounds of 'int16_t [2]' {aka 'short int [2]'} [-Warray-bounds]
   44 |   s[2] = s[1];
      |   ~~~^
In file included from /Users/sck/src/portapack-mayhem/firmware/baseband/dsp_goertzel.cpp:23:
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_goertzel.hpp:38:10: note: while referencing 'dsp::GoertzelDetector::s'
   38 |  int16_t s[2] { 0 };
      |          ^
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/matched_filter.cpp.obj
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/spectrum_collector.cpp.obj
/Users/sck/src/portapack-mayhem/firmware/baseband/spectrum_collector.cpp: In instantiation of 'typename T::value_type spectrum_window_hamming_3(const T&, size_t) [with T = std::array<std::complex<float>, 256>; typename T::value_type = std::complex<float>; size_t = unsigned int]':
/Users/sck/src/portapack-mayhem/firmware/baseband/spectrum_collector.cpp:145:79:   required from here
/Users/sck/src/portapack-mayhem/firmware/baseband/spectrum_collector.cpp:116:28: error: non-constant condition for static assertion
  116 |  static_assert(power_of_two(s.size()), "Array size must be power of 2");
      |                ~~~~~~~~~~~~^~~~~~~~~~
/Users/sck/src/portapack-mayhem/firmware/baseband/spectrum_collector.cpp:116:28: error: 's' is not a constant expression
/Users/sck/src/portapack-mayhem/firmware/baseband/spectrum_collector.cpp:117:19: error: 's' is not a constant expression
  117 |  constexpr size_t mask = s.size() - 1;
      |                   ^~~~
make[3]: *** [firmware/baseband/CMakeFiles/baseband_shared.dir/spectrum_collector.cpp.obj] Error 1
make[2]: *** [firmware/baseband/CMakeFiles/baseband_shared.dir/all] Error 2
make[1]: *** [firmware/CMakeFiles/firmware.dir/rule] Error 2
make: *** [firmware] Error 2
iBiko:build sck$ 

Same compile error as previously. Any suggestions on where to start?

@sck-nogas sck-nogas added the Bug Something isn't working label Nov 2, 2021
@sck-nogas
Copy link
Author

Forgot to include....

iBiko:portapack-mayhem sck$ git status
On branch master
Your branch is up to date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	firmware/tools/airlines.db
	sdcard/ADSB/airlines.txt

no changes added to commit (use "git add" and/or "git commit -a")
iBiko:portapack-mayhem sck$ 

And

iBiko:portapack-mayhem sck$ cmake --version
cmake version 3.21.4

CMake suite maintained and supported by Kitware (kitware.com/cmake).
iBiko:portapack-mayhem sck$ 

@Brumi-2021
Copy link
Contributor

Hello are you compiling with gcc version 10 ?
The current version 1.4.1 still shows the same compiling errors than Mayhem 1.4.0 with gcc version 10 . You should wait till next version release Mayhem 1.4.2 (coming soon) or apply manually my PR , #419

@sck-nogas
Copy link
Author

I tried to compile with version 9.3.1 , version 10.2.1, and version 10.3.1.

@Brumi-2021
Copy link
Contributor

Hi , and when you tried to compile , 9.3.1 , you also followed all the listed steps , (https://github.com/eried/portapack-mayhem/wiki/Compile-firmware), including that one :

  1. Replace the python version in libopencm3 to use python3 (as user)

sed -i 's/env python/env python3/g' /opt/portapack-mayhem/hackrf/firmware/libopencm3/scripts/irq2nvic_h

@sck-nogas
Copy link
Author

Don't think that will change anything, since I'm on MacOS and not Debian, and that...

iBiko:~ sck$ python -V
Python 3.7.12
iBiko:~ sck$ python3 -V
Python 3.7.12
iBiko:~ sck$ 

But, I'm game to try...

Biko:portapack-mayhem sck$ grep "env python" hackrf/firmware/libopencm3/scripts/irq2nvic_h 
#!/usr/bin/env python
iBiko:portapack-mayhem sck$ gsed -i "s/env python/env python3/g" hackrf/firmware/libopencm3/scripts/irq2nvic_h 
iBiko:portapack-mayhem sck$ grep "env python" hackrf/firmware/libopencm3/scripts/irq2nvic_h 
#!/usr/bin/env python3
iBiko:portapack-mayhem sck$ 

Different failure this time...

iBiko:portapack-mayhem sck$ git pull && rm -rf build && git submodule update --init --recursive && export PATH=~/bin/gcc-arm-none-eabi-9-2020-q2-update/bin:${PATH} && mkdir build && cd build && cmake .. && make firmware && hackrf_spiflash -w firmware/portapack-h1_h2-mayhem.bin
Already up to date.
CMake Deprecation Warning at CMakeLists.txt:21 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Cross-compiling with the gcc-arm-embedded toolchain
-- Toolchain prefix: /Users/sck/bin/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi
-- Cross-compiling with the gcc-arm-embedded toolchain
-- Toolchain prefix: /Users/sck/bin/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi
-- The C compiler identification is GNU 9.3.1
-- The CXX compiler identification is GNU 9.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/sck/bin/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/sck/bin/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The ASM compiler identification is GNU
-- Found assembler: /Users/sck/bin/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/sck/src/portapack-mayhem/build
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/ports/GCC/ARMCMx/crt0.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/ports/GCC/ARMCMx/LPC43xx_M4/vectors.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/ports/GCC/ARMCMx/chcore.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/ports/GCC/ARMCMx/chcore_v7m.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/ports/common/ARMCMx/nvic.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chsys.c.obj
[  1%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chdebug.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chlists.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chvt.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chschd.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chthreads.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chdynamic.c.obj
[  2%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chregistry.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chsem.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmtx.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chcond.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chevents.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmsg.c.obj
[  3%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmboxes.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chqueues.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmemcore.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chheap.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/kernel/src/chmempools.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/test.c.obj
[  4%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testthd.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testsem.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testmtx.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testmsg.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testmbox.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testevt.c.obj
[  5%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testheap.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testpools.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testdyn.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testqueues.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/test/testbmk.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/hal.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/adc.c.obj
[  6%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/can.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/ext.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/gpt.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/i2c.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/icu.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/mac.c.obj
[  7%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/mmc_spi.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/mmcsd.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/pal.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/pwm.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/rtc.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/sdc.c.obj
[  8%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/serial.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/serial_usb.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/spi.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/tm.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/uart.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios/os/hal/src/usb.c.obj
[  9%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx_M4/hal_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/gpt_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/i2c_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/pal_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/rtc_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/sdc_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/serial_lld.c.obj
[ 10%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/spi_lld.c.obj
[ 12%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/os/hal/platforms/LPC43xx/lpc43xx.c.obj
[ 12%] Building C object firmware/baseband/CMakeFiles/baseband_shared.dir/__/chibios-portapack/boards/PORTAPACK_BASEBAND/board.c.obj
[ 12%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband.cpp.obj
[ 12%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/message_queue.cpp.obj
[ 12%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/event.cpp.obj
[ 12%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/event_m4.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/thread_wait.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/gpdma.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband_dma.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/baseband_sgpio.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/portapack_shared_memory.cpp.obj
[ 13%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/buffer.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband_thread.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband_processor.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/baseband_stats_collector.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_decimate.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_demodulate.cpp.obj
[ 14%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_hilbert.cpp.obj
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_hilbert.cpp: In constructor 'dsp::HilbertTransform::HilbertTransform()':
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_hilbert.cpp:27:1: warning: 'dsp::HilbertTransform::sos_i' should be initialized in the member initialization list [-Weffc++]
   27 | HilbertTransform::HilbertTransform() {
      | ^~~~~~~~~~~~~~~~
/Users/sck/src/portapack-mayhem/firmware/baseband/dsp_hilbert.cpp:27:1: warning: 'dsp::HilbertTransform::sos_q' should be initialized in the member initialization list [-Weffc++]
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_modulate.cpp.obj
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_goertzel.cpp.obj
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/matched_filter.cpp.obj
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/spectrum_collector.cpp.obj
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/tv_collector.cpp.obj
[ 15%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/stream_input.cpp.obj
[ 16%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/stream_output.cpp.obj
[ 16%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/dsp_squelch.cpp.obj
[ 16%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/clock_recovery.cpp.obj
[ 16%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/packet_builder.cpp.obj
[ 16%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/dsp_fft.cpp.obj
[ 16%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/dsp_fir_taps.cpp.obj
[ 16%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/dsp_iir.cpp.obj
[ 17%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/dsp_sos.cpp.obj
[ 17%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/fxpt_atan2.cpp.obj
[ 17%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/rssi.cpp.obj
[ 17%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/rssi_dma.cpp.obj
[ 17%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/rssi_thread.cpp.obj
[ 17%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/audio_compressor.cpp.obj
[ 18%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/audio_output.cpp.obj
[ 18%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/audio_input.cpp.obj
[ 18%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/audio_dma.cpp.obj
[ 18%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/audio_stats_collector.cpp.obj
[ 18%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/utility.cpp.obj
[ 18%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/chibios_cpp.cpp.obj
[ 19%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/debug.cpp.obj
[ 19%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/__/common/gcc.cpp.obj
[ 19%] Building CXX object firmware/baseband/CMakeFiles/baseband_shared.dir/tone_gen.cpp.obj
[ 19%] Built target baseband_shared
[ 19%] Building CXX object firmware/baseband/CMakeFiles/baseband_capture.elf.dir/proc_capture.cpp.obj
[ 19%] Linking CXX executable baseband_capture.elf
[ 19%] Built target baseband_capture.elf
[ 19%] Building CXX object firmware/baseband/CMakeFiles/baseband_am_tv.elf.dir/proc_am_tv.cpp.obj
[ 19%] Linking CXX executable baseband_am_tv.elf
[ 19%] Built target baseband_am_tv.elf
[ 19%] Building CXX object firmware/baseband/CMakeFiles/baseband_audio_tx.elf.dir/proc_audiotx.cpp.obj
[ 19%] Linking CXX executable baseband_audio_tx.elf
[ 19%] Built target baseband_audio_tx.elf
[ 19%] Building CXX object firmware/baseband/CMakeFiles/baseband_fsktx.elf.dir/proc_fsk.cpp.obj
[ 19%] Linking CXX executable baseband_fsktx.elf
[ 19%] Built target baseband_fsktx.elf
[ 19%] Building CXX object firmware/baseband/CMakeFiles/baseband_am_audio.elf.dir/proc_am_audio.cpp.obj
[ 19%] Linking CXX executable baseband_am_audio.elf
[ 19%] Built target baseband_am_audio.elf
[ 19%] Building CXX object firmware/baseband/CMakeFiles/baseband_ook.elf.dir/proc_ook.cpp.obj
[ 19%] Linking CXX executable baseband_ook.elf
[ 19%] Built target baseband_ook.elf
[ 19%] Building CXX object firmware/baseband/CMakeFiles/baseband_aprsrx.elf.dir/proc_aprsrx.cpp.obj
In file included from /Users/sck/src/portapack-mayhem/firmware/baseband/proc_aprsrx.cpp:23:
/Users/sck/src/portapack-mayhem/firmware/baseband/proc_aprsrx.hpp: In instantiation of 'typename std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp = APRSRxProcessor; _Args = {}; typename std::_MakeUniq<_Tp>::__single_object = std::unique_ptr<APRSRxProcessor, std::default_delete<APRSRxProcessor> >]':
/Users/sck/src/portapack-mayhem/firmware/baseband/proc_aprsrx.cpp:254:71:   required from here
/Users/sck/src/portapack-mayhem/firmware/baseband/proc_aprsrx.hpp:76:7: warning: 'APRSRxProcessor::last_bit' should be initialized in the member initialization list [-Weffc++]
   76 | class APRSRxProcessor : public BasebandProcessor {
      |       ^~~~~~~~~~~~~~~
/Users/sck/src/portapack-mayhem/firmware/baseband/proc_aprsrx.hpp:76:7: warning: 'APRSRxProcessor::aprs_packet' should be initialized in the member initialization list [-Weffc++]
In file included from /Users/sck/src/portapack-mayhem/firmware/common/message.hpp:39,
                 from /Users/sck/src/portapack-mayhem/firmware/baseband/channel_stats_collector.hpp:26,
                 from /Users/sck/src/portapack-mayhem/firmware/baseband/baseband_processor.hpp:27,
                 from /Users/sck/src/portapack-mayhem/firmware/baseband/proc_aprsrx.hpp:26,
                 from /Users/sck/src/portapack-mayhem/firmware/baseband/proc_aprsrx.cpp:23:
/Users/sck/src/portapack-mayhem/firmware/common/aprs_packet.hpp:49:7: warning: 'aprs::APRSPacket::payload_size' should be initialized in the member initialization list [-Weffc++]
   49 | class APRSPacket {
      |       ^~~~~~~~~~
In file included from /Users/sck/src/portapack-mayhem/firmware/baseband/proc_aprsrx.cpp:23:
/Users/sck/src/portapack-mayhem/firmware/baseband/proc_aprsrx.hpp:76:7: note: synthesized method 'aprs::APRSPacket::APRSPacket()' first required here
   76 | class APRSRxProcessor : public BasebandProcessor {
      |       ^~~~~~~~~~~~~~~
In file included from /Users/sck/bin/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/include/c++/9.3.1/memory:80,
                 from /Users/sck/src/portapack-mayhem/firmware/common/fifo.hpp:28,
                 from /Users/sck/src/portapack-mayhem/firmware/common/message.hpp:45,
                 from /Users/sck/src/portapack-mayhem/firmware/baseband/channel_stats_collector.hpp:26,
                 from /Users/sck/src/portapack-mayhem/firmware/baseband/baseband_processor.hpp:27,
                 from /Users/sck/src/portapack-mayhem/firmware/baseband/proc_aprsrx.hpp:26,
                 from /Users/sck/src/portapack-mayhem/firmware/baseband/proc_aprsrx.cpp:23:
/Users/sck/bin/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/include/c++/9.3.1/bits/unique_ptr.h:857:30: note: synthesized method 'APRSRxProcessor::APRSRxProcessor()' first required here
  857 |     { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 20%] Linking CXX executable baseband_aprsrx.elf
[ 20%] Built target baseband_aprsrx.elf
[ 20%] Building CXX object firmware/baseband/CMakeFiles/baseband_nrfrx.elf.dir/proc_nrfrx.cpp.obj
[ 20%] Linking CXX executable baseband_nrfrx.elf
[ 20%] Built target baseband_nrfrx.elf
[ 20%] Building CXX object firmware/baseband/CMakeFiles/baseband_adsbtx.elf.dir/proc_adsbtx.cpp.obj
[ 21%] Linking CXX executable baseband_adsbtx.elf
[ 21%] Built target baseband_adsbtx.elf
[ 23%] Building CXX object firmware/baseband/CMakeFiles/baseband_pocsag.elf.dir/proc_pocsag.cpp.obj
[ 23%] Linking CXX executable baseband_pocsag.elf
[ 23%] Built target baseband_pocsag.elf
[ 23%] Building CXX object firmware/baseband/CMakeFiles/baseband_afskrx.elf.dir/proc_afskrx.cpp.obj
[ 23%] Linking CXX executable baseband_afskrx.elf
[ 23%] Built target baseband_afskrx.elf
[ 23%] Building CXX object firmware/baseband/CMakeFiles/baseband_btlerx.elf.dir/proc_btlerx.cpp.obj
[ 23%] Linking CXX executable baseband_btlerx.elf
[ 23%] Built target baseband_btlerx.elf
[ 23%] Building CXX object firmware/baseband/CMakeFiles/baseband_siggen.elf.dir/proc_siggen.cpp.obj
[ 23%] Linking CXX executable baseband_siggen.elf
[ 23%] Built target baseband_siggen.elf
[ 23%] Building CXX object firmware/baseband/CMakeFiles/baseband_adsbrx.elf.dir/proc_adsbrx.cpp.obj
[ 23%] Linking CXX executable baseband_adsbrx.elf
[ 23%] Built target baseband_adsbrx.elf
[ 24%] Building CXX object firmware/baseband/CMakeFiles/baseband_jammer.elf.dir/proc_jammer.cpp.obj
[ 24%] Linking CXX executable baseband_jammer.elf
[ 24%] Built target baseband_jammer.elf
[ 24%] Building CXX object firmware/baseband/CMakeFiles/baseband_acars.elf.dir/proc_acars.cpp.obj
[ 24%] Linking CXX executable baseband_acars.elf
[ 24%] Built target baseband_acars.elf
[ 24%] Building CXX object firmware/baseband/CMakeFiles/baseband_wfm_audio.elf.dir/proc_wfm_audio.cpp.obj
[ 24%] Linking CXX executable baseband_wfm_audio.elf
[ 24%] Built target baseband_wfm_audio.elf
[ 24%] Building CXX object firmware/baseband/CMakeFiles/baseband_wideband_spectrum.elf.dir/proc_wideband_spectrum.cpp.obj
[ 24%] Linking CXX executable baseband_wideband_spectrum.elf
[ 24%] Built target baseband_wideband_spectrum.elf
[ 25%] Creating directories for 'libopencm3_hackrf_usb'
[ 25%] No download step for 'libopencm3_hackrf_usb'
[ 25%] No update step for 'libopencm3_hackrf_usb'
[ 25%] No patch step for 'libopencm3_hackrf_usb'
[ 25%] No configure step for 'libopencm3_hackrf_usb'
[ 25%] Performing build step for 'libopencm3_hackrf_usb'
  GENHDR  include/libopencm3/sam/3x/irq.yaml
  GENHDR  include/libopencm3/sam/3n/irq.yaml
  GENHDR  include/libopencm3/lpc17xx/irq.yaml
  GENHDR  include/libopencm3/lpc13xx/irq.yaml
  GENHDR  include/libopencm3/lpc43xx/m0/irq.yaml
  GENHDR  include/libopencm3/lpc43xx/m4/irq.yaml
  GENHDR  include/libopencm3/stm32/f4/irq.yaml
  GENHDR  include/libopencm3/stm32/f3/irq.yaml
  GENHDR  include/libopencm3/stm32/f2/irq.yaml
  GENHDR  include/libopencm3/stm32/f0/irq.yaml
  GENHDR  include/libopencm3/stm32/l1/irq.yaml
  GENHDR  include/libopencm3/stm32/f1/irq.yaml
  GENHDR  include/libopencm3/lm3s/irq.yaml
  GENHDR  include/libopencm3/efm32/efm32gg/irq.yaml
  GENHDR  include/libopencm3/efm32/efm32g/irq.yaml
  GENHDR  include/libopencm3/efm32/efm32tg/irq.yaml
  GENHDR  include/libopencm3/efm32/efm32lg/irq.yaml
  BUILD   lib/stm32/f0
make[5]: *** No rule to make target `/Users/sck/bin/gcc-arm-none-eabi-9-2019-q4-major/lib/gcc/arm-none-eabi/9.2.1/include/stdint.h', needed by `flash.o'.  Stop.
make[4]: *** [lib/stm32/f0] Error 2
make[3]: *** [hackrf/firmware/hackrf_usb/libopencm3_hackrf_usb-prefix/src/libopencm3_hackrf_usb-stamp/libopencm3_hackrf_usb-build] Error 2
make[2]: *** [hackrf/firmware/hackrf_usb/CMakeFiles/libopencm3_hackrf_usb.dir/all] Error 2
make[1]: *** [firmware/CMakeFiles/firmware.dir/rule] Error 2
make: *** [firmware] Error 2
iBiko:build sck$ 

@Brumi-2021
Copy link
Contributor

Hi, now, as you said , different compiler errors, getting closer !
I suggest you, to take care one by one of the errors,. ex, that one , *** No rule to make target `,

In my case, I am also not using Debian (same as you) , but eventhough , I am using Gentoo distro and it is also linux , therefore, I followed all the steps that I need.. basically from the (3) onwards, checking carefully one by one ,if they had sense or not, and if the directory path folders were exactly the same or not ... And eventually I am compiling it with gcc-10.2.0 very fast , withouth any problems. (just adding and merging my commented PR)

Then same advise , pls follow previous Mayhem compile wiki guide , and I hope and believe that you should be able to compile Mayhem with gcc 9 without any error . (even some warnings, that you can ignore ) .

If not , we should better ask additional help , from other more advanced linux Mac user help .

@sck-nogas
Copy link
Author

Okay, this was strange (but it's working now!)...

On my Mac, the 'git status' showed that I was in sync and had no "dangling bits". BUT, there was some dangling cmake history cruft somewhere since I was compiling with "gcc-arm-none-eabi-9-2020-q2-update" but the error was it was trying to include things from "gcc-arm-none-eabi-9-2019-q4-major"...

So, this was the working sequence to compile on MacOS using gcc-arm-none-eabi-9-2020-q2-update for me...

  1. cd src # or wherever you keep the sourcecode for this...
  2. rm -rf portapack-mayhem # Blow away the Old directory
  3. git clone --recurse-submodules https://github.com/eried/portapack-mayhem.git # Bring down the new stuff
  4. cd portapack-mayhem # switch into the directory
  5. git checkout master # To switch from next to Master for version number update (otherwise it will still say version 1.4.0 on your portapack)
  6. export PATH=~/bin/gcc-arm-none-eabi-9-2020-q2-update/bin:${PATH} # Add the compiler to my path
  7. cd firmware
  8. rm -rf build && mkdir build && cd build # Make sure build dir is clean
  9. cmake -B./ -S../../ # do the cmake
  10. make firmware # make
  11. hackrf_spiflash -w firmware/portapack-h1_h2-mayhem.bin # copy the firmware over

Still can't compile with gcc-arm-none-eabi-10.3-2021.10 though. But, did not expect it to, based on Brumi's comments/PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants