mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.5k stars 1.6k forks source link

0.57.1: pytest based test suite is failing #8392

Closed kloczek closed 3 years ago

kloczek commented 3 years ago
+ /usr/bin/python3 -B -m pytest -k '    not test_as_link_whole and      not test_pkgconfig_gen_deps and         not test_wx_dependency'
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.7, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1, configfile: setup.cfg
plugins: flaky-3.6.1, forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, pyfakefs-4.1.0, cov-2.11.1, mock-3.5.1, httpbin-1.0.0, hypothesis-6.2.0, xdist-2.2.1
collected 407 items / 3 deselected / 404 selected

run_unittests.py .............s................................................F...........................s.................................F...s.................. [ 36%]
..F......................F..F........s...............s............sssssssssssssssssss.FF.FF.....................s..s..........F..s.........s.........F..sssssssss... [ 76%]
..............................ss.s...........s.s.............................................                                                                        [100%]

================================================================================= FAILURES =================================================================================
__________________________________________________________________ AllPlatformTests.test_cflags_cppflags ___________________________________________________________________

self = <run_unittests.AllPlatformTests testMethod=test_cflags_cppflags>

    def test_cflags_cppflags(self):
        envs = {'CPPFLAGS': '-DCPPFLAG',
                'CFLAGS': '-DCFLAG',
                'CXXFLAGS': '-DCXXFLAG'}
        srcdir = os.path.join(self.unit_test_dir, '90 multiple envvars')
        self.init(srcdir, override_envvars=envs)
>       self.build()

run_unittests.py:5492:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
run_unittests.py:1861: in build
    return self._run(self.build_command + args + extra_args, workdir=self.builddir, override_envvars=override_envvars)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <run_unittests.AllPlatformTests testMethod=test_cflags_cppflags>, command = ['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']

    def _run(self, command, *, workdir=None, override_envvars=None):
        '''
        Run a command while printing the stdout and stderr to stdout,
        and also return a copy of it
        '''
        # If this call hangs CI will just abort. It is very hard to distinguish
        # between CI issue and test bug in that case. Set timeout and fail loud
        # instead.
        if override_envvars is None:
            env = None
        else:
            env = os.environ.copy()
            env.update(override_envvars)

        p = subprocess.run(command, stdout=subprocess.PIPE,
                           stderr=subprocess.STDOUT, env=env,
                           encoding='utf-8',
                           universal_newlines=True, cwd=workdir, timeout=60 * 5)
        print(p.stdout)
        if p.returncode != 0:
            if 'MESON_SKIP_TEST' in p.stdout:
                raise unittest.SkipTest('Project requested skipping.')
>           raise subprocess.CalledProcessError(p.returncode, command, output=p.stdout)
E           subprocess.CalledProcessError: Command '['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']' returned non-zero exit status 1.

