Skip to content
This repository was archived by the owner on Jan 28, 2020. It is now read-only.
This repository was archived by the owner on Jan 28, 2020. It is now read-only.

yaracpp does not compile from cmake in MSYS2 #12

Closed
@twitzelbos

Description

@twitzelbos

When compiling the entire retdec package for MSYS2, the yaracpp-project build fails on all my machines with MSYS2.
The error occurs during the configure and looks like aclocal is missing a /c/ in its path:

::::::::::::::
C:/Users/witze/git/retdec/build/external/src/yaracpp-project-stamp/yaracpp-project-build-err.log
::::::::::::::
aclocal-1.16: error: aclocal: file '/msys64/usr/share/aclocal/xsize.m4' does not exist
autoreconf: aclocal failed with exit status: 1
make[5]: *** [deps/CMakeFiles/yara.dir/build.make:122: deps/yara/src/yara-stamp/yara-configure-linu
x] Error 1
make[4]: *** [CMakeFiles/Makefile2:91: deps/CMakeFiles/yara.dir/all] Error 2
make[3]: *** [Makefile:84: all] Error 2

Strangely, when I go to external/src/yaracpp-project-build and manually "make", everything succeeds just fine...
So when inside the external/src/yaracpp-project-build folder
make
succeeds and
cmake --build . --config Release -- -m
fails during configure.

If I manually specify the aclocal path first with
export ACLOCAL_PATH="/c/msys64/usr/share/aclocal/"
then the cmake command succeeds.

I have seen the same configure error happening in other projects on msys2 via google, but no resolution. I'm stumped here as to where this needs to be fixed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions