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

broken darwin packages (c) #46628

Merged
merged 3 commits into from Sep 14, 2018
Merged

broken darwin packages (c) #46628

merged 3 commits into from Sep 14, 2018

Conversation

LnL7
Copy link
Member

@LnL7 LnL7 commented Sep 13, 2018

Motivation for this change

Mark various packages linux only or broken on darwin.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

Using gccStdenv makes the build go further, but then it fails with.

    kuipc /private/tmp/nix-build-cernlib-2006.drv-0/2006/src/packlib/kuip/code_kuip/kuipcdf.cdf kuipcdf.c
    Makefile:413: archive/kuipcdf.d: No such file or directory
    make[3]: *** [Makefile:473: kuipcdf.c] Abort trap: 6

/cc ZHF NixOS#45961
@GrahamcOfBorg GrahamcOfBorg added the 6.topic: darwin Running or building packages on Darwin label Sep 13, 2018
While it's possible to build on darwin, we never had a successful build.

    Undefined symbols for architecture x86_64:
      "sf::microseconds(long long)", referenced from:
          _sfSleep in Sleep.cpp.o

/cc ZHF NixOS#45961
Looks CoreFoundation related.

    Undefined symbols for architecture x86_64:
      "_CFURLResourceIsReachable", referenced from:
          fsevent_sys::core_foundation::str_path_to_cfstring_ref::h0ea4bd94e2c613f2 in libfsevent_sys-ef30b6879660a6c1.rlib(fsevent_sys-ef30b6879660a6c1.fsevent_sys7-49ce33334334dd3a5c7883bf4070f954.rs.rcgu.o)
    ld: symbol(s) not found for architecture x86_64

/cc ZHF NixOS#45961
@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: cargo-web, cernlib, csfml

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: cargo-web, cernlib, csfml

Partial log (click to expand)

these paths will be fetched (13.77 MiB download, 81.14 MiB unpacked):
  /nix/store/255ckp4x7gi0bbf3p60v62f87gfm841m-csfml-2.4
  /nix/store/n67d7g3936r5f7ljd2v5wz3aa0zwliv4-cernlib-2006
  /nix/store/nzjw1znrrgag6dj9q9hwif6c30i5i0cs-cargo-web-0.6.15
copying path '/nix/store/nzjw1znrrgag6dj9q9hwif6c30i5i0cs-cargo-web-0.6.15' from 'https://nix-cache.s3.amazonaws.com'...
copying path '/nix/store/n67d7g3936r5f7ljd2v5wz3aa0zwliv4-cernlib-2006' from 'https://nix-cache.s3.amazonaws.com'...
copying path '/nix/store/255ckp4x7gi0bbf3p60v62f87gfm841m-csfml-2.4' from 'https://nix-cache.s3.amazonaws.com'...
/nix/store/nzjw1znrrgag6dj9q9hwif6c30i5i0cs-cargo-web-0.6.15
/nix/store/n67d7g3936r5f7ljd2v5wz3aa0zwliv4-cernlib-2006
/nix/store/255ckp4x7gi0bbf3p60v62f87gfm841m-csfml-2.4

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: cargo-web, cernlib, csfml

Partial log (click to expand)

these paths will be fetched (12.79 MiB download, 74.23 MiB unpacked):
  /nix/store/2ih219zfacqp833bfa9brr8xnhs4n3p5-cernlib-2006
  /nix/store/a9h9ddyjc0bhlaim7xpkqb72y41431kl-cargo-web-0.6.15
  /nix/store/dmsm72jfywdkk95041z50s0pfq1d8na7-csfml-2.4
copying path '/nix/store/a9h9ddyjc0bhlaim7xpkqb72y41431kl-cargo-web-0.6.15' from 'https://cache.nixos.org'...
copying path '/nix/store/2ih219zfacqp833bfa9brr8xnhs4n3p5-cernlib-2006' from 'https://cache.nixos.org'...
copying path '/nix/store/dmsm72jfywdkk95041z50s0pfq1d8na7-csfml-2.4' from 'https://cache.nixos.org'...
/nix/store/a9h9ddyjc0bhlaim7xpkqb72y41431kl-cargo-web-0.6.15
/nix/store/2ih219zfacqp833bfa9brr8xnhs4n3p5-cernlib-2006
/nix/store/dmsm72jfywdkk95041z50s0pfq1d8na7-csfml-2.4

@xeji xeji merged commit 3531c27 into NixOS:master Sep 14, 2018
@xeji
Copy link
Contributor

xeji commented Sep 14, 2018

backported: 221ec61..8a93d25

@LnL7 LnL7 deleted the darwin-broken-c branch September 14, 2018 16:46
@LnL7 LnL7 mentioned this pull request Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants