Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Install fails on macOS 11 #832

Closed
tkx68 opened this issue Dec 19, 2020 · 4 comments
Closed

Install fails on macOS 11 #832

tkx68 opened this issue Dec 19, 2020 · 4 comments
Labels
bug Something isn't working High Severity MacOS Relates to obelisk running on MacOS

Comments

@tkx68
Copy link

tkx68 commented Dec 19, 2020

I followed the installation instructions for macOS. I use macOS 11 Big Sur. I get the following error. Apparently there seems to be a problem with the clang compiler.

% nix-env -f https://github.com/obsidiansystems/obelisk/archive/master.tar.gz -iA command
building '/nix/store/kf0l7kp5dh5jcv0qzinyhjqr6spffn4r-libffi-3.3.drv'...
unpacking sources
unpacking source archive /nix/store/xf097h6i4i3dpg4dk45zzpkbfz6kw6cf-libffi-3.3.tar.gz
source root is libffi-3.3
setting SOURCE_DATE_EPOCH to timestamp 1574525816 of file libffi-3.3/doc/libffi.pdf
patching sources
configuring
fixing libtool script ./ltmain.sh
configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/gss6r77l4b2npjh664zyd0klpsd1nqy3-libffi-3.3 --bindir=/nix/store/gss6r77l4b2npjh664zyd0klpsd1nqy3-libffi-3.3/bin --sbindir=/nix/store/gss6r77l4b2npjh664zyd0klpsd1nqy3-libffi-3.3/sbin --includedir=/nix/store/fmj6g3fwplywafqadby61kxf1g64asal-libffi-3.3-dev/include --oldincludedir=/nix/store/fmj6g3fwplywafqadby61kxf1g64asal-libffi-3.3-dev/include --mandir=/nix/store/rgxhis5lp4cvmzlzwcxrsnp17i9mc76y-libffi-3.3-man/share/man --infodir=/nix/store/y57v8xk9x5ylq5mxizbilpz6vnnjnkx0-libffi-3.3-info/share/info --docdir=/nix/store/gss6r77l4b2npjh664zyd0klpsd1nqy3-libffi-3.3/share/doc/libffi --libdir=/nix/store/gss6r77l4b2npjh664zyd0klpsd1nqy3-libffi-3.3/lib --libexecdir=/nix/store/gss6r77l4b2npjh664zyd0klpsd1nqy3-libffi-3.3/libexec --localedir=/nix/store/gss6r77l4b2npjh664zyd0klpsd1nqy3-libffi-3.3/share/locale --with-gcc-arch=generic --enable-pax_emutramp
checking build system type... x86_64-apple-darwin20.2.0
checking host system type... x86_64-apple-darwin20.2.0
checking target system type... x86_64-apple-darwin20.2.0
continue configure in default builddir "./x86_64-apple-darwin20.2.0"
....exec /nix/store/mh5g5fj3jjwm60wfx9scr50cibx77m0s-bash-4.4-p23/bin/bash .././configure "--srcdir=.." "--enable-builddir=x86_64-apple-darwin20.2.0" "darwin20.2.0"
checking build system type... x86_64-apple-darwin20.2.0
checking host system type... x86_64-apple-darwin20.2.0
checking target system type... x86_64-apple-darwin20.2.0
checking for gsed... sed
checking for a BSD-compatible install... /nix/store/2ws9cmamvr7xyvdg4d2nnd1bmr1zjrrq-bootstrap-tools/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /nix/store/2ws9cmamvr7xyvdg4d2nnd1bmr1zjrrq-bootstrap-tools/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in `/private/tmp/nix-build-libffi-3.3.drv-0/libffi-3.3/x86_64-apple-darwin20.2.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
builder for '/nix/store/kf0l7kp5dh5jcv0qzinyhjqr6spffn4r-libffi-3.3.drv' failed with exit code 77
cannot build derivation '/nix/store/bgz8gah9rcv6ma073y4s4xl1a2sgnf1b-ghc-8.6.5.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/xj6iabfmgc3vrfzmzij7kl52dq1990gm-llvm-6.0.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/8ishfvib1ry6nj9146wm2pqh0sb23dz5-llvm-7.1.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/b73jiczc49nkhaww58qijy3jx15kf5l7-llvm-7.1.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/2pqfmjv7dizh305af1wpfg7yani7j84l-python2.7-cffi-1.12.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/gbvd64jg354nn4hm5fjr31r63kh2nq4i-stdenv-darwin.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/gz0bmmzx4zw9y5pdmll1knnm9zk7lpww-stdenv-darwin.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/y8w9yd7ii3hrz24qmx3rnxi3c0vrry4k-cabal2nix-obelisk-command.drv': 1 dependencies couldn't be built
error: build of '/nix/store/y8w9yd7ii3hrz24qmx3rnxi3c0vrry4k-cabal2nix-obelisk-command.drv' failed
(use '--show-trace' to show detailed location information)

My nix.conf looks as follows:

% cat /etc/nix/nix.conf 
binary-caches = https://cache.nixos.org https://nixcache.reflex-frp.org
binary-cache-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=
binary-caches-parallel-connections = 40
sandbox = false
@tkx68 tkx68 changed the title Install failes Install fails on macOS 11 Dec 19, 2020
@mightybyte
Copy link
Collaborator

I'm also seeing a failure like this. Here's the message I'm getting:

$ ob run
...
Build with /nix/store/0c3nqswyqhqxyplzq0sjxp2djpwkczpi-ghc-8.6.5.
Linking Setup ...
Linking Setup ...
ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
`cc' failed in phase `Linker'. (Exit code: 1)
`cc' failed in phase `Linker'. (Exit code: 1)
unpacking sources
unpacking source archive /nix/store/v7birfycislz2rkm6k0m6jvv6wm7wvaj-th-utilities-0.2.3.0.tar.gz
source root is th-utilities-0.2.3.0
builder for '/nix/store/qc3h8az3rhc50624s5cw775crsjk1z1c-obelisk-generated-static-0.drv' failed with exit code 1
cannot build derivation '/nix/store/r5q0ycf3snnv8gbzmnhpr0352ccy9mcc-ghc-8.6.5-with-packages.drv': 1 dependencies couldn't be built
error: build of '/nix/store/r5q0ycf3snnv8gbzmnhpr0352ccy9mcc-ghc-8.6.5-with-packages.drv' failed

It looks like this reflex-platform issue may also be related: reflex-frp/reflex-platform#714

@Matthew-Mosior
Copy link

Any update on this problem? I am running into the same issue on Big Sur.

@santiweight
Copy link

Facing the same (or similar?) issue as well:

[1 of 1] Compiling Main             ( Setup.lhs, /private/tmp/nix-build-Boolean-0.2.4.drv-0/Main.o )
Linking Setup ...
ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
`cc' failed in phase `Linker'. (Exit code: 1)
builder for '/nix/store/7999bvplx1ww1g8a4h0317rvm4w5bj8y-Boolean-0.2.4.drv' failed with exit code 1
cannot build derivation '/nix/store/q030zsx7r8ab9dkhkpw7vinf9bgf2yab-ghc-8.6.5-with-packages.drv': 1 dependencies couldn't be built
error: build of '/nix/store/q030zsx7r8ab9dkhkpw7vinf9bgf2yab-ghc-8.6.5-with-packages.drv' failed

@madeline-os madeline-os added bug Something isn't working High Severity MacOS Relates to obelisk running on MacOS labels May 12, 2022
@ali-abrar
Copy link
Member

Please reopen if this issue recurs in v1.3 or later. Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working High Severity MacOS Relates to obelisk running on MacOS
Projects
None yet
Development

No branches or pull requests

6 participants