RunTime Error while compiling. Python configured to use ASCII Encoding for the environment

I am trying to upload the arduino code to a MQ2 wireless sensor mounted on RAK 5005 board. I have downloaded the necessary libraries and bundles from Github and I can't seem to find any errors in my code.
However, the code is producing this random compile error that I can't seem to fix.

Traceback (most recent call last):
File "main.py", line 317, in
File "click/core.py", line 1134, in call
File "click/core.py", line 1040, in main
File "click/_unicodefun.py", line 100, in _verify_python_env
RuntimeError: Click will abort further execution because Python was configured to use ASCII as encoding for the environment. Consult Unicode Support — Click Documentation (8.1.x) for mitigation steps.

This system lists some UTF-8 supporting locales that you can pick from. The following suitable locales were discovered: af_ZA.UTF-8, am_ET.UTF-8, be_BY.UTF-8, bg_BG.UTF-8, ca_ES.UTF-8, cs_CZ.UTF-8, da_DK.UTF-8, de_AT.UTF-8, de_CH.UTF-8, de_DE.UTF-8, el_GR.UTF-8, en_AU.UTF-8, en_CA.UTF-8, en_GB.UTF-8, en_IE.UTF-8, en_NZ.UTF-8, en_US.UTF-8, es_ES.UTF-8, et_EE.UTF-8, eu_ES.UTF-8, fi_FI.UTF-8, fr_BE.UTF-8, fr_CA.UTF-8, fr_CH.UTF-8, fr_FR.UTF-8, he_IL.UTF-8, hr_HR.UTF-8, hu_HU.UTF-8, hy_AM.UTF-8, is_IS.UTF-8, it_CH.UTF-8, it_IT.UTF-8, ja_JP.UTF-8, kk_KZ.UTF-8, ko_KR.UTF-8, lt_LT.UTF-8, nl_BE.UTF-8, nl_NL.UTF-8, no_NO.UTF-8, pl_PL.UTF-8, pt_BR.UTF-8, pt_PT.UTF-8, ro_RO.UTF-8, ru_RU.UTF-8, sk_SK.UTF-8, sl_SI.UTF-8, sr_YU.UTF-8, sv_SE.UTF-8, tr_TR.UTF-8, uk_UA.UTF-8, zh_CN.UTF-8, zh_HK.UTF-8, zh_TW.UTF-8
[27025] Failed to execute script main

exit status 1

Compilation error: exit status 1

I am aware that it is some issue with the locale running on my M2 macbook air but I don't understand how to fix it. Any help is appreciated thanks!

Hi @lakindumuhandirumge. I'm going to ask you to provide the full verbose output from a compilation.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Check the box next to "Show verbose output during: ☐ compile" in the "Preferences" dialog.
  3. Click the "OK" button.
    The "Preferences" dialog will close.
  4. Select Sketch > Verify/Compile from the Arduino IDE menus.
  5. Wait for the compilation to fail.
  6. You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
  7. Open a forum reply here by clicking the "Reply" button.
  8. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block icon on toolbar
  9. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the compilation output into the code block.
  10. Move the cursor outside of the code block markup before you add any additional text to your reply.
  11. Click the "Reply" button to post the output.

In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here:

  1. Open any text editor program.
  2. Paste the copied output into the text editor.
  3. Save the file in .txt format.
  4. Open a forum reply here by clicking the "Reply" button.
  5. Click the "Upload" icon (Upload icon) on the post composer toolbar:
    Upload icon on toolbar
    The "Open" dialog will open.
  6. Select the .txt file you saved from the "Open" dialog.
  7. Click the "Open" button.
    The dialog will close.
  8. Click the "Reply" button to publish the post.

Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.


FQBN: rakwireless:nrf52:WisCoreRAK4631Board
Using board 'WisCoreRAK4631Board' from platform in folder: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3
Using core 'nRF5' from platform in folder: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3

Detecting libraries used...
/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -c -g -w -mfloat-abi=hard -mfpu=fpv4-sp-d16 -u _printf_float -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=64000000 -DARDUINO=10607 -DARDUINO_WisCore_RAK4631_Board -DARDUINO_ARCH_NRF52 -DARDUINO_BSP_VERSION="1.3.3" -DDEBUG -DNRF52840_XXAA -DUSBCON -DUSE_TINYUSB -DUSB_VID=0x239A -DUSB_PID=0x8029 -DUSB_MANUFACTURER="RAKwireless" -DUSB_PRODUCT="WisBlock RAK4631" -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DDX_CC_TEE -DLFS_NAME_MAX=64 -Ofast -DCFG_DEBUG=0 -DCFG_LOGGER=1 -DCFG_SYSVIEW=0 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/CMSIS/5.7.0/CMSIS/Core/Include/ -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/CMSIS/5.7.0/CMSIS/DSP/Include/ -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/hal -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/mdk -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/soc -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/drivers/include -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/drivers/src -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include/nrf52 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/Source/include -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/config -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/portable/GCC/nrf52 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/portable/CMSIS/nrf52 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/sysview/SEGGER -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/sysview/Config -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/variants/WisCore_RAK4631_Board /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/sketch/Firealert.ino.cpp -o /dev/null
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
  -> candidates: [Wire@1.0]
/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -c -g -w -mfloat-abi=hard -mfpu=fpv4-sp-d16 -u _printf_float -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=64000000 -DARDUINO=10607 -DARDUINO_WisCore_RAK4631_Board -DARDUINO_ARCH_NRF52 -DARDUINO_BSP_VERSION="1.3.3" -DDEBUG -DNRF52840_XXAA -DUSBCON -DUSE_TINYUSB -DUSB_VID=0x239A -DUSB_PID=0x8029 -DUSB_MANUFACTURER="RAKwireless" -DUSB_PRODUCT="WisBlock RAK4631" -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DDX_CC_TEE -DLFS_NAME_MAX=64 -Ofast -DCFG_DEBUG=0 -DCFG_LOGGER=1 -DCFG_SYSVIEW=0 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/CMSIS/5.7.0/CMSIS/Core/Include/ -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/CMSIS/5.7.0/CMSIS/DSP/Include/ -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/hal -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/mdk -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/soc -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/drivers/include -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/drivers/src -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include/nrf52 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/Source/include -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/config -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/portable/GCC/nrf52 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/portable/CMSIS/nrf52 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/sysview/SEGGER -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/sysview/Config -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/variants/WisCore_RAK4631_Board -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Wire /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/sketch/Firealert.ino.cpp -o /dev/null
Alternatives for ADC121C021.h: [RAKwireless MQx library@1.0.0]
ResolveLibrary(ADC121C021.h)
  -> candidates: [RAKwireless MQx library@1.0.0]
/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -c -g -w -mfloat-abi=hard -mfpu=fpv4-sp-d16 -u _printf_float -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=64000000 -DARDUINO=10607 -DARDUINO_WisCore_RAK4631_Board -DARDUINO_ARCH_NRF52 -DARDUINO_BSP_VERSION="1.3.3" -DDEBUG -DNRF52840_XXAA -DUSBCON -DUSE_TINYUSB -DUSB_VID=0x239A -DUSB_PID=0x8029 -DUSB_MANUFACTURER="RAKwireless" -DUSB_PRODUCT="WisBlock RAK4631" -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DDX_CC_TEE -DLFS_NAME_MAX=64 -Ofast -DCFG_DEBUG=0 -DCFG_LOGGER=1 -DCFG_SYSVIEW=0 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/CMSIS/5.7.0/CMSIS/Core/Include/ -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/CMSIS/5.7.0/CMSIS/DSP/Include/ -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/hal -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/mdk -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/soc -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/drivers/include -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/drivers/src -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include/nrf52 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/Source/include -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/config -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/portable/GCC/nrf52 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/portable/CMSIS/nrf52 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/sysview/SEGGER -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/sysview/Config -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/variants/WisCore_RAK4631_Board -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Wire -I/Users/lakindulehanlithpuramuhandirumge/Documents/Arduino/libraries/RAKwireless_MQx_library/src /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/sketch/Firealert.ino.cpp -o /dev/null
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Wire/Wire_nRF52.cpp
Alternatives for Adafruit_TinyUSB.h: [Adafruit TinyUSB Library@1.7.0]
ResolveLibrary(Adafruit_TinyUSB.h)
  -> candidates: [Adafruit TinyUSB Library@1.7.0]
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Documents/Arduino/libraries/RAKwireless_MQx_library/src/ADC121C021.cpp
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino/Adafruit_TinyUSB_API.cpp
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino/Adafruit_USBD_CDC.cpp
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino/Adafruit_USBD_Device.cpp
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino/hid/Adafruit_USBD_HID.cpp
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino/midi/Adafruit_USBD_MIDI.cpp
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino/msc/Adafruit_USBD_MSC.cpp
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino/ports/esp32/Adafruit_TinyUSB_esp32.cpp
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino/ports/nrf/Adafruit_TinyUSB_nrf.cpp
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino/ports/rp2040/Adafruit_TinyUSB_rp2040.cpp
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino/ports/samd/Adafruit_TinyUSB_samd.cpp
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino/webusb/Adafruit_USBD_WebUSB.cpp
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/class/audio/audio_device.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/class/bth/bth_device.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/class/cdc/cdc_device.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/class/dfu/dfu_device.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/class/dfu/dfu_rt_device.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/class/hid/hid_device.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/class/midi/midi_device.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/class/msc/msc_device.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/class/net/ecm_rndis_device.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/class/net/ncm_device.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/class/usbtmc/usbtmc_device.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/class/vendor/vendor_device.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/common/tusb_fifo.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/device/usbd.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/device/usbd_control.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/portable/espressif/esp32sx/dcd_esp32sx.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/portable/microchip/samd/dcd_samd.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/portable/nordic/nrf5x/dcd_nrf5x.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/portable/nxp/transdimension/dcd_transdimension.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/portable/raspberrypi/rp2040/dcd_rp2040.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/portable/raspberrypi/rp2040/hcd_rp2040.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/portable/raspberrypi/rp2040/rp2040_usb.c
Using cached library dependencies for file: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/tusb.c
Generating function prototypes...
/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -c -g -w -mfloat-abi=hard -mfpu=fpv4-sp-d16 -u _printf_float -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=64000000 -DARDUINO=10607 -DARDUINO_WisCore_RAK4631_Board -DARDUINO_ARCH_NRF52 -DARDUINO_BSP_VERSION="1.3.3" -DDEBUG -DNRF52840_XXAA -DUSBCON -DUSE_TINYUSB -DUSB_VID=0x239A -DUSB_PID=0x8029 -DUSB_MANUFACTURER="RAKwireless" -DUSB_PRODUCT="WisBlock RAK4631" -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DDX_CC_TEE -DLFS_NAME_MAX=64 -Ofast -DCFG_DEBUG=0 -DCFG_LOGGER=1 -DCFG_SYSVIEW=0 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/CMSIS/5.7.0/CMSIS/Core/Include/ -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/CMSIS/5.7.0/CMSIS/DSP/Include/ -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/hal -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/mdk -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/soc -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/drivers/include -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/drivers/src -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include/nrf52 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/Source/include -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/config -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/portable/GCC/nrf52 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/portable/CMSIS/nrf52 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/sysview/SEGGER -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/sysview/Config -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/variants/WisCore_RAK4631_Board -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Wire -I/Users/lakindulehanlithpuramuhandirumge/Documents/Arduino/libraries/RAKwireless_MQx_library/src -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/sketch/Firealert.ino.cpp -o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/3146258672/sketch_merged.cpp
/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/3146258672/sketch_merged.cpp
Compiling sketch...
/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -c -g -w -mfloat-abi=hard -mfpu=fpv4-sp-d16 -u _printf_float -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=64000000 -DARDUINO=10607 -DARDUINO_WisCore_RAK4631_Board -DARDUINO_ARCH_NRF52 "-DARDUINO_BSP_VERSION=\"1.3.3\"" -DDEBUG -DNRF52840_XXAA -DUSBCON -DUSE_TINYUSB -DUSB_VID=0x239A -DUSB_PID=0x8029 "-DUSB_MANUFACTURER=\"RAKwireless\"" "-DUSB_PRODUCT=\"WisBlock RAK4631\"" -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DDX_CC_TEE -DLFS_NAME_MAX=64 -Ofast -DCFG_DEBUG=0 -DCFG_LOGGER=1 -DCFG_SYSVIEW=0 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/CMSIS/5.7.0/CMSIS/Core/Include/ -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/CMSIS/5.7.0/CMSIS/DSP/Include/ -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/hal -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/mdk -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/soc -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/drivers/include -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/nrfx/drivers/src -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include/nrf52 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/Source/include -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/config -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/portable/GCC/nrf52 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/freertos/portable/CMSIS/nrf52 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/sysview/SEGGER -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/sysview/Config -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5 -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/variants/WisCore_RAK4631_Board -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Wire -I/Users/lakindulehanlithpuramuhandirumge/Documents/Arduino/libraries/RAKwireless_MQx_library/src -I/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino/src /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/sketch/Firealert.ino.cpp -o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/sketch/Firealert.ino.cpp.o
Compiling libraries...
Compiling library "Wire"
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Wire/Wire_nRF52.cpp.o
Compiling library "RAKwireless MQx library"
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/RAKwireless_MQx_library/ADC121C021.cpp.o
Compiling library "Adafruit TinyUSB Library"
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/ports/esp32/Adafruit_TinyUSB_esp32.cpp.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/midi/Adafruit_USBD_MIDI.cpp.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/ports/rp2040/Adafruit_TinyUSB_rp2040.cpp.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/hid/Adafruit_USBD_HID.cpp.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/msc/Adafruit_USBD_MSC.cpp.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/audio/audio_device.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/ports/nrf/Adafruit_TinyUSB_nrf.cpp.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/Adafruit_TinyUSB_API.cpp.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/Adafruit_USBD_CDC.cpp.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/bth/bth_device.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/ports/samd/Adafruit_TinyUSB_samd.cpp.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/Adafruit_USBD_Device.cpp.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/dfu/dfu_rt_device.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/hid/hid_device.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/net/ncm_device.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/dfu/dfu_device.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/cdc/cdc_device.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/usbtmc/usbtmc_device.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/webusb/Adafruit_USBD_WebUSB.cpp.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/vendor/vendor_device.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/msc/msc_device.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/midi/midi_device.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/portable/microchip/samd/dcd_samd.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/net/ecm_rndis_device.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/portable/nordic/nrf5x/dcd_nrf5x.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/common/tusb_fifo.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/device/usbd_control.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/portable/raspberrypi/rp2040/dcd_rp2040.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/tusb.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/device/usbd.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/portable/nxp/transdimension/dcd_transdimension.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/portable/raspberrypi/rp2040/rp2040_usb.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/portable/espressif/esp32sx/dcd_esp32sx.c.o
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/portable/raspberrypi/rp2040/hcd_rp2040.c.o
Compiling core...
Using previously compiled file: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/core/variant.cpp.o
Using precompiled core: /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/cores/rakwireless_nrf52_WisCoreRAK4631Board_softdevice_s140v6,debug_l0_b550c6a19d18d9f8e6e1ee662947aca6/core.a
Linking everything together...
/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-gcc -L/private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426 -Ofast -Wl,--gc-sections -save-temps -L/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/cores/nRF5/linker -Tnrf52840_s140_v6.ld -Wl,-Map,/private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/Firealert.ino.map -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -u _printf_float -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--wrap=malloc -Wl,--wrap=free --specs=nano.specs --specs=nosys.specs -o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/Firealert.ino.elf /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/sketch/Firealert.ino.cpp.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Wire/Wire_nRF52.cpp.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/RAKwireless_MQx_library/ADC121C021.cpp.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/Adafruit_TinyUSB_API.cpp.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/Adafruit_USBD_CDC.cpp.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/Adafruit_USBD_Device.cpp.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/hid/Adafruit_USBD_HID.cpp.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/midi/Adafruit_USBD_MIDI.cpp.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/msc/Adafruit_USBD_MSC.cpp.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/ports/esp32/Adafruit_TinyUSB_esp32.cpp.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/ports/nrf/Adafruit_TinyUSB_nrf.cpp.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/ports/rp2040/Adafruit_TinyUSB_rp2040.cpp.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/ports/samd/Adafruit_TinyUSB_samd.cpp.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/arduino/webusb/Adafruit_USBD_WebUSB.cpp.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/audio/audio_device.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/bth/bth_device.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/cdc/cdc_device.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/dfu/dfu_device.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/dfu/dfu_rt_device.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/hid/hid_device.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/midi/midi_device.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/msc/msc_device.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/net/ecm_rndis_device.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/net/ncm_device.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/usbtmc/usbtmc_device.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/class/vendor/vendor_device.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/common/tusb_fifo.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/device/usbd.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/device/usbd_control.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/portable/espressif/esp32sx/dcd_esp32sx.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/portable/microchip/samd/dcd_samd.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/portable/nordic/nrf5x/dcd_nrf5x.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/portable/nxp/transdimension/dcd_transdimension.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/portable/raspberrypi/rp2040/dcd_rp2040.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/portable/raspberrypi/rp2040/hcd_rp2040.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/portable/raspberrypi/rp2040/rp2040_usb.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/libraries/Adafruit_TinyUSB_Arduino/tusb.c.o /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/core/variant.cpp.o -Wl,--start-group -L/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/CMSIS/5.7.0/CMSIS/DSP/Lib/GCC/ -larm_cortexM4lf_math -lm /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/../../cores/rakwireless_nrf52_WisCoreRAK4631Board_softdevice_s140v6,debug_l0_b550c6a19d18d9f8e6e1ee662947aca6/core.a -Wl,--end-group
/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-objcopy -O ihex /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/Firealert.ino.elf /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/Firealert.ino.hex
/Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/tools/adafruit-nrfutil/macos/adafruit-nrfutil dfu genpkg --dev-type 0x0052 --sd-req 0x00B6 --application /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/Firealert.ino.hex /private/var/folders/0s/x1hm693x3nvfrfr9ww5wpkzc0000gn/T/arduino/sketches/63D51016FF1F61DAA901272442625426/Firealert.ino.zip
Traceback (most recent call last):
  File "__main__.py", line 317, in <module>
  File "click/core.py", line 1134, in __call__
  File "click/core.py", line 1040, in main
  File "click/_unicodefun.py", line 100, in _verify_python_env
RuntimeError: Click will abort further execution because Python was configured to use ASCII as encoding for the environment. Consult https://click.palletsprojects.com/unicode-support/ for mitigation steps.

This system lists some UTF-8 supporting locales that you can pick from. The following suitable locales were discovered: af_ZA.UTF-8, am_ET.UTF-8, be_BY.UTF-8, bg_BG.UTF-8, ca_ES.UTF-8, cs_CZ.UTF-8, da_DK.UTF-8, de_AT.UTF-8, de_CH.UTF-8, de_DE.UTF-8, el_GR.UTF-8, en_AU.UTF-8, en_CA.UTF-8, en_GB.UTF-8, en_IE.UTF-8, en_NZ.UTF-8, en_US.UTF-8, es_ES.UTF-8, et_EE.UTF-8, eu_ES.UTF-8, fi_FI.UTF-8, fr_BE.UTF-8, fr_CA.UTF-8, fr_CH.UTF-8, fr_FR.UTF-8, he_IL.UTF-8, hr_HR.UTF-8, hu_HU.UTF-8, hy_AM.UTF-8, is_IS.UTF-8, it_CH.UTF-8, it_IT.UTF-8, ja_JP.UTF-8, kk_KZ.UTF-8, ko_KR.UTF-8, lt_LT.UTF-8, nl_BE.UTF-8, nl_NL.UTF-8, no_NO.UTF-8, pl_PL.UTF-8, pt_BR.UTF-8, pt_PT.UTF-8, ro_RO.UTF-8, ru_RU.UTF-8, sk_SK.UTF-8, sl_SI.UTF-8, sr_YU.UTF-8, sv_SE.UTF-8, tr_TR.UTF-8, uk_UA.UTF-8, zh_CN.UTF-8, zh_HK.UTF-8, zh_TW.UTF-8
[30737] Failed to execute script __main__

Using library Wire at version 1.0 in folder: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Wire 
Using library RAKwireless MQx library at version 1.0.0 in folder: /Users/lakindulehanlithpuramuhandirumge/Documents/Arduino/libraries/RAKwireless_MQx_library 
Using library Adafruit TinyUSB Library at version 1.7.0 in folder: /Users/lakindulehanlithpuramuhandirumge/Library/Arduino15/packages/rakwireless/hardware/nrf52/1.3.3/libraries/Adafruit_TinyUSB_Arduino 
exit status 1

Compilation error: exit status 1

Hi @ptillisch! I appreciate your kind support. I believe I have downloaded the necessary BSP for RAK wireless and the libraries too. I followed the instructions on the website and Github repo. Any help would be much appreciated. Thanks!

The error is being produced by a tool named "adafruit-nrfutil".

My suspicion was that you were experiencing a spurious occurrence of this error, as was reported here:

That problem of the spurious occurrence of the error is resolved in the modern versions of the tool. I checked to see which version of the tool is used by the "RAKwireless nRF Boards" platform and found that it is 0.5.3.post16. From my experiments, this version 0.5.3.post16 of the tool does not have the bug of producing spurious errors as the older versions of the tool did. So unfortunately I am stumped on why you are experiencing the error on your computer. It might be that you truly do have your computer's locale configured in an incompatible manner (though from my experiments it seemed that Arduino IDE overrode the locale anyway).

Some community members shared workarounds in the discussion thread of the issue I linked above. Maybe one of those workarounds will solve the problem for you.

@ptillisch Thank you for your response. I'm currently using Arduino Version 2.3.2. Moreover, I am using the below mentioned BSP for my RAK wireless.
https://raw.githubusercontent.com/RAKwireless/RAKwireless-Arduino-BSP-Index/main/package_rakwireless_index.json

Moreover, I am using the RAKwireless MQxLibrary for the MQ2 wireless sensor and "RAKwireless nRF Board" package for WisblockRAK4631. Could the problem lie in one of these? I tried compiling the same program on another mac studio and I seem to get the same error.

Thanks,
Lakindu.

Unfortunately I don't think I can be of further assistance with this. I have already shared all the information I am aware of on the subject. The "RAKwireless nRF Boards" platform is working fine on my macOS computer.

Hopefully one of the other forum helpers will be able to help you with the problem.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.