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

Add Guix manifest #8234

Closed
wants to merge 3 commits into from
Closed

Add Guix manifest #8234

wants to merge 3 commits into from

Conversation

ekaitz-zarraga
Copy link

Add guix manifest to make guix environments like guix environment --manifest=guix-manifest.scm

  • It's not configurable at the moment.
  • AVR-Toolchain is 4.9 version because 5.5 package is broken, see help-guix mailing list

Add guix manifest to make guix environments like `guix environment --manifest=guix-manifest.scm`

- It's not configurable at the moment.
- AVR-Toolchain is 4.9 version because 5.5 package is broken, see [help-guix mailing list](https://lists.gnu.org/archive/html/help-guix/2020-02/msg00195.html)
 Documentation for #8a9757cdba0509bff59becf7b08f72a54893709f
@ekaitz-zarraga ekaitz-zarraga changed the title WIP Add Guix manifest Add Guix manifest Feb 23, 2020
@drashna
Copy link
Member

drashna commented Feb 23, 2020

Doesn't have the 5.4 or 6.3 package available?

Edit: I checked. it doesn't. That may be problematic, due to its age.

@drashna drashna requested a review from a team February 23, 2020 22:32
@ekaitz-zarraga
Copy link
Author

A search returns only those (see below)
We can fix the package description of the 5.5 and make it available but it's not ready yet.

$ guix package --search=avr-toolchain

name: avr-toolchain
version: 5.5.0
outputs: out
systems: x86_64-linux i686-linux
dependencies: [email protected] [email protected] [email protected] [email protected]
location: gnu/packages/avr.scm:121:4
homepage: https://www.nongnu.org/avr-libc/
license: GPL 3+
synopsis: Complete GCC tool chain for AVR microcontroller development  
description: This package provides a complete GCC tool chain for AVR
+ microcontroller development.  This includes the GCC AVR cross compiler
+ and avrdude for firmware flashing.  The supported programming languages
+ are C and C++.
relevance: 20

name: avr-toolchain
version: 4.9.4
outputs: out
systems: x86_64-linux i686-linux
dependencies: [email protected] [email protected] [email protected] [email protected]
location: gnu/packages/avr.scm:121:4
homepage: https://www.nongnu.org/avr-libc/
license: GPL 3+
synopsis: Complete GCC tool chain for AVR microcontroller development  
description: This package provides a complete GCC tool chain for AVR
+ microcontroller development.  This includes the GCC AVR cross compiler
+ and avrdude for firmware flashing.  The supported programming languages
+ are C and C++.
relevance: 20

@drashna drashna added the core label Mar 1, 2020
@drashna
Copy link
Member

drashna commented Mar 1, 2020

My concern here is that the 4.9 version is very old, and may be too old. And I'm not even sure about the 5.4 version.

@ekaitz-zarraga
Copy link
Author

We are currently working on a fix for 5.5 and working on an update of the avr-toolchain. You can see the discussion here:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39794

I hope we'll have a patch in the next weeks at least for 5.5. There's already a patch that fixes the issue, so we'll push it as soon as we can.

@Erovia
Copy link
Member

Erovia commented Mar 22, 2020

@ekaitz-zarraga I'm not familiar with Guix, is there any reason the latest 8.x version cannot be built/packaged for it?

@ekaitz-zarraga
Copy link
Author

@ekaitz-zarraga I'm not familiar with Guix, is there any reason the latest 8.x version cannot be built/packaged for it?

Just bad packaging on Guix's side. This patch is supposed to solve it, but it's not merged yet.
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39918

@bricewge
Copy link

On master docs/getting_started_build_tools.md has been deleted in #8252. The documentation should probably go elsewhere or d1c1808 should be partially reverted before merging this pull request.

@bricewge
Copy link

@ekaitz-zarraga Could you remove arm-none-eabi-toolchain since it conflict with avr-toolchain? You can also drop the version specification for avr-toolchain, 5.5 is working correctly now and adding python silence the warning “Python 3 is not installed. [...]”.

With these modifications I was able to successfully build helix/rev2 as well as 40percentclub/luddite.

@ekaitz-zarraga
Copy link
Author

@bricewge Did what you proposed but arm toolchain is supposed to be used by other parts of the project so the manifest proposed here is only going to be unusable for some keyboards (I think).

@bricewge
Copy link

Thanks @ekaitz-zarraga that was quick! BTW it's python instead of python3.

Do you have any example of such a keyboard?

@ekaitz-zarraga
Copy link
Author

@bricewge done.

I don't have any in mind but if that's part of the projects requirements it should be for a reason. :)

@fauxpark
Copy link
Member

We use the ARM toolchain to build firmware for STM32 microcontrollers (and some NXP chips used by the ARM Teensys, and the ATSAMD51J18A that the Massdrop boards have) using ChibiOS' HAL. If there is a conflict between it and the AVR toolchain that will need to be fixed upstream.

@stale
Copy link

stale bot commented Jun 2, 2020

Thank you for your contribution!
This pull request has been automatically marked as stale because it has not had activity in the last 45 days. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, or re-open when it's ready.
For maintainers: Please label with awaiting review, breaking_change, in progress, or on hold to prevent the issue from being re-flagged.

@stale
Copy link

stale bot commented Jul 2, 2020

Thank you for your contribution!
This pull request has been automatically closed because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, or re-open when it's ready.

@stale stale bot closed this Jul 2, 2020
@aadcg
Copy link

aadcg commented Oct 12, 2021

@ekaitz-zarraga, did you manage to ever flash a deyboard on guix? I'm afraid I'm a bit stuck with udev and was wondering if you had any success. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants