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

Go will include windows-only files when compiling #43593

Open
Chiiruno opened this issue Jul 16, 2018 · 1 comment
Open

Go will include windows-only files when compiling #43593

Chiiruno opened this issue Jul 16, 2018 · 1 comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: golang

Comments

@Chiiruno
Copy link
Contributor

Chiiruno commented Jul 16, 2018

Issue description

Go will include windows-only files when compiling, and cause this error.

# github.com/bakape/hydron
/nix/store/360zh9xvnqzvzvl567b43960fhgq90dw-go-1.10.3/share/go/pkg/tool/linux_amd64/link: running g++ failed: exit status 1
/run/user/1000/go-link-113124839/000000.o: file not recognized: File format is ambiguous
/run/user/1000/go-link-113124839/000000.o: matching formats: coff-x86-64 pe-x86-64
collect2: error: ld returned 1 exit status

I have tested on another OS to ensure it wasn't the repo's problem, but instead this is Nix, or Nix's go expression that's the problem. Go will include a windows-only binary icon, and that will cause the above error.

Steps to reproduce

go get github.com/bakape/hydron

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.17.5, NixOS, 18.09pre145679.dae9cf6106d (Jellyfish)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.0.4
  • channels(root): "nixos-18.09pre145679.dae9cf6106d, nixpkgs-18.09pre146127.98792fe3515"
  • channels(okina): ""
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
@stale
Copy link

stale bot commented Jun 4, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: golang
Projects
None yet
Development

No branches or pull requests

2 participants