Closed Conaras closed 4 years ago
Hi, I'm also using Ubuntu 20.04 and am not getting this problem. Did you change any cmake variables? And which version of make are you using? Just trying to reproduce the problem on my machine.
I am using GNU Make 4.2.1 version and cmake 3.16.3 version and the cmake command I've typed is the following: cmake ../dash7-ap-open-source-stack/stack/ -DAPP_GATEWAY=y -DAPP_SENSOR_PUSH=y -DTOOLCHAIN_DIR=../gcc-arm-none-eabi-9-2020-q2-update -DAPP_SENSOR_PULL=y -DAPP_SENSOR_ACTION=y
Στις Τετ, 21 Οκτ 2020 στις 5:48 μ.μ., ο/η LOorts-Aloxy < notifications@github.com> έγραψε:
Hi, I'm also using Ubuntu 20.04 and am not getting this problem. Did you change any cmake variables and which version of make are you using? Just trying to reproduce the problem on my machine.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MOSAIC-LoPoW/dash7-ap-open-source-stack/issues/96#issuecomment-713631981, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMB6L6M4TV2H3SPH3CGBL5DSL3YEVANCNFSM4SZ3IPKQ .
In the error output it shows it is using "/usr/bin/objcopy" which is the native toolchain, not the ARM one (it should be using "arm-none-eabi-objcopy" instead) so something is wrong with ARM toolchain detection.
The docs (http://mosaic-lopow.github.io/dash7-ap-open-source-stack/docs/building/ ) assume that the toolchain is in your PATH, is this the case for you?
Can you paste the full output starting from a clean build dir please?
I'm sorry for the late response but i was experiencing some technical issues with my pc.This is the output when i run make in a clean directory after running cmake ../dash7-ap-open-source-stack/stack -DAPP_GATEWAY=y -DAPP_SENSOR_PUSH=y -DAPP_SENSOR_PULL=y -DTOOLCHAIN_DIR=../gcc-arm-none-eabi-9-2020-q2-update:
Scanning dependencies of target CHIP_SX127X [ 1%] Building C object framework/hal/platforms/platform/chips/sx127x/CMakeFiles/CHIP_SX127X.dir/sx127x.c.obj [ 1%] Built target CHIP_SX127X Scanning dependencies of target CHIP_STM32L0XX [ 2%] Building ASM object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/startup/startup_STM32L072xx.s.obj [ 3%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/stm32l0xx_hal_msp.c.obj [ 4%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/system_stm32l0xx.c.obj [ 5%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal.c.obj [ 6%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_cortex.c.obj [ 7%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_flash.c.obj [ 8%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_flash_ex.c.obj [ 10%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_gpio.c.obj [ 11%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_i2c.c.obj [ 12%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_iwdg.c.obj [ 13%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_pwr.c.obj [ 14%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_pwr_ex.c.obj [ 15%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_rcc.c.obj [ 16%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_rcc_ex.c.obj [ 17%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_rtc.c.obj [ 19%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_rtc_ex.c.obj [ 20%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_spi.c.obj [ 21%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_tim.c.obj [ 22%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_tim_ex.c.obj [ 23%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_lptim.c.obj [ 24%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_uart.c.obj [ 25%] Building C object framework/hal/platforms/platform/chips/stm32l0xx/CMakeFiles/CHIP_STM32L0XX.dir/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_ll_gpio.c.obj [ 25%] Built target CHIP_STM32L0XX Scanning dependencies of target CHIP_STM32_COMMON [ 26%] Building C object framework/hal/platforms/platform/chips/stm32_common/CMakeFiles/CHIP_STM32_COMMON.dir/stm32_common_atomic.c.obj [ 28%] Building C object framework/hal/platforms/platform/chips/stm32_common/CMakeFiles/CHIP_STM32_COMMON.dir/stm32_common_gpio.c.obj [ 29%] Building C object framework/hal/platforms/platform/chips/stm32_common/CMakeFiles/CHIP_STM32_COMMON.dir/stm32_common_i2c.c.obj [ 30%] Building C object framework/hal/platforms/platform/chips/stm32_common/CMakeFiles/CHIP_STM32_COMMON.dir/stm32_common_mcu.c.obj [ 31%] Building C object framework/hal/platforms/platform/chips/stm32_common/CMakeFiles/CHIP_STM32_COMMON.dir/stm32_common_spi.c.obj [ 32%] Building C object framework/hal/platforms/platform/chips/stm32_common/CMakeFiles/CHIP_STM32_COMMON.dir/stm32_common_system.c.obj [ 33%] Building C object framework/hal/platforms/platform/chips/stm32_common/CMakeFiles/CHIP_STM32_COMMON.dir/stm32_common_timer.c.obj [ 34%] Building C object framework/hal/platforms/platform/chips/stm32_common/CMakeFiles/CHIP_STM32_COMMON.dir/stm32_common_rtctimer.c.obj [ 35%] Building C object framework/hal/platforms/platform/chips/stm32_common/CMakeFiles/CHIP_STM32_COMMON.dir/stm32_common_uart.c.obj [ 37%] Building C object framework/hal/platforms/platform/chips/stm32_common/CMakeFiles/CHIP_STM32_COMMON.dir/stm32_common_watchdog.c.obj [ 38%] Building C object framework/hal/platforms/platform/chips/stm32_common/CMakeFiles/CHIP_STM32_COMMON.dir/stm32_common_eeprom.c.obj [ 38%] Built target CHIP_STM32_COMMON Scanning dependencies of target PLATFORM [ 39%] Building C object framework/hal/platforms/platform/CMakeFiles/PLATFORM.dir/platf_main.c.obj [ 40%] Building C object framework/hal/platforms/platform/CMakeFiles/PLATFORM.dir/platf_leds.c.obj [ 41%] Building C object framework/hal/platforms/platform/CMakeFiles/PLATFORM.dir/platf_button.c.obj [ 42%] Building C object framework/hal/platforms/platform/CMakeFiles/PLATFORM.dir/platf_debug.c.obj [ 43%] Building C object framework/hal/platforms/platform/CMakeFiles/PLATFORM.dir/libc_overrides.c.obj [ 43%] Built target PLATFORM Scanning dependencies of target FRAMEWORK_COMPONENT_timer [ 44%] Building C object framework/components/timer/CMakeFiles/FRAMEWORK_COMPONENT_timer.dir/timer.c.obj [ 44%] Built target FRAMEWORK_COMPONENT_timer Scanning dependencies of target HAL_COMMON [ 46%] Building C object framework/hal/common/CMakeFiles/HAL_COMMON.dir/hwblockdevice.c.obj [ 47%] Building C object framework/hal/common/CMakeFiles/HAL_COMMON.dir/blockdevice_ram.c.obj [ 47%] Built target HAL_COMMON Scanning dependencies of target FRAMEWORK_COMPONENT_aes [ 48%] Building C object framework/components/aes/CMakeFiles/FRAMEWORK_COMPONENT_aes.dir/aes.c.obj [ 49%] Building C object framework/components/aes/CMakeFiles/FRAMEWORK_COMPONENT_aes.dir/ccm.c.obj [ 49%] Built target FRAMEWORK_COMPONENT_aes Scanning dependencies of target FRAMEWORK_COMPONENT_cli [ 50%] Building C object framework/components/cli/CMakeFiles/FRAMEWORK_COMPONENT_cli.dir/cli.c.obj [ 50%] Built target FRAMEWORK_COMPONENT_cli Scanning dependencies of target FRAMEWORK_COMPONENT_compress [ 51%] Building C object framework/components/compress/CMakeFiles/FRAMEWORK_COMPONENT_compress.dir/compress.c.obj [ 51%] Built target FRAMEWORK_COMPONENT_compress Scanning dependencies of target FRAMEWORK_COMPONENT_console [ 52%] Building C object framework/components/console/CMakeFiles/FRAMEWORK_COMPONENT_console.dir/console.c.obj [ 52%] Built target FRAMEWORK_COMPONENT_console Scanning dependencies of target FRAMEWORK_COMPONENT_crc [ 53%] Building C object framework/components/crc/CMakeFiles/FRAMEWORK_COMPONENT_crc.dir/crc.c.obj [ 53%] Built target FRAMEWORK_COMPONENT_crc Scanning dependencies of target FRAMEWORK_COMPONENT_fec [ 55%] Building C object framework/components/fec/CMakeFiles/FRAMEWORK_COMPONENT_fec.dir/fec.c.obj [ 55%] Built target FRAMEWORK_COMPONENT_fec Scanning dependencies of target FRAMEWORK_COMPONENT_fifo [ 56%] Building C object framework/components/fifo/CMakeFiles/FRAMEWORK_COMPONENT_fifo.dir/fifo.c.obj [ 56%] Built target FRAMEWORK_COMPONENT_fifo Scanning dependencies of target FRAMEWORK_COMPONENT_fs [ 57%] Building C object framework/components/fs/CMakeFiles/FRAMEWORK_COMPONENT_fs.dir/fs.c.obj [ 57%] Built target FRAMEWORK_COMPONENT_fs Scanning dependencies of target FRAMEWORK_COMPONENT_log [ 58%] Building C object framework/components/log/CMakeFiles/FRAMEWORK_COMPONENT_log.dir/log.c.obj [ 58%] Built target FRAMEWORK_COMPONENT_log Scanning dependencies of target FRAMEWORK_COMPONENT_modem_interface [ 59%] Building C object framework/components/modem_interface/CMakeFiles/FRAMEWORK_COMPONENT_modem_interface.dir/modem_interface.c.obj [ 59%] Built target FRAMEWORK_COMPONENT_modem_interface Scanning dependencies of target FRAMEWORK_COMPONENT_node_globals [ 60%] Building C object framework/components/node_globals/CMakeFiles/FRAMEWORK_COMPONENT_node_globals.dir/ng.c.obj [ 60%] Built target FRAMEWORK_COMPONENT_node_globals Scanning dependencies of target FRAMEWORK_COMPONENT_pn9 [ 61%] Building C object framework/components/pn9/CMakeFiles/FRAMEWORK_COMPONENT_pn9.dir/pn9.c.obj [ 61%] Built target FRAMEWORK_COMPONENT_pn9 Scanning dependencies of target FRAMEWORK_COMPONENT_random [ 62%] Building C object framework/components/random/CMakeFiles/FRAMEWORK_COMPONENT_random.dir/random.c.obj [ 62%] Built target FRAMEWORK_COMPONENT_random Scanning dependencies of target FRAMEWORK_COMPONENT_scheduler [ 64%] Building C object framework/components/scheduler/CMakeFiles/FRAMEWORK_COMPONENT_scheduler.dir/scheduler.c.obj [ 64%] Built target FRAMEWORK_COMPONENT_scheduler Scanning dependencies of target FRAMEWORK_COMPONENT_segger_rtt [ 65%] Building C object framework/components/segger_rtt/CMakeFiles/FRAMEWORK_COMPONENT_segger_rtt.dir/SEGGER_RTT.c.obj [ 65%] Built target FRAMEWORK_COMPONENT_segger_rtt Scanning dependencies of target FRAMEWORK_COMPONENT_shell [ 66%] Building C object framework/components/shell/CMakeFiles/FRAMEWORK_COMPONENT_shell.dir/shell.c.obj [ 66%] Built target FRAMEWORK_COMPONENT_shell Scanning dependencies of target framework [ 67%] Building C object framework/CMakeFiles/framework.dir/framework_bootstrap.c.obj [ 68%] Linking C static library libframework.a [ 68%] Built target framework Scanning dependencies of target alp [ 69%] Building C object modules/modules/alp/CMakeFiles/alp.dir/alp_layer.c.obj [ 70%] Building C object modules/modules/alp/CMakeFiles/alp.dir/alp.c.obj [ 71%] Building C object modules/modules/alp/CMakeFiles/alp.dir/serial_interface.c.obj [ 73%] Building C object modules/modules/alp/CMakeFiles/alp.dir/d7ap_interface.c.obj [ 74%] Linking C static library libalp.a [ 74%] Built target alp Scanning dependencies of target d7ap [ 75%] Building C object modules/modules/d7ap/CMakeFiles/d7ap.dir/d7ap_stack.c.obj [ 76%] Building C object modules/modules/d7ap/CMakeFiles/d7ap.dir/d7ap.c.obj [ 77%] Building C object modules/modules/d7ap/CMakeFiles/d7ap.dir/d7asp.c.obj [ 78%] Building C object modules/modules/d7ap/CMakeFiles/d7ap.dir/d7atp.c.obj [ 79%] Building C object modules/modules/d7ap/CMakeFiles/d7ap.dir/d7anp.c.obj [ 80%] Building C object modules/modules/d7ap/CMakeFiles/d7ap.dir/engineering_mode.c.obj [ 82%] Building C object modules/modules/d7ap/CMakeFiles/d7ap.dir/packet_queue.c.obj [ 83%] Building C object modules/modules/d7ap/CMakeFiles/d7ap.dir/packet.c.obj [ 84%] Building C object modules/modules/d7ap/CMakeFiles/d7ap.dir/dll.c.obj [ 85%] Building C object modules/modules/d7ap/CMakeFiles/d7ap.dir/phy.c.obj [ 86%] Linking C static library libd7ap.a [ 86%] Built target d7ap Scanning dependencies of target d7ap_fs [ 87%] Building C object modules/modules/d7ap_fs/CMakeFiles/d7ap_fs.dir/d7ap_fs.c.obj [ 88%] Building C object modules/modules/d7ap_fs/CMakeFiles/d7ap_fs.dir///fs/d7ap_fs_data.c.obj [ 89%] Linking C static library libd7ap_fs.a [ 89%] Built target d7ap_fs Scanning dependencies of target gateway.elf [ 91%] Building C object apps/gateway/CMakeFiles/gateway.elf.dir/app.c.obj [ 92%] Building C object apps/gateway/CMakeFiles/gateway.elf.dir/version.c.obj [ 93%] Linking C executable gateway.elf /usr/bin/objcopy: Unable to recognise the format of the input file `gateway.elf' make[2]: [apps/gateway/CMakeFiles/gateway.elf.dir/build.make:106: apps/gateway/gateway.elf] Error 1 make[2]: Deleting file 'apps/gateway/gateway.elf' make[1]: [CMakeFiles/Makefile2:1658: apps/gateway/CMakeFiles/gateway.elf.dir/all] Error 2 make: [Makefile:84: all] Error 2
Στις Τετ, 21 Οκτ 2020 στις 6:06 μ.μ., ο/η glennergeerts < notifications@github.com> έγραψε:
In the error output it shows it is using "/usr/bin/objcopy" which is the native toolchain, not the ARM one (it should be using "arm-none-eabi-objcopy" instead) so something is wrong with ARM toolchain detection.
The docs ( http://mosaic-lopow.github.io/dash7-ap-open-source-stack/docs/building/[1] ) assume that the toolchain is in your PATH, is this the case for you?
Can you paste the full output starting from a clean build dir please?
On Wednesday, October 21, 2020 4:58:11 PM CEST Conaras wrote:
I am using GNU Make 4.2.1 version and cmake 3.16.3 version and the cmakecommand I've typed is the following:cmake ../dash7-ap-open-source-stack/stack/ -DAPP_GATEWAY=y- DAPP_SENSOR_PUSH=y -DTOOLCHAIN_DIR=../gcc-arm-none-eabi-9-2020-q2-update- DAPP_SENSOR_PULL=y -DAPP_SENSOR_ACTION=y
Στις Τετ, 21 Οκτ 2020 στις 5:48 μ.μ., ο/η LOorts-Aloxy < notifications@github.com> έγραψε:
Hi, I'm also using Ubuntu 20.04 and am not getting this problem. Did you> change any cmake variables and which version of make are you using? Just> trying to reproduce the problem on my machine.>> —> You are receiving this because you authored the thread.> Reply to this email directly, view it on GitHub> < https://github.com/MOSAIC-LoPoW/dash7-ap-open-source-stack/issues/96#issuecomment-713631981>,> or unsubscribe> https:// github.com/notifications/unsubscribe-auth/ AMB6L6M4TV2H3SPH3CGBL5DSL3YEVANCNFSM4SZ3IPKQ> .>
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub[2], or unsubscribe[3].[4]
[1] http://mosaic-lopow.github.io/dash7-ap-open-source-stack/docs/building/ [2] https://github.com/MOSAIC-LoPoW/dash7-ap-open-source-stack/issues/ 96#issuecomment-713638662 [3] https://github.com/notifications/unsubscribe-auth/ ABLEMIWXNZIBAXMNHR7LMLTSL3ZIHANCNFSM4SZ3IPKQ [4] https://github.com/notifications/beacon/ ABLEMIV24WRKQ4KJQY7EDQ3SL3ZIHA5CNFSM4SZ3IPK2YY3PNVWWK3TUL52HS4DFVREXG 43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFKEUGBQ.gif
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MOSAIC-LoPoW/dash7-ap-open-source-stack/issues/96#issuecomment-713644934, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMB6L6M4GKJTHEI6HPLET4DSL32I3ANCNFSM4SZ3IPKQ .
Hello! Building of example in ubuntu 20.04 fails. I'm trying to run the make command but it gets stuck at approximately 88 or 90% and the error: "/usr/bin/objcopy: Unable to recognise the format of the input file `gateway.elf' make[2]: [apps/gateway/CMakeFiles/gateway.elf.dir/build.make:106: apps/gateway/gateway.elf] Error 1 make[2]: Deleting file 'apps/gateway/gateway.elf' make[1]: [CMakeFiles/Makefile2:1634: apps/gateway/CMakeFiles/gateway.elf.dir/all] Error 2 make: [Makefile:84: all] Error 2", is printed.