[Mesa-users] Building Mesa with LLVM in $HOME/opt

Jackman kd7nyq at gmail.com
Sun Apr 26 04:36:26 UTC 2020


Good evening! I hope you are all doing well.

My goal is simply to get OpenCL 1.2+ working on my MXLinux (Debian Buster
derivative) machine with an AMD GPU.

I have successfully built and installed LLVM into $HOME/opt with the
following commands:

tar -xf llvm-project-10.0.0.tar.xz
cd llvm-project-10.0.0
mkdir build
cd build
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=$HOME/opt
-DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;libcxx;libcxxabi;libunwind;lldb;compiler-rt;lld;polly'
../llvm
make
make install

$HOME/opt/bin is in my path.

When I invoke llvm-config, everything seems reasonable to my naive
understanding:

dorito :: code/llvm-project-10.0.0/build » llvm-config --prefix
/home/jackman/opt
dorito :: code/llvm-project-10.0.0/build » llvm-config --obj-root
/home/jackman/opt
dorito :: code/llvm-project-10.0.0/build » llvm-config --includedir
/home/jackman/opt/include

When I try to build Mesa, however, I am still getting this error:

Message: libdrm 2.4.100 needed because amdgpu has the highest requirement
Run-time dependency libdrm_intel found: YES 2.4.101
Run-time dependency libdrm_amdgpu found: YES 2.4.101
Run-time dependency libdrm_radeon found: YES 2.4.101
Run-time dependency libdrm_nouveau found: YES 2.4.101
Run-time dependency libdrm found: YES 2.4.101
llvm-config found: YES (/home/jackman/opt/bin/llvm-config) 10.0.0
Run-time dependency LLVM (modules: amdgpu, asmparser, bitreader, bitwriter,
engine, ipo, mcdisassembler, mcjit, native, coroutines) found: NO (tried
config-tool)
Looking for a fallback subproject for the dependency llvm

meson.build:1389:2: ERROR: Subproject directory not found and llvm.wrap
file not found

The full log is attached.

I really just don't understand enough about LLVM or Mesa to understand
what's missing here.

Thank you for any help.

Andrew Jackman
kd7nyq at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-users/attachments/20200425/d16199e9/attachment-0001.htm>
-------------- next part --------------
Build started at 2020-04-25T22:32:26.185926
Main binary: /usr/bin/python3
Build Options: 
Python system: Linux
The Meson build system
Version: 0.52.0
Source dir: /home/jackman/code/mesa
Build dir: /home/jackman/code/mesa/builddir
Build type: native build
Program python found: YES (/usr/bin/python)
Running command: /usr/bin/python bin/meson_get_version.py
--- stdout ---
19.3.3
--- stderr ---


Project name: mesa
Project version: 19.3.3
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/jackman/code/mesa/builddir/meson-private/sanitycheckc.c -o /home/jackman/code/mesa/builddir/meson-private/sanitycheckc.exe -pipe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/jackman/code/mesa/builddir/meson-private/sanitycheckc.exe
C compiler for the build machine: ccache cc (gcc 8.3.0 "cc (Debian 8.3.0-6) 8.3.0")
C linker for the build machine: GNU ld.gold 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/jackman/code/mesa/builddir/meson-private/sanitycheckcpp.cc -o /home/jackman/code/mesa/builddir/meson-private/sanitycheckcpp.exe -pipe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/jackman/code/mesa/builddir/meson-private/sanitycheckcpp.exe
C++ compiler for the build machine: ccache c++ (gcc 8.3.0 "c++ (Debian 8.3.0-6) 8.3.0")
C++ linker for the build machine: GNU ld.gold 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/jackman/code/mesa/builddir/meson-private/sanitycheckc.c -o /home/jackman/code/mesa/builddir/meson-private/sanitycheckc.exe -pipe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/jackman/code/mesa/builddir/meson-private/sanitycheckc.exe
C compiler for the host machine: ccache cc (gcc 8.3.0 "cc (Debian 8.3.0-6) 8.3.0")
C linker for the host machine: GNU ld.gold 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/jackman/code/mesa/builddir/meson-private/sanitycheckcpp.cc -o /home/jackman/code/mesa/builddir/meson-private/sanitycheckcpp.exe -pipe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/jackman/code/mesa/builddir/meson-private/sanitycheckcpp.exe
C++ compiler for the host machine: ccache c++ (gcc 8.3.0 "c++ (Debian 8.3.0-6) 8.3.0")
C++ linker for the host machine: GNU ld.gold 2.31.1
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Program pkg-config found: YES (/usr/bin/pkg-config)
Pkg-config binary for MachineChoice.HOST is not cached.
Pkg-config binary missing from cross or native file, or env var undefined.
Trying a default pkg-config fallback at pkg-config
Trying pkg-config binary pkg-config for machine MachineChoice.HOST at ['/usr/bin/pkg-config']
Found pkg-config: /usr/bin/pkg-config (0.29)
Determining dependency 'vdpau' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --modversion vdpau` -> 0
1.1.1
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --cflags vdpau` -> 0

PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config vdpau --libs` -> 0
-L/usr/lib/x86_64-linux-gnu -lvdpau
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config vdpau --libs` -> 0
-lvdpau
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config vdpau --libs --static` -> 0
-lvdpau -lX11 -lpthread -lxcb -lXau -lXdmcp
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpn7zm6bii
Command line:  ccache c++ /home/jackman/code/mesa/builddir/meson-private/tmpn7zm6bii/testfile.cpp -o /home/jackman/code/mesa/builddir/meson-private/tmpn7zm6bii/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -fpermissive 

Code:
 #include<stdio.h>
        
        int main() {
            printf("%ld\n", (long)(sizeof(void *)));
            return 0;
        };
Compiler stdout:
 
Compiler stderr:
 
Program stdout:

8

Program stderr:


Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpysz92ttd
Command line:  ccache c++ /home/jackman/code/mesa/builddir/meson-private/tmpysz92ttd/testfile.cpp -o /home/jackman/code/mesa/builddir/meson-private/tmpysz92ttd/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive --print-search-dirs 

Code:
 
Compiler stdout:
 install: /usr/lib/gcc/x86_64-linux-gnu/8/
programs: =/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/bin/
libraries: =/opt/Qt/5.11.1/5.11.1/gcc_64/lib/x86_64-linux-gnu/8/:/opt/Qt/5.11.1/5.11.1/gcc_64/lib/x86_64-linux-gnu/:/opt/Qt/5.11.1/5.11.1/gcc_64/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../lib/:/lib/x86_64-linux-gnu/8/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/8/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/opt/Qt/5.11.1/5.11.1/gcc_64/lib/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/lib/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../:/lib/:/usr/lib/

Compiler stderr:
 
Run-time dependency vdpau found: YES 1.1.1
Running command: /usr/bin/pkg-config vdpau --cflags
--- stdout ---


--- stderr ---


Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'xvmc' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --modversion xvmc` -> 1

CMake binary for MachineChoice.HOST is not cached
CMake binary missing from cross or native file, or env var undefined.
Trying a default CMake fallback at cmake
Trying CMake binary cmake for machine MachineChoice.HOST at ['/home/jackman/opt/bin/cmake']
Found CMake: /home/jackman/opt/bin/cmake (3.14.5)
Extracting basic cmake information
Try CMake generator: auto
Called `/home/jackman/opt/bin/cmake --trace-expand .` in /home/jackman/code/mesa/builddir/meson-private/cmake_xvmc -> 0
  -- Module search paths:    ['/', '/home/jackman/opt', '/opt', '/usr', '/usr/local']
  -- CMake root:             /home/jackman/opt/share/cmake-3.14
  -- CMake architectures:    ['i386-linux-gnu', 'x86_64-linux-gnu']
  -- CMake lib search paths: ['lib', 'lib32', 'lib64', 'libx32', 'share', 'lib/i386-linux-gnu', 'lib/x86_64-linux-gnu']
Run-time dependency xvmc found: NO (tried pkgconfig and cmake)
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'xv' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --modversion xv` -> 1

CMake binary for MachineChoice.HOST is cached.
Run-time dependency xv found: NO (tried pkgconfig and cmake)
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'libomxil-bellagio' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --modversion libomxil-bellagio` -> 1

CMake binary for MachineChoice.HOST is cached.
Run-time dependency libomxil-bellagio found: NO (tried pkgconfig and cmake)
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'libtizonia' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --modversion libtizonia` -> 1

CMake binary for MachineChoice.HOST is cached.
Run-time dependency libtizonia found: NO (tried pkgconfig and cmake)
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'libtizplatform' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --modversion libtizplatform` -> 1

CMake binary for MachineChoice.HOST is cached.
Run-time dependency libtizplatform found: NO (tried pkgconfig and cmake)
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'tizilheaders' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --modversion tizilheaders` -> 1

CMake binary for MachineChoice.HOST is cached.
Run-time dependency tizilheaders found: NO (tried pkgconfig and cmake)
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'libva' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --modversion libva` -> 0
1.4.0
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --cflags libva` -> 0

PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libva --libs` -> 0
-L/usr/lib/x86_64-linux-gnu -lva
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libva --libs` -> 0
-lva
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libva --libs --static` -> 0
-lva
Run-time dependency libva found: YES 1.4.0
Running command: /usr/bin/pkg-config libva --cflags
--- stdout ---


--- stderr ---


Program python3 found: YES (/usr/bin/python3)
Running command: /usr/bin/python3 -c 
from distutils.version import StrictVersion
import mako
assert StrictVersion(mako.__version__) > StrictVersion("0.8.0")
  
--- stdout ---

--- stderr ---


Running compile:
Working directory:  /tmp/tmpgk45yfmd
Command line:  ccache cc /tmp/tmpgk45yfmd/testfile.c -pipe -E -P -D_FILE_OFFSET_BITS=64 -P -O0 -std=c99 

Code:
 
        #include <errno.h>
        #ifndef ETIME
        # define ETIME
        #endif
        "MESON_GET_DEFINE_DELIMITER"
ETIME
Compiler stdout:
 
extern int *__errno_location (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));

        "MESON_GET_DEFINE_DELIMITER"
62

Compiler stderr:
 
Fetching value of define "ETIME" : 62 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpw5vhaz58
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpw5vhaz58/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpw5vhaz58/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define bswap32 meson_disable_define_of_bswap32
        
        #include <limits.h>
        #undef bswap32
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char bswap32 ();
        
        #if defined __stub_bswap32 || defined __stub___bswap32
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return bswap32 ();
        }
Compiler stdout:
 
Compiler stderr:
 /tmp/ccTtFQr6.o:testfile.c:function main: error: undefined reference to 'bswap32'
collect2: error: ld returned 1 exit status

Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpbjmggo4w
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpbjmggo4w/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpbjmggo4w/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        int main() {
        #ifdef __has_builtin
            #if !__has_builtin(__builtin_bswap32)
                #error "__builtin_bswap32 not found"
            #endif
        #elif ! defined(bswap32)
            /* Check for __builtin_bswap32 only if no includes were added to the
             * prefix above, which means no definition of bswap32 can be found.
             * We would always check for this, but we get false positives on
             * MSYS2 if we do. Their toolchain is broken, but we can at least
             * give them a workaround. */
            #if 1
                __builtin_bswap32;
            #else
                #error "No definition for __builtin_bswap32 found in the prefix"
            #endif
        #endif
        return 0;
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "bswap32" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpvv10olli
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpvv10olli/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpvv10olli/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define bswap64 meson_disable_define_of_bswap64
        
        #include <limits.h>
        #undef bswap64
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char bswap64 ();
        
        #if defined __stub_bswap64 || defined __stub___bswap64
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return bswap64 ();
        }
Compiler stdout:
 
Compiler stderr:
 /tmp/ccKPfwyh.o:testfile.c:function main: error: undefined reference to 'bswap64'
collect2: error: ld returned 1 exit status

Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpgv_rqk4z
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpgv_rqk4z/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpgv_rqk4z/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        int main() {
        #ifdef __has_builtin
            #if !__has_builtin(__builtin_bswap64)
                #error "__builtin_bswap64 not found"
            #endif
        #elif ! defined(bswap64)
            /* Check for __builtin_bswap64 only if no includes were added to the
             * prefix above, which means no definition of bswap64 can be found.
             * We would always check for this, but we get false positives on
             * MSYS2 if we do. Their toolchain is broken, but we can at least
             * give them a workaround. */
            #if 1
                __builtin_bswap64;
            #else
                #error "No definition for __builtin_bswap64 found in the prefix"
            #endif
        #endif
        return 0;
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "bswap64" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpwsasqc4p
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpwsasqc4p/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpwsasqc4p/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define clz meson_disable_define_of_clz
        
        #include <limits.h>
        #undef clz
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char clz ();
        
        #if defined __stub_clz || defined __stub___clz
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return clz ();
        }
Compiler stdout:
 
Compiler stderr:
 /tmp/cc1iBtir.o:testfile.c:function main: error: undefined reference to 'clz'
collect2: error: ld returned 1 exit status

Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpuupei4i3
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpuupei4i3/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpuupei4i3/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        int main() {
        #ifdef __has_builtin
            #if !__has_builtin(__builtin_clz)
                #error "__builtin_clz not found"
            #endif
        #elif ! defined(clz)
            /* Check for __builtin_clz only if no includes were added to the
             * prefix above, which means no definition of clz can be found.
             * We would always check for this, but we get false positives on
             * MSYS2 if we do. Their toolchain is broken, but we can at least
             * give them a workaround. */
            #if 1
                __builtin_clz;
            #else
                #error "No definition for __builtin_clz found in the prefix"
            #endif
        #endif
        return 0;
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "clz" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpv930__q3
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpv930__q3/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpv930__q3/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define clzll meson_disable_define_of_clzll
        
        #include <limits.h>
        #undef clzll
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char clzll ();
        
        #if defined __stub_clzll || defined __stub___clzll
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return clzll ();
        }
Compiler stdout:
 