run_unittests.py:1801: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
The Meson build system
Version: 0.57.1
Source dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/unit/90 multiple envvars
Build dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpz_6d9bxc
Build type: native build
Project name: multienv
Project version: undefined
C compiler for the host machine: cc (gcc 11.0.0 "cc (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C linker for the host machine: cc ld.bfd 2.35.1-34
C++ compiler for the host machine: c++ (gcc 11.0.0 "c++ (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C++ linker for the host machine: c++ ld.bfd 2.35.1-34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Build targets in project: 2

Found ninja-1.10.2 at /usr/bin/ninja

ninja explain: deps for 'cexe.p/prog.c.o' are missing
ninja explain: cexe.p/prog.c.o is dirty
ninja explain: cexe is dirty
ninja explain: deps for 'cppexe.p/prog.cpp.o' are missing
ninja explain: cppexe.p/prog.cpp.o is dirty
ninja explain: cppexe is dirty
[1/4] Compiling C object cexe.p/prog.c.o
[2/4] Compiling C++ object cppexe.p/prog.cpp.o
[3/4] Linking target cexe
FAILED: cexe
cc  -o cexe cexe.p/prog.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin
/usr/bin/ld: cexe.p/prog.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
[4/4] Linking target cppexe
FAILED: cppexe
c++  -o cppexe cppexe.p/prog.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin
/usr/bin/ld: cppexe.p/prog.cpp.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

_________________________________________________________________ AllPlatformTests.test_junit_valid_gtest __________________________________________________________________

self = <run_unittests.AllPlatformTests testMethod=test_junit_valid_gtest>

    def test_junit_valid_gtest(self):
>       self._test_junit(os.path.join(self.framework_test_dir, '2 gtest'))

run_unittests.py:5160:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
run_unittests.py:5145: in _test_junit
    self.run_tests()
run_unittests.py:1869: in run_tests
    self._run(self.test_command, workdir=self.builddir, override_envvars=override_envvars)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <run_unittests.AllPlatformTests testMethod=test_junit_valid_gtest>, command = ['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain', 'test', ...]

    def _run(self, command, *, workdir=None, override_envvars=None):
        '''
        Run a command while printing the stdout and stderr to stdout,
        and also return a copy of it
        '''
        # If this call hangs CI will just abort. It is very hard to distinguish
        # between CI issue and test bug in that case. Set timeout and fail loud
        # instead.
        if override_envvars is None:
            env = None
        else:
            env = os.environ.copy()
            env.update(override_envvars)

        p = subprocess.run(command, stdout=subprocess.PIPE,
                           stderr=subprocess.STDOUT, env=env,
                           encoding='utf-8',
                           universal_newlines=True, cwd=workdir, timeout=60 * 5)
        print(p.stdout)
        if p.returncode != 0:
            if 'MESON_SKIP_TEST' in p.stdout:
                raise unittest.SkipTest('Project requested skipping.')
>           raise subprocess.CalledProcessError(p.returncode, command, output=p.stdout)
E           subprocess.CalledProcessError: Command '['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain', 'test', 'benchmark']' returned non-zero exit status 1.

run_unittests.py:1801: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
The Meson build system
Version: 0.57.1
Source dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/frameworks/2 gtest
Build dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpxie5qu5s
Build type: native build
Project name: gtest
Project version: undefined
C++ compiler for the host machine: c++ (gcc 11.0.0 "c++ (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C++ linker for the host machine: c++ ld.bfd 2.35.1-34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Run-time dependency GTest found: YES 1.10.0
Run-time dependency GTest found: YES (prebuilt)
Build targets in project: 2

Found ninja-1.10.2 at /usr/bin/ninja

ninja explain: deps for 'testprog.p/test.cc.o' are missing
ninja explain: testprog.p/test.cc.o is dirty
ninja explain: testprog is dirty
ninja explain: deps for 'testprog_nomain.p/test_nomain.cc.o' are missing
ninja explain: testprog_nomain.p/test_nomain.cc.o is dirty
ninja explain: testprog_nomain is dirty
ninja explain: all is dirty
ninja explain: output PHONY of phony edge with no inputs doesn't exist
ninja explain: PHONY is dirty
ninja explain: meson-test is dirty
ninja explain: all is dirty
ninja explain: PHONY is dirty
ninja explain: meson-benchmark is dirty
[1/6] Compiling C++ object testprog.p/test.cc.o
[2/6] Compiling C++ object testprog_nomain.p/test_nomain.cc.o
[3/6] Linking target testprog
FAILED: testprog
c++  -o testprog testprog.p/test.cc.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--start-group /usr/lib64/libgtest_main.so /usr/lib64/libgtest.so -lpthread -Wl,--end-group
/usr/bin/ld: testprog.p/test.cc.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
[4/6] Linking target testprog_nomain
FAILED: testprog_nomain
c++  -o testprog_nomain testprog_nomain.p/test_nomain.cc.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--start-group -lgtest -Wl,--end-group -pthread
/usr/bin/ld: testprog_nomain.p/test_nomain.cc.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

________________________________________________________________ AllPlatformTests.test_prebuilt_static_lib _________________________________________________________________

self = <run_unittests.AllPlatformTests testMethod=test_prebuilt_static_lib>

    def test_prebuilt_static_lib(self):
        (cc, stlinker, object_suffix, _) = self.detect_prebuild_env()
        tdir = os.path.join(self.unit_test_dir, '16 prebuilt static')
        source = os.path.join(tdir, 'libdir/best.c')
        objectfile = os.path.join(tdir, 'libdir/best.' + object_suffix)
        stlibfile = os.path.join(tdir, 'libdir/libbest.a')
        self.build_static_lib(cc, stlinker, source, objectfile, stlibfile)
        # Run the test
        try:
            self.init(tdir)
>           self.build()

run_unittests.py:3400:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
run_unittests.py:1861: in build
    return self._run(self.build_command + args + extra_args, workdir=self.builddir, override_envvars=override_envvars)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <run_unittests.AllPlatformTests testMethod=test_prebuilt_static_lib>, command = ['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']

    def _run(self, command, *, workdir=None, override_envvars=None):
        '''
        Run a command while printing the stdout and stderr to stdout,
        and also return a copy of it
        '''
        # If this call hangs CI will just abort. It is very hard to distinguish
        # between CI issue and test bug in that case. Set timeout and fail loud
        # instead.
        if override_envvars is None:
            env = None
        else:
            env = os.environ.copy()
            env.update(override_envvars)

        p = subprocess.run(command, stdout=subprocess.PIPE,
                           stderr=subprocess.STDOUT, env=env,
                           encoding='utf-8',
                           universal_newlines=True, cwd=workdir, timeout=60 * 5)
        print(p.stdout)
        if p.returncode != 0:
            if 'MESON_SKIP_TEST' in p.stdout:
                raise unittest.SkipTest('Project requested skipping.')
>           raise subprocess.CalledProcessError(p.returncode, command, output=p.stdout)
E           subprocess.CalledProcessError: Command '['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']' returned non-zero exit status 1.

run_unittests.py:1801: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
The Meson build system
Version: 0.57.1
Source dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/unit/16 prebuilt static
Build dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpjw07lmds
Build type: native build
Project name: prebuilt static lib
Project version: undefined
C compiler for the host machine: cc (gcc 11.0.0 "cc (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C linker for the host machine: cc ld.bfd 2.35.1-34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Library best found: YES
Build targets in project: 1

Found ninja-1.10.2 at /usr/bin/ninja

ninja explain: deps for 'mainprog.p/main.c.o' are missing
ninja explain: mainprog.p/main.c.o is dirty
ninja explain: mainprog is dirty
[1/2] Compiling C object mainprog.p/main.c.o
[2/2] Linking target mainprog
FAILED: mainprog
cc  -o mainprog mainprog.p/main.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--start-group '/home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/unit/16 prebuilt static/libdir/libbest.a' -Wl,--end-group
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/unit/16 prebuilt static/libdir/libbest.a(best.o): relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

_____________________________________________________________________ AllPlatformTests.test_templates ______________________________________________________________________

self = <run_unittests.AllPlatformTests testMethod=test_templates>

    def test_templates(self):
        ninja = detect_ninja()
        if ninja is None:
            raise unittest.SkipTest('This test currently requires ninja. Fix this once "meson build" works.')

        langs = ['c']
        env = get_fake_env()
        for l in ['cpp', 'cs', 'd', 'java', 'cuda', 'fortran', 'objc', 'objcpp', 'rust']:
            try:
                comp = env.detect_compiler_for(l, MachineChoice.HOST)
                with tempfile.TemporaryDirectory() as d:
                    comp.sanity_check(d, env)
                langs.append(l)
            except EnvironmentException:
                pass

        for lang in langs:
            for target_type in ('executable', 'library'):
                # test empty directory
                with tempfile.TemporaryDirectory() as tmpdir:
                    self._run(self.meson_command + ['init', '--language', lang, '--type', target_type],
                              workdir=tmpdir)
                    self._run(self.setup_command + ['--backend=ninja', 'builddir'],
                              workdir=tmpdir)
>                   self._run(ninja,
                              workdir=os.path.join(tmpdir, 'builddir'))

run_unittests.py:3794:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <run_unittests.AllPlatformTests testMethod=test_templates>, command = ['/usr/bin/ninja']

    def _run(self, command, *, workdir=None, override_envvars=None):
        '''
        Run a command while printing the stdout and stderr to stdout,
        and also return a copy of it
        '''
        # If this call hangs CI will just abort. It is very hard to distinguish
        # between CI issue and test bug in that case. Set timeout and fail loud
        # instead.
        if override_envvars is None:
            env = None
        else:
            env = os.environ.copy()
            env.update(override_envvars)

        p = subprocess.run(command, stdout=subprocess.PIPE,
                           stderr=subprocess.STDOUT, env=env,
                           encoding='utf-8',
                           universal_newlines=True, cwd=workdir, timeout=60 * 5)
        print(p.stdout)
        if p.returncode != 0:
            if 'MESON_SKIP_TEST' in p.stdout:
                raise unittest.SkipTest('Project requested skipping.')
>           raise subprocess.CalledProcessError(p.returncode, command, output=p.stdout)
E           subprocess.CalledProcessError: Command '['/usr/bin/ninja']' returned non-zero exit status 1.

run_unittests.py:1801: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
Using "tmp9vtvtzgz" (name of current directory) as project name.
Using "tmp9vtvtzgz" (project name) as name of executable to build.
Sample project created. To build it run the
following commands:

meson setup builddir
meson compile -C builddir

The Meson build system
Version: 0.57.1
Source dir: /tmp/tmp9vtvtzgz
Build dir: /tmp/tmp9vtvtzgz/builddir
Build type: native build
Project name: tmp9vtvtzgz
Project version: 0.1
C compiler for the host machine: cc (gcc 11.0.0 "cc (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C linker for the host machine: cc ld.bfd 2.35.1-34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Build targets in project: 1

Found ninja-1.10.2 at /usr/bin/ninja

[1/2] Compiling C object tmp9vtvtzgz.p/tmp9vtvtzgz.c.o
[2/2] Linking target tmp9vtvtzgz

Using "tmp7chizp0m" (name of current directory) as project name.
Using "tmp7chizp0m" (project name) as name of executable to build.
Sample project created. To build it run the
following commands:

meson setup builddir
meson compile -C builddir

The Meson build system
Version: 0.57.1
Source dir: /tmp/tmp7chizp0m
Build dir: /tmp/tmp7chizp0m/builddir
Build type: native build
Project name: tmp7chizp0m
Project version: 0.1
C compiler for the host machine: cc (gcc 11.0.0 "cc (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C linker for the host machine: cc ld.bfd 2.35.1-34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Build targets in project: 2

Found ninja-1.10.2 at /usr/bin/ninja

[1/5] Compiling C object libtmp7chizp0m.so.p/tmp7chizp0m.c.o
[2/5] Compiling C object tmp7chizp0m_test.p/tmp7chizp0m_test.c.o
[3/5] Linking target libtmp7chizp0m.so
[4/5] Generating symbol file libtmp7chizp0m.so.p/libtmp7chizp0m.so.symbols
[5/5] Linking target tmp7chizp0m_test

The Meson build system
Version: 0.57.1
Source dir: /tmp/tmprcy3n2a5
Build dir: /tmp/tmprcy3n2a5/build
Build type: native build
Project name: tmprcy3n2a5
Project version: 0.1
C compiler for the host machine: cc (gcc 11.0.0 "cc (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C linker for the host machine: cc ld.bfd 2.35.1-34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Build targets in project: 1

Found ninja-1.10.2 at /usr/bin/ninja
ninja: Entering directory `build'
[1/2] Compiling C object tmprcy3n2a5.p/foo.c.o
[2/2] Linking target tmprcy3n2a5
Using "tmprcy3n2a5" (name of current directory) as project name.
Using "tmprcy3n2a5" (project name) as name of executable to build.
Detected source files: foo.c
Detected language: c
Generated meson.build file:

project('tmprcy3n2a5', 'c',
  version : '0.1',
  default_options : ['warning_level=3'])

executable('tmprcy3n2a5',
           'foo.c',
           install : true)

Building...

Using "tmp0h7tkgrz" (name of current directory) as project name.
Using "tmp0h7tkgrz" (project name) as name of executable to build.
Sample project created. To build it run the
following commands:

meson setup builddir
meson compile -C builddir

The Meson build system
Version: 0.57.1
Source dir: /tmp/tmp0h7tkgrz
Build dir: /tmp/tmp0h7tkgrz/builddir
Build type: native build
Project name: tmp0h7tkgrz
Project version: 0.1
C++ compiler for the host machine: c++ (gcc 11.0.0 "c++ (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C++ linker for the host machine: c++ ld.bfd 2.35.1-34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Build targets in project: 1

Found ninja-1.10.2 at /usr/bin/ninja

[1/2] Compiling C++ object tmp0h7tkgrz.p/tmp0h7tkgrz.cpp.o
[2/2] Linking target tmp0h7tkgrz
FAILED: tmp0h7tkgrz
c++  -o tmp0h7tkgrz tmp0h7tkgrz.p/tmp0h7tkgrz.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin
/usr/bin/ld: tmp0h7tkgrz.p/tmp0h7tkgrz.cpp.o: relocation R_X86_64_32 against symbol `_ZSt4cout@@GLIBCXX_3.4' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

--------------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------------
/usr/bin/ld: /tmp/ccOReHS6.lto.o: relocation R_X86_64_32S against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
_____________________________________________________________________ AllPlatformTests.test_testsetups _____________________________________________________________________

self = <run_unittests.AllPlatformTests testMethod=test_testsetups>

    def test_testsetups(self):
        if not shutil.which('valgrind'):
            raise unittest.SkipTest('Valgrind not installed.')
        testdir = os.path.join(self.unit_test_dir, '2 testsetups')
        self.init(testdir)
        self.build()
        # Run tests without setup
        self.run_tests()
        with open(os.path.join(self.logdir, 'testlog.txt')) as f:
            basic_log = f.read()
        # Run buggy test with setup that has env that will make it fail
>       self.assertRaises(subprocess.CalledProcessError,
                          self._run, self.mtest_command + ['--setup=valgrind'])
E       AssertionError: CalledProcessError not raised by _run

run_unittests.py:2537: AssertionError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
The Meson build system
Version: 0.57.1
Source dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/unit/2 testsetups
Build dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpjo4fu9p2
Build type: native build
Project name: testsetups
Project version: undefined
C compiler for the host machine: cc (gcc 11.0.0 "cc (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C linker for the host machine: cc ld.bfd 2.35.1-34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program valgrind found: YES (/usr/bin/valgrind)
Program envcheck.py found: YES (/home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/unit/2 testsetups/envcheck.py)
Build targets in project: 1

Found ninja-1.10.2 at /usr/bin/ninja

ninja explain: deps for 'buggy.p/buggy.c.o' are missing
ninja explain: buggy.p/buggy.c.o is dirty
ninja explain: deps for 'buggy.p/impl.c.o' are missing
ninja explain: buggy.p/impl.c.o is dirty
ninja explain: buggy is dirty
[1/3] Compiling C object buggy.p/impl.c.o
[2/3] Compiling C object buggy.p/buggy.c.o
[3/3] Linking target buggy

ninja explain: output PHONY of phony edge with no inputs doesn't exist
ninja explain: PHONY is dirty
ninja explain: meson-test is dirty
ninja explain: PHONY is dirty
ninja explain: meson-benchmark is dirty
[0/2] Running all tests.
1/2 testsetups:buggy / Test buggy OK              0.01s
2/2 testsetups / test-env         OK              0.05s

Ok:                 2
Expected Fail:      0
Fail:               0
Unexpected Pass:    0
Skipped:            0
Timeout:            0

Full log written to /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpjo4fu9p2/meson-logs/testlog.txt
[1/2] Running benchmark suite.
No tests defined.

ninja: Entering directory `/home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpjo4fu9p2'
ninja: no work to do.
1/2 testsetups:buggy / Test buggy OK                0.32s
2/2 testsetups / test-env         OK                0.39s

Ok:                 2
Expected Fail:      0
Fail:               0
Unexpected Pass:    0
Skipped:            0
Timeout:            0

Full log written to /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpjo4fu9p2/meson-logs/testlog-valgrind.txt

_____________________________________________________________________ LinuxlikeTests.test_build_rpath ______________________________________________________________________

self = <run_unittests.LinuxlikeTests testMethod=test_build_rpath>

    def test_build_rpath(self):
        if is_cygwin():
            raise unittest.SkipTest('Windows PE/COFF binaries do not use RPATH')
        testdir = os.path.join(self.unit_test_dir, '10 build_rpath')
        self.init(testdir)
>       self.build()

run_unittests.py:7022:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
run_unittests.py:1861: in build
    return self._run(self.build_command + args + extra_args, workdir=self.builddir, override_envvars=override_envvars)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <run_unittests.LinuxlikeTests testMethod=test_build_rpath>, command = ['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']

    def _run(self, command, *, workdir=None, override_envvars=None):
        '''
        Run a command while printing the stdout and stderr to stdout,
        and also return a copy of it
        '''
        # If this call hangs CI will just abort. It is very hard to distinguish
        # between CI issue and test bug in that case. Set timeout and fail loud
        # instead.
        if override_envvars is None:
            env = None
        else:
            env = os.environ.copy()
            env.update(override_envvars)

        p = subprocess.run(command, stdout=subprocess.PIPE,
                           stderr=subprocess.STDOUT, env=env,
                           encoding='utf-8',
                           universal_newlines=True, cwd=workdir, timeout=60 * 5)
        print(p.stdout)
        if p.returncode != 0:
            if 'MESON_SKIP_TEST' in p.stdout:
                raise unittest.SkipTest('Project requested skipping.')
>           raise subprocess.CalledProcessError(p.returncode, command, output=p.stdout)
E           subprocess.CalledProcessError: Command '['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']' returned non-zero exit status 1.

run_unittests.py:1801: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
The Meson build system
Version: 0.57.1
Source dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/unit/10 build_rpath
Build dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzqecrn39
Build type: native build
Project name: build rpath
Project version: undefined
C compiler for the host machine: cc (gcc 11.0.0 "cc (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C linker for the host machine: cc ld.bfd 2.35.1-34
C++ compiler for the host machine: c++ (gcc 11.0.0 "c++ (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C++ linker for the host machine: c++ ld.bfd 2.35.1-34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Build targets in project: 3

Found ninja-1.10.2 at /usr/bin/ninja

ninja explain: deps for 'sub/libstuff.so.p/stuff.c.o' are missing
ninja explain: sub/libstuff.so.p/stuff.c.o is dirty
ninja explain: sub/libstuff.so is dirty
ninja explain: deps for 'prog.p/prog.c.o' are missing
ninja explain: prog.p/prog.c.o is dirty
ninja explain: sub/libstuff.so is dirty
ninja explain: sub/libstuff.so.p/libstuff.so.symbols is dirty
ninja explain: prog is dirty
ninja explain: deps for 'progcxx.p/prog.cc.o' are missing
ninja explain: progcxx.p/prog.cc.o is dirty
ninja explain: sub/libstuff.so.p/libstuff.so.symbols is dirty
ninja explain: progcxx is dirty
[1/7] Compiling C object sub/libstuff.so.p/stuff.c.o
[2/7] Compiling C object prog.p/prog.c.o
[3/7] Linking target sub/libstuff.so
[4/7] Compiling C++ object progcxx.p/prog.cc.o
[5/7] Generating symbol file sub/libstuff.so.p/libstuff.so.symbols
[6/7] Linking target progcxx
FAILED: progcxx
c++  -o progcxx progcxx.p/prog.cc.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin '-Wl,-rpath,$ORIGIN/sub:/foo/bar' -Wl,-rpath-link,/home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzqecrn39/sub -Wl,--start-group sub/libstuff.so -Wl,--end-group
/usr/bin/ld: progcxx.p/prog.cc.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
[7/7] Linking target prog
ninja: build stopped: subcommand failed.

________________________________________________________________ LinuxlikeTests.test_build_rpath_pkgconfig _________________________________________________________________

self = <run_unittests.LinuxlikeTests testMethod=test_build_rpath_pkgconfig>

    @skipIfNoPkgconfig
    def test_build_rpath_pkgconfig(self):
        '''
        Test that current build artefacts (libs) are found first on the rpath,
        manually specified rpath comes second and additional rpath elements (from
        pkg-config files) come last
        '''
        if is_cygwin():
            raise unittest.SkipTest('Windows PE/COFF binaries do not use RPATH')
        testdir = os.path.join(self.unit_test_dir, '90 pkgconfig build rpath order')
        self.init(testdir, override_envvars={'PKG_CONFIG_PATH': testdir})
>       self.build()

run_unittests.py:7044:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
run_unittests.py:1861: in build
    return self._run(self.build_command + args + extra_args, workdir=self.builddir, override_envvars=override_envvars)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <run_unittests.LinuxlikeTests testMethod=test_build_rpath_pkgconfig>, command = ['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']

    def _run(self, command, *, workdir=None, override_envvars=None):
        '''
        Run a command while printing the stdout and stderr to stdout,
        and also return a copy of it
        '''
        # If this call hangs CI will just abort. It is very hard to distinguish
        # between CI issue and test bug in that case. Set timeout and fail loud
        # instead.
        if override_envvars is None:
            env = None
        else:
            env = os.environ.copy()
            env.update(override_envvars)

        p = subprocess.run(command, stdout=subprocess.PIPE,
                           stderr=subprocess.STDOUT, env=env,
                           encoding='utf-8',
                           universal_newlines=True, cwd=workdir, timeout=60 * 5)
        print(p.stdout)
        if p.returncode != 0:
            if 'MESON_SKIP_TEST' in p.stdout:
                raise unittest.SkipTest('Project requested skipping.')
>           raise subprocess.CalledProcessError(p.returncode, command, output=p.stdout)
E           subprocess.CalledProcessError: Command '['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']' returned non-zero exit status 1.

run_unittests.py:1801: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
The Meson build system
Version: 0.57.1
Source dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/unit/90 pkgconfig build rpath order
Build dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpfw_j1fvv
Build type: native build
Project name: build rpath
Project version: undefined
C compiler for the host machine: cc (gcc 11.0.0 "cc (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C linker for the host machine: cc ld.bfd 2.35.1-34
C++ compiler for the host machine: c++ (gcc 11.0.0 "c++ (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C++ linker for the host machine: c++ ld.bfd 2.35.1-34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Run-time dependency dummy found: YES 1.0.0
Build targets in project: 3

Found ninja-1.10.2 at /usr/bin/ninja

ninja explain: deps for 'sub/libstuff.so.p/stuff.c.o' are missing
ninja explain: sub/libstuff.so.p/stuff.c.o is dirty
ninja explain: sub/libstuff.so is dirty
ninja explain: deps for 'prog.p/prog.c.o' are missing
ninja explain: prog.p/prog.c.o is dirty
ninja explain: sub/libstuff.so is dirty
ninja explain: sub/libstuff.so.p/libstuff.so.symbols is dirty
ninja explain: prog is dirty
ninja explain: deps for 'progcxx.p/prog.cc.o' are missing
ninja explain: progcxx.p/prog.cc.o is dirty
ninja explain: sub/libstuff.so.p/libstuff.so.symbols is dirty
ninja explain: progcxx is dirty
[1/7] Compiling C object sub/libstuff.so.p/stuff.c.o
[2/7] Compiling C object prog.p/prog.c.o
[3/7] Linking target sub/libstuff.so
[4/7] Compiling C++ object progcxx.p/prog.cc.o
[5/7] Generating symbol file sub/libstuff.so.p/libstuff.so.symbols
[6/7] Linking target progcxx
FAILED: progcxx
c++  -o progcxx progcxx.p/prog.cc.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin '-Wl,-rpath,$ORIGIN/sub:/foo/bar' -Wl,-rpath-link,/home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpfw_j1fvv/sub -Wl,--start-group sub/libstuff.so -Wl,--end-group -Wl,-rpath,/foo/dummy
/usr/bin/ld: progcxx.p/prog.cc.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
[7/7] Linking target prog
ninja: build stopped: subcommand failed.

______________________________________________________________ LinuxlikeTests.test_compiler_check_flags_order ______________________________________________________________

self = <run_unittests.LinuxlikeTests testMethod=test_compiler_check_flags_order>

    def test_compiler_check_flags_order(self):
        '''
        Test that compiler check flags override all other flags. This can't be
        an ordinary test case because it needs the environment to be set.
        '''
        testdir = os.path.join(self.common_test_dir, '37 has function')
        env = get_fake_env(testdir, self.builddir, self.prefix)
        cpp = env.detect_cpp_compiler(MachineChoice.HOST)
        Oflag = '-O3'
        OflagCPP = Oflag
        if cpp.get_id() in ('clang', 'gcc'):
            # prevent developers from adding "int main(int argc, char **argv)"
            # to small Meson checks unless these parameters are actually used
            OflagCPP += ' -Werror=unused-parameter'
        env = {'CFLAGS': Oflag,
               'CXXFLAGS': OflagCPP}
>       self.init(testdir, override_envvars=env)

run_unittests.py:6596:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
run_unittests.py:1847: in init
    out = self._run(self.setup_command + args + extra_args, override_envvars=override_envvars, workdir=workdir)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <run_unittests.LinuxlikeTests testMethod=test_compiler_check_flags_order>
command = ['/usr/bin/python3', '/home/tkloczko/rpmbuild/BUILD/meson-0.57.1/meson.py', '--backend=ninja', '/home/tkloczko/rpmbuil...n-0.57.1/test cases/common/37 has function', '/home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m', '--prefix', ...]

    def _run(self, command, *, workdir=None, override_envvars=None):
        '''
        Run a command while printing the stdout and stderr to stdout,
        and also return a copy of it
        '''
        # If this call hangs CI will just abort. It is very hard to distinguish
        # between CI issue and test bug in that case. Set timeout and fail loud
        # instead.
        if override_envvars is None:
            env = None
        else:
            env = os.environ.copy()
            env.update(override_envvars)

        p = subprocess.run(command, stdout=subprocess.PIPE,
                           stderr=subprocess.STDOUT, env=env,
                           encoding='utf-8',
                           universal_newlines=True, cwd=workdir, timeout=60 * 5)
        print(p.stdout)
        if p.returncode != 0:
            if 'MESON_SKIP_TEST' in p.stdout:
                raise unittest.SkipTest('Project requested skipping.')
>           raise subprocess.CalledProcessError(p.returncode, command, output=p.stdout)
E           subprocess.CalledProcessError: Command '['/usr/bin/python3', '/home/tkloczko/rpmbuild/BUILD/meson-0.57.1/meson.py', '--backend=ninja', '/home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/common/37 has function', '/home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m', '--prefix', '/usr', '--libdir', 'lib']' returned non-zero exit status 1.

run_unittests.py:1801: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
The Meson build system
Version: 0.57.1
Source dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/common/37 has function
Build dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m
Build type: native build
Project name: has function
Project version: undefined
C compiler for the host machine: cc (gcc 11.0.0 "cc (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C linker for the host machine: cc ld.bfd 2.35.1-34
C++ compiler for the host machine: c++ (gcc 11.0.0 "c++ (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C++ linker for the host machine: c++ ld.bfd 2.35.1-34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Checking for function "printf" : NO

test cases/common/37 has function/meson.build:16:4: ERROR: Problem encountered: "printf" function not found (should always exist).

A full log can be found at /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-logs/meson-log.txt

Build started at 2021-02-20T17:22:41.740764
Main binary: /usr/bin/python3
Build Options: -Dprefix=/usr -Dlibdir=lib -Dbackend=ninja
Python system: Linux
The Meson build system
Version: 0.57.1
Source dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/common/37 has function
Build dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m
Build type: native build
Project name: has function
Project version: undefined
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/sanitycheckc.c -o /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/sanitycheckc.exe -O3 -pipe -D_FILE_OFFSET_BITS=64 -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/sanitycheckc.exe
C compiler for the host machine: cc (gcc 11.0.0 "cc (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C linker for the host machine: cc ld.bfd 2.35.1-34
Sanity testing C++ compiler: c++
Is cross compiler: False.
Sanity check compiler command line: c++ /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/sanitycheckcpp.cc -o /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/sanitycheckcpp.exe -O3 -Werror=unused-parameter -pipe -D_FILE_OFFSET_BITS=64 -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/sanitycheckcpp.exe
C++ compiler for the host machine: c++ (gcc 11.0.0 "c++ (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C++ linker for the host machine: c++ ld.bfd 2.35.1-34
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/sanitycheckc.c -o /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/sanitycheckc.exe -O3 -pipe -D_FILE_OFFSET_BITS=64 -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/sanitycheckc.exe
C compiler for the build machine: cc (gcc 11.0.0 "cc (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C linker for the build machine: cc ld.bfd 2.35.1-34
Sanity testing C++ compiler: c++
Is cross compiler: False.
Sanity check compiler command line: c++ /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/sanitycheckcpp.cc -o /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/sanitycheckcpp.exe -O3 -Werror=unused-parameter -pipe -D_FILE_OFFSET_BITS=64 -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/sanitycheckcpp.exe
C++ compiler for the build machine: c++ (gcc 11.0.0 "c++ (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C++ linker for the build machine: c++ ld.bfd 2.35.1-34
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
Running compile:
Working directory:  /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/tmpo08lc1p8
Command line:  cc -I/tmp /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/tmpo08lc1p8/testfile.c -o /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/tmpo08lc1p8/output.exe -pipe -O3 -D_FILE_OFFSET_BITS=64 -O0 -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin

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

        #if defined __stub_printf || defined __stub___printf
        fail fail fail this function is not going to work
        #endif

int main(void) {
            void *a = (void*) &printf;
            long long b = (long long) a;
            return (int) b;
        }
Compiler stdout:

Compiler stderr:
 /usr/bin/ld: /tmp/ccL2NYJC.lto.o: relocation R_X86_64_32S against symbol `printf@@GLIBC_2.2.5' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status

Running compile:
Working directory:  /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/tmplopn50f8
Command line:  cc -I/tmp /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/tmplopn50f8/testfile.c -o /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/tmplopn50f8/output.exe -pipe -O3 -D_FILE_OFFSET_BITS=64 -O0 -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin

Code:
 #include<stdio.h>
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !0 && !defined(printf) && !0
            #error "No definition for __builtin_printf found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_printf)
                #error "__builtin_printf not found"
            #endif
        #elif ! defined(printf)
            __builtin_printf;
        #endif
        return 0;
        }
Compiler stdout:

Compiler stderr:
 /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/tmplopn50f8/testfile.c: In function 'main':
/home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpzush642m/meson-private/tmplopn50f8/testfile.c:12:14: error: #error "No definition for __builtin_printf found in the prefix"
   12 |             #error "No definition for __builtin_printf found in the prefix"
      |              ^~~~~

Checking for function "printf" : NO

test cases/common/37 has function/meson.build:16:4: ERROR: Problem encountered: "printf" function not found (should always exist).

__________________________________________________________________ LinuxlikeTests.test_compiler_cpp_stds ___________________________________________________________________

self = <run_unittests.LinuxlikeTests testMethod=test_compiler_cpp_stds>

    def test_compiler_cpp_stds(self):
        '''
        Test that C++ stds specified for this compiler can all be used. Can't
        be an ordinary test because it requires passing options to meson.
        '''
        testdir = os.path.join(self.common_test_dir, '2 cpp')
        env = get_fake_env(testdir, self.builddir, self.prefix)
        cpp = env.detect_cpp_compiler(MachineChoice.HOST)
>       self._test_stds_impl(testdir, cpp)

run_unittests.py:6690:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
run_unittests.py:6649: in _test_stds_impl
    self.build()
run_unittests.py:1861: in build
    return self._run(self.build_command + args + extra_args, workdir=self.builddir, override_envvars=override_envvars)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <run_unittests.LinuxlikeTests testMethod=test_compiler_cpp_stds>, command = ['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']

    def _run(self, command, *, workdir=None, override_envvars=None):
        '''
        Run a command while printing the stdout and stderr to stdout,
        and also return a copy of it
        '''
        # If this call hangs CI will just abort. It is very hard to distinguish
        # between CI issue and test bug in that case. Set timeout and fail loud
        # instead.
        if override_envvars is None:
            env = None
        else:
            env = os.environ.copy()
            env.update(override_envvars)

        p = subprocess.run(command, stdout=subprocess.PIPE,
                           stderr=subprocess.STDOUT, env=env,
                           encoding='utf-8',
                           universal_newlines=True, cwd=workdir, timeout=60 * 5)
        print(p.stdout)
        if p.returncode != 0:
            if 'MESON_SKIP_TEST' in p.stdout:
                raise unittest.SkipTest('Project requested skipping.')
>           raise subprocess.CalledProcessError(p.returncode, command, output=p.stdout)
E           subprocess.CalledProcessError: Command '['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']' returned non-zero exit status 1.

run_unittests.py:1801: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
The Meson build system
Version: 0.57.1
Source dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/common/2 cpp
Build dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpulc7ct42
Build type: native build
Project name: c++ test
Project version: 1.0.0
C++ compiler for the host machine: c++ (gcc 11.0.0 "c++ (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C++ linker for the host machine: c++ ld.bfd 2.35.1-34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Build targets in project: 1

Found ninja-1.10.2 at /usr/bin/ninja

ninja explain: deps for 'trivialprog.p/trivial.cc.o' are missing
ninja explain: trivialprog.p/trivial.cc.o is dirty
ninja explain: trivialprog is dirty
[1/2] Compiling C++ object trivialprog.p/trivial.cc.o
[2/2] Linking target trivialprog
FAILED: trivialprog
c++  -o trivialprog trivialprog.p/trivial.cc.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin
/usr/bin/ld: trivialprog.p/trivial.cc.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

cpp_std was 'none'
______________________________________________________________ LinuxlikeTests.test_pch_with_address_sanitizer ______________________________________________________________

self = <run_unittests.LinuxlikeTests testMethod=test_pch_with_address_sanitizer>

    @skip_if_not_base_option('b_sanitize')
    def test_pch_with_address_sanitizer(self):
        if is_cygwin():
            raise unittest.SkipTest('asan not available on Cygwin')
        if is_openbsd():
            raise unittest.SkipTest('-fsanitize=address is not supported on OpenBSD')

        testdir = os.path.join(self.common_test_dir, '13 pch')
        self.init(testdir, extra_args=['-Db_sanitize=address', '-Db_lundef=false'])
>       self.build()

run_unittests.py:7112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
run_unittests.py:1861: in build
    return self._run(self.build_command + args + extra_args, workdir=self.builddir, override_envvars=override_envvars)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <run_unittests.LinuxlikeTests testMethod=test_pch_with_address_sanitizer>, command = ['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']

    def _run(self, command, *, workdir=None, override_envvars=None):
        '''
        Run a command while printing the stdout and stderr to stdout,
        and also return a copy of it
        '''
        # If this call hangs CI will just abort. It is very hard to distinguish
        # between CI issue and test bug in that case. Set timeout and fail loud
        # instead.
        if override_envvars is None:
            env = None
        else:
            env = os.environ.copy()
            env.update(override_envvars)

        p = subprocess.run(command, stdout=subprocess.PIPE,
                           stderr=subprocess.STDOUT, env=env,
                           encoding='utf-8',
                           universal_newlines=True, cwd=workdir, timeout=60 * 5)
        print(p.stdout)
        if p.returncode != 0:
            if 'MESON_SKIP_TEST' in p.stdout:
                raise unittest.SkipTest('Project requested skipping.')
>           raise subprocess.CalledProcessError(p.returncode, command, output=p.stdout)
E           subprocess.CalledProcessError: Command '['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']' returned non-zero exit status 1.

run_unittests.py:1801: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
The Meson build system
Version: 0.57.1
Source dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/common/13 pch
Build dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmpomecnvf7
Build type: native build
Project name: pch test
Project version: undefined
C compiler for the host machine: cc (gcc 11.0.0 "cc (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C linker for the host machine: cc ld.bfd 2.35.1-34
C++ compiler for the host machine: c++ (gcc 11.0.0 "c++ (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C++ linker for the host machine: c++ ld.bfd 2.35.1-34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program gen_custom.py found: YES (/usr/bin/python3 /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/common/13 pch/generated/gen_custom.py)
Program gen_generator.py found: YES (/usr/bin/python3 /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/common/13 pch/generated/gen_generator.py)
Build targets in project: 6

Found ninja-1.10.2 at /usr/bin/ninja

ninja explain: deps for 'c/prog.p/prog.c.o' are missing
ninja explain: deps for 'c/prog.p/prog.h.gch' are missing
ninja explain: c/prog.p/prog.h.gch is dirty
ninja explain: c/prog.p/prog.c.o is dirty
ninja explain: c/prog is dirty
ninja explain: deps for 'cpp/prog.p/prog.cc.o' are missing
ninja explain: deps for 'cpp/prog.p/prog.hh.gch' are missing
ninja explain: cpp/prog.p/prog.hh.gch is dirty
ninja explain: cpp/prog.p/prog.cc.o is dirty
ninja explain: cpp/prog is dirty
ninja explain: deps for 'generated/prog.p/prog.c.o' are missing
ninja explain: deps for 'generated/prog.p/prog.h.gch' are missing
ninja explain: output generated/generated_customTarget.h doesn't exist
ninja explain: generated/generated_customTarget.h is dirty
ninja explain: output generated/prog.p/generated_generator.h doesn't exist
ninja explain: generated/prog.p/generated_generator.h is dirty
ninja explain: generated/prog.p/prog.h.gch is dirty
ninja explain: generated/prog.p/prog.c.o is dirty
ninja explain: generated/prog is dirty
ninja explain: deps for 'withIncludeDirectories/prog.p/prog.c.o' are missing
ninja explain: deps for 'withIncludeDirectories/prog.p/prog.h.gch' are missing
ninja explain: withIncludeDirectories/prog.p/prog.h.gch is dirty
ninja explain: withIncludeDirectories/prog.p/prog.c.o is dirty
ninja explain: withIncludeDirectories/prog is dirty
ninja explain: deps for 'mixed/prog.p/main.cc.o' are missing
ninja explain: deps for 'mixed/prog.p/main.h.gch' are missing
ninja explain: mixed/prog.p/main.h.gch is dirty
ninja explain: mixed/prog.p/main.cc.o is dirty
ninja explain: deps for 'mixed/prog.p/func.c.o' are missing
ninja explain: deps for 'mixed/prog.p/func.h.gch' are missing
ninja explain: mixed/prog.p/func.h.gch is dirty
ninja explain: mixed/prog.p/func.c.o is dirty
ninja explain: mixed/prog is dirty
[1/19] Generating makeheader with a custom command
[2/19] Generating 'generated/prog.p/generated_generator.h'.
[3/19] Precompiling header '../test cases/common/13 pch/c/pch/prog.h'
[4/19] Precompiling header '../test cases/common/13 pch/mixed/pch/func.h'
[5/19] Precompiling header '../test cases/common/13 pch/withIncludeDirectories/pch/prog.h'
[6/19] Precompiling header '../test cases/common/13 pch/generated/pch/prog.h'
[7/19] Compiling C object c/prog.p/prog.c.o
[8/19] Compiling C object mixed/prog.p/func.c.o
[9/19] Compiling C object withIncludeDirectories/prog.p/prog.c.o
[10/19] Compiling C object generated/prog.p/prog.c.o
[11/19] Linking target withIncludeDirectories/prog
[12/19] Linking target c/prog
[13/19] Linking target generated/prog
[14/19] Precompiling header '../test cases/common/13 pch/cpp/pch/prog.hh'
[15/19] Precompiling header '../test cases/common/13 pch/mixed/pch/main.h'
[16/19] Compiling C++ object cpp/prog.p/prog.cc.o
[17/19] Compiling C++ object mixed/prog.p/main.cc.o
[18/19] Linking target cpp/prog
FAILED: cpp/prog
c++  -o cpp/prog cpp/prog.p/prog.cc.o -fsanitize=address -Wl,--as-needed -Wl,--allow-shlib-undefined -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin
/usr/bin/ld: cpp/prog.p/prog.cc.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
[19/19] Linking target mixed/prog
FAILED: mixed/prog
c++  -o mixed/prog mixed/prog.p/main.cc.o mixed/prog.p/func.c.o -fsanitize=address -Wl,--as-needed -Wl,--allow-shlib-undefined -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin
/usr/bin/ld: mixed/prog.p/main.cc.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

___________________________________________________________________ LinuxlikeTests.test_vala_c_warnings ____________________________________________________________________

self = <run_unittests.LinuxlikeTests testMethod=test_vala_c_warnings>

    def test_vala_c_warnings(self):
        '''
        Test that no warnings are emitted for C code generated by Vala. This
        can't be an ordinary test case because we need to inspect the compiler
        database.
        https://github.com/mesonbuild/meson/issues/864
        '''
        if not shutil.which('valac'):
            raise unittest.SkipTest('valac not installed.')
        testdir = os.path.join(self.vala_test_dir, '5 target glib')
        self.init(testdir)
        compdb = self.get_compdb()
        vala_command = None
        c_command = None
        for each in compdb:
            if each['file'].endswith('GLib.Thread.c'):
                vala_command = each['command']
            elif each['file'].endswith('GLib.Thread.vala'):
                continue
            elif each['file'].endswith('retcode.c'):
                c_command = each['command']
            else:
                m = 'Unknown file {!r} in vala_c_warnings test'.format(each['file'])
                raise AssertionError(m)
        self.assertIsNotNone(vala_command)
        self.assertIsNotNone(c_command)
        # -w suppresses all warnings, should be there in Vala but not in C
        self.assertIn(" -w ", vala_command)
        self.assertNotIn(" -w ", c_command)
        # -Wall enables all warnings, should be there in C but not in Vala
>       self.assertNotIn(" -Wall ", vala_command)
E       AssertionError: ' -Wall ' unexpectedly found in "cc -Ivalaprog.p -I. '-I../test cases/vala/5 target glib' -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -w -g -Werror -O2 -g -grecord-gcc-switches -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -MD -MQ valaprog.p/meson-generated_GLib.Thread.c.o -MF valaprog.p/meson-generated_GLib.Thread.c.o.d -o valaprog.p/meson-generated_GLib.Thread.c.o -c valaprog.p/GLib.Thread.c"

run_unittests.py:6446: AssertionError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
The Meson build system
Version: 0.57.1
Source dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/test cases/vala/5 target glib
Build dir: /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/tmps205fmdy
Build type: native build
Project name: valatest
Project version: undefined
C compiler for the host machine: cc (gcc 11.0.0 "cc (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C linker for the host machine: cc ld.bfd 2.35.1-34
Vala compiler for the host machine: valac (valac 0.51.2)
Host machine cpu family: x86_64
Host machine cpu: x86_64
test cases/vala/5 target glib/meson.build:4: WARNING: Consider using the built-in werror option instead of using "-Werror".
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Run-time dependency glib-2.0 found: YES 2.67.4
Run-time dependency gobject-2.0 found: YES 2.67.4
Build targets in project: 1

Found ninja-1.10.2 at /usr/bin/ninja

============================================================================= warnings summary =============================================================================
mesonbuild/compilers/cuda.py:189
  /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/mesonbuild/compilers/cuda.py:189: DeprecationWarning: invalid escape sequence \
    """

mesonbuild/compilers/cuda.py:259
  /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/mesonbuild/compilers/cuda.py:259: DeprecationWarning: invalid escape sequence \,
    return '\,'.join(l)

mesonbuild/mcompile.py:175
  /home/tkloczko/rpmbuild/BUILD/meson-0.57.1/mesonbuild/mcompile.py:175: DeprecationWarning: invalid escape sequence \%
    target_name = re.sub('[\%\$\@\;\.\(\)\']', '_', intro_target['id'])  # type: str

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
FAILED run_unittests.py::AllPlatformTests::test_cflags_cppflags - subprocess.CalledProcessError: Command '['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']' retu...
FAILED run_unittests.py::AllPlatformTests::test_junit_valid_gtest - subprocess.CalledProcessError: Command '['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain', 'te...
FAILED run_unittests.py::AllPlatformTests::test_prebuilt_static_lib - subprocess.CalledProcessError: Command '['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']' ...
FAILED run_unittests.py::AllPlatformTests::test_templates - subprocess.CalledProcessError: Command '['/usr/bin/ninja']' returned non-zero exit status 1.
FAILED run_unittests.py::AllPlatformTests::test_testsetups - AssertionError: CalledProcessError not raised by _run
FAILED run_unittests.py::LinuxlikeTests::test_build_rpath - subprocess.CalledProcessError: Command '['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']' returned n...
FAILED run_unittests.py::LinuxlikeTests::test_build_rpath_pkgconfig - subprocess.CalledProcessError: Command '['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']' ...
FAILED run_unittests.py::LinuxlikeTests::test_compiler_check_flags_order - subprocess.CalledProcessError: Command '['/usr/bin/python3', '/home/tkloczko/rpmbuild/BUILD/me...
FAILED run_unittests.py::LinuxlikeTests::test_compiler_cpp_stds - subprocess.CalledProcessError: Command '['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explain']' retu...
FAILED run_unittests.py::LinuxlikeTests::test_pch_with_address_sanitizer - subprocess.CalledProcessError: Command '['/usr/bin/ninja', '-w', 'dupbuild=err', '-d', 'explai...
FAILED run_unittests.py::LinuxlikeTests::test_vala_c_warnings - AssertionError: ' -Wall ' unexpectedly found in "cc -Ivalaprog.p -I. '-I../test cases/vala/5 target glib'...
============================================= 11 failed, 351 passed, 42 skipped, 3 deselected, 3 warnings in 467.90s (0:07:47) =============================================
eli-schwartz commented 3 years ago

The tests you're deselecting are covered by #8346 which did not give enough details to reproduce and you've now decided to close for no reason. I assume you gave up on it... weird but ok.

These new errors seem to be due to your manual use of binary hardening policies which are invalidly not being synced between compile and link. This is hardly a meson bug... either fix your policy or do not pass CFLAGS/LDFLAGS to a test suite