Skip to content

I'm getting build errors with Arduino IDE 1.8.14. #5181

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

Closed
tanakamasayuki opened this issue May 14, 2021 · 6 comments
Closed

I'm getting build errors with Arduino IDE 1.8.14. #5181

tanakamasayuki opened this issue May 14, 2021 · 6 comments

Comments

@tanakamasayuki
Copy link
Contributor

Description:

A build-in library option has been added.
As a result, the library for AVR is loaded.

-built-in-libraries C:\Program Files (x86)\Arduino\libraries

Sketch: (leave the backquotes for code formatting)

#include "SD.h"
void setup() {
}
void loop() {
}

Debug Messages:

In file included from C:\Program Files (x86)\Arduino\libraries\SD\src/utility/Sd2Card.h:26:0,
                 from C:\Program Files (x86)\Arduino\libraries\SD\src/utility/SdFat.h:29,
                 from C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:20,
                 from C:\Users\tanaka\Documents\Arduino\buildtest\buildtest.ino:1:
C:\Program Files (x86)\Arduino\libraries\SD\src/utility/Sd2PinMap.h:524:2: error: #error Architecture or board not supported.
 #error Architecture or board not supported.
  ^
@tanakamasayuki
Copy link
Contributor Author

built-in-libraries

https://github.com/arduino/Arduino/blob/master/arduino-core/src/cc/arduino/Compiler.java#L249

    addPathFlagIfPathExists(cmd, "-built-in-libraries", BaseNoGui.getContentFile("libraries"));

BaseNoGui.getContentFile

https://github.com/arduino/Arduino/blob/master/arduino-core/src/processing/app/BaseNoGui.java#L199

  static public File getContentFile(String name) {
    String appDir = System.getProperty("APP_DIR");
    if (appDir == null || appDir.length() == 0) {
      appDir = currentDirectory;
    }
    File installationFolder = new File(appDir);
    return new File(installationFolder, name);
  }

APP_DIR

https://github.com/arduino/Arduino/blob/master/build/windows/launcher/config.xml#L70

    <opt>-DAPP_DIR="%EXEDIR%"</opt>

It may be a fixed value.

@lbernstone
Copy link
Contributor

lbernstone commented May 14, 2021

As a workaround, I would propose fixing arduino's version (Arduino/libraries/SD/library.properties and arduino-1.8.14/libraries/SD/library.properties) with:
architectures=avr,samd,sam,megaavr,teensy
I've opened an issue with Arduino about this.

@per1234
Copy link
Contributor

per1234 commented May 14, 2021

Hi all. This has already been fixed and new releases of both Arduino IDEs and Arduino CLI will be out soon. For details, please see this: arduino/arduino-cli#1292

@lbernstone
Copy link
Contributor

Ok, fixed in the repo SD library also.

lbernstone added a commit to lbernstone/arduino-esp32 that referenced this issue May 14, 2021
@lbernstone
Copy link
Contributor

lbernstone commented May 14, 2021

Ok, so rather than changing arduino files, change <esp32>/libraries/SD/library.properties:
name=SD

@tanakamasayuki
Copy link
Contributor Author

me-no-dev pushed a commit that referenced this issue May 18, 2021
* Bump library versions to 2.0.0

* Fixed name on SD library (see #5181)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants