Ameba-AIoT / ameba-arduino-pro2

AmebaPro2 Arduino third-party package SDK
https://www.amebaiot.com/en/ameba-arduino-summary/
MIT License
50 stars 23 forks source link

Verification for example code fails in macOs - cannot load 'prebuild_macos' error thrown #262

Open Nishanth-R opened 2 months ago

Nishanth-R commented 2 months ago

Boards

AMB82-Mini

External Hardware

None

Hardware Configuration

No

Version

latest main (checkout manually)

IDE Name

1.8.19

Operating System

macOS Mojave 10.14.6

Auto Flash Mode

Disable

Erase All Flash Memory (16MB)

Disable

Standard Lib

Arduino_STD_PRINTF

Upload Speed

2000000

Description

compile error when trying to compile all and any programs. Getting the below error stack. Looks like prebuild python script is not working as expected


/private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/hardware -hardware /Users/Nishanth/Library/Arduino15/packages -tools /private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/Nishanth/Library/Arduino15/packages -built-in-libraries /private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/libraries -libraries /Users/Nishanth/Documents/Arduino/libraries -fqbn=realtek:AmebaPro2:Ameba_AMB82-MINI:EraseFlash=Disable,AutoUploadMode=Disable,StdLibInit=Enable,UploadBaudrate=2M,LoadNNModelSource=flash,CameraOption=jxf37 -vid-pid=1A86_7523 -ide-version=10819 -build-path /var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/arduino_build_10930 -warnings=none -build-cache /var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/arduino_cache_484558 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.ameba_pro2_tools.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_tools/1.3.4 -prefs=runtime.tools.ameba_pro2_tools-1.3.4.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_tools/1.3.4 -prefs=runtime.tools.ameba_pro2_toolchain2.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain2/1.0.1-p2 -prefs=runtime.tools.ameba_pro2_toolchain2-1.0.1-p2.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain2/1.0.1-p2 -prefs=runtime.tools.ameba_pro2_nn_models.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_nn_models/1.0.0 -prefs=runtime.tools.ameba_pro2_nn_models-1.0.0.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_nn_models/1.0.0 -prefs=runtime.tools.ameba_pro2_toolchain.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain/1.0.1-p1 -prefs=runtime.tools.ameba_pro2_toolchain-1.0.1-p1.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain/1.0.1-p1 -verbose /var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/arduino_modified_sketch_509839/ObjectDetectionCallback.ino
/private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/hardware -hardware /Users/Nishanth/Library/Arduino15/packages -tools /private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/Nishanth/Library/Arduino15/packages -built-in-libraries /private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/libraries -libraries /Users/Nishanth/Documents/Arduino/libraries -fqbn=realtek:AmebaPro2:Ameba_AMB82-MINI:EraseFlash=Disable,AutoUploadMode=Disable,StdLibInit=Enable,UploadBaudrate=2M,LoadNNModelSource=flash,CameraOption=jxf37 -vid-pid=1A86_7523 -ide-version=10819 -build-path /var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/arduino_build_10930 -warnings=none -build-cache /var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/arduino_cache_484558 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.ameba_pro2_tools.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_tools/1.3.4 -prefs=runtime.tools.ameba_pro2_tools-1.3.4.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_tools/1.3.4 -prefs=runtime.tools.ameba_pro2_toolchain2.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain2/1.0.1-p2 -prefs=runtime.tools.ameba_pro2_toolchain2-1.0.1-p2.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain2/1.0.1-p2 -prefs=runtime.tools.ameba_pro2_nn_models.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_nn_models/1.0.0 -prefs=runtime.tools.ameba_pro2_nn_models-1.0.0.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_nn_models/1.0.0 -prefs=runtime.tools.ameba_pro2_toolchain.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain/1.0.1-p1 -prefs=runtime.tools.ameba_pro2_toolchain-1.0.1-p1.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain/1.0.1-p1 -verbose /var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/arduino_modified_sketch_509839/ObjectDetectionCallback.ino
Using board 'Ameba_AMB82-MINI' from platform in folder: /Users/Nishanth/Library/Arduino15/packages/realtek/hardware/AmebaPro2/4.0.7
Using core 'ambpro2' from platform in folder: /Users/Nishanth/Library/Arduino15/packages/realtek/hardware/AmebaPro2/4.0.7
chmod -R 777 /Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_tools/1.3.4
/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_tools/1.3.4/prebuild_macos /Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain/1.0.1-p1 ameba_pro2_toolchain/1.0.1-p1 ameba_pro2_toolchain2/1.0.1-p2 ameba_pro2_toolchain ameba_pro2_toolchain2 /Users/Nishanth/Library/Arduino15/packages/realtek/hardware/AmebaPro2/4.0.7 JXF37 ameba_pro2_nn_models/1.0.0 ameba_pro2_nn_models
dyld: cannot load 'prebuild_macos' (load command 0x80000034 is unknown)
signal: abort trap
/private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/arduino-builder returned 255
Error compiling for board AMB82-MINI.

Sketch

ObjectDetectionCallback.ino

