Meson doesn't compile

  • No_one
    4th Mar 2021 Member 0 Permalink

    logs:

    Build started at 2021-03-04T21:34:22.432861
    Main binary: c:\program files\python38\python.exe
    Build Options:
    Python system: Windows
    The Meson build system
    Version: 0.57.1
    Source dir: E:\x\The-Powder-Toy-master
    Build dir: E:\x\The-Powder-Toy-master\build-debug
    Build type: native build
    Project name: the-powder-toy
    Project version: the.cake.is.a.lie
    Sanity testing C compiler: gcc
    Is cross compiler: False.
    Sanity check compiler command line: gcc E:\x\The-Powder-Toy-master\build-debug\meson-private\sanitycheckc.c -o E:\x\The-Powder-Toy-master\build-debug\meson-private\sanitycheckc.exe -pipe -D_FILE_OFFSET_BITS=64
    Sanity check compile stdout:

    -----
    Sanity check compile stderr:

    -----
    Running test binary command: E:\x\The-Powder-Toy-master\build-debug\meson-private\sanitycheckc.exe
    C compiler for the host machine: gcc (gcc 9.2.0 "gcc (MinGW.org GCC Build-2) 9.2.0")
    C linker for the host machine: gcc ld.bfd 2.32
    Sanity testing C++ compiler: c++
    Is cross compiler: False.
    Sanity check compiler command line: c++ E:\x\The-Powder-Toy-master\build-debug\meson-private\sanitycheckcpp.cc -o E:\x\The-Powder-Toy-master\build-debug\meson-private\sanitycheckcpp.exe -pipe -D_FILE_OFFSET_BITS=64
    Sanity check compile stdout:

    -----
    Sanity check compile stderr:

    -----
    Running test binary command: E:\x\The-Powder-Toy-master\build-debug\meson-private\sanitycheckcpp.exe

    meson.build:1:0: ERROR: Could not invoke sanity test executable: [WinError 2] Specified file cannot be found.

  • LBPHacker
    4th Mar 2021 Developer 0 Permalink
    MinGW is currently not supported by our build script and it hasn't been for years. That said, your MinGW/Meson/whatever seems extra broken (possibly some AV acting up?); it should be able to build its sanity check executables at least. Indeed, it can for me using MinGW 8.1.0. MinGW support is on the way, and once it's done, we'll recommend using the version I linked.