Skip to content

Compiling Arduino IDE from source throws errors #2007

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
3 tasks done
eldarj opened this issue Apr 10, 2023 · 4 comments
Closed
3 tasks done

Compiling Arduino IDE from source throws errors #2007

eldarj opened this issue Apr 10, 2023 · 4 comments
Labels
conclusion: duplicate Has already been submitted topic: documentation Related to documentation for the project type: imperfection Perceived defect in any part of project

Comments

@eldarj
Copy link

eldarj commented Apr 10, 2023

Describe the problem

I'm running Ubuntu and I am following the github guide on how to compile Arduino IDE, but yarn is failing.

I installed all the dependencies needed that are listed on the above page, as well as on Theia's prereqs guide

Issue
When executing yarn in the repo root, it fails wih the following:

arduino-ide-extension: task: Failed to run task "go:build": exit status 127
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

 —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  Lerna (powered by Nx)   Running target "prepare" failed

   Tasks not run because their dependencies failed or --nx-bail=true:
   
   - electron-app:prepare
   
   Failed tasks:
   
   - arduino-ide-extension:prepare

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

For some reason it seems go:build fails? I'm running go1.18.1. Do I need a different go version? Also, why isn't go documented as a prereq anywhere?

Expected
Succesfully run commands and move on to building, running the project, etc.

Prereq versions

$ lsb_release -d
Description:	Ubuntu 22.04.1 LTS
$ pkg-config --version
0.29.2
$ gcc --version
gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
$ make --version
GNU Make 4.3
$ node --version
v18.13.0
$ npm --version
8.19.3
$ yarn --version
1.22.19
$ go version
go version go1.18.1 linux/amd64

To reproduce

  • Checkout arduino-ide
  • Install all dependencies listed (node >16 & <17, gcc, pkg-config, make, native-keymap, keytar, etc.)
  • Run yarn

~ Fails with the above errors

Expected behavior

  • Expected to successfully finish the yarn install step and move on to building and running the projects

Arduino IDE version

branch=main;commit = eb1f247

Operating system

Linux

Operating system version

Ubuntu 22.04.1 LTS

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@eldarj eldarj added the type: imperfection Perceived defect in any part of project label Apr 10, 2023
@kittaakos
Copy link
Contributor

kittaakos commented Apr 10, 2023

Hi! Thanks for taking the time to report the issue. You need task to be available from the $PATH for the build.

Also, why isn't go documented as a prereq anywhere?

We have to improve the documentation. Closing as a duplicate of #474.

If you have task available and the build fails, ping me here, and I will reopen this issue.

@kittaakos kittaakos added topic: documentation Related to documentation for the project conclusion: duplicate Has already been submitted labels Apr 10, 2023
@eldarj
Copy link
Author

eldarj commented Apr 11, 2023

@kittaakos thanks for the quick reply.

Unfortunately, I do have task as well. I don't know anymore where I read that it is a prereq. but I got it installed too. In either case, docs needs updating indeed.

$ task --version
Task version: v3.23.0 (h1:egOOrya0biMnrV1W8RSEo2pviHMGTtBmy4VqxUYfcyk=)

Is there anything else that could be the issue? Maybe the versions, or some other undocummented prereq. dependency is needed?

@kittaakos
Copy link
Contributor

docs needs updating indeed.

No questions about it. That's why we have #474.


IDE2 needs to build the CLI if it's using a non-released version. For the time being, please reference the CLI prerequisites here.

I do not have the bandwidth to look into this issue right now, but here are my local versions:

% node -v && yarn -v && go version && task --version
v16.15.0
1.22.18
go version go1.19.1 darwin/amd64
Task version: v3.14.1 (h1:myTmEIbMbQx2D+g5lJvnbSqX531HmxiaQuefAqz8ISA=)

I will get back to this issue hopefully soon. Please bear with me. Thanks!

@eldarj
Copy link
Author

eldarj commented Apr 11, 2023

thanks @kittaakos and no worries, I'll try out some things, if I manage to sort it out myself will post here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: documentation Related to documentation for the project type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants