devenv does not build on macOS

(#292) Bug Closed: Fixed self-hosting

Summary

When I tried to install the app and run it on my macOs M1, it fails to build. I expected it to be able to run the server. I have fixed this bug in this commit, I am not contributor so I cannot pull request this to the correct branch at this moment. Here is the fix if you want: https://github.com/michal-skraburski/fluxer/commit/866a254a7840f6b6875cd5cba825791b6f581f49

Steps to reproduce

  1. clone 848269a4d4df7349acfc861ff926b17fe4c4a548-> the latest for me at the moment
  2. run devenv shell
  3. failure, iproute2 and its dependencies do not run on macOS.

Environment (optional)

  • 848269a4d4df7349acfc861ff926b17fe4c4a548
  • macOS
  • M1

Logs or screenshots (optional)

❯ devenv shell
• Using Cachix caches: devenv, devenv
error: Cannot build '/nix/store/ky2y3fxfkkfaqw7pwsznqglkbs6xf818-libmnl-1.0.5.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/bk4xaw9qn4r4bnrm46p5xs02a570s1gd-libmnl-1.0.5
       Last 25 log lines:
       > checking for sys/stat.h... yes
       > checking for stdlib.h... yes
       > checking for string.h... yes
       > checking for memory.h... yes
       > checking for strings.h... yes
       > checking for inttypes.h... yes
       > checking for stdint.h... yes
       > checking for unistd.h... yes
       > checking for dlfcn.h... yes
       > checking for objdir... .libs
       > checking if clang supports -fno-rtti -fno-exceptions... yes
       > checking for clang option to produce PIC... -fno-common -DPIC
       > checking if clang PIC flag -fno-common -DPIC works... yes
       > checking if clang static flag -static works... no
       > checking if clang supports -c -o file.o... yes
       > checking if clang supports -c -o file.o... (cached) yes
       > checking whether the clang linker (ld) supports shared libraries... yes
       > checking dynamic linker characteristics... darwin24.6.0 dyld
       > checking how to hardcode library paths into programs... immediate
       > checking whether stripping libraries is possible... yes
       > checking if libtool supports shared libraries... yes
       > checking whether to build shared libraries... yes
       > checking whether to build static libraries... no
       > checking whether compiler accepts -fvisibility=hidden... yes
       > configure: error: Linux only, dude!
       For full logs, run:
         nix log /nix/store/ky2y3fxfkkfaqw7pwsznqglkbs6xf818-libmnl-1.0.5.drv
error: Cannot build '/nix/store/chmz453ik6pxl54j9b8vv2a9ync6dps5-libnftnl-1.3.1.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/5q0dkdiid1rriw7yrhpwzhlnikxrc363-libnftnl-1.3.1
error: Build failed due to failed dependency
error: Cannot build '/nix/store/9mpn34rq8m86c7f82gyk6129zaahz5p9-libnfnetlink-1.0.2.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/kg40a8kavxhfr2i8vardavqpwiybh9r1-libnfnetlink-1.0.2
       Last 25 log lines:
       > checking for sys/types.h... yes
       > checking for sys/stat.h... yes
       > checking for stdlib.h... yes
       > checking for string.h... yes
       > checking for memory.h... yes
       > checking for strings.h... yes
       > checking for inttypes.h... yes
       > checking for stdint.h... yes
       > checking for unistd.h... yes
       > checking for dlfcn.h... yes
       > checking for objdir... .libs
       > checking if clang supports -fno-rtti -fno-exceptions... yes
       > checking for clang option to produce PIC... -fno-common -DPIC
       > checking if clang PIC flag -fno-common -DPIC works... yes
       > checking if clang static flag -static works... no
       > checking if clang supports -c -o file.o... yes
       > checking if clang supports -c -o file.o... (cached) yes
       > checking whether the clang linker (ld) supports shared libraries... yes
       > checking dynamic linker characteristics... darwin24.6.0 dyld
       > checking how to hardcode library paths into programs... immediate
       > checking whether stripping libraries is possible... yes
       > checking if libtool supports shared libraries... yes
       > checking whether to build shared libraries... yes
       > checking whether to build static libraries... no
       > configure: error: Linux only, dude!
       For full logs, run:
         nix log /nix/store/9mpn34rq8m86c7f82gyk6129zaahz5p9-libnfnetlink-1.0.2.drv
error: Cannot build '/nix/store/1ybmzzzv7062cin2fwmma2521j1s55qw-libnetfilter_conntrack-1.1.0.drv'.
       Reason: 2 dependencies failed.
       Output paths:
         /nix/store/d7nfvsxq0hz9cfsnhsflyjlfvjgl1zh8-libnetfilter_conntrack-1.1.0
error: Build failed due to failed dependency
error: Cannot build '/nix/store/dfrvdg2a3fby53rmm2q6sf2xch7imvkz-iptables-1.8.11.drv'.
       Reason: 4 dependencies failed.
       Output paths:
         /nix/store/0059qai7lf0g8l0ipjpvxzyiswwa5ck5-iptables-1.8.11-lib
         /nix/store/5ry9hb8bqhpl1sp766z7nkf2l8psns7q-iptables-1.8.11-dev
         /nix/store/ggrh6h3y75z98yrn9fa1246l33nh3vsl-iptables-1.8.11
         /nix/store/k0xs9aqwszl0f2w1xvwm8vijk0g3nja1-iptables-1.8.11-man
error: Build failed due to failed dependency
error: Cannot build '/nix/store/3zhajp300fgzfh6jy5b8n5ib4b2rzmcb-elfutils-0.194.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/ry3fjxi6hc3zvqfmlw33bj1ag3wz9nn6-elfutils-0.194-dev
         /nix/store/x5kib4iixicdclw4qfj0fx8npanrx1b4-elfutils-0.194
         /nix/store/xy0lcjjb47bb9zrfhhpzfhqd35fxck7y-elfutils-0.194-man
         /nix/store/yp3zmmhkvvcmqkq4nkr9kyjaja4zn96b-elfutils-0.194-bin
       Last 25 log lines:
       > checking dependency style of clang... none
       > checking whether the compiler supports GNU C++... yes
       > checking whether clang++ accepts -g... yes
       > checking for clang++ option to enable C++11 features... none needed
       > checking dependency style of clang++... none
       > checking for ranlib... ranlib
       > checking for bison... bison -y
       > checking for flex... flex
       > checking for lex output file root... lex.yy
       > checking for lex library... none needed
       > checking whether yytext is a pointer... yes
       > checking the archiver (ar) interface... ar
       > checking for readelf... no
       > checking for nm... nm
       > checking whether gcc supports __attribute__((visibility()))... yes
       > checking whether gcc supports __attribute__((gcc_struct))... no
       > checking whether gcc supports -fPIC... yes
       > checking whether gcc supports -fPIE... yes
       > checking whether gcc supports -Wl,-z,defs... no
       > checking whether the compiler generates build-ids... ./configure: line 7229: -n: command not found
       > no
       > configure: WARNING: compiler doesn't generate build-id by default
       > checking whether gcc supports -Wl,-z,relro... no
       > checking for __thread support... no
       > configure: error: __thread support required
       For full logs, run:
         nix log /nix/store/3zhajp300fgzfh6jy5b8n5ib4b2rzmcb-elfutils-0.194.drv
error: Cannot build '/nix/store/rrv71i1kyc1vivnkax1dw510r3lzpbpz-libbpf-1.6.2.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/zph78xq211vhd9gyj1khz3lakmcn5x76-libbpf-1.6.2
error: Build failed due to failed dependency
error: Cannot build '/nix/store/cpgl0ripin1g7iqggn7v21pjb2fwkqhm-iproute2-6.18.0.drv'.
       Reason: 4 dependencies failed.
       Output paths:
         /nix/store/g972l272p6y3v1186jqxryv1syz8kgwy-iproute2-6.18.0-scripts
         /nix/store/p5h294j4vsrp19z5giiz6l0840cy0ljm-iproute2-6.18.0
         /nix/store/yz0wgjzlmrh06lzsqwn66wi5hg7ldl1a-iproute2-6.18.0-dev
error: Build failed due to failed dependency
error: Build failed due to failed dependency
error: Cannot build '/nix/store/qygbdy53rmdkrcl6j3qa8rvxp3bnsjpc-devenv-profile.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/w2flm9d4k5hdnipldyfa5f0zyfb1jdjj-devenv-profile
error: Build failed due to failed dependency
error: Cannot build '/nix/store/z6cmas88kfxapwpgw15ij17y5knjyqs0-devenv-shell-env.drv'.
       Reason: 2 dependencies failed.
       Output paths:
         /nix/store/pmrzk0bhjfiqjwfj1dr5k3mj2xbvdsy7-devenv-shell-env
error:
       error: Build failed due to failed dependency
✖ Building shell in 24.3s
Error:   × Command `/nix/store/8gl1n48pjkdb6dmbwas8kp823l79bq3g-devenv-nix-2.30.4/
  │ bin/nix --show-trace --extra-experimental-features nix-command --extra-
  │ experimental-features flakes --option lazy-trees true --option warn-dirty
  │ false --keep-going --max-jobs 2 --option eval-cache false --option always-
  │ allow-substitutes true --option http-connections 100 --option extra-
  │ substituters https://devenv.cachix.org https://devenv.cachix.org --option
  │ extra-trusted-public-keys devenv.cachix.org-
  │ 1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw= print-dev-env --profile /
  │ Users/maikeru/dev/fluxer/.devenv/gc/shell -vv --log-format internal-json`
  │ failed with exit code 1

2 comments

Sign in with Fluxer to comment and vote.
Comment by Rex
RexSystem 1 vote edited
Status changed from Fixed to Awaiting confirmation
This may be fixed in the current version. If it still happens for you, please say so here.
Comment by Rex
RexSystem 1 vote
Status changed from Awaiting confirmation to Fixed
Imported from GitHub, fix shipped. Closed in bulk.