Coder Social home page Coder Social logo

arximboldi / ewig Goto Github PK

View Code? Open in Web Editor NEW
520.0 18.0 32.0 4.86 MB

The eternal text editor — Didactic Ersatz Emacs to show immutable data-structures and the single-atom architecture

License: GNU General Public License v3.0

CMake 3.91% C++ 88.63% Nix 7.46%
immutable data-structures immer cpp emacs text editor

ewig's People

Contributors

arximboldi avatar bbbsnowball avatar berkus avatar cyrilromain avatar kostspielig avatar mcmartin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ewig's Issues

Does not compile on Mac. Nix fails after downloading 1.6 GB of useless dependencies.

Even after adding "{ allowBroken = true; }" to ~/.config/nixpkgs/config.nix

It still fails with:

`
~/p/a/ewig ❯❯❯ nix-shell

these derivations will be built:
/nix/store/0h9s3khp2d47zkw12rngvajxcny1mn1c-libhttpserver-4895f43ed29195af70beb47bcfd1ef3ab4555665-src.drv
/nix/store/0nm92fbdqm59gsr2il5c2c5fyvfvs52y-cereal-f158a44a3277ec2e1807618e63bcb8e1bd559649-src.drv
/nix/store/bi4si352yncwl9r7hmrv0ympr2rnrl83-libmicrohttpd-0.9.55.drv
/nix/store/4iqxirzzyc2wq12jdm4jxm37xxdmkfbm-libhttpserver-git-4895f43ed29195af70beb47bcfd1ef3ab4555665.drv
/nix/store/5pkfxzl7c9k5pwk5wsdr2yy4gig1pfic-utfcpp-67036a031d131b5a929a525677e4356850fa4e37-src.drv
/nix/store/7710a7xm9db626x2zcygv6g9k4z319nr-lager-86a2f39ae2f753a91eb22badc2bfcd2663654dfa-src.drv
/nix/store/a3p9580l9njw8ix88wzmc660g0q3958n-utfcpp-git-67036a031d131b5a929a525677e4356850fa4e37.drv
/nix/store/akckwqwq73gr2mpnck9y1ki52hcsx7ns-immer-2885357e5fc9fba171c4613f1841591af9e31cf1-src.drv
/nix/store/zif8s23ngnjbbcg86wc2vzpsx79z1j0f-scelta-bd121843e227435f8f55c4aaf7e2de536f05b583-src.drv
/nix/store/ibmg55yg9hfvfd2kj6vhmdf1bdd2cg6h-scelta-git-bd121843e227435f8f55c4aaf7e2de536f05b583.drv
/nix/store/lrbcnkvi5dmrpcgd276avvmpk1sw4r3a-immer-git-2885357e5fc9fba171c4613f1841591af9e31cf1.drv
/nix/store/m2f4gaizap8k53pbyy1v7dzsa9b3afqm-cereal-git-arximboldi-f158a44a3277ec2e1807618e63bcb8e1bd559649.drv
/nix/store/yc3pvldgmvqv9jh0ix4mf8pg66mi8qjc-lager.drv
building '/nix/store/akckwqwq73gr2mpnck9y1ki52hcsx7ns-immer-2885357e5fc9fba171c4613f1841591af9e31cf1-src.drv'...
dyld: Library not loaded: /usr/lib/system/libsystem_network.dylib
Referenced from: /nix/store/zdh6jqgv3ayqgl0ifj1z3f9n4s31d8s4-Libsystem-osx-10.11.6/lib/libSystem.B.dylib
Reason: image not found
builder for '/nix/store/akckwqwq73gr2mpnck9y1ki52hcsx7ns-immer-2885357e5fc9fba171c4613f1841591af9e31cf1-src.drv' failed due to signal 6 (Abort trap: 6)
building '/nix/store/0nm92fbdqm59gsr2il5c2c5fyvfvs52y-cereal-f158a44a3277ec2e1807618e63bcb8e1bd559649-src.drv'...
cannot build derivation '/nix/store/lrbcnkvi5dmrpcgd276avvmpk1sw4r3a-immer-git-2885357e5fc9fba171c4613f1841591af9e31cf1.drv': 1 dependencies couldn't be built
error: build of '/nix/store/a3p9580l9njw8ix88wzmc660g0q3958n-utfcpp-git-67036a031d131b5a929a525677e4356850fa4e37.drv', '/nix/store/ibmg55yg9hfvfd2kj6vhmdf1bdd2cg6h-scelta-git-bd121843e227435f8f55c4aaf7e2de536f05b583.drv', '/nix/store/lrbcnkvi5dmrpcgd276avvmpk1sw4r3a-immer-git-2885357e5fc9fba171c4613f1841591af9e31cf1.drv', '/nix/store/yc3pvldgmvqv9jh0ix4mf8pg66mi8qjc-lager.drv' failed
`

Building ewig

I'm attempting to build ewig myself using the latest versions of all of the dependencies. Unfortunately, I receive the following error. Is it worth chasing down what has changed or should I just use nix?

Scanning dependencies of target ewig
[  7%] Building CXX object CMakeFiles/ewig.dir/src/ewig/application.cpp.o
/Users/josephwinston/src/Remote/GIT/arximboldi/ewig/src/ewig/application.cpp: In instantiation of 'ewig::quit(ewig::application)::<lambda(auto:151&&)> [with auto:151 = const lager::context<std::variant<ewig::command_action, ewig::key_action, ewig::resize_action, std::variant<ewig::load_progress_action, ewig::load_done_action, ewig::load_error_action, ewig::save_progress_action, ewig::save_done_action, ewig::save_error_action> >, lager::deps<> >&]':
/Volumes/disk2/opt/local/include/gcc10/c++/type_traits:2506:26:   required by substitution of 'template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = ewig::quit(ewig::application)::<lambda(auto:151&&)>&; _Args = {const lager::context<std::variant<ewig::command_action, ewig::key_action, ewig::resize_action, std::variant<ewig::load_progress_action, ewig::load_done_action, ewig::load_error_action, ewig::save_progress_action, ewig::save_done_action, ewig::save_error_action> >, lager::deps<> >&}]'
/Volumes/disk2/opt/local/include/gcc10/c++/type_traits:2517:55:   required from 'struct std::__result_of_impl<false, false, ewig::quit(ewig::application)::<lambda(auto:151&&)>&, const lager::context<std::variant<ewig::command_action, ewig::key_action, ewig::resize_action, std::variant<ewig::load_progress_action, ewig::load_done_action, ewig::load_error_action, ewig::save_progress_action, ewig::save_done_action, ewig::save_error_action> >, lager::deps<> >&>'
/Volumes/disk2/opt/local/include/gcc10/c++/bits/std_function.h:309:9:   recursively required by substitution of 'template<class _Result, class _Ret> struct std::__is_invocable_impl<_Result, _Ret, true, std::__void_t<typename _CTp::type> > [with _Result = std::__invoke_result<ewig::quit(ewig::application)::<lambda(auto:151&&)>&, const lager::context<std::variant<ewig::command_action, ewig::key_action, ewig::resize_action, std::variant<ewig::load_progress_action, ewig::load_done_action, ewig::load_error_action, ewig::save_progress_action, ewig::save_done_action, ewig::save_error_action> >, lager::deps<> >&>; _Ret = void]'
/Volumes/disk2/opt/local/include/gcc10/c++/bits/std_function.h:309:9:   required from 'struct std::function<void(const lager::context<std::variant<ewig::command_action, ewig::key_action, ewig::resize_action, std::variant<ewig::load_progress_action, ewig::load_done_action, ewig::load_error_action, ewig::save_progress_action, ewig::save_done_action, ewig::save_error_action> >, lager::deps<> >&)>::_Callable<ewig::quit(ewig::application)::<lambda(auto:151&&)>, std::__invoke_result<ewig::quit(ewig::application)::<lambda(auto:151&&)>&, const lager::context<std::variant<ewig::command_action, ewig::key_action, ewig::resize_action, std::variant<ewig::load_progress_action, ewig::load_done_action, ewig::load_error_action, ewig::save_progress_action, ewig::save_done_action, ewig::save_error_action> >, lager::deps<> >&> >'
/Volumes/disk2/opt/local/include/gcc10/c++/bits/std_function.h:319:8:   required by substitution of 'template<class _Res, class ... _ArgTypes> template<class _Cond, class _Tp> using _Requires = typename std::enable_if<_Cond::value, _Tp>::type [with _Cond = std::function<void(const lager::context<std::variant<ewig::command_action, ewig::key_action, ewig::resize_action, std::variant<ewig::load_progress_action, ewig::load_done_action, ewig::load_error_action, ewig::save_progress_action, ewig::save_done_action, ewig::save_error_action> >, lager::deps<> >&)>::_Callable<ewig::quit(ewig::application)::<lambda(auto:151&&)>, std::__invoke_result<ewig::quit(ewig::application)::<lambda(auto:151&&)>&, const lager::context<std::variant<ewig::command_action, ewig::key_action, ewig::resize_action, std::variant<ewig::load_progress_action, ewig::load_done_action, ewig::load_error_action, ewig::save_progress_action, ewig::save_done_action, ewig::save_error_action> >, lager::deps<> >&> >; _Tp = void; _Res = void; _ArgTypes = {const lager::context<std::variant<ewig::command_action, ewig::key_action, ewig::resize_action, std::variant<ewig::load_progress_action, ewig::load_done_action, ewig::load_error_action, ewig::save_progress_action, ewig::save_done_action, ewig::save_error_action> >, lager::deps<> >&}]'
/Volumes/disk2/opt/local/include/gcc10/c++/bits/std_function.h:380:9:   required by substitution of 'template<class _Functor, class, class> std::function<void(const lager::context<std::variant<ewig::command_action, ewig::key_action, ewig::resize_action, std::variant<ewig::load_progress_action, ewig::load_done_action, ewig::load_error_action, ewig::save_progress_action, ewig::save_done_action, ewig::save_error_action> >, lager::deps<> >&)>::function<_Functor, <template-parameter-1-2>, <template-parameter-1-3> >(_Functor) [with _Functor = ewig::quit(ewig::application)::<lambda(auto:151&&)>; <template-parameter-1-2> = void; <template-parameter-1-3> = <missing>]'
/Users/josephwinston/src/Remote/GIT/arximboldi/ewig/src/ewig/application.cpp:143:5:   required from here
/Users/josephwinston/src/Remote/GIT/arximboldi/ewig/src/ewig/application.cpp:142:31: error: 'const struct lager::context<std::variant<ewig::command_action, ewig::key_action, ewig::resize_action, std::variant<ewig::load_progress_action, ewig::load_done_action, ewig::load_error_action, ewig::save_progress_action, ewig::save_done_action, ewig::save_error_action> >, lager::deps<> >' has no member named 'finish'
  142 |         [] (auto&& ctx) { ctx.finish(); }
      |                           ~~~~^~~~~~
make[2]: *** [CMakeFiles/ewig.dir/src/ewig/application.cpp.o] Error 1
make[1]: *** [CMakeFiles/ewig.dir/all] Error 2
make: *** [all] Error 2

make build typo

in Readme.md, in subsection Prepare there is a typo:
make build
Probably should be replaced with:
mkdir build

`nix` install failed

Looks like the nix-env is complaining there is no immer/vector.hpp or something. Installed immer wont fix it. What should I do?

[~]── -     nix-env -if https://github.com/arximboldi/ewig/archive/master.tar.gz

installing ‘ewig-git’
these derivations will be built:
  /nix/store/2chwcqqb9a2431pxij24b3f43hnw799c-ewig-git.drv
building path(s) ‘/nix/store/1dq3mkmcwfjip9pik3pbfmx5qgrgc6xm-ewig-git’
unpacking sources
unpacking source archive /nix/store/5m052ir79viiz7y9clmf4nxs5gkj5az3-xm78dzg8v203hnaqc3q03yzb0r74370v-master.tar.gz
source root is xm78dzg8v203hnaqc3q03yzb0r74370v-master.tar.gz
patching sources
configuring
fixing cmake files...
cmake flags: -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/1dq3mkmcwfjip9pik3pbfmx5qgrgc6xm-ewig-git/include -DCMAKE_INSTALL_LIBDIR=/nix/store/1dq3mkmcwfjip9pik3pbfmx5qgrgc6xm-ewig-git/lib -DCMAKE_INSTALL_NAME_DIR=/nix/store/1dq3mkmcwfjip9pik3pbfmx5qgrgc6xm-ewig-git/lib -DCMAKE_INSTALL_PREFIX=/nix/store/1dq3mkmcwfjip9pik3pbfmx5qgrgc6xm-ewig-git  
-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: /nix/store/jlj2xx4xii1hmgjsbnhf41hj49243la9-gcc-wrapper-7.2.0/bin/gcc
-- Check for working C compiler: /nix/store/jlj2xx4xii1hmgjsbnhf41hj49243la9-gcc-wrapper-7.2.0/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /nix/store/jlj2xx4xii1hmgjsbnhf41hj49243la9-gcc-wrapper-7.2.0/bin/g++
-- Check for working CXX compiler: /nix/store/jlj2xx4xii1hmgjsbnhf41hj49243la9-gcc-wrapper-7.2.0/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.62.0
-- Found the following Boost libraries:
--   system
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_INSTALL_INCLUDEDIR
    CMAKE_INSTALL_LIBDIR


-- Build files have been written to: /tmp/nix-build-ewig-git.drv-0/xm78dzg8v203hnaqc3q03yzb0r74370v-master.tar.gz/build
building
build flags: SHELL=/nix/store/flb9ar1xdd13c606aa4my9miy3iv4vyk-bash-4.4-p12/bin/bash
Scanning dependencies of target ewig
[ 14%] Building CXX object CMakeFiles/ewig.dir/src/ewig/application.cpp.o
In file included from /tmp/nix-build-ewig-git.drv-0/xm78dzg8v203hnaqc3q03yzb0r74370v-master.tar.gz/src/ewig/keys.hpp:23:0,
                 from /tmp/nix-build-ewig-git.drv-0/xm78dzg8v203hnaqc3q03yzb0r74370v-master.tar.gz/src/ewig/application.hpp:23,
                 from /tmp/nix-build-ewig-git.drv-0/xm78dzg8v203hnaqc3q03yzb0r74370v-master.tar.gz/src/ewig/application.cpp:21:
/tmp/nix-build-ewig-git.drv-0/xm78dzg8v203hnaqc3q03yzb0r74370v-master.tar.gz/src/ewig/utils.hpp:23:10: fatal error: immer/vector.hpp: No such file or directory
 #include <immer/vector.hpp>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ewig.dir/build.make:63: CMakeFiles/ewig.dir/src/ewig/application.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/ewig.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
builder for ‘/nix/store/2chwcqqb9a2431pxij24b3f43hnw799c-ewig-git.drv’ failed with exit code 2
error: build of ‘/nix/store/2chwcqqb9a2431pxij24b3f43hnw799c-ewig-git.drv’ failed

Doesn't build

OS: Arch Linux

Followed the step on arch wiki to install and bootstrap nix. Followed your build steps in the README, got loads of compilation errors. This is not exactly a replicable build. I thought everything is pinned and there's no way for this to fail. Which is too bad, I was looking forward to exploring the architecture. Cmake + git submodules for deps would be much simpler in the end, wouldn't it?

Edit: libhttpserver seems to be the culprit. Also weird in your deps.nix is two versions of GCC used. When I leave that alone and use both gcc5 and gcc7, I get this:

...
-- Found libhttpserver: /nix/store/cvfx5r98hn19h4ifwvr84wcr6jywjrbk-libhttpserver-git-4895f43ed29195af70beb47bcfd1ef3ab4555665/include, /nix/store/cvfx5r98hn19h4ifwvr84wcr6jywjrbk-libhttpserver-git-4895f43ed29195af70beb47bcfd1ef3ab4555665/lib/libhttpserver.so
-- Configuring done
CMake Warning at CMakeLists.txt:50 (add_executable):
  Cannot generate a safe runtime search path for target ewig-debug because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libncursesw.so.6] in /nix/store/mi5krns5p204a3rdn1rj4ajnbqn2809i-ncurses-6.1-20181027/lib may be hidden by files in:
      /usr/lib64
    runtime library [libformw.so.6] in /nix/store/mi5krns5p204a3rdn1rj4ajnbqn2809i-ncurses-6.1-20181027/lib may be hidden by files in:
      /usr/lib64

  Some of these libraries may not be found correctly.


CMake Warning at CMakeLists.txt:45 (add_executable):
  Cannot generate a safe runtime search path for target ewig because files in
  some directories may conflict with libraries in implicit directories:

    runtime library [libncursesw.so.6] in /nix/store/mi5krns5p204a3rdn1rj4ajnbqn2809i-ncurses-6.1-20181027/lib may be hidden by files in:
      /usr/lib64
    runtime library [libformw.so.6] in /nix/store/mi5krns5p204a3rdn1rj4ajnbqn2809i-ncurses-6.1-20181027/lib may be hidden by files in:
      /usr/lib64

  Some of these libraries may not be found correctly.


-- Generating done
-- Build files have been written to: /home/skrat/Downloads/ewig/build

Compiler check fails while configuring cereal

Hi there,

I'm encountering an error when running nix-shell for ewig (on macos).

The logs (provided below) indicate a failing compiler check while building cereal for the lager derivation.
Curiously, cloning lager repo separately and running nix-shell works fine, allowing all tests to build and pass.

Let me know if I can help and thanks in advance for yours.

building '/nix/store/00sw3c108pscw2ka1371c1cx577la8lw-cereal-git-arximboldi-f158a44a3277ec2e1807618e63bcb8e1bd559649.drv'...
unpacking sources
unpacking source archive /nix/store/94xiznxid142b18r51mkzdd1ihc0bw3z-source
source root is source
patching sources
configuring
fixing cmake files...
cmake flags: -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/2hr66n87jvmngmyp36spq0k0085brsr7-cereal-git-arximboldi-f158a44a3277ec2e1807618e63bcb8e1bd559649/include -DCMAKE_INSTALL_LIBDIR=/nix/store/2hr66n87jvmngmyp36spq0k0085brsr7-cereal-git-arximboldi-f158a44a3277ec2e1807618e63bcb8e1bd559649/lib -DCMAKE_INSTALL_NAME_DIR=/nix/store/2hr66n87jvmngmyp36spq0k0085brsr7-cereal-git-arximboldi-f158a44a3277ec2e1807618e63bcb8e1bd559649/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_DEPLOYMENT_TARGET= -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=last -DCMAKE_STRIP=/nix/store/vqs61iw47w4133xa5qn9kwd8v0y4x824-cctools-binutils-darwin/bin/strip -DCMAKE_RANLIB=/nix/store/vqs61iw47w4133xa5qn9kwd8v0y4x824-cctools-binutils-darwin/bin/ranlib -DCMAKE_AR=/nix/store/vqs61iw47w4133xa5qn9kwd8v0y4x824-cctools-binutils-darwin/bin/ar -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=/nix/store/2hr66n87jvmngmyp36spq0k0085brsr7-cereal-git-arximboldi-f158a44a3277ec2e1807618e63bcb8e1bd559649 -DJUST_INSTALL_CEREAL=true 
-- The C compiler identification is Clang 5.0.2
-- The CXX compiler identification is Clang 5.0.2
-- Check for working C compiler: /nix/store/q3cqskrsnifj71rhlq45any70qva71zr-clang-wrapper-5.0.2/bin/clang
-- Check for working C compiler: /nix/store/q3cqskrsnifj71rhlq45any70qva71zr-clang-wrapper-5.0.2/bin/clang -- broken
CMake Error at /nix/store/bimdmkq9apmkkprvwqiwk2skmqm0r1hj-cmake-3.12.1/share/cmake-3.12/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler

    "/nix/store/q3cqskrsnifj71rhlq45any70qva71zr-clang-wrapper-5.0.2/bin/clang"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /tmp/nix-build-cereal-git-arximboldi-f158a44a3277ec2e1807618e63bcb8e1bd559649.drv-0/source/build/CMakeFiles/CMakeTmp
    
    Run Build Command:"/nix/store/5paxp2z2cva6g4j0z82922gyqp1cs04l-gnumake-4.2.1/bin/make" "cmTC_78bc8/fast"
    /nix/store/5paxp2z2cva6g4j0z82922gyqp1cs04l-gnumake-4.2.1/bin/make -f CMakeFiles/cmTC_78bc8.dir/build.make CMakeFiles/cmTC_78bc8.dir/build
    make[1]: Entering directory '/private/tmp/nix-build-cereal-git-arximboldi-f158a44a3277ec2e1807618e63bcb8e1bd559649.drv-0/source/build/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_78bc8.dir/testCCompiler.c.o
    /nix/store/q3cqskrsnifj71rhlq45any70qva71zr-clang-wrapper-5.0.2/bin/clang   -arch x86_64   -o CMakeFiles/cmTC_78bc8.dir/testCCompiler.c.o   -c /tmp/nix-build-cereal-git-arximboldi-f158a44a3277ec2e1807618e63bcb8e1bd559649.drv-0/source/build/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_78bc8
    /nix/store/bimdmkq9apmkkprvwqiwk2skmqm0r1hj-cmake-3.12.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_78bc8.dir/link.txt --verbose=1
    /nix/store/q3cqskrsnifj71rhlq45any70qva71zr-clang-wrapper-5.0.2/bin/clang   -arch x86_64 -Wl,-search_paths_first -Wl,-headerpad_max_install_names   CMakeFiles/cmTC_78bc8.dir/testCCompiler.c.o  -o cmTC_78bc8 
    ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
    clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [CMakeFiles/cmTC_78bc8.dir/build.make:87: cmTC_78bc8] Error 1
    make[1]: Leaving directory '/private/tmp/nix-build-cereal-git-arximboldi-f158a44a3277ec2e1807618e63bcb8e1bd559649.drv-0/source/build/CMakeFiles/CMakeTmp'
    make: *** [Makefile:121: cmTC_78bc8/fast] Error 2
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!
See also "/tmp/nix-build-cereal-git-arximboldi-f158a44a3277ec2e1807618e63bcb8e1bd559649.drv-0/source/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/nix-build-cereal-git-arximboldi-f158a44a3277ec2e1807618e63bcb8e1bd559649.drv-0/source/build/CMakeFiles/CMakeError.log".
error: builder for '/nix/store/00sw3c108pscw2ka1371c1cx577la8lw-cereal-git-arximboldi-f158a44a3277ec2e1807618e63bcb8e1bd559649.drv' failed with exit code 1;
       last 10 log lines:
       >
       >
       >   CMake will not be able to correctly generate this project.
       > Call Stack (most recent call first):
       >   CMakeLists.txt:2 (project)
       >
       >
       > -- Configuring incomplete, errors occurred!
       > See also "/tmp/nix-build-cereal-git-arximboldi-f158a44a3277ec2e1807618e63bcb8e1bd559649.drv-0/source/build/CMakeFiles/CMakeOutput.log".
       > See also "/tmp/nix-build-cereal-git-arximboldi-f158a44a3277ec2e1807618e63bcb8e1bd559649.drv-0/source/build/CMakeFiles/CMakeError.log".
       For full logs, run 'nix log /nix/store/00sw3c108pscw2ka1371c1cx577la8lw-cereal-git-arximboldi-f158a44a3277ec2e1807618e63bcb8e1bd559649.drv'.
