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

Compilation fails with missing file in Arduino IDE 2.3.2 with MacOS Sonoma (14.2.1) #102

Open
binloan opened this issue Mar 18, 2024 · 9 comments

Comments

@binloan
Copy link

binloan commented Mar 18, 2024

Description

Following this guide for setup:
https://coral.ai/docs/dev-board-micro/arduino/
After successful install even when trying to compile an empty sketch the following issue appears:

/Users/XXX/Library/Arduino15/packages/coral/hardware/coral_micro/1.0.1/cores/arduino/include/libs/camera/camera.cc:27:10: fatal error: third_party/nxp/rt1176-sdk/devices/MIMXRT1176/drivers/cm7/fsl_cache.h: No such file or directory
   27 | #include "third_party/nxp/rt1176-sdk/devices/MIMXRT1176/drivers/cm7/fsl_cache.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1

I got the same issue when I tried compiling on Ubuntu 22.04. I'm using Ardunio IDE 2.3.2.
Interestingly it works without issues on Windows 10 (even though it's not supported based on documentation).
Does anyone have a similar issue? Thank you.

Click to expand!

Issue Type

Bug

Operating System

Mac OS

Coral Device

Dev Board Micro

Other Devices

No response

Programming Language

C++

Relevant Log Output

/Users/XXX/Library/Arduino15/packages/coral/hardware/coral_micro/1.0.1/cores/arduino/include/libs/camera/camera.cc:27:10: fatal error: third_party/nxp/rt1176-sdk/devices/MIMXRT1176/drivers/cm7/fsl_cache.h: No such file or directory
   27 | #include "third_party/nxp/rt1176-sdk/devices/MIMXRT1176/drivers/cm7/fsl_cache.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1
@jakubcizek
Copy link

Got same error on Ubuntu and Windows 11. Any workaround after three weeks?

@binloan
Copy link
Author

binloan commented Apr 8, 2024

Got same error on Ubuntu and Windows 11. Any workaround after three weeks?

No. It seems the sources are just broken. I tried on MacOS too.

@djolodjolo23
Copy link

Same problem here, on Ubuntu.

@jamstooks
Copy link

Hope we can fix or find a workaround as there are some really handy examples with Arduino dependencies.

@0xCharlottez
Copy link

The third_party folder under the main github page contains the missing file. So I manually copied the third_party folder to my own arduino folder and this error can be resolved. There are a series of other files need manual copy paste from the main branch, and eventually I left with an error like this:
[sdads](arm-none-eabi-gcc: error: /home/User/.arduino15/packages/coral/hardware/coral_micro/1.0.1/variants/coral_micro/cflags.txt: No such file or directory)

@hengj10
Copy link

hengj10 commented May 23, 2024

The third_party folder under the main github page contains the missing file. So I manually copied the third_party folder to my own arduino folder and this error can be resolved. There are a series of other files need manual copy paste from the main branch, and eventually I left with an error like this:

[sdads](arm-none-eabi-gcc: error: /home/User/.arduino15/packages/coral/hardware/coral_micro/1.0.1/variants/coral_micro/cflags.txt: No such file or directory)

Same problem here, have you solved this problem?

@vmanoj1996
Copy link

I am exactly in this same spot. Unable to find that cflags.txt file.
Anyone figured it yet?

@Hello9999901
Copy link

TLDR; tested macOS solution: use Arduino IDE 2.0.0 (confirmed) or similarly old build

Hello everyone, I found a workaround to this problem by using an older version of Arduino IDE. In my case, my system is:
macOS Sonoma 14.5 on an Apple M3 Max 14" running Rosetta emulation of Arduino IDE 2.0.0. Everything is standard. I ran into the same issues as @0xCharlottez and @binloan. Just tried the blinkLED example and it works as expected.

My suspicion is that arm64 Arduino IDE builds are doing something breaking. I will dig into this further if I have time.

@Hello9999901
Copy link

Update: I unfortunately won't look into this much further. Our team dropped the coral in favor of the Teensy 4.0/4.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants