{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/35106","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/35106/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/35106/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/35106/events","html_url":"https://github.com/NixOS/nixpkgs/issues/35106","id":298081743,"number":35106,"title":"cross-compiling native gcc for AArch64 fails with \"unable to emulate HF\" error","user":{"login":"hlandau","id":2270010,"avatar_url":"https://avatars3.githubusercontent.com/u/2270010?v=4","gravatar_id":"","url":"https://api.github.com/users/hlandau","html_url":"https://github.com/hlandau","followers_url":"https://api.github.com/users/hlandau/followers","following_url":"https://api.github.com/users/hlandau/following{/other_user}","gists_url":"https://api.github.com/users/hlandau/gists{/gist_id}","starred_url":"https://api.github.com/users/hlandau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlandau/subscriptions","organizations_url":"https://api.github.com/users/hlandau/orgs","repos_url":"https://api.github.com/users/hlandau/repos","events_url":"https://api.github.com/users/hlandau/events{/privacy}","received_events_url":"https://api.github.com/users/hlandau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-02-18T12:39:39Z","updated_at":"2018-03-01T22:54:46Z","closed_at":null,"author_association":"NONE","body":"## Issue description\r\nThis follows on from #35029 which is no longer happening. Probably yet another thing yet to be worked out in the new cross-compilation support. @Ericson2314 \r\n\r\n### Steps to reproduce\r\n```\r\n$ cd nixpkgs\r\n$ cat cross.nix\r\nlet\r\n  aarch64 = rec {\r\n    config = \"aarch64-linux-gnu\";\r\n    bigEndian = false;\r\n    arch = \"aarch64\";\r\n    withTLS = true;\r\n    libc = \"glibc\";\r\n    platform = nixpkgs.lib.systems.platforms.aarch64-multiplatform;\r\n    inherit (platform) gcc;\r\n    openssl.system = \"linux-generic64\";\r\n  };\r\n\r\n  nixpkgs = import ./default.nix { crossSystem = aarch64; };\r\nin rec {\r\n  stdenv = nixpkgs.stdenv;\r\n  linux = nixpkgs.linux;\r\n\r\n  foo = stdenv.mkDerivation rec {\r\n    name = \"foo\";\r\n    # (The kernel always builds with gcc7, so this causes gcc7 to be built.)\r\n    buildInputs = [linux];\r\n  };\r\n}\r\n$ nix-shell -A foo cross.nix\r\n```\r\nBuild log is here: https://www.devever.net/~hl/f/gcc-cross-20180218.log\r\n\r\nThis is with nixpkgs master (`7c2b2ddd683686f713807d6d0b2f62c71174afac`).\r\n\r\n## Technical details\r\n - system: `\"x86_64-linux\"`\r\n - host os: `Linux 4.14.14, NixOS, 17.09.3023.c882c4dd55e (Hummingbird)`\r\n - multi-user?: `yes`\r\n - sandbox: `no`\r\n - version: `nix-env (Nix) 1.11.16`\r\n - channels(root): `\"nixos-17.09.3023.c882c4dd55e\"`\r\n - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/369759738","html_url":"https://github.com/NixOS/nixpkgs/issues/35106#issuecomment-369759738","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/35106","id":369759738,"user":{"login":"lopsided98","id":5624721,"avatar_url":"https://avatars3.githubusercontent.com/u/5624721?v=4","gravatar_id":"","url":"https://api.github.com/users/lopsided98","html_url":"https://github.com/lopsided98","followers_url":"https://api.github.com/users/lopsided98/followers","following_url":"https://api.github.com/users/lopsided98/following{/other_user}","gists_url":"https://api.github.com/users/lopsided98/gists{/gist_id}","starred_url":"https://api.github.com/users/lopsided98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lopsided98/subscriptions","organizations_url":"https://api.github.com/users/lopsided98/orgs","repos_url":"https://api.github.com/users/lopsided98/repos","events_url":"https://api.github.com/users/lopsided98/events{/privacy}","received_events_url":"https://api.github.com/users/lopsided98/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T22:54:46Z","updated_at":"2018-03-01T22:54:46Z","author_association":"CONTRIBUTOR","body":"It's impossible to build a working cross compiled GCC 7 because of the cc-wrapper problem."}}
{"actor":{"display_login":"lopsided98"}}