1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 19:15:39 +00:00
nixpkgs/pkgs/development
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
..
androidndk-pkgs
arduino
beam-modules
bower-modules/generic
chez-modules
compilers Merge master into staging-next 2020-12-22 00:46:39 +00:00
coq-modules
dhall-modules
dotnet-modules
em-modules/generic
go-modules buildGoModule: fix cross-compilation with CGO_ENABLED=1 2020-12-26 23:40:05 +01:00
go-packages
guile-modules
haskell-modules
idris-modules
interpreters Merge master into staging-next 2020-12-23 12:25:37 +00:00
java-modules
libraries Merge pull request #107540 from flokli/websocketpp-fix-cross 2020-12-24 23:29:41 +01:00
lisp-modules
lua-modules
misc
mobile
node-packages
ocaml-modules ocamlPackages.opam-format: use dune 2 2020-12-21 10:06:32 +01:00
perl-modules
pharo
php-packages
pure-modules
python-modules Merge pull request #107492 from SuperSandro2000/pythonPackages-disable-tests 2020-12-25 00:55:40 +01:00
r-modules
ruby-modules
tools tree-sitter: patch out web-ui by default, to drop emscripten 2020-12-24 17:11:04 +01:00
web nodejs-15_x: 15.4.0 -> 15.5.0 2020-12-22 14:02:00 -05:00