src/regex_stub.c is missing when running CMake

Create issue
Issue #59 resolved
Former user created an issue

I just cloned from the main branch, ran CMake in the root directory of the project, configuration seems to have progressed correctly, but when setting up the project's libraries it failed to find `src/regex_stub.c' as listed in 'src/CMakeLists.txt.' That source file isn't anywhere to be found.

Thanks.

Comments (8)

  1. Former user Account Deleted

    It appears there may also be other source files missing, I tried removing regex_stub.c just to continue the build process, and all of the files in the STUB_SOURCES and BUILTIN_SOURCES sets were missing:

    You might want to try cloning into a fresh directory from your repo, and building it to catch everything that is missing.

  2. Former user Account Deleted

    After deleting those sets and proceeding with the build, it fails to find another file, I get the following error:

    /home/jesse/src/sagittarius-scheme/src/closure.c:32:37: fatal error: sagittarius/instruction.h: No such file or directory #include "sagittarius/instruction.h"

    Perhaps some files aren't being generated properly?

  3. Takashi Kato repo owner

    Building Sagittarius from repository requires previous version of Sagittarius installed. So current HEAD version is 0.5.8, first need to install 0.5.7. Then you can need to generate all missing code with following command in the cloned directory.

    $ ./dist.sh gen
    

    If you are a Windows user then you can use following command;

    C:\sagittarius-scheme> dist.bat
    

    Please read README.md and HACKING for more information.

  4. Former user Account Deleted

    Sorry for my ignorance, following your instructions fixed the problem, I was able to get it to build and run. Thank you!

  5. Former user Account Deleted

    Oh, one minor thing you might want to tweak for the CMake installation process on Linux (or at least some Linux distributions--I'm using Linux Mint 17). For some reason, I had to manually run ldconfig to rebuild the shared library cache after running $ sudo make install, otherwise it wasn't able to load in libsagittarius.so from /usr/local/lib.

  6. Log in to comment