Compiler stderr:
 /tmp/ccMhJedp.o:testfile.c:function main: error: undefined reference to 'clzll'
collect2: error: ld returned 1 exit status

Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp5tf64kod
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp5tf64kod/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp5tf64kod/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        int main() {
        #ifdef __has_builtin
            #if !__has_builtin(__builtin_clzll)
                #error "__builtin_clzll not found"
            #endif
        #elif ! defined(clzll)
            /* Check for __builtin_clzll only if no includes were added to the
             * prefix above, which means no definition of clzll can be found.
             * We would always check for this, but we get false positives on
             * MSYS2 if we do. Their toolchain is broken, but we can at least
             * give them a workaround. */
            #if 1
                __builtin_clzll;
            #else
                #error "No definition for __builtin_clzll found in the prefix"
            #endif
        #endif
        return 0;
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "clzll" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp1925h7vf
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp1925h7vf/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp1925h7vf/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define ctz meson_disable_define_of_ctz
        
        #include <limits.h>
        #undef ctz
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char ctz ();
        
        #if defined __stub_ctz || defined __stub___ctz
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return ctz ();
        }
Compiler stdout:
 
Compiler stderr:
 /tmp/cca41Q7B.o:testfile.c:function main: error: undefined reference to 'ctz'
collect2: error: ld returned 1 exit status

Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpb6av4yo1
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpb6av4yo1/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpb6av4yo1/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        int main() {
        #ifdef __has_builtin
            #if !__has_builtin(__builtin_ctz)
                #error "__builtin_ctz not found"
            #endif
        #elif ! defined(ctz)
            /* Check for __builtin_ctz only if no includes were added to the
             * prefix above, which means no definition of ctz can be found.
             * We would always check for this, but we get false positives on
             * MSYS2 if we do. Their toolchain is broken, but we can at least
             * give them a workaround. */
            #if 1
                __builtin_ctz;
            #else
                #error "No definition for __builtin_ctz found in the prefix"
            #endif
        #endif
        return 0;
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "ctz" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpmq214vq4
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpmq214vq4/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpmq214vq4/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define expect meson_disable_define_of_expect
        
        #include <limits.h>
        #undef expect
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char expect ();
        
        #if defined __stub_expect || defined __stub___expect
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return expect ();
        }
Compiler stdout:
 
Compiler stderr:
 /tmp/ccBZdbrI.o:testfile.c:function main: error: undefined reference to 'expect'
collect2: error: ld returned 1 exit status

Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpsv2pe1lu
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpsv2pe1lu/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpsv2pe1lu/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        int main() {
        #ifdef __has_builtin
            #if !__has_builtin(__builtin_expect)
                #error "__builtin_expect not found"
            #endif
        #elif ! defined(expect)
            /* Check for __builtin_expect only if no includes were added to the
             * prefix above, which means no definition of expect can be found.
             * We would always check for this, but we get false positives on
             * MSYS2 if we do. Their toolchain is broken, but we can at least
             * give them a workaround. */
            #if 1
                __builtin_expect;
            #else
                #error "No definition for __builtin_expect found in the prefix"
            #endif
        #endif
        return 0;
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "expect" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpqyr_uc6h
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpqyr_uc6h/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpqyr_uc6h/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define ffs meson_disable_define_of_ffs
        
        #include <limits.h>
        #undef ffs
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char ffs ();
        
        #if defined __stub_ffs || defined __stub___ffs
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return ffs ();
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "ffs" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpnfwnywd9
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpnfwnywd9/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpnfwnywd9/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define ffsll meson_disable_define_of_ffsll
        
        #include <limits.h>
        #undef ffsll
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char ffsll ();
        
        #if defined __stub_ffsll || defined __stub___ffsll
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return ffsll ();
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "ffsll" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpdlnwbrs_
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpdlnwbrs_/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpdlnwbrs_/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define popcount meson_disable_define_of_popcount
        
        #include <limits.h>
        #undef popcount
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char popcount ();
        
        #if defined __stub_popcount || defined __stub___popcount
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return popcount ();
        }
Compiler stdout:
 
Compiler stderr:
 /tmp/ccmjEmO4.o:testfile.c:function main: error: undefined reference to 'popcount'
collect2: error: ld returned 1 exit status

Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp71_6op25
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp71_6op25/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp71_6op25/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        int main() {
        #ifdef __has_builtin
            #if !__has_builtin(__builtin_popcount)
                #error "__builtin_popcount not found"
            #endif
        #elif ! defined(popcount)
            /* Check for __builtin_popcount only if no includes were added to the
             * prefix above, which means no definition of popcount can be found.
             * We would always check for this, but we get false positives on
             * MSYS2 if we do. Their toolchain is broken, but we can at least
             * give them a workaround. */
            #if 1
                __builtin_popcount;
            #else
                #error "No definition for __builtin_popcount found in the prefix"
            #endif
        #endif
        return 0;
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "popcount" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp8tx3w4s5
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp8tx3w4s5/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp8tx3w4s5/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define popcountll meson_disable_define_of_popcountll
        
        #include <limits.h>
        #undef popcountll
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char popcountll ();
        
        #if defined __stub_popcountll || defined __stub___popcountll
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return popcountll ();
        }
Compiler stdout:
 
Compiler stderr:
 /tmp/ccrEkXqb.o:testfile.c:function main: error: undefined reference to 'popcountll'
collect2: error: ld returned 1 exit status

Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpuctcrsdu
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpuctcrsdu/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpuctcrsdu/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        int main() {
        #ifdef __has_builtin
            #if !__has_builtin(__builtin_popcountll)
                #error "__builtin_popcountll not found"
            #endif
        #elif ! defined(popcountll)
            /* Check for __builtin_popcountll only if no includes were added to the
             * prefix above, which means no definition of popcountll can be found.
             * We would always check for this, but we get false positives on
             * MSYS2 if we do. Their toolchain is broken, but we can at least
             * give them a workaround. */
            #if 1
                __builtin_popcountll;
            #else
                #error "No definition for __builtin_popcountll found in the prefix"
            #endif
        #endif
        return 0;
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "popcountll" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmphqmej9u5
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmphqmej9u5/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmphqmej9u5/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define unreachable meson_disable_define_of_unreachable
        
        #include <limits.h>
        #undef unreachable
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char unreachable ();
        
        #if defined __stub_unreachable || defined __stub___unreachable
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return unreachable ();
        }
Compiler stdout:
 
Compiler stderr:
 /tmp/cclLQzvo.o:testfile.c:function main: error: undefined reference to 'unreachable'
collect2: error: ld returned 1 exit status

Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpbjkaxvnx
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpbjkaxvnx/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpbjkaxvnx/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        int main() {
        #ifdef __has_builtin
            #if !__has_builtin(__builtin_unreachable)
                #error "__builtin_unreachable not found"
            #endif
        #elif ! defined(unreachable)
            /* Check for __builtin_unreachable only if no includes were added to the
             * prefix above, which means no definition of unreachable can be found.
             * We would always check for this, but we get false positives on
             * MSYS2 if we do. Their toolchain is broken, but we can at least
             * give them a workaround. */
            #if 1
                __builtin_unreachable;
            #else
                #error "No definition for __builtin_unreachable found in the prefix"
            #endif
        #endif
        return 0;
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "unreachable" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp5qaqhvme
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp5qaqhvme/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp5qaqhvme/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 int foo(void) __attribute__((const));
Compiler stdout:
 
Compiler stderr:
 
Checking if "__attribute__((const))" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpkkvys3ia
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpkkvys3ia/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpkkvys3ia/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 int foo(void) __attribute__((flatten));
Compiler stdout:
 
Compiler stderr:
 
Checking if "__attribute__((flatten))" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpnk8r1n89
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpnk8r1n89/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpnk8r1n89/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 int foo(void) __attribute__((malloc));
Compiler stdout:
 
Compiler stderr:
 /home/jackman/code/mesa/builddir/meson-private/tmpnk8r1n89/testfile.c:1:1: warning: 'malloc' attribute ignored [-Wattributes]
 int foo(void) __attribute__((malloc));
 ^~~

Checking if "__attribute__((malloc))" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpmzfse1cp
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpmzfse1cp/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpmzfse1cp/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 int foo(void) __attribute__((pure));
Compiler stdout:
 
Compiler stderr:
 
Checking if "__attribute__((pure))" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmplofufi68
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmplofufi68/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmplofufi68/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 int foo(void) __attribute__((unused));
Compiler stdout:
 
Compiler stderr:
 
Checking if "__attribute__((unused))" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpl7_nsl_2
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpl7_nsl_2/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpl7_nsl_2/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 int foo(void) __attribute__((warn_unused_result));
Compiler stdout:
 
Compiler stderr:
 
Checking if "__attribute__((warn_unused_result))" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpi9kd1v1l
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpi9kd1v1l/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpi9kd1v1l/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 int foo(void) __attribute__((weak));
Compiler stdout:
 
Compiler stderr:
 
Checking if "__attribute__((weak))" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp_dm92teh
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp_dm92teh/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp_dm92teh/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 int foo(const char *p, ...) __attribute__((format(printf, 1, 2)));
Compiler stdout:
 
Compiler stderr:
 
Checking if "__attribute__((format(...)))" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpdoaebwqg
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpdoaebwqg/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpdoaebwqg/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 struct __attribute__((packed)) foo { int bar; };
Compiler stdout:
 
Compiler stderr:
 
Checking if "__attribute__((packed))" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp9d5bqgde
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp9d5bqgde/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp9d5bqgde/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 int *foo(void) __attribute__((returns_nonnull));
Compiler stdout:
 
Compiler stderr:
 
Checking if "__attribute__((returns_nonnull))" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp_4xxvmvf
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp_4xxvmvf/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp_4xxvmvf/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 int foo_def(void) __attribute__((visibility("default")));
                  int foo_hid(void) __attribute__((visibility("hidden")));
                  int foo_int(void) __attribute__((visibility("internal")));
                  int foo_pro(void) __attribute__((visibility("protected")));
Compiler stdout:
 
Compiler stderr:
 
Checking if "__attribute__((visibility(...)))" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpd8zj9hi3
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpd8zj9hi3/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpd8zj9hi3/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 int foo(void) { return 0; } int bar(void) __attribute__((alias("foo")));
Compiler stdout:
 
Compiler stderr:
 
Checking if "__attribute__((alias(...)))" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpk_b7ateb
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpk_b7ateb/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpk_b7ateb/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 int foo(void) __attribute__((__noreturn__));
Compiler stdout:
 
Compiler stderr:
 
Checking if "__attribute__((__noreturn__))" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp34ggnk72
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp34ggnk72/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp34ggnk72/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 __uint128_t foo(void) { return 0; }
Compiler stdout:
 
Compiler stderr:
 
Checking if "__uint128_t" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmphcteqh2q
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmphcteqh2q/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmphcteqh2q/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Werror=implicit-function-declaration: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpuhledc0h
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpuhledc0h/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpuhledc0h/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Werror=missing-prototypes 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Werror=missing-prototypes: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpw833dzxi
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpw833dzxi/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpw833dzxi/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Werror=return-type 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Werror=return-type: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpto34phat
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpto34phat/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpto34phat/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Werror=empty-body 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Werror=empty-body: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpvy1llufs
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpvy1llufs/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpvy1llufs/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Werror=incompatible-pointer-types 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Werror=incompatible-pointer-types: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp_1cxm5on
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp_1cxm5on/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp_1cxm5on/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wno-missing-field-initializers -Wmissing-field-initializers 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wno-missing-field-initializers -Wmissing-field-initializers: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmphzs64zzn
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmphzs64zzn/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmphzs64zzn/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wno-format-truncation -Wformat-truncation 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wno-format-truncation -Wformat-truncation: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp4rn28cfg
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp4rn28cfg/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp4rn28cfg/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fno-math-errno 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -fno-math-errno: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp6jn8b2le
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp6jn8b2le/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp6jn8b2le/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fno-trapping-math 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -fno-trapping-math: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp1ii7wa47
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp1ii7wa47/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp1ii7wa47/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Qunused-arguments 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 cc: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?

Compiler for C supports arguments -Qunused-arguments: NO 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpl0jacuy8
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpl0jacuy8/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpl0jacuy8/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Werror=format 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Werror=format: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpcfh5walu
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpcfh5walu/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpcfh5walu/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wformat-security 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 cc1: warning: -Wformat-security ignored without -Wformat [-Wformat-security]

Compiler for C supports arguments -Wformat-security: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpp1c1snic
Command line:  ccache c++ /home/jackman/code/mesa/builddir/meson-private/tmpp1c1snic/testfile.cpp -o /home/jackman/code/mesa/builddir/meson-private/tmpp1c1snic/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=return-type 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C++ supports arguments -Werror=return-type: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpcszi0lz_
Command line:  ccache c++ /home/jackman/code/mesa/builddir/meson-private/tmpcszi0lz_/testfile.cpp -o /home/jackman/code/mesa/builddir/meson-private/tmpcszi0lz_/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=empty-body 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C++ supports arguments -Werror=empty-body: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp2oep6iil
Command line:  ccache c++ /home/jackman/code/mesa/builddir/meson-private/tmp2oep6iil/testfile.cpp -o /home/jackman/code/mesa/builddir/meson-private/tmp2oep6iil/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wno-non-virtual-dtor -Wnon-virtual-dtor 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C++ supports arguments -Wno-non-virtual-dtor -Wnon-virtual-dtor: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmphngmnfqk
Command line:  ccache c++ /home/jackman/code/mesa/builddir/meson-private/tmphngmnfqk/testfile.cpp -o /home/jackman/code/mesa/builddir/meson-private/tmphngmnfqk/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wno-missing-field-initializers -Wmissing-field-initializers 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C++ supports arguments -Wno-missing-field-initializers -Wmissing-field-initializers: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmphbddn8t6
Command line:  ccache c++ /home/jackman/code/mesa/builddir/meson-private/tmphbddn8t6/testfile.cpp -o /home/jackman/code/mesa/builddir/meson-private/tmphbddn8t6/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wno-format-truncation -Wformat-truncation 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C++ supports arguments -Wno-format-truncation -Wformat-truncation: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpjc1sf769
Command line:  ccache c++ /home/jackman/code/mesa/builddir/meson-private/tmpjc1sf769/testfile.cpp -o /home/jackman/code/mesa/builddir/meson-private/tmpjc1sf769/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -fno-math-errno 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C++ supports arguments -fno-math-errno: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp5gkgf752
Command line:  ccache c++ /home/jackman/code/mesa/builddir/meson-private/tmp5gkgf752/testfile.cpp -o /home/jackman/code/mesa/builddir/meson-private/tmp5gkgf752/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -fno-trapping-math 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C++ supports arguments -fno-trapping-math: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpg3pnaovd
Command line:  ccache c++ /home/jackman/code/mesa/builddir/meson-private/tmpg3pnaovd/testfile.cpp -o /home/jackman/code/mesa/builddir/meson-private/tmpg3pnaovd/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Qunused-arguments 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 c++: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?

Compiler for C++ supports arguments -Qunused-arguments: NO 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp7i5193jn
Command line:  ccache c++ /home/jackman/code/mesa/builddir/meson-private/tmp7i5193jn/testfile.cpp -o /home/jackman/code/mesa/builddir/meson-private/tmp7i5193jn/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=format 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C++ supports arguments -Werror=format: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp52r5g0nr
Command line:  ccache c++ /home/jackman/code/mesa/builddir/meson-private/tmp52r5g0nr/testfile.cpp -o /home/jackman/code/mesa/builddir/meson-private/tmp52r5g0nr/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wformat-security 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 cc1plus: warning: -Wformat-security ignored without -Wformat [-Wformat-security]

Compiler for C++ supports arguments -Wformat-security: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpkeleu4xx
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpkeleu4xx/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpkeleu4xx/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wno-override-init -Woverride-init 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wno-override-init -Woverride-init: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpat5ix10r
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpat5ix10r/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpat5ix10r/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wno-initializer-overrides -Winitializer-overrides 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 cc: error: unrecognized command line option '-Winitializer-overrides'; did you mean '-Wno-suggest-override'?

Compiler for C supports arguments -Wno-initializer-overrides -Winitializer-overrides: NO 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp7330vaf5
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp7330vaf5/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp7330vaf5/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fvisibility=hidden 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -fvisibility=hidden: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpgkwl02xy
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpgkwl02xy/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpgkwl02xy/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Werror=pointer-arith 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Werror=pointer-arith: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmppqxq_tm7
Command line:  ccache c++ /home/jackman/code/mesa/builddir/meson-private/tmppqxq_tm7/testfile.cpp -o /home/jackman/code/mesa/builddir/meson-private/tmppqxq_tm7/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=pointer-arith 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C++ supports arguments -Werror=pointer-arith: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpmwljph8u
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpmwljph8u/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpmwljph8u/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Werror=vla 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Werror=vla: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpttbtbp63
Command line:  ccache c++ /home/jackman/code/mesa/builddir/meson-private/tmpttbtbp63/testfile.cpp -o /home/jackman/code/mesa/builddir/meson-private/tmpttbtbp63/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=vla 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C++ supports arguments -Werror=vla: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp4vofs6ue
Command line:  ccache c++ /home/jackman/code/mesa/builddir/meson-private/tmp4vofs6ue/testfile.cpp -o /home/jackman/code/mesa/builddir/meson-private/tmp4vofs6ue/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -fvisibility=hidden 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C++ supports arguments -fvisibility=hidden: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpcwe4yl5i
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpcwe4yl5i/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpcwe4yl5i/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 #include <stdint.h>
                  int main() {
                    struct {
                      uint64_t *v;
                    } x;
                    return (int)__atomic_load_n(x.v, __ATOMIC_ACQUIRE) &
                           (int)__atomic_add_fetch(x.v, (uint64_t)1, __ATOMIC_ACQ_REL);

                  }
Compiler stdout:
 
Compiler stderr:
 
Checking if "GCC atomic builtins" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp7kerrl2k
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp7kerrl2k/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp7kerrl2k/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 #include <stdint.h>
                     int main() {
                       struct {
                         uint64_t *v;
                       } x;
                       return (int)__atomic_load_n(x.v, __ATOMIC_ACQUIRE) &
                              (int)__atomic_add_fetch(x.v, (uint64_t)1, __ATOMIC_ACQ_REL);
                     }
Compiler stdout:
 
Compiler stderr:
 
Checking if "GCC atomic builtins required -latomic" links: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpyreacmk9
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpyreacmk9/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpyreacmk9/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 #include <stdint.h>
                   uint64_t v;
                   int main() {
                     return __sync_add_and_fetch(&v, (uint64_t)1);
                   }
Compiler stdout:
 
Compiler stderr:
 
Checking if "GCC 64bit atomics" with dependency not-found links: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpllk4g_12
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpllk4g_12/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpllk4g_12/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -Wl,--start-group -lws2_32 -Wl,--end-group -Wl,--allow-shlib-undefined 

Code:
 int main() { return 0; }
Compiler stdout:
 
Compiler stderr:
 /home/jackman/opt/bin/ld: error: cannot find -lws2_32
collect2: error: ld returned 1 exit status

Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpr6efma37
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpr6efma37/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpr6efma37/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 

Code:
 #include<stdio.h>
        
        int main() {
            printf("%ld\n", (long)(sizeof(void *)));
            return 0;
        };
Compiler stdout:
 
Compiler stderr:
 
Program stdout:

8

Program stderr:


Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp1lll21xd
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp1lll21xd/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp1lll21xd/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 --print-search-dirs 

Code:
 
Compiler stdout:
 install: /usr/lib/gcc/x86_64-linux-gnu/8/
programs: =/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/bin/
libraries: =/opt/Qt/5.11.1/5.11.1/gcc_64/lib/x86_64-linux-gnu/8/:/opt/Qt/5.11.1/5.11.1/gcc_64/lib/x86_64-linux-gnu/:/opt/Qt/5.11.1/5.11.1/gcc_64/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../lib/:/lib/x86_64-linux-gnu/8/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/8/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/opt/Qt/5.11.1/5.11.1/gcc_64/lib/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/lib/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../:/lib/:/usr/lib/

Compiler stderr:
 
Library ws2_32 found: NO
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpe2sf77ck
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpe2sf77ck/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpe2sf77ck/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #include <sys/sysmacros.h>
        int main () {
            /* If it's not defined as a macro, try to use as a symbol */
            #ifndef major
                major;
            #endif
            return 0;
        }
Compiler stdout:
 
Compiler stderr:
 
Header <sys/sysmacros.h> has symbol "major" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp2dhalfm6
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp2dhalfm6/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp2dhalfm6/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #include <sys/sysmacros.h>
        int main () {
            /* If it's not defined as a macro, try to use as a symbol */
            #ifndef minor
                minor;
            #endif
            return 0;
        }
Compiler stdout:
 
Compiler stderr:
 
Header <sys/sysmacros.h> has symbol "minor" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpftehem6l
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpftehem6l/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpftehem6l/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #include <sys/sysmacros.h>
        int main () {
            /* If it's not defined as a macro, try to use as a symbol */
            #ifndef makedev
                makedev;
            #endif
            return 0;
        }
Compiler stdout:
 
Compiler stderr:
 
Header <sys/sysmacros.h> has symbol "makedev" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp3a4omf4h
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp3a4omf4h/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp3a4omf4h/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #include <sys/mkdev.h>
        int main () {
            /* If it's not defined as a macro, try to use as a symbol */
            #ifndef major
                major;
            #endif
            return 0;
        }
Compiler stdout:
 
Compiler stderr:
 /home/jackman/code/mesa/builddir/meson-private/tmp3a4omf4h/testfile.c:2:18: fatal error: sys/mkdev.h: No such file or directory
         #include <sys/mkdev.h>
                  ^~~~~~~~~~~~~
compilation terminated.

Header <sys/mkdev.h> has symbol "major" : NO 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpdx2g0c_w
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpdx2g0c_w/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpdx2g0c_w/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 #include <xlocale.h>
Compiler stdout:
 
Compiler stderr:
 /home/jackman/code/mesa/builddir/meson-private/tmpdx2g0c_w/testfile.c:1:10: fatal error: xlocale.h: No such file or directory
 #include <xlocale.h>
          ^~~~~~~~~~~
compilation terminated.

Checking if "xlocale.h" compiles: NO 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmptfkwbwy2
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmptfkwbwy2/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmptfkwbwy2/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 #include <sys/sysctl.h>
Compiler stdout:
 
Compiler stderr:
 
Checking if "sys/sysctl.h" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp1g84n23v
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp1g84n23v/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp1g84n23v/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 #include <linux/futex.h>
Compiler stdout:
 
Compiler stderr:
 
Checking if "linux/futex.h" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpec2wz1hf
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpec2wz1hf/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpec2wz1hf/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 #include <endian.h>
Compiler stdout:
 
Compiler stderr:
 
Checking if "endian.h" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpb8p20rwu
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpb8p20rwu/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpb8p20rwu/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 #include <dlfcn.h>
Compiler stdout:
 
Compiler stderr:
 
Checking if "dlfcn.h" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp0p1jjhr7
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp0p1jjhr7/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp0p1jjhr7/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 #include <execinfo.h>
Compiler stdout:
 
Compiler stderr:
 
Checking if "execinfo.h" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmphd23jfi0
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmphd23jfi0/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmphd23jfi0/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 #include <sys/shm.h>
Compiler stdout:
 
Compiler stderr:
 
Checking if "sys/shm.h" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpkagjuqzf
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpkagjuqzf/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpkagjuqzf/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 #include <cet.h>
Compiler stdout:
 
Compiler stderr:
 
Checking if "cet.h" compiles: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp0evxlhx1
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp0evxlhx1/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp0evxlhx1/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define strtof meson_disable_define_of_strtof
        
        #include <limits.h>
        #undef strtof
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char strtof ();
        
        #if defined __stub_strtof || defined __stub___strtof
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return strtof ();
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "strtof" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp9zp3nqru
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp9zp3nqru/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp9zp3nqru/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define mkostemp meson_disable_define_of_mkostemp
        
        #include <limits.h>
        #undef mkostemp
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char mkostemp ();
        
        #if defined __stub_mkostemp || defined __stub___mkostemp
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return mkostemp ();
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "mkostemp" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp59st3o1o
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp59st3o1o/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp59st3o1o/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define timespec_get meson_disable_define_of_timespec_get
        
        #include <limits.h>
        #undef timespec_get
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char timespec_get ();
        
        #if defined __stub_timespec_get || defined __stub___timespec_get
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return timespec_get ();
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "timespec_get" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpde2eakq7
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpde2eakq7/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpde2eakq7/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define memfd_create meson_disable_define_of_memfd_create
        
        #include <limits.h>
        #undef memfd_create
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char memfd_create ();
        
        #if defined __stub_memfd_create || defined __stub___memfd_create
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return memfd_create ();
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "memfd_create" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpir4irhrm
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpir4irhrm/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpir4irhrm/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define random_r meson_disable_define_of_random_r
        
        #include <limits.h>
        #undef random_r
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char random_r ();
        
        #if defined __stub_random_r || defined __stub___random_r
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return random_r ();
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "random_r" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpnvn8wlhr
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpnvn8wlhr/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpnvn8wlhr/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define flock meson_disable_define_of_flock
        
        #include <limits.h>
        #undef flock
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char flock ();
        
        #if defined __stub_flock || defined __stub___flock
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return flock ();
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "flock" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp3ot_sa2f
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp3ot_sa2f/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp3ot_sa2f/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -std=c99 -D_GNU_SOURCE 

Code:
 
        #include <errno.h>
        int main () {
            /* If it's not defined as a macro, try to use as a symbol */
            #ifndef program_invocation_name
                program_invocation_name;
            #endif
            return 0;
        }
Compiler stdout:
 
Compiler stderr:
 
Header <errno.h> has symbol "program_invocation_name" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpqtrz22u6
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpqtrz22u6/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpqtrz22u6/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define posix_memalign meson_disable_define_of_posix_memalign
        
        #include <limits.h>
        #undef posix_memalign
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char posix_memalign ();
        
        #if defined __stub_posix_memalign || defined __stub___posix_memalign
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return posix_memalign ();
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "posix_memalign" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpm1u6pjs_
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpm1u6pjs_/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpm1u6pjs_/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DPACKAGE_VERSION="19.3.3" -DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/issues" -DUSE_ELF_TLS -DHAVE_ST_VDPAU -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DHAVE_X11_PLATFORM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DHAVE_DRM_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_UINT128 -D_GNU_SOURCE -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_64_ASM -DMAJOR_IN_SYSMACROS -DHAVE_SYS_SYSCTL_H -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_EXECINFO_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN 

Code:
 
    #define _GNU_SOURCE
    #include <stdlib.h>
    #include <locale.h>
    #ifdef HAVE_XLOCALE_H
    #include <xlocale.h>
    #endif
    int main() {
      locale_t loc = newlocale(LC_CTYPE_MASK, "C", NULL);
      const char *s = "1.0";
      char *end;
      double d = strtod_l(s, end, loc);
      float f = strtof_l(s, end, loc);
      freelocale(loc);
      return 0;
    }
Compiler stdout:
 
Compiler stderr:
 /home/jackman/code/mesa/builddir/meson-private/tmpm1u6pjs_/testfile.c:2: warning: "_GNU_SOURCE" redefined
     #define _GNU_SOURCE
 
<command-line>: note: this is the location of the previous definition
/home/jackman/code/mesa/builddir/meson-private/tmpm1u6pjs_/testfile.c: In function 'main':
/home/jackman/code/mesa/builddir/meson-private/tmpm1u6pjs_/testfile.c:12:30: warning: passing argument 2 of 'strtod_l' from incompatible pointer type [-Wincompatible-pointer-types]
       double d = strtod_l(s, end, loc);
                              ^~~
In file included from /home/jackman/code/mesa/builddir/meson-private/tmpm1u6pjs_/testfile.c:3:
/usr/include/stdlib.h:296:22: note: expected 'char ** restrict' but argument is of type 'char *'
    char **__restrict __endptr, locale_t __loc)
    ~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/jackman/code/mesa/builddir/meson-private/tmpm1u6pjs_/testfile.c:13:29: warning: passing argument 2 of 'strtof_l' from incompatible pointer type [-Wincompatible-pointer-types]
       float f = strtof_l(s, end, loc);
                             ^~~
In file included from /home/jackman/code/mesa/builddir/meson-private/tmpm1u6pjs_/testfile.c:3:
/usr/include/stdlib.h:300:28: note: expected 'char ** restrict' but argument is of type 'char *'
          char **__restrict __endptr, locale_t __loc)
          ~~~~~~~~~~~~~~~~~~^~~~~~~~

Checking if "strtod has locale support" links: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmprlgcja7x
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmprlgcja7x/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmprlgcja7x/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 -Wl,-Bsymbolic 

Code:
 int main() { return 0; }
Compiler stdout:
 
Compiler stderr:
 
Checking if "Bsymbolic" links: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmphb0iiykl
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmphb0iiykl/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmphb0iiykl/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 -Wl,--gc-sections 

Code:
 static char unused() { return 5; } int main() { return 0; }
Compiler stdout:
 
Compiler stderr:
 
Checking if "gc-sections" links: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp27uokjx9
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp27uokjx9/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp27uokjx9/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 -Wl,--version-script=/home/jackman/code/mesa/build-support/conftest.map 

Code:
 int main() { return 0; }
Compiler stdout:
 
Compiler stderr:
 
Checking if "version-script" links: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpdp0_uhkc
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpdp0_uhkc/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpdp0_uhkc/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 -Wl,--dynamic-list=/home/jackman/code/mesa/build-support/conftest.dyn 

Code:
 int main() { return 0; }
Compiler stdout:
 
Compiler stderr:
 
Checking if "dynamic-list" links: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp0444oyqy
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp0444oyqy/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp0444oyqy/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -Wl,--fatal-warnings -Wl,--build-id=sha1 

Code:
 int main() { return 0; }
Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports link arguments -Wl,--build-id=sha1: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp_p1rb8ha
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp_p1rb8ha/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp_p1rb8ha/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define dlopen meson_disable_define_of_dlopen
        
        #include <limits.h>
        #undef dlopen
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char dlopen ();
        
        #if defined __stub_dlopen || defined __stub___dlopen
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return dlopen ();
        }
Compiler stdout:
 
Compiler stderr:
 /tmp/cckMCmRW.o:testfile.c:function main: error: undefined reference to 'dlopen'
collect2: error: ld returned 1 exit status

Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp014lgepy
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp014lgepy/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp014lgepy/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        int main() {
        #ifdef __has_builtin
            #if !__has_builtin(__builtin_dlopen)
                #error "__builtin_dlopen not found"
            #endif
        #elif ! defined(dlopen)
            /* Check for __builtin_dlopen only if no includes were added to the
             * prefix above, which means no definition of dlopen can be found.
             * We would always check for this, but we get false positives on
             * MSYS2 if we do. Their toolchain is broken, but we can at least
             * give them a workaround. */
            #if 1
                __builtin_dlopen;
            #else
                #error "No definition for __builtin_dlopen found in the prefix"
            #endif
        #endif
        return 0;
        }
Compiler stdout:
 
Compiler stderr:
 /home/jackman/code/mesa/builddir/meson-private/tmp014lgepy/testfile.c: In function 'main':
/home/jackman/code/mesa/builddir/meson-private/tmp014lgepy/testfile.c:14:17: error: '__builtin_dlopen' undeclared (first use in this function); did you mean '__builtin_drem'?
                 __builtin_dlopen;
                 ^~~~~~~~~~~~~~~~
                 __builtin_drem
/home/jackman/code/mesa/builddir/meson-private/tmp014lgepy/testfile.c:14:17: note: each undeclared identifier is reported only once for each function it appears in

Checking for function "dlopen" : NO 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp3nwg4awm
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp3nwg4awm/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp3nwg4awm/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -Wl,--start-group -ldl -Wl,--end-group -Wl,--allow-shlib-undefined 

Code:
 int main() { return 0; }
Compiler stdout:
 
Compiler stderr:
 
Library dl found: YES
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpuofql3qc
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpuofql3qc/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpuofql3qc/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 -Wl,--start-group -ldl -Wl,--end-group 

Code:
 
        #define dladdr meson_disable_define_of_dladdr
        
        #include <limits.h>
        #undef dladdr
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char dladdr ();
        
        #if defined __stub_dladdr || defined __stub___dladdr
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return dladdr ();
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "dladdr" with dependency -ldl: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpxeefa2pf
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpxeefa2pf/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpxeefa2pf/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define dl_iterate_phdr meson_disable_define_of_dl_iterate_phdr
        
        #include <limits.h>
        #undef dl_iterate_phdr
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char dl_iterate_phdr ();
        
        #if defined __stub_dl_iterate_phdr || defined __stub___dl_iterate_phdr
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return dl_iterate_phdr ();
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "dl_iterate_phdr" : YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmplyru_ivu
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmplyru_ivu/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmplyru_ivu/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 
        #define clock_gettime meson_disable_define_of_clock_gettime
        
        #include <limits.h>
        #undef clock_gettime
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char clock_gettime ();
        
        #if defined __stub_clock_gettime || defined __stub___clock_gettime
        fail fail fail this function is not going to work
        #endif
        
        int main () {
          return clock_gettime ();
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "clock_gettime" : YES 
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'zlib' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --modversion zlib` -> 0
1.2.11
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --cflags zlib` -> 0

PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config zlib --libs` -> 0
-L/usr/lib/x86_64-linux-gnu -lz
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config zlib --libs` -> 0
-lz
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config zlib --libs --static` -> 0
-lz
Run-time dependency zlib found: YES 1.2.11
Run-time dependency threads found: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp32_uk8ai
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp32_uk8ai/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp32_uk8ai/output.exe -pipe -pthread -D_FILE_OFFSET_BITS=64 -O0 -std=c99 -D_GNU_SOURCE 

Code:
 #include <pthread.h>
#include <limits.h>

        #if defined __stub_pthread_setaffinity_np || defined __stub___pthread_setaffinity_np
        fail fail fail this function is not going to work
        #endif
        
int main() {
            void *a = (void*) &pthread_setaffinity_np;
            long b = (long) a;
            return (int) b;
        }
Compiler stdout:
 
Compiler stderr:
 
Checking for function "pthread_setaffinity_np" with dependency threads: YES 
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp69jqfjdf
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp69jqfjdf/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp69jqfjdf/output.exe -pipe -pthread -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 #include <pthread_np.h>
#include <limits.h>

        #if defined __stub_pthread_setaffinity_np || defined __stub___pthread_setaffinity_np
        fail fail fail this function is not going to work
        #endif
        
int main() {
            void *a = (void*) &pthread_setaffinity_np;
            long b = (long) a;
            return (int) b;
        }
Compiler stdout:
 
Compiler stderr:
 /home/jackman/code/mesa/builddir/meson-private/tmp69jqfjdf/testfile.c:1:10: fatal error: pthread_np.h: No such file or directory
 #include <pthread_np.h>
          ^~~~~~~~~~~~~~
compilation terminated.

Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmp8nlfbha3
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmp8nlfbha3/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmp8nlfbha3/output.exe -pipe -pthread -D_FILE_OFFSET_BITS=64 -O0 -std=c99 

Code:
 #include <pthread_np.h>
        int main() {
        #ifdef __has_builtin
            #if !__has_builtin(__builtin_pthread_setaffinity_np)
                #error "__builtin_pthread_setaffinity_np not found"
            #endif
        #elif ! defined(pthread_setaffinity_np)
            /* Check for __builtin_pthread_setaffinity_np only if no includes were added to the
             * prefix above, which means no definition of pthread_setaffinity_np can be found.
             * We would always check for this, but we get false positives on
             * MSYS2 if we do. Their toolchain is broken, but we can at least
             * give them a workaround. */
            #if 0
                __builtin_pthread_setaffinity_np;
            #else
                #error "No definition for __builtin_pthread_setaffinity_np found in the prefix"
            #endif
        #endif
        return 0;
        }
Compiler stdout:
 
Compiler stderr:
 /home/jackman/code/mesa/builddir/meson-private/tmp8nlfbha3/testfile.c:1:10: fatal error: pthread_np.h: No such file or directory
 #include <pthread_np.h>
          ^~~~~~~~~~~~~~
compilation terminated.

Checking for function "pthread_setaffinity_np" with dependency threads: NO 
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'expat' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --modversion expat` -> 0
2.2.6
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --cflags expat` -> 0

PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config expat --libs` -> 0
-L/usr/lib/x86_64-linux-gnu -lexpat
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config expat --libs` -> 0
-lexpat
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config expat --libs --static` -> 0
-lexpat
Run-time dependency expat found: YES 2.2.6
Running compile:
Working directory:  /home/jackman/code/mesa/builddir/meson-private/tmpiw8u09ei
Command line:  ccache cc /home/jackman/code/mesa/builddir/meson-private/tmpiw8u09ei/testfile.c -o /home/jackman/code/mesa/builddir/meson-private/tmpiw8u09ei/output.exe -pipe -D_FILE_OFFSET_BITS=64 -O0 -Wl,--start-group -lm -Wl,--end-group -Wl,--allow-shlib-undefined 

Code:
 int main() { return 0; }
Compiler stdout:
 
Compiler stderr:
 
Library m found: YES
Message: libdrm 2.4.100 needed because amdgpu has the highest requirement
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'libdrm_intel' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --modversion libdrm_intel` -> 0
2.4.101
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --cflags libdrm_intel` -> 0
-I/usr/local/include -I/usr/local/include/libdrm -I/usr/local/include -I/usr/local/include/libdrm
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libdrm_intel --libs` -> 0
-L/usr/local/lib/x86_64-linux-gnu -ldrm_intel -ldrm
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libdrm_intel --libs` -> 0
-L/usr/local/lib/x86_64-linux-gnu -ldrm_intel -ldrm
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libdrm_intel --libs --static` -> 0
-L/usr/local/lib/x86_64-linux-gnu -ldrm_intel -ldrm
Run-time dependency libdrm_intel found: YES 2.4.101
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'libdrm_amdgpu' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --modversion libdrm_amdgpu` -> 0
2.4.101
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --cflags libdrm_amdgpu` -> 0
-I/usr/local/include -I/usr/local/include/libdrm -I/usr/local/include -I/usr/local/include/libdrm
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libdrm_amdgpu --libs` -> 0
-L/usr/local/lib/x86_64-linux-gnu -ldrm_amdgpu
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libdrm_amdgpu --libs` -> 0
-L/usr/local/lib/x86_64-linux-gnu -ldrm_amdgpu
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libdrm_amdgpu --libs --static` -> 0
-L/usr/local/lib/x86_64-linux-gnu -ldrm_amdgpu -ldrm
Run-time dependency libdrm_amdgpu found: YES 2.4.101
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'libdrm_radeon' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --modversion libdrm_radeon` -> 0
2.4.101
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --cflags libdrm_radeon` -> 0
-I/usr/local/include -I/usr/local/include/libdrm -I/usr/local/include -I/usr/local/include/libdrm
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libdrm_radeon --libs` -> 0
-L/usr/local/lib/x86_64-linux-gnu -ldrm_radeon
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libdrm_radeon --libs` -> 0
-L/usr/local/lib/x86_64-linux-gnu -ldrm_radeon
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libdrm_radeon --libs --static` -> 0
-L/usr/local/lib/x86_64-linux-gnu -ldrm_radeon -ldrm
Run-time dependency libdrm_radeon found: YES 2.4.101
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'libdrm_nouveau' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --modversion libdrm_nouveau` -> 0
2.4.101
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --cflags libdrm_nouveau` -> 0
-I/usr/local/include -I/usr/local/include/libdrm -I/usr/local/include/libdrm/nouveau -I/usr/local/include -I/usr/local/include/libdrm
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libdrm_nouveau --libs` -> 0
-L/usr/local/lib/x86_64-linux-gnu -ldrm_nouveau
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libdrm_nouveau --libs` -> 0
-L/usr/local/lib/x86_64-linux-gnu -ldrm_nouveau
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libdrm_nouveau --libs --static` -> 0
-L/usr/local/lib/x86_64-linux-gnu -ldrm_nouveau -ldrm
Run-time dependency libdrm_nouveau found: YES 2.4.101
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'libdrm' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --modversion libdrm` -> 0
2.4.101
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config --cflags libdrm` -> 0
-I/usr/local/include -I/usr/local/include/libdrm
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libdrm --libs` -> 0
-L/usr/local/lib/x86_64-linux-gnu -ldrm
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libdrm --libs` -> 0
-L/usr/local/lib/x86_64-linux-gnu -ldrm
PKG_CONFIG_PATH: /opt/Qt/5.11.1/5.11.1/gcc_64/lib/pkgconfig
Called `/usr/bin/pkg-config libdrm --libs --static` -> 0
-L/usr/local/lib/x86_64-linux-gnu -ldrm
Run-time dependency libdrm found: YES 2.4.101
llvm-config found: YES (/home/jackman/opt/bin/llvm-config) 10.0.0
Run-time dependency LLVM (modules: amdgpu, asmparser, bitreader, bitwriter, engine, ipo, mcdisassembler, mcjit, native, coroutines) found: NO (tried config-tool)
Looking for a fallback subproject for the dependency llvm

meson.build:1389:2: ERROR: Subproject directory not found and llvm.wrap file not found


More information about the mesa-users mailing list