Error/Debug Message

Arduino: 1.8.19 (Mac OS X), Board: "AMB82-MINI, Disable, Disable, Arduino_STD_PRINTF, 2000000, Flash, JXF37"

/private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/hardware -hardware /Users/Nishanth/Library/Arduino15/packages -tools /private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/Nishanth/Library/Arduino15/packages -built-in-libraries /private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/libraries -libraries /Users/Nishanth/Documents/Arduino/libraries -fqbn=realtek:AmebaPro2:Ameba_AMB82-MINI:EraseFlash=Disable,AutoUploadMode=Disable,StdLibInit=Enable,UploadBaudrate=2M,LoadNNModelSource=flash,CameraOption=jxf37 -vid-pid=1A86_7523 -ide-version=10819 -build-path /var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/arduino_build_10930 -warnings=none -build-cache /var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/arduino_cache_484558 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.ameba_pro2_tools.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_tools/1.3.4 -prefs=runtime.tools.ameba_pro2_tools-1.3.4.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_tools/1.3.4 -prefs=runtime.tools.ameba_pro2_toolchain2.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain2/1.0.1-p2 -prefs=runtime.tools.ameba_pro2_toolchain2-1.0.1-p2.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain2/1.0.1-p2 -prefs=runtime.tools.ameba_pro2_nn_models.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_nn_models/1.0.0 -prefs=runtime.tools.ameba_pro2_nn_models-1.0.0.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_nn_models/1.0.0 -prefs=runtime.tools.ameba_pro2_toolchain.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain/1.0.1-p1 -prefs=runtime.tools.ameba_pro2_toolchain-1.0.1-p1.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain/1.0.1-p1 -verbose /var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/arduino_modified_sketch_509839/ObjectDetectionCallback.ino
/private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/hardware -hardware /Users/Nishanth/Library/Arduino15/packages -tools /private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/Nishanth/Library/Arduino15/packages -built-in-libraries /private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/libraries -libraries /Users/Nishanth/Documents/Arduino/libraries -fqbn=realtek:AmebaPro2:Ameba_AMB82-MINI:EraseFlash=Disable,AutoUploadMode=Disable,StdLibInit=Enable,UploadBaudrate=2M,LoadNNModelSource=flash,CameraOption=jxf37 -vid-pid=1A86_7523 -ide-version=10819 -build-path /var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/arduino_build_10930 -warnings=none -build-cache /var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/arduino_cache_484558 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.ameba_pro2_tools.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_tools/1.3.4 -prefs=runtime.tools.ameba_pro2_tools-1.3.4.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_tools/1.3.4 -prefs=runtime.tools.ameba_pro2_toolchain2.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain2/1.0.1-p2 -prefs=runtime.tools.ameba_pro2_toolchain2-1.0.1-p2.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain2/1.0.1-p2 -prefs=runtime.tools.ameba_pro2_nn_models.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_nn_models/1.0.0 -prefs=runtime.tools.ameba_pro2_nn_models-1.0.0.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_nn_models/1.0.0 -prefs=runtime.tools.ameba_pro2_toolchain.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain/1.0.1-p1 -prefs=runtime.tools.ameba_pro2_toolchain-1.0.1-p1.path=/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain/1.0.1-p1 -verbose /var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/arduino_modified_sketch_509839/ObjectDetectionCallback.ino
Using board 'Ameba_AMB82-MINI' from platform in folder: /Users/Nishanth/Library/Arduino15/packages/realtek/hardware/AmebaPro2/4.0.7
Using core 'ambpro2' from platform in folder: /Users/Nishanth/Library/Arduino15/packages/realtek/hardware/AmebaPro2/4.0.7
chmod -R 777 /Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_tools/1.3.4
/Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_tools/1.3.4/prebuild_macos /Users/Nishanth/Library/Arduino15/packages/realtek/tools/ameba_pro2_toolchain/1.0.1-p1 ameba_pro2_toolchain/1.0.1-p1 ameba_pro2_toolchain2/1.0.1-p2 ameba_pro2_toolchain ameba_pro2_toolchain2 /Users/Nishanth/Library/Arduino15/packages/realtek/hardware/AmebaPro2/4.0.7 JXF37 ameba_pro2_nn_models/1.0.0 ameba_pro2_nn_models
dyld: cannot load 'prebuild_macos' (load command 0x80000034 is unknown)
signal: abort trap
/private/var/folders/h6/1byzwy7x25394jmh3rhyhd6c0000gn/T/AppTranslocation/30FCEEFB-43F2-457A-A240-8B08DDB67B86/d/Arduino.app/Contents/Java/arduino-builder returned 255
Error compiling for board AMB82-MINI.

Reproduce remarks

No response

I have checked online documentation, FAQ, GitHub Wiki and existing/closed issues.

github-actions[bot] commented 2 months ago

Hello, hope this message finds you well. Congrats to your first Issue! We will review it as soon as possiable. Feel free to have a look at https://www.amebaiot.com/en/ameba-arduino-summary/ for more information

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 14 days with no activity.