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

OSX Build issue #4

Closed
mpeeters opened this issue May 14, 2018 · 1 comment
Closed

OSX Build issue #4

mpeeters opened this issue May 14, 2018 · 1 comment

Comments

@mpeeters
Copy link

On OSX (10.12.6) I have the following error :

Preprocessing library for filecache-0.3.2..
Building library for filecache-0.3.2..
[1 of 2] Compiling Data.FileCache.Internal ( src/Data/FileCache/Internal.hs, dist/build/Data/FileCache/Internal.o )
WARNING:  You build with buildroot.
  Build root: /
  Bin dir: /nix/store/fzsbjkvsqxm5iabv4na6gv9mkybp4s2k-ruby2.4.3-simp-beaker-helpers-1.9.0/lib/ruby/gems/2.4.0/bin
  Gem home: /nix/store/fzsbjkvsqxm5iabv4na6gv9mkybp4s2k-ruby2.4.3-simp-beaker-helpers-1.9.0/lib/ruby/gems/2.4.0
Successfully installed simp-beaker-helpers-1.9.0
1 gem installed
post-installation fixup
[2 of 2] Compiling Data.FileCache   ( src/Data/FileCache.hs, dist/build/Data/FileCache.o )
patching script interpreter paths in /nix/store/fzsbjkvsqxm5iabv4na6gv9mkybp4s2k-ruby2.4.3-simp-beaker-helpers-1.9.0
[1 of 2] Compiling Data.FileCache.Internal ( src/Data/FileCache/Internal.hs, dist/build/Data/FileCache/Internal.p_o )
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
ld: warning: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation, ignoring unexpected dylib file
[2 of 2] Compiling Data.FileCache   ( src/Data/FileCache.hs, dist/build/Data/FileCache.p_o )
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
ld: warning: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation, ignoring unexpected dylib file
ld: warning: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation, ignoring unexpected dylib file
ignoring (possibly broken) abi-depends field for packages
Preprocessing test suite 'simpletest' for filecache-0.3.2..
Building test suite 'simpletest' for filecache-0.3.2..
[1 of 1] Compiling Main             ( tests/simpletest.hs, dist/build/simpletest/simpletest-tmp/Main.o )
Linking dist/build/simpletest/simpletest ...
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
running tests
Running 1 test suites...
Test suite simpletest: RUNNING...

Spec
  Should run the actions
  Should have cached the results
  Should stop watching dropped files FAILED [1]
  Should update the list of watched files per directory FAILED [2]
  Should stop watching directory without watched files
  Should stop the watch

Failures:

  tests/simpletest.hs:41:
  1) Spec Should stop watching dropped files
       expected: 3
        but got: 0

  tests/simpletest.hs:44:
  2) Spec Should update the list of watched files per directory
       expected: [("/private/tmp/nix-build-filecache-0.3.2.drv-0/filecacheXXX.tmp70743/",fromList ["/private/tmp/nix-build-filecache-0.3.2.drv-0/filecacheXXX.tmp70743/temp1","/private/tmp/nix-build-filecache-0.3.2.drv-0/filecacheXXX.tmp70743/temp100","/private/tmp/nix-build-filecache-0.3.2.drv-0/filecacheXXX.tmp70743/temp1000"])]
        but got: []

Randomized with seed 1103253825

Finished in 0.3529 seconds
6 examples, 2 failures
Test suite simpletest: FAIL
Test suite logged to: dist/test/filecache-0.3.2-simpletest.log
0 of 1 test suites (0 of 1 test cases) passed.
builder for '/nix/store/bza4yl7ms1sg2sjnjivbqyh6jjxqdp3r-filecache-0.3.2.drv' failed with exit code 1
cannot build derivation '/nix/store/8rp8z9k17mlkbnpv5mqcd2xdzsvcqx9h-language-puppet-1.3.17.drv': 1 dependencies couldn't be built
error: build of '/nix/store/8rp8z9k17mlkbnpv5mqcd2xdzsvcqx9h-language-puppet-1.3.17.drv', '/nix/store/yfssvcr07i6sk9h2zi0ynvbficxc4cns-puppet-env-4.7.0.drv' failed
make: *** [librarian] Error 100
@bartavelle
Copy link
Owner

Why is it installing ruby packages in the middle of compilation? How are you installing the package?

That will be really hard for me to diagnose, as the problem is either nix or OSX specific, which I do not use. However, it seems like the problem is related to the fsnotify dependency, which seems to have open issues for OSX. Is nix using the latest version of fsnotify?

peti pushed a commit to NixOS/nixpkgs that referenced this issue Jun 27, 2018
See bartavelle/filecache#4 for details.
Closes #42629.

Update configuration-common.nix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants