1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-03-06 23:31:34 +00:00
nixpkgs/pkgs
Florian Klink 3c8981ee8b buildGoModule: fix cross-compilation with CGO_ENABLED=1
When building a go binary that's linking against some .so/.a, while
cross-compiling, we need to pass the correct compiler, otherwise
`go build` will fail with the not-so helpful error message:

```
gcc_arm64.S: Assembler messages:
gcc_arm64.S:28: Error: no such instruction: `stp x29,x30,[sp,'
gcc_arm64.S:32: Error: too many memory references for `mov'
gcc_arm64.S:34: Error: no such instruction: `stp x19,x20,[sp,'
gcc_arm64.S:37: Error: no such instruction: `stp x21,x22,[sp,'
gcc_arm64.S:40: Error: no such instruction: `stp x23,x24,[sp,'
gcc_arm64.S:43: Error: no such instruction: `stp x25,x26,[sp,'
gcc_arm64.S:46: Error: no such instruction: `stp x27,x28,[sp,'
gcc_arm64.S:50: Error: too many memory references for `mov'
gcc_arm64.S:51: Error: too many memory references for `mov'
gcc_arm64.S:52: Error: too many memory references for `mov'
gcc_arm64.S:54: Error: no such instruction: `blr x20'
gcc_arm64.S:55: Error: no such instruction: `blr x19'
gcc_arm64.S:57: Error: no such instruction: `ldp x27,x28,[sp,'
gcc_arm64.S:60: Error: no such instruction: `ldp x25,x26,[sp,'
gcc_arm64.S:63: Error: no such instruction: `ldp x23,x24,[sp,'
gcc_arm64.S:66: Error: no such instruction: `ldp x21,x22,[sp,'
gcc_arm64.S:69: Error: no such instruction: `ldp x19,x20,[sp,'
gcc_arm64.S:72: Error: no such instruction: `ldp x29,x30,[sp],'
```
2020-12-26 23:40:05 +01:00
..
applications Merge pull request #107510 from svrana/tilt-update 2020-12-25 01:03:14 +01:00
build-support Merge pull request #107507 from LibreCybernetics/add-zen-info 2020-12-24 10:23:10 -05:00
common-updater
data Merge master into staging-next 2020-12-23 00:48:29 +00:00
desktops Merge master into staging-next 2020-12-23 00:48:29 +00:00
development buildGoModule: fix cross-compilation with CGO_ENABLED=1 2020-12-26 23:40:05 +01:00
games steamPackages.steam: add udev rules 2020-12-23 22:46:56 -08:00
misc craftos-pc: init at 2.4.5 2020-12-24 16:40:01 +07:00
os-specific Revert "alsa-firmware: 1.2.1 -> 1.2.4" 2020-12-24 17:17:57 +01:00
pkgs-lib
servers Merge pull request #107469 from Ma27/bump-prometheus 2020-12-23 21:49:08 +01:00
shells Merge pull request #107160 from NixOS/zsh-powerlevel10k 2020-12-22 22:31:35 +00:00
stdenv
test Revert "bintools-wrapper: skip dynamic linker for static binaries" 2020-12-21 22:27:48 +01:00
tools Merge pull request #107204 from veprbl/pr/texlive_substitute_from_hydra 2020-12-24 18:32:46 -05:00
top-level Merge pull request #107471 from siraben/craftos-init 2020-12-24 19:12:26 +01:00