Skip to content

Crash on build from source because ioctl panic bug (go 1.17) #1445

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
judaew opened this issue Sep 10, 2021 · 3 comments
Closed

Crash on build from source because ioctl panic bug (go 1.17) #1445

judaew opened this issue Sep 10, 2021 · 3 comments
Assignees
Labels
architecture: arm Specific to ARM host architecture conclusion: resolved Issue was resolved os: macos Specific to macOS operating system topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project

Comments

@judaew
Copy link

judaew commented Sep 10, 2021

Bug Report

Current behavior

Crash during build from source in MacPorts in 0.19.0 version of arduino-cli. This is being caused by an ioctl panic bug in golang.org/x/sys: golang/go#47776.

Logs build:

See more:

Expected behavior

Fixes that will fix the arduino-cli build with go 1.17.

Environment

  • CLI version (output of arduino-cli version): 0.19.0
  • OS and platform: macOS 11.5.2 20G95 x86_64
@per1234
Copy link
Contributor

per1234 commented Sep 11, 2021

Hi @judaew. I believe this issue was fixed by #1427, which was merged after the 0.19.0 release of Arduino CLI. Please try building again using the code from the tip of the master branch and then let us know if the issue is resolved.

@per1234
Copy link
Contributor

per1234 commented Sep 11, 2021

By the way, we are using Go 1.16 exclusively for all development and testing, and for the production builds of Arduino CLI.

The use of 1.17 for beta testing is welcome, as it can help us to prepare for an eventual transition to using that version, but please don't use 1.17 for any sort of production deployment of Arduino CLI.

@judaew
Copy link
Author

judaew commented Sep 11, 2021

Thank you for the quick response. I confirm, this PR fixes the port build with go 1.17.

Unfortunately, I can't use go 1.16 to build arduino-cli as recommended because MacPorts like Arch Linux uses the latest version of packages to build.

@judaew judaew closed this as completed Sep 11, 2021
@per1234 per1234 added architecture: arm Specific to ARM host architecture conclusion: resolved Issue was resolved os: macos Specific to macOS operating system topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project labels Oct 1, 2021
@per1234 per1234 self-assigned this Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
architecture: arm Specific to ARM host architecture conclusion: resolved Issue was resolved os: macos Specific to macOS operating system topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants