flora-server
flora-server copied to clipboard
Failed to build project on darwin (Both Nix and Docker)
I'm running a darwin environment and I can't build the project. Previously I've tried to spin up the project using nix, it failed (I don't have the error message from spinning up using nix). So I've tried to spin it up inside a contained. Sadly, this failed, too.
I've tried to build the HEAD of the development
branch i.e. c2a0ed299c121ffdc8a9b2de7e9463f1d8005014
This was the error during the make docker-build
command:
Error log
=> ERROR [15/20] RUN cabal build --only-dependencies -j8 17.3s
------
> [15/20] RUN cabal build --only-dependencies -j8:
#23 0.468 Cloning into '/flora-server/dist-newstyle/src/prometheu_-e862cbca3f3df6bf'...
#23 1.256 HEAD is now at 43f19da Update changelogs and bump versions
#23 1.305 Cloning into '/flora-server/dist-newstyle/src/wai-middl_-cd0da7a1137ee091'...
#23 2.408 HEAD is now at bd7dbbe Update wai-middleware-heartbeat.cabal
#23 2.425 Cloning into '/flora-server/dist-newstyle/src/odd-jobs-9975367ccfc4d47d'...
#23 3.742 HEAD is now at a755157 Add support for resource-pool 3
#23 3.883 Cloning into '/flora-server/dist-newstyle/src/log-561556429f26200d'...
#23 4.795 HEAD is now at 73b4735 Release log-base-0.11.1.0, log-elasticsearch-0.12.2.0, log-postgres-0.8.1.0 (#80)
#23 4.816 Cloning into '/flora-server/dist-newstyle/src/envparse-c6092a80e101d449'...
#23 6.870 HEAD is now at 503a699 Implement generic optional field parsing (#16)
#23 6.897 Cloning into '/flora-server/dist-newstyle/src/pg-entity-1126993c83732e54'...
#23 9.023 HEAD is now at 7125eac Add upsert (#46)
#23 9.050 Cloning into '/flora-server/dist-newstyle/src/raven-has_-c76f54ec5ae3c2d5'...
#23 9.669 warning: redirecting to https://gitlab.com/dpwiz/raven-haskell.git/
#23 10.85 HEAD is now at 9dacea2 Update repo url
#23 11.63 Warning: The package list for 'hackage.haskell.org' is 87 days old.
#23 11.63 Run 'cabal update' to get the latest list of available packages.
#23 14.70 Warning: Requested index-state 2022-06-12T21:09:01Z is newer than
#23 14.70 'hackage.haskell.org'! Falling back to older state (2022-04-16T09:16:37Z).
#23 14.79 Resolving dependencies...
#23 17.18 cabal: Could not resolve dependencies:
#23 17.18 [__0] trying: flora-0.0.1.0 (user goal)
#23 17.18 [__1] next goal: souffle-haskell (dependency of flora)
#23 17.18 [__1] rejecting: souffle-haskell-3.3.0 (conflict: flora =>
#23 17.18 souffle-haskell>=3.4)
#23 17.19 [__1] skipping: souffle-haskell-3.2.0, souffle-haskell-3.1.0,
#23 17.19 souffle-haskell-3.0.0, souffle-haskell-2.1.0, souffle-haskell-2.0.1,
#23 17.19 souffle-haskell-2.0.0, souffle-haskell-1.1.0, souffle-haskell-1.0.0,
#23 17.19 souffle-haskell-0.2.3, souffle-haskell-0.2.2, souffle-haskell-0.2.1,
#23 17.19 souffle-haskell-0.2.0, souffle-haskell-0.1.0, souffle-haskell-0.0.1 (has the
#23 17.19 same characteristics that caused the previous version to fail: excluded by
#23 17.19 constraint '>=3.4' from 'flora')
#23 17.19 [__1] fail (backjumping, conflict set: flora, souffle-haskell)
#23 17.19 After searching the rest of the dependency tree exhaustively, these were the
#23 17.19 goals I've had most trouble fulfilling: flora, souffle-haskell
#23 17.19
------
executor failed running [/bin/sh -c cabal build --only-dependencies -j8]: exit code: 1
ERROR: Service 'flora-server' failed to build : Build failed
make: *** [docker-build] Error 1
#23 11.63 Warning: The package list for 'hackage.haskell.org' is 87 days old. #23 11.63 Run 'cabal update' to get the latest list of available packages. #23 14.70 Warning: Requested index-state 2022-06-12T21:09:01Z is newer than #23 14.70 'hackage.haskell.org'! Falling back to older state (2022-04-16T09:16:37Z).
Can you retry but execute cabal update
beforehand? :)
Here is nix's error after running make nix-shell
. Gonna try the docker build with cabal updated.
Error log
building '/nix/store/wjlz0mmgdhm0ykxcxjqvpsdp5a8288d6-souffle-2.2.drv'...
unpacking sources
unpacking source archive /nix/store/aws085xgmfsmmfinf66lq4xlz3irl77c-source
source root is source
patching sources
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/aqkx6lb5c8x6fk5jzl21s19b41vin5gv-souffle-2.2/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/aqkx6lb5c8x6fk5jzl21s19b41vin5gv-souffle-2.2/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/aqkx6lb5c8x6fk5jzl21s19b41vin5gv-souffle-2.2/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/aqkx6lb5c8x6fk5jzl21s19b41vin5gv-souffle-2.2/share/doc/souffle -DCMAKE_INSTALL_INFODIR=/nix/store/aqkx6lb5c8x6fk5jzl21s19b41vin5gv-souffle-2.2/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/aqkx6lb5c8x6fk5jzl21s19b41vin5gv-souffle-2.2/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/aqkx6lb5c8x6fk5jzl21s19b41vin5gv-souffle-2.2/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/aqkx6lb5c8x6fk5jzl21s19b41vin5gv-souffle-2.2/include -DCMAKE_INSTALL_SBINDIR=/nix/store/aqkx6lb5c8x6fk5jzl21s19b41vin5gv-souffle-2.2/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/aqkx6lb5c8x6fk5jzl21s19b41vin5gv-souffle-2.2/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/aqkx6lb5c8x6fk5jzl21s19b41vin5gv-souffle-2.2/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/6w04688822nbbkqj1dcdig548xs796yi-cctools-binutils-darwin-949.0.1/bin/strip -DCMAKE_RANLIB=/nix/store/6w04688822nbbkqj1dcdig548xs796yi-cctools-binutils-darwin-949.0.1/bin/ranlib -DCMAKE_AR=/nix/store/6w04688822nbbkqj1dcdig548xs796yi-cctools-binutils-darwin-949.0.1/bin/ar -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=/nix/store/aqkx6lb5c8x6fk5jzl21s19b41vin5gv-souffle-2.2 -DSOUFFLE_GIT=OFF
-- The CXX compiler identification is Clang 11.1.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/cvz17hkb0wpbsyx58l4zcaamqs2bhlmz-clang-wrapper-11.1.0/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build Type: Release
-- Looking for cbreak in /nix/store/x5yyj8bfviqvmy6c81h812aq9n4nq7f2-ncurses-6.3/lib/libncurses.dylib
-- Looking for cbreak in /nix/store/x5yyj8bfviqvmy6c81h812aq9n4nq7f2-ncurses-6.3/lib/libncurses.dylib - not found
-- Looking for nodelay in /nix/store/x5yyj8bfviqvmy6c81h812aq9n4nq7f2-ncurses-6.3/lib/libncurses.dylib
-- Looking for nodelay in /nix/store/x5yyj8bfviqvmy6c81h812aq9n4nq7f2-ncurses-6.3/lib/libncurses.dylib - not found
-- Found Curses: /nix/store/x5yyj8bfviqvmy6c81h812aq9n4nq7f2-ncurses-6.3/lib/libncurses.dylib
-- Found FLEX: /nix/store/1mdsvgx4kyay9017akqd5cr28r7w93i0-flex-2.6.4/bin/flex (found version "2.6.4")
-- Found BISON: /nix/store/s7zsmljd3va203ncjlxinn596sh4ljig-bison-3.8.2/bin/bison (found suitable version "3.8.2", minimum required is "3.0.4")
-- Found ZLIB: /nix/store/vs0vrl10kh4f1z0lvlc4sc082b7szhw8-zlib-1.2.11/lib/libz.dylib (found version "1.2.11")
-- Found SQLite3: /nix/store/iqnnwyjxibr44j9i5kw1yrqbcnhkm83d-sqlite-3.37.2-dev/include (found version "3.37.2")
-- Found LibFFI: /nix/store/bk8z644m3bmrx58559f8wq5wlsp68c76-libffi-3.4.2-dev/include
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - not found
CMake Error at /nix/store/6nzlvgvdwslh4hmbp6r66y8klzs5isci-cmake-3.22.2/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
/nix/store/6nzlvgvdwslh4hmbp6r66y8klzs5isci-cmake-3.22.2/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/nix/store/6nzlvgvdwslh4hmbp6r66y8klzs5isci-cmake-3.22.2/share/cmake-3.22/Modules/FindThreads.cmake:238 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:225 (find_package)
-- Configuring incomplete, errors occurred!
See also "/tmp/nix-build-souffle-2.2.drv-0/source/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/nix-build-souffle-2.2.drv-0/source/build/CMakeFiles/CMakeError.log".
error: builder for '/nix/store/wjlz0mmgdhm0ykxcxjqvpsdp5a8288d6-souffle-2.2.drv' failed with exit code 1;
last 10 log lines:
> Could NOT find Threads (missing: Threads_FOUND)
> Call Stack (most recent call first):
> /nix/store/6nzlvgvdwslh4hmbp6r66y8klzs5isci-cmake-3.22.2/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
> /nix/store/6nzlvgvdwslh4hmbp6r66y8klzs5isci-cmake-3.22.2/share/cmake-3.22/Modules/FindThreads.cmake:238 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
> CMakeLists.txt:225 (find_package)
>
>
> -- Configuring incomplete, errors occurred!
> See also "/tmp/nix-build-souffle-2.2.drv-0/source/build/CMakeFiles/CMakeOutput.log".
> See also "/tmp/nix-build-souffle-2.2.drv-0/source/build/CMakeFiles/CMakeError.log".
For full logs, run 'nix log /nix/store/wjlz0mmgdhm0ykxcxjqvpsdp5a8288d6-souffle-2.2.drv'.
make: *** [nix-shell] Error 1
I've fixed the docker build and created the PR. But still RePrOdUcIbLe Nix is failing 😄
@KristianBalaj Do you still need help with nix? Can you describe your problem?
I'm closing this issue as it is 2 years old. Please manifest yourself if you still have trouble.