bartavelle / filecache

A Linux-only cache system associating values to files. The values are automatically discarded when the files are modified.
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

OSX Build issue #4

Closed mpeeters closed 8 months ago

mpeeters commented 6 years ago

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 commented 6 years ago

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?