[Mesa-dev] [PATCH 48/48] tests/vma: fix build with MSVC

Liviu Prodea liviuprodea at yahoo.com
Tue Jul 10 09:26:57 UTC 2018


I tried the Meson Windows branch posted by Dylan Baker now available on Freedesktop Gitlab with default configuration but unfortunately it didn't work for me.

Build script
************

@set mesa=C:\Software\Development\projects\mesa
@SET PATH=C:\Software\Development\Git\cmd\;%mesa%\Python\;%mesa%\Py3\;%mesa%\Py3\Scripts\;%mesa%\flexbison\;%mesa%\ninja\;%mesa%\pkgconfig\;%PATH%
@call "%ProgramFiles% (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
@cd %mesa%\mesa
@set buildcmd=%mesa%\Py3\python.exe %mesa%\Py3\Scripts\meson.py . .\build\windows-x86_64
@RD /S /Q %mesa%\mesa\build\windows-x86_64
@%buildcmd%
@cmd

Result
******

**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.7.4
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
The Meson build system
Version: 0.46.1
Source dir: C:\Software\Development\projects\mesa\mesa
Build dir: C:\Software\Development\projects\mesa\mesa\build\windows-x86_64-sys
Build type: native build
Program python found: YES (C:\Software\Development\projects\mesa\Python\python.EXE)
Project name: mesa
Native C compiler: cl (msvc 19.14.26431)
Native C++ compiler: cl (msvc 19.14.26431)
Build machine cpu family: x86_64
Build machine cpu: x86_64
Program pkg-config found: YES (C:\Software\Development\projects\mesa\pkgconfig\pkg-config.EXE)
Program python2 found: NO
Program python found: YES (C:\Software\Development\projects\mesa\Python\python.EXE)
Checking for function "bswap32": NO
Checking for function "bswap64": NO
Checking for function "clz": NO
Checking for function "clzll": NO
Checking for function "ctz": NO
Checking for function "expect": NO
Checking for function "ffs": NO
Checking for function "ffsll": NO
Checking for function "popcount": NO
Checking for function "popcountll": NO
Checking for function "unreachable": NO
Checking if "__attribute__((const))" compiles: NO
Checking if "__attribute__((flatten))" compiles: NO
Checking if "__attribute__((malloc))" compiles: NO
Checking if "__attribute__((pure))" compiles: NO
Checking if "__attribute__((unused))" compiles: NO
Checking if "__attribute__((warn_unused_result))" compiles: NO
Checking if "__attribute__((weak))" compiles: NO
Checking if "__attribute__((format(...)))" compiles: NO
Checking if "__attribute__((packed))" compiles: NO
Checking if "__attribute__((returns_nonnull))" compiles: NO
Checking if "__attribute__((visibility(...)))" compiles: NO
Checking if "__attribute__((alias(...)))" compiles: NO
Checking if "__attribute__((__noreturn__))" compiles: NO
Compiler for C supports arguments /wd4018: YES
Traceback (most recent call last):
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\compilers\compilers.py", line 799, in compile
    raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\mesonmain.py", line 364, in run
    app.generate()
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\mesonmain.py", line 135, in generate
    self._generate(env)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\mesonmain.py", line 186, in _generate
    intr.run()
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreter.py", line 3261, in run
    super().run()
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 215, in run
    self.evaluate_codeblock(self.ast, start=1)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 239, in evaluate_codeblock
    raise e
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 231, in evaluate_codeblock
    self.evaluate_statement(cur)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 254, in evaluate_statement
    return self.evaluate_if(cur)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 307, in evaluate_if
    self.evaluate_codeblock(i.block)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 239, in evaluate_codeblock
    raise e
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 231, in evaluate_codeblock
    self.evaluate_statement(cur)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 274, in evaluate_statement
    return self.evaluate_foreach(cur)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 448, in evaluate_foreach
    self.evaluate_codeblock(node.block)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 239, in evaluate_codeblock
    raise e
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 231, in evaluate_codeblock
    self.evaluate_statement(cur)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 254, in evaluate_statement
    return self.evaluate_if(cur)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 301, in evaluate_if
    result = self.evaluate_statement(i.condition)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 248, in evaluate_statement
    return self.method_call(cur)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 538, in method_call
    return obj.method_call(method_name, args, kwargs)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 140, in method_call
    return method(args, kwargs)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 115, in wrapped
    return f(obj, args, kwargs)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreter.py", line 1227, in has_argument_method
    return self.has_multi_arguments_method(args, kwargs)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreterbase.py", line 115, in wrapped
    return f(obj, args, kwargs)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\interpreter.py", line 1232, in has_multi_arguments_method
    result = self.compiler.has_multi_arguments(args, self.environment)
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\compilers\c.py", line 874, in has_multi_arguments
    return self.has_arguments(args, env, code, mode='compile')
  File "C:\Software\Development\projects\mesa\Py3\lib\site-packages\mesonbuild\compilers\c.py", line 1192, in has_arguments
    return not(warning_text in p.stde or warning_text in p.stdo)
  File "C:\Software\Development\projects\mesa\Py3\lib\contextlib.py", line 119, in __exit__
    next(self.gen)
RuntimeError: generator raised StopIteration
Microsoft Windows [Version 10.0.17134.137]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Software\Development\projects\mesa\mesa>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180710/e1d887ed/attachment-0001.html>


More information about the mesa-dev mailing list