Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

build failure (main, zig 0.11.0) #25

Open
oliverpool opened this issue Sep 9, 2023 · 3 comments
Open

build failure (main, zig 0.11.0) #25

oliverpool opened this issue Sep 9, 2023 · 3 comments

Comments

@oliverpool
Copy link

First of all, thanks for this project!

I just cloned and tried to build this project, but it failed. Exactly the same output as the latest pipeline:

https://github.com/ZigEmbeddedGroup/microchip-atmega/actions/runs/5985749765/job/16238164264

> zig version
0.11.0
> zig build -Doptimize=ReleaseSmall
[...]
Build Summary: 6/13 steps succeeded; 3 failed (disable with --summary none)
install transitive failure
├─ install Arduino Nano.minimal transitive failure
│  └─ zig build-exe Arduino Nano.minimal ReleaseSmall avr-freestanding-eabi failure
├─ install Arduino Uno.minimal transitive failure
│  └─ zig build-exe Arduino Uno.minimal ReleaseSmall avr-freestanding-eabi failure
└─ install ATmega328P.minimal transitive failure
   └─ zig build-exe ATmega328P.minimal ReleaseSmall avr-freestanding-eabi failure
error: the following build command failed with exit code 1:
[...]

@MasterQ32 you authored #24 : does it compile on your system? (I am using Linux)

Do you know which flags I could set to get more info regarding the error? (zig build --verbose does not show anything more)

Error looks similar to ZigEmbeddedGroup/microzig#119 (reported long ago)

@oliverpool oliverpool changed the title build failure (master, zig 0.11.0) build failure (main, zig 0.11.0) Sep 9, 2023
@ikskuh
Copy link
Contributor

ikskuh commented Sep 9, 2023

It does not compile, it's an LLVM bug we need to work around. I made everything else up-to-date, but we have to re-engineer compiler_rt to compile for AVR.

I need to write some words on how we get better AVR support in zig. There is a plan, but it needs tk be documented

@oliverpool
Copy link
Author

Ok, thank you for the quick reply.

Shall I send a PR to update the README with a warning that it currently does not compile and a link to this issue?

@oliverpool
Copy link
Author

Or better, linking to ZigEmbeddedGroup/microzig#42

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

No branches or pull requests

2 participants