Pi 4: Meson can't compile

  • Ben1701A
    21st Jan 2021 Member 0 Permalink

    Grabbed the latest from git today.

     

    **log**

    Build started at 2021-01-21T10:47:47.655638
    Main binary: /usr/bin/python3
    Build Options:
    Python system: Linux
    The Meson build system
    Version: 0.52.1
    Source dir: /home/pi/Documents/The-Powder-Toy
    Build dir: /home/pi/Documents/The-Powder-Toy/build-debug
    Build type: native build
    Project name: the-powder-toy
    Project version: the.cake.is.a.lie
    No CFLAGS in the environment, not changing global flags.
    No LDFLAGS in the environment, not changing global flags.
    No CPPFLAGS in the environment, not changing global flags.
    Sanity testing C compiler: ccache cc
    Is cross compiler: False.
    Sanity check compiler command line: ccache cc /home/pi/Documents/The-Powder-Toy/build-debug/meson-private/sanitycheckc.c -o /home/pi/Documents/The-Powder-Toy/build-debug/meson-private/sanitycheckc.exe -pipe -D_FILE_OFFSET_BITS=64
    Sanity check compile stdout:

    -----
    Sanity check compile stderr:

    -----
    Running test binary command: /home/pi/Documents/The-Powder-Toy/build-debug/meson-private/sanitycheckc.exe
    C compiler for the build machine: ccache cc (gcc 8.3.0 "cc (Raspbian 8.3.0-6+rpi1) 8.3.0")
    C linker for the build machine: GNU ld.bfd 2.31.1
    No CXXFLAGS in the environment, not changing global flags.
    No LDFLAGS in the environment, not changing global flags.
    No CPPFLAGS in the environment, not changing global flags.
    Sanity testing C++ compiler: ccache c++
    Is cross compiler: False.
    Sanity check compiler command line: ccache c++ /home/pi/Documents/The-Powder-Toy/build-debug/meson-private/sanitycheckcpp.cc -o /home/pi/Documents/The-Powder-Toy/build-debug/meson-private/sanitycheckcpp.exe -pipe -D_FILE_OFFSET_BITS=64
    Sanity check compile stdout:

    -----
    Sanity check compile stderr:

    -----
    Running test binary command: /home/pi/Documents/The-Powder-Toy/build-debug/meson-private/sanitycheckcpp.exe
    C++ compiler for the build machine: ccache c++ (gcc 8.3.0 "c++ (Raspbian 8.3.0-6+rpi1) 8.3.0")
    C++ linker for the build machine: GNU ld.bfd 2.31.1
    No CFLAGS in the environment, not changing global flags.
    No LDFLAGS in the environment, not changing global flags.
    No CPPFLAGS in the environment, not changing global flags.
    Sanity testing C compiler: ccache cc
    Is cross compiler: False.
    Sanity check compiler command line: ccache cc /home/pi/Documents/The-Powder-Toy/build-debug/meson-private/sanitycheckc.c -o /home/pi/Documents/The-Powder-Toy/build-debug/meson-private/sanitycheckc.exe -pipe -D_FILE_OFFSET_BITS=64
    Sanity check compile stdout:

    -----
    Sanity check compile stderr:

    -----
    Running test binary command: /home/pi/Documents/The-Powder-Toy/build-debug/meson-private/sanitycheckc.exe
    C compiler for the host machine: ccache cc (gcc 8.3.0 "cc (Raspbian 8.3.0-6+rpi1) 8.3.0")
    C linker for the host machine: GNU ld.bfd 2.31.1
    No CXXFLAGS in the environment, not changing global flags.
    No LDFLAGS in the environment, not changing global flags.
    No CPPFLAGS in the environment, not changing global flags.
    Sanity testing C++ compiler: ccache c++
    Is cross compiler: False.
    Sanity check compiler command line: ccache c++ /home/pi/Documents/The-Powder-Toy/build-debug/meson-private/sanitycheckcpp.cc -o /home/pi/Documents/The-Powder-Toy/build-debug/meson-private/sanitycheckcpp.exe -pipe -D_FILE_OFFSET_BITS=64
    Sanity check compile stdout:

    -----
    Sanity check compile stderr:

    -----
    Running test binary command: /home/pi/Documents/The-Powder-Toy/build-debug/meson-private/sanitycheckcpp.exe
    C++ compiler for the host machine: ccache c++ (gcc 8.3.0 "c++ (Raspbian 8.3.0-6+rpi1) 8.3.0")
    C++ linker for the host machine: GNU ld.bfd 2.31.1
    Build machine cpu family: arm
    Build machine cpu: armv7l
    Host machine cpu family: arm
    Host machine cpu: armv7l
    Target machine cpu family: arm
    Target machine cpu: armv7l
    Program python3 found: YES (/usr/bin/python3)

    meson.build:36:1: ERROR: Problem encountered: lin32 is not supported

     

    I don't understand...my arch is armv7l. How come it's reading x86?

  • LBPHacker
    21st Jan 2021 Developer 0 Permalink
    I'm not sure what you mean, x86 never appears in that log. The problem is that 32-bit builds are not currently supported because we don't provide prebuilt 32-bit libraries, although this is planned. I can see why it might be annoying to not be able to build a non-static binary just because static binaries are not supported by the Meson config, I'll fix this in a bit. You can probably(tm) just remove the error call at ./meson.build:36 for now. Fixed.
    Edited once by LBPHacker. Last: 21st Jan 2021