Skip to content

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

Closed
@tanakamasayuki

Description

@tanakamasayuki

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.
  ^

Activity

tanakamasayuki

tanakamasayuki commented on May 14, 2021

@tanakamasayuki
ContributorAuthor

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

lbernstone commented on May 14, 2021

@lbernstone
Contributor

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

per1234 commented on May 14, 2021

@per1234
Contributor

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

lbernstone commented on May 14, 2021

@lbernstone
Contributor

Ok, fixed in the repo SD library also.

lbernstone

lbernstone commented on May 14, 2021

@lbernstone
Contributor

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

tanakamasayuki

tanakamasayuki commented on May 15, 2021

@tanakamasayuki
ContributorAuthor
added a commit that references this issue on May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      I'm getting build errors with Arduino IDE 1.8.14. · Issue #5181 · espressif/arduino-esp32