Skip to content

Segmentation fault when compiling integration tool #65

Open
@MatPoliquin

Description

@MatPoliquin

Issue summary

to repro:

cd stable-retro
cmake . -DBUILD_UI=ON -UPYLIB_DIRECTORY
make

This error will happen from time to time (not 100% repro)

[100%] Linking CXX executable capnp
[100%] Built target capnp_tool
[100%] Linking CXX executable capnpc-c++
[100%] Built target capnpc_cpp
[100%] Compiling Cap'n Proto schema src/serialize.capnp
*** Received signal #11: Segmentation fault
stack: 0x5632955e2948 0x5632955e2dcb 0x5632955d79de 0x5632955def73 0x56329552b6a6 0x7f86be0a8d90 0x7f86be0a8e40 0x56329552b755
make[2]: *** [CMakeFiles/retro-capnp.dir/build.make:76: src/serialize.capnp.c++] Error 1
make[1]: *** [CMakeFiles/Makefile2:1007: CMakeFiles/retro-capnp.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

WORKAROUND:
Now if you get this error the workaround is to disable capnproto (which you won't need if you don't use the load/save search function. I integrated many games without this function)

In CMakeLists.txt after line 260 simply write:

set(CAPN_PROTO_FOUND OFF)

relaunch make

System information

  • Ubuntu 22.04
  • python 3.10
  • stable-retro 0.9.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions