Skip to content

[ogdf] build failure when 'python' resolves to python3 #18936

@BillyONeal

Description

@BillyONeal

Host Environment

  • OS: Ubuntu 20.04
  • Compiler: GCC 9

To Reproduce
Steps to reproduce the behavior:
./vcpkg install ogdf

Failure logs

CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:146 (message):
    Command failed: /home/bion/vcpkg/downloads/tools/cmake-3.20.2-linux/cmake-3.20.2-linux-x86_64/bin/cmake --build . --config Debug --target install -- -v -j65
    Working Directory: /mnt/vcpkg-ci/buildtrees/graphqlparser/x64-linux-dbg
    See logs for more information:
      /mnt/vcpkg-ci/buildtrees/graphqlparser/install-x64-linux-dbg-out.log
Traceback (most recent call last):
  File "/mnt/vcpkg-ci/buildtrees/bde/src/ce03ae8e80-ef877fdb7c.clean/bin/.waf3-1.9.9-4469eb5c219e16263f641e0916ce6a48/waflib/Node.py", line 295, in ant_iter
    raise StopIteration
StopIteration

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

Traceback (most recent call last):
  File "/mnt/vcpkg-ci/buildtrees/bde/src/ce03ae8e80-ef877fdb7c.clean/bin/.waf3-1.9.9-4469eb5c219e16263f641e0916ce6a48/waflib/Scripting.py", line 120, in waf_entry_point
    run_commands()
  File "/mnt/vcpkg-ci/buildtrees/bde/src/ce03ae8e80-ef877fdb7c.clean/bin/.waf3-1.9.9-4469eb5c219e16263f641e0916ce6a48/waflib/Scripting.py", line 177, in run_commands
    parse_options()
  File "/mnt/vcpkg-ci/buildtrees/bde/src/ce03ae8e80-ef877fdb7c.clean/bin/.waf3-1.9.9-4469eb5c219e16263f641e0916ce6a48/waflib/Scripting.py", line 150, in parse_options
    Context.create_context('options').execute()
  File "/mnt/vcpkg-ci/buildtrees/bde/src/ce03ae8e80-ef877fdb7c.clean/bin/.waf3-1.9.9-4469eb5c219e16263f641e0916ce6a48/waflib/Options.py", line 149, in execute
    super(OptionsContext,self).execute()
  File "/mnt/vcpkg-ci/buildtrees/bde/src/ce03ae8e80-ef877fdb7c.clean/bin/.waf3-1.9.9-4469eb5c219e16263f641e0916ce6a48/waflib/Context.py", line 88, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/mnt/vcpkg-ci/buildtrees/bde/src/ce03ae8e80-ef877fdb7c.clean/bin/.waf3-1.9.9-4469eb5c219e16263f641e0916ce6a48/waflib/Context.py", line 129, in recurse
    user_function(self)
  File "/mnt/vcpkg-ci/buildtrees/bde/src/5f1f24e1a3-5405076f04.clean/wscript", line 27, in options
    ctx.load('bdebuild.waf.wscript', tooldir=_get_tools_path(ctx))
  File "/mnt/vcpkg-ci/buildtrees/bde/src/ce03ae8e80-ef877fdb7c.clean/bin/.waf3-1.9.9-4469eb5c219e16263f641e0916ce6a48/waflib/Context.py", line 85, in load
    fun(self)
  File "/mnt/vcpkg-ci/buildtrees/bde/src/ce03ae8e80-ef877fdb7c.clean/lib/python/bdebuild/waf/wscript.py", line 73, in options
    ctx.load('compiler_c')
  File "/mnt/vcpkg-ci/buildtrees/bde/src/ce03ae8e80-ef877fdb7c.clean/bin/.waf3-1.9.9-4469eb5c219e16263f641e0916ce6a48/waflib/Context.py", line 85, in load
    fun(self)
  File "/mnt/vcpkg-ci/buildtrees/bde/src/ce03ae8e80-ef877fdb7c.clean/bin/.waf3-1.9.9-4469eb5c219e16263f641e0916ce6a48/waflib/Tools/compiler_c.py", line 40, in options
    opt.load_special_tools('c_*.py',ban=['c_dumbpreproc.py'])
  File "/mnt/vcpkg-ci/buildtrees/bde/src/ce03ae8e80-ef877fdb7c.clean/bin/.waf3-1.9.9-4469eb5c219e16263f641e0916ce6a48/waflib/Context.py", line 319, in load_special_tools
    lst=self.root.find_node(waf_dir).find_node('waflib/extras').ant_glob(var)
  File "/mnt/vcpkg-ci/buildtrees/bde/src/ce03ae8e80-ef877fdb7c.clean/bin/.waf3-1.9.9-4469eb5c219e16263f641e0916ce6a48/waflib/Node.py", line 344, in ant_glob
    ret=[x for x in self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=kw.get('maxdepth',25),dir=dir,src=src,remove=kw.get('remove',True))]
  File "/mnt/vcpkg-ci/buildtrees/bde/src/ce03ae8e80-ef877fdb7c.clean/bin/.waf3-1.9.9-4469eb5c219e16263f641e0916ce6a48/waflib/Node.py", line 344, in <listcomp>
    ret=[x for x in self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=kw.get('maxdepth',25),dir=dir,src=src,remove=kw.get('remove',True))]
RuntimeError: generator raised StopIteration

Additional context
All the python scripts in this port say "/usr/bin/env python"

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions