lancaster-university / microbit-v2-samples

CODAL build tools and sample programs for the micro:bit v2.x
MIT License
68 stars 88 forks source link

linux Assembler messages #4

Closed jhlucky closed 4 years ago

jhlucky commented 4 years ago

Use linux to compile an error. .such as: [ 48%] Building C object libraries/codal-microbit-nrf5sdk/CMakeFiles/codal-microbit-nrf5sdk.dir/nRF5SDK_mods/ble_dfu_bonded.c.o /tmp/ccMAKDog.s: Assembler messages: /tmp/ccMAKDog.s:59: Error: cannot honor width suffix -- `ldr.w r12,=#2' libraries/codal-microbit-nrf5sdk/CMakeFiles/codal-microbit-nrf5sdk.dir/build.make:1190: recipe for target 'libraries/codal-microbit-nrf5sdk/CMakeFiles/codal-microbit-nrf5sdk.dir/nRF5SDK_mods/ble_dfu_bonded.c.o' failed make[2]: [libraries/codal-microbit-nrf5sdk/CMakeFiles/codal-microbit-nrf5sdk.dir/nRF5SDK_mods/ble_dfu_bonded.c.o] Error 1 CMakeFiles/Makefile2:367: recipe for target 'libraries/codal-microbit-nrf5sdk/CMakeFiles/codal-microbit-nrf5sdk.dir/all' failed make[1]: [libraries/codal-microbit-nrf5sdk/CMakeFiles/codal-microbit-nrf5sdk.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

Used (linux kernel+gcc 4.9.3) What is the correct version configuration?

jhlucky commented 4 years ago

Use linux to compile an error. .such as: [ 48%] Building C object libraries/codal-microbit-nrf5sdk/CMakeFiles/codal-microbit-nrf5sdk.dir/nRF5SDK_mods/ble_dfu_bonded.c.o /tmp/ccMAKDog.s: Assembler messages: /tmp/ccMAKDog.s:59: Error: cannot honor width suffix -- `ldr.w r12,=#2' libraries/codal-microbit-nrf5sdk/CMakeFiles/codal-microbit-nrf5sdk.dir/build.make:1190: recipe for target 'libraries/codal-microbit-nrf5sdk/CMakeFiles/codal-microbit-nrf5sdk.dir/nRF5SDK_mods/ble_dfu_bonded.c.o' failed make[2]: [libraries/codal-microbit-nrf5sdk/CMakeFiles/codal-microbit-nrf5sdk.dir/nRF5SDK_mods/ble_dfu_bonded.c.o] Error 1 CMakeFiles/Makefile2:367: recipe for target 'libraries/codal-microbit-nrf5sdk/CMakeFiles/codal-microbit-nrf5sdk.dir/all' failed make[1]: [libraries/codal-microbit-nrf5sdk/CMakeFiles/codal-microbit-nrf5sdk.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

Used (linux kernel 4.10+gcc 4.9.3) What is the correct version configuration?

jhlucky commented 4 years ago

gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 tar xvf bz2 /usr/bin rm -rf gcc g++ ln arm-none-eabi-gcc gcc ln arm-none-eabi-g++ g++ git clone samples cd samples python3 build.py