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

c3c: unstable-2021-07-30 -> 0.5.5 #271534

Merged
merged 1 commit into from
May 7, 2024
Merged

c3c: unstable-2021-07-30 -> 0.5.5 #271534

merged 1 commit into from
May 7, 2024

Conversation

SMFloris
Copy link
Contributor

@SMFloris SMFloris commented Dec 1, 2023

Update c3c compiler to the newest released stable version.

Description of changes

Updated the package to the latest upstream stable version.

Added a patch in order for CMake to be able to find the ldd libs since on Nix the ldd lib is split from the llvm libs.

Latest changelog of the c3c compiler

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Priorities

Add a 👍 reaction to pull requests you find important.

@SMFloris
Copy link
Contributor Author

SMFloris commented Dec 3, 2023

So it appears we still have the following things that fail:

  • on aarch64-linux: it does not even build -- will investigate
  • on aarch64-darwin: build succeeds, but 2 tests out of 733 fail
  • on x86_x64-darwin: build succeeds, but 1 test out of 733 fail

It does seem like the tests that fail are known issues in this release. It is expected that a new language that didn't even hit 1.0 will have these, but I will investigate more as time allows.

The thing that does concern me is the aarch64-linux build.This should probably work; will check upstream as well.

@Ashvith10
Copy link
Contributor

@SMFloris is this PR in draft, or ready for merge? I was wondering that at least for the time being, we could make the x86-64-linux version work properly.

@SMFloris
Copy link
Contributor Author

@Ashvith10 , x86-64-linux works fine as far as I can tell. The other platforms not sure.

I will get back to fixing the other platforms at some point in the future.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/3718

Copy link
Contributor

@eclairevoyant eclairevoyant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution, and apologies that this wasn't seen sooner. Some feedback/questions below:

pkgs/development/compilers/c3c/default.nix Outdated Show resolved Hide resolved
pkgs/development/compilers/c3c/default.nix Outdated Show resolved Hide resolved
pkgs/development/compilers/c3c/default.nix Outdated Show resolved Hide resolved
pkgs/development/compilers/c3c/default.nix Outdated Show resolved Hide resolved
pkgs/development/compilers/c3c/default.nix Show resolved Hide resolved
Copy link
Member

@tomodachi94 tomodachi94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, package builds and outputs correct version:

$ /nix/store/7j6za7z0lfcyx87cmi3534fvs5siyy4k-c3c-0.5.5/bin/c3c --version
C3 Compiler Version:       0.5.5 (prerelease)
Installed directory:       /nix/store/7j6za7z0lfcyx87cmi3534fvs5siyy4k-c3c-0.5.5/bin/
LLVM version:              17.0.6
LLVM default target:       x86_64-unknown-linux-gnu

@tomodachi94 tomodachi94 added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Apr 16, 2024
@SMFloris
Copy link
Contributor Author

Is it possible to have this merged before 24.05? :D

@eclairevoyant
Copy link
Contributor

Seems like tests are failing on all platforms on except x86_64-linux - not sure about the format-string test failures on darwin, but linking hello world in the tests seems to fail on aarch64-linux

pkgs/development/compilers/c3c/default.nix Outdated Show resolved Hide resolved
pkgs/development/compilers/c3c/default.nix Outdated Show resolved Hide resolved
pkgs/development/compilers/c3c/default.nix Show resolved Hide resolved
@kashw2
Copy link
Contributor

kashw2 commented May 6, 2024

This PR should also fix the build failure in Hydra and contribute towards #309482

Update c3c compiler to the newest released stable version.
@wegank wegank changed the title c3c: unstable-2021-07-30 -> 0.5 c3c: unstable-2021-07-30 -> 0.5.5 May 6, 2024
@wegank wegank merged commit d14b019 into NixOS:master May 7, 2024
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1-10 10.rebuild-linux: 1 12.approvals: 1 This PR was reviewed and approved by one reputable person 12. first-time contribution This PR is the author's first one; please be gentle!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants