meson icon indicating copy to clipboard operation
meson copied to clipboard

Unhandled python exception windows 10 vcpkg cgal

Open blobfish opened this issue 2 years ago • 0 comments

Describe the bug Running meson setup with a CGAL Dependency results in unhandled exception.

To Reproduce vcpkg install cgal:x64-windows

meson.build:

project('test_project', 'cpp',
  version : '0.1.0',
  license : 'GPL-3+',
  meson_version : '>=0.52.0',
  default_options : ['warning_level=3', 'cpp_std=c++17']
)

cgal = dependency('CGAL', version : '>=4.13', include_type : 'system')

test_exe = executable('test', ['main.cpp']
  , dependencies : [cgal])

meson run:

C:\Users\Quickemu\development\test\build>meson setup ..
The Meson build system
Version: 0.64.1
Source dir: C:\Users\Quickemu\development\test
Build dir: C:\Users\Quickemu\development\test\build
Build type: native build
Project name: test_project
Project version: 0.1.0
C++ compiler for the host machine: cl (msvc 19.34.31935 "Microsoft (R) C/C++ Optimizing Compiler Version 19.34.31935 for x64")
  C++ linker for the host machine: link link 14.34.31935.0
  Host machine cpu family: x86_64
  Host machine cpu: x86_64
  Did not find pkg-config by name 'pkg-config'
  Found Pkg-config: NO
  Found CMake: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.EXE (3.24.202208181)
  Traceback (most recent call last):
  File "mesonbuild\mesonmain.py", line 194, in run
  File "mesonbuild\msetup.py", line 307, in run
  File "mesonbuild\msetup.py", line 186, in generate
  File "mesonbuild\msetup.py", line 230, in _generate
  File "mesonbuild\interpreter\interpreter.py", line 2895, in run
  File "mesonbuild\interpreterbase\interpreterbase.py", line 149, in run
  File "mesonbuild\interpreterbase\interpreterbase.py", line 174, in evaluate_codeblock
  File "mesonbuild\interpreterbase\interpreterbase.py", line 167, in evaluate_codeblock
  File "mesonbuild\interpreterbase\interpreterbase.py", line 182, in evaluate_statement
  File "mesonbuild\interpreterbase\interpreterbase.py", line 575, in assignment
  File "mesonbuild\interpreterbase\interpreterbase.py", line 180, in evaluate_statement
  File "mesonbuild\interpreterbase\interpreterbase.py", line 462, in function_call
  File "mesonbuild\interpreterbase\decorators.py", line 775, in wrapped
  File "mesonbuild\interpreterbase\decorators.py", line 775, in wrapped
  File "mesonbuild\interpreterbase\decorators.py", line 775, in wrapped
  [Previous line repeated 5 more times]
  File "mesonbuild\interpreterbase\decorators.py", line 109, in wrapped
  File "mesonbuild\interpreterbase\decorators.py", line 127, in wrapped
  File "mesonbuild\interpreterbase\decorators.py", line 277, in wrapper
  File "mesonbuild\interpreter\interpreter.py", line 1701, in func_dependency
  File "mesonbuild\interpreter\dependencyfallbacks.py", line 354, in lookup
  File "mesonbuild\interpreter\dependencyfallbacks.py", line 87, in _do_dependency
  File "mesonbuild\dependencies\detect.py", line 112, in find_external_dependency
  File "mesonbuild\dependencies\cmake.py", line 155, in __init__
  File "mesonbuild\dependencies\cmake.py", line 550, in _detect_dep
  File "mesonbuild\cmake\tracetargets.py", line 56, in resolve_cmake_trace_targets
  TypeError: 'NoneType' object is not iterable
  ..\meson.build:8:0: ERROR: Unhandled python exception
  This is a Meson bug and should be reported!

Expected behavior Find CGAL, finish run without crashing.

system parameters Not a cross build Windows 10 virtual machine inside debian bookworm python 3.10.7 meson version is 0.64.1 ninja version 1.11.1

blobfish avatar Dec 10 '22 00:12 blobfish