error: 1 dependencies of derivation '/nix/store/62zi7b8dj8q8bk75q0lrppkh5chq6xp2-lager.drv' failed to build
error: build of '/nix/store/0bx3f8z02576cjvsd6n8azalh84f0bc9-scelta-git-bd121843e227435f8f55c4aaf7e2de536f05b583.drv', '/nix/store/62zi7b8dj8q8bk75q0lrppkh5chq6xp2-lager.drv', '/nix/store/c8yglf20irh1fg36dp6dyq2bjgs8l97q-immer-git-e5d79ed80ec74d511cc4f52fb68feeac66507f2c.drv', '/nix/store/lykv30y1pskvz4x8m4mj8r7iaqziiz0b-zug.drv' failed

Crash on pressing ctrl+y

I have build ewig using following commands

nix-shell
mkdir build && cd build
cmake ..
make

Then I've created simple file and open it:

echo hello > file
ewig file

Then I've pressed [ctrl]+[y] and get:

ewig: /nix/store/4nkrj2dgw18nbdfgvrls0iaasqv36ayc-immer-git-2885357e5fc9fba171c4613f1841591af9e31cf1/include/immer/detail/rbts/rrbtree.hpp:1174: bool immer::detail::rbts::rrbtree<T, MemoryPolicy, B, BL>::check_tree() const [with T = immer::flex_vector<char>; MemoryPolicy = immer::memory_policy<immer::free_list_heap_policy<immer::cpp_heap>, immer::refcount_policy>; unsigned int B = 5; unsigned int BL = 3]: Assertion `shift >= BL' failed.
                                                                                      Aborted (core dumped)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.