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

Core Compilation failure on Linux in v2.0.10 #8424

Closed
1 task done
josesnchz opened this issue Jul 18, 2023 · 11 comments
Closed
1 task done

Core Compilation failure on Linux in v2.0.10 #8424

josesnchz opened this issue Jul 18, 2023 · 11 comments
Assignees
Labels
IDE: Arduino IDE Issue relates to Arduino IDE Status: Needs investigation We need to do some research before taking next steps on this issue Status: Solved
Milestone

Comments

@josesnchz
Copy link

josesnchz commented Jul 18, 2023

Board

Adafruit ESP32 Feather - HUZZAH32

Device Description

Plain Module in breadboard

Hardware Configuration

Nothing attached to the dev board. Using USB power.

Version

v2.0.10

IDE Name

Arduino IDE

Operating System

Ubuntu 22.04 with Kernel 5.15.0-76

Flash frequency

80MHz

PSRAM enabled

yes

Upload speed

921600

Description

Running version v2.0.10, using any sketch, when it comes the moment to compile the core, I always get the same error. Downgrading to v2.0.9 solves the problem.

Sketch

/*
  Blink

  Turns an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
  the correct LED pin independent of which board is used.
  If you want to know what pin the on-board LED is connected to on your Arduino
  model, check the Technical Specs of your board at:
  https://www.arduino.cc/en/Main/Products

  modified 8 May 2014
  by Scott Fitzgerald
  modified 2 Sep 2016
  by Arturo Guadalupi
  modified 8 Sep 2016
  by Colby Newman

  This example code is in the public domain.

  https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
*/

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

Debug Message

Compiling core...
bash -c "echo '-DARDUINO_CORE_BUILD' > /tmp/arduino_build_925905/file_opts"
>: -c: line 1: unexpected EOF while looking for matching `''
>: -c: line 2: syntax error: unexpected end of file
exit status 2
Error compiling for board Adafruit ESP32 Feather.

Other Steps to Reproduce

Tried executing the bash command that fails manually. It does not fail.

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@josesnchz josesnchz added the Status: Awaiting triage Issue is waiting for triage label Jul 18, 2023
@SuGlider
Copy link
Collaborator

@me-no-dev - I think that this is the second issue related to Linux that I see.

The other similar one was reported in #8421 (comment)

@PilnyTomas - Can you please test it with Linux and let us know? Thanks.

@SuGlider SuGlider self-assigned this Jul 18, 2023
@SuGlider SuGlider added Type: Bug 🐛 All bugs IDE: Arduino IDE Issue relates to Arduino IDE Status: Needs investigation We need to do some research before taking next steps on this issue and removed Status: Awaiting triage Issue is waiting for triage labels Jul 18, 2023
@me-no-dev
Copy link
Member

@SuGlider I've reported this to the committer as well. This is connected to Arduino Nano ESP32, but some of the folks are on vacation this week. Unfortunately I do not have much choice of Linux targets on hand, so can not test it properly. If it fails for @PilnyTomas then that would be a great way to test. CI as you saw is passing OK

@janczeresnia
Copy link

In the new version 2.0.10 there is an error when compiling any sketch.
In version 2.0.9 everything works fine.

: -c: line 1: unexpected EOF while searching for a match `''
: -c: line 2: syntax error: unexpected end of file
exit status 2
/usr/share/arduino/arduino-builder return 2
Compilation error for ESP32S3 Dev Module

I am using Linux Gentoo Arduino IDE 1.8.19 the error described appears for ESP32, ESP32-S3 and ESP32-C3 boards when compiling any sketch.

@PilnyTomas
Copy link
Contributor

Linux Fedora 37
Arduino 2.0.10
Sketch Blink
Compiling for

  • Adafruit ESP32 Feather
  • Adafruit Feather ESP32 V2

Results - both compiled successfully

@josesnchz
Copy link
Author

josesnchz commented Jul 19, 2023

When using the apt-obtained version of the Arduino IDE, which I guess it is 1.8.19, the 2.0.10 version triggers the error I documented, which can be solved by downgrading to 2.0.9.
Using the latest version of the Arduino IDE (2.1.1) makes the error with 2.0.10 dissapear. Everything gets compiled correctly now.
I guess it is a compatibility issue between the Arduino IDE version and the board core?

@VojtechBartoska VojtechBartoska changed the title Core Compilation failure Core Compilation failure on Linux in v2.0.10 Jul 19, 2023
@SuGlider
Copy link
Collaborator

Maybe this related to apt-obtained version of the Arduino IDE?
I mean, may APT not installing the IDE correclty?

@pennam
Copy link

pennam commented Jul 19, 2023

Maybe this related to apt-obtained version of the Arduino IDE?

I think yes! On a fresh ubuntu 22.04 machine the apt obtained version of the ide 1.8.19 fails with the error above. Using the same version of the IDE downloaded from here works perfectly.

@pennam
Copy link

pennam commented Jul 19, 2023

removing the single quote around '-DARDUINO_CORE_BUILD' in platform.txt file seems to fix the issue with the apt obtained version of the ide.

pennam/arduino-esp32@arduino_nano_esp32...eof_fix

pillo79 added a commit to pillo79/arduino-esp32 that referenced this issue Jul 19, 2023
pillo79 added a commit to pillo79/arduino-esp32 that referenced this issue Jul 19, 2023
pillo79 pushed a commit to pillo79/arduino-esp32 that referenced this issue Jul 19, 2023
pillo79 pushed a commit to pillo79/arduino-esp32 that referenced this issue Jul 19, 2023
@VojtechBartoska VojtechBartoska added this to the 2.0.11 milestone Jul 20, 2023
@aalucia
Copy link

aalucia commented Jul 24, 2023

Hi,
same issue (: -c: line 1: unexpected EOF while searching for a match `'') on:

SUSE Linux Leap 15.5
IDE 1.8.12
Board Lolin 32 S2 Mini

Cheers.

@SuGlider
Copy link
Collaborator

A new Arduino Core 2.0.11 has been released.
https://github.com/espressif/arduino-esp32/releases/tag/2.0.11

It shall fix the Linux problem using the Fix that @pillo79 has posted in #8433.

@aalucia
Copy link

aalucia commented Jul 24, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IDE: Arduino IDE Issue relates to Arduino IDE Status: Needs investigation We need to do some research before taking next steps on this issue Status: Solved
Projects
None yet
Development

No branches or pull requests

8 participants