# ParaView (5.9.0) superbuild with mesa

**URL:** https://discourse.paraview.org/t/paraview-5-9-0-superbuild-with-mesa/7117
**Category:** ParaView Support
**Tags:** opengl
**Created:** [April 30, 2021, 8:35pm UTC](https://discourse.paraview.org/t/paraview-5-9-0-superbuild-with-mesa/7117 "2021-04-30T20:35:32Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Jeff\_Becker](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jeff_becker/32/6410_2.png) [@Jeff\_Becker](https://discourse.paraview.org/u/Jeff_Becker)
#### Post date: [April 30, 2021, 8:35pm UTC](https://discourse.paraview.org/t/paraview-5-9-0-superbuild-with-mesa/7117/1 "2021-04-30T20:35:32Z")

</div>

Hello,

I’m trying to build ParaView with Qt and Mesa, and am getting the following build error. Any suggestions? Thanks.

-Jeff

Making all in targets/libgl-xlib

CC xlib.lo

CXXLD libGL.la

clang-11: warning: argument unused during compilation: ‘-pthread’ [-Wunused-command-line-argument]

clang-11: warning: argument unused during compilation: ‘-pthread’ [-Wunused-command-line-argument]

/nobackupp16/swbuild/jcbecker/spack/opt/spack/linux-sles12-sandybridge/gcc-8.4.0/binutils-2.35.1-pwww3zdjhutfspu3aezhvbes5hh2v6kp/bin/ld: …/…/…/…/src/gallium/auxiliary/.libs/libgallium.a(u\_debug\_symbol.o):(.bss+0x28): multiple definition of `symbols\_hash’; …/…/…/…/src/gallium/auxiliary/.libs/libgallium.a(u\_debug\_stack.o):(.bss+0x0): first defined here

clang-11: error: linker command failed with exit code 1 (use -v to see invocation)

Makefile:666: recipe for target ‘libGL.la’ failed

gmake[7]: \*\*\* [libGL.la] Error 1

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [May 15, 2021, 6:51pm UTC](https://discourse.paraview.org/t/paraview-5-9-0-superbuild-with-mesa/7117/2 "2021-05-15T18:51:49Z")

</div>

This looks like a Mesa problem. @chuckatkins Thoughts?

---

<div class="post-metadata">

### Author: ![Kyle\_Bentley](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kyle_bentley/32/9558_2.png) [@Kyle\_Bentley](https://discourse.paraview.org/u/Kyle_Bentley)
#### Post date: [June 29, 2022, 9:36pm UTC](https://discourse.paraview.org/t/paraview-5-9-0-superbuild-with-mesa/7117/3 "2022-06-29T21:36:04Z")

</div>

Hi guys,

I’m having a similar problem building with a superbuild gallium osmesa with llvm-11 on debian. Did you ever figure out what was causing the symbols\_hash problem? This is one of the top links to the problem on google, If you’ve got a solution it might increase the visibility to others.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [September 7, 2022, 8:57pm UTC](https://discourse.paraview.org/t/paraview-5-9-0-superbuild-with-mesa/7117/4 "2022-09-07T20:57:30Z")

</div>

This might be related to the default for `-fcommon` switching in the toolchain. You can try the `-fno-common` flag.

---

<div class="post-metadata">

### Author: ![Mike\_Tree](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mike_tree/32/5126_2.png) [@Mike\_Tree](https://discourse.paraview.org/u/Mike_Tree)
#### Post date: [September 11, 2023, 7:21pm UTC](https://discourse.paraview.org/t/paraview-5-9-0-superbuild-with-mesa/7117/5 "2023-09-11T19:21:31Z")

</div>

I’m also having an issue compiling the ParaView 5.9.0 superbuild with Qt and Mesa, but I am getting a different error:

```auto
gmake[7]: Leaving directory `/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/superbuild/mesa/src/src/gallium/drivers/llvmpipe'
Making all in drivers/swr
gmake[7]: Entering directory `/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/superbuild/mesa/src/src/gallium/drivers/swr'
  GEN rasterizer/jitter/gen_state_llvm.h
  GEN rasterizer/jitter/gen_builder.hpp
  GEN rasterizer/jitter/gen_builder_meta.hpp
  GEN rasterizer/jitter/gen_builder_intrin.hpp
Traceback (most recent call last):
  File "./rasterizer/codegen/gen_llvm_types.py", line 24, in <module>
Traceback (most recent call last):
  File "./rasterizer/codegen/gen_llvm_ir_macros.py", line 24, in <module>
Traceback (most recent call last):
Traceback (most recent call last):
  File "./rasterizer/codegen/gen_llvm_ir_macros.py", line 24, in <module>
  File "./rasterizer/codegen/gen_llvm_ir_macros.py", line 24, in <module>
    from gen_common import *
    from gen_common import *
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/superbuild/mesa/src/src/gallium/drivers/swr/rasterizer/codegen/gen_common.py", line 31, in <module>
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/superbuild/mesa/src/src/gallium/drivers/swr/rasterizer/codegen/gen_common.py", line 31, in <module>
    from gen_common import *
      File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/superbuild/mesa/src/src/gallium/drivers/swr/rasterizer/codegen/gen_common.py", line 31, in <module>
from gen_common import *
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/superbuild/mesa/src/src/gallium/drivers/swr/rasterizer/codegen/gen_common.py", line 31, in <module>
    from mako.template import Template
    from mako.template import Template
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/template.py", line 10, in <module>
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/template.py", line 10, in <module>
    from mako.template import Template
    from mako.template import Template
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/template.py", line 10, in <module>
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/template.py", line 10, in <module>
    from mako.lexer import Lexer
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/lexer.py", line 11, in <module>
    from mako.lexer import Lexer
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/lexer.py", line 11, in <module>
    from mako.lexer import Lexer
    from mako.lexer import Lexer
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/lexer.py", line 11, in <module>
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/lexer.py", line 11, in <module>
    from mako import parsetree, exceptions, compat
    from mako import parsetree, exceptions, compat
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/parsetree.py", line 9, in <module>
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/parsetree.py", line 9, in <module>
    from mako import parsetree, exceptions, compat
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/parsetree.py", line 9, in <module>
        from mako import parsetree, exceptions, compat
from mako import exceptions, ast, util, filters, compat
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/exceptions.py", line 273, in <module>
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/parsetree.py", line 9, in <module>
        from mako import exceptions, ast, util, filters, compat
from mako import exceptions, ast, util, filters, compat
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/exceptions.py", line 273, in <module>
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/exceptions.py", line 273, in <module>
    _install_highlighting()
    from mako import exceptions, ast, util, filters, compat
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/exceptions.py", line 270, in _install_highlighting
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/exceptions.py", line 273, in <module>
    _install_highlighting()
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/exceptions.py", line 270, in _install_highlighting
    _install_highlighting()
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/exceptions.py", line 270, in _install_highlighting
    _install_highlighting()
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/exceptions.py", line 270, in _install_highlighting
    _install_pygments()
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/exceptions.py", line 255, in _install_pygments
    _install_pygments()
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/exceptions.py", line 255, in _install_pygments
    _install_pygments()
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/exceptions.py", line 255, in _install_pygments
            from mako.ext.pygmentplugin import syntax_highlight # noqa
from mako.ext.pygmentplugin import syntax_highlight # noqa
_install_pygments()
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/ext/pygmentplugin.py", line 7, in <module>
      File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/ext/pygmentplugin.py", line 7, in <module>
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/exceptions.py", line 255, in _install_pygments
from mako.ext.pygmentplugin import syntax_highlight # noqa
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/ext/pygmentplugin.py", line 7, in <module>
    from pygments.lexers.web import \
  File "/usr/lib/python2.7/site-packages/pygments/lexers/ __init__.py", line 18, in <module>
        from pygments.lexers.web import \
from pygments.lexers.web import \
  File "/usr/lib/python2.7/site-packages/pygments/lexers/ __init__.py", line 18, in <module>
  File "/usr/lib/python2.7/site-packages/pygments/lexers/ __init__.py", line 18, in <module>
    from mako.ext.pygmentplugin import syntax_highlight # noqa
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/mako/ext/pygmentplugin.py", line 7, in <module>
        from pygments.plugin import find_plugin_lexers
from pygments.plugin import find_plugin_lexers
    from pygments.plugin import find_plugin_lexers
  File "/usr/lib/python2.7/site-packages/pygments/plugin.py", line 39, in <module>
  File "/usr/lib/python2.7/site-packages/pygments/plugin.py", line 39, in <module>
  File "/usr/lib/python2.7/site-packages/pygments/plugin.py", line 39, in <module>
    from pygments.lexers.web import \
  File "/usr/lib/python2.7/site-packages/pygments/lexers/ __init__.py", line 18, in <module>
    from pygments.plugin import find_plugin_lexers
  File "/usr/lib/python2.7/site-packages/pygments/plugin.py", line 39, in <module>
    import pkg_resources
            import pkg_resources
import pkg_resources
import pkg_resources
  File "/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/pkg_resources/ __init__.py", line 1380
    raise SyntaxError(e) from e
          File " File " /home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/pkg_resources/ __init__.py/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/pkg_resources/ __init__.py ", line ", line 1380 1380
 
      File " raise SyntaxError(e) from e
/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/install/lib/python3.8/site-packages/pkg_resources/ __init__.py raise SyntaxError(e) from e
    ", line 1380   
          raise SyntaxError(e) from e
                                    ^
        SyntaxError : invalid syntax   
           ^
 ^
 SyntaxError SyntaxError: : invalid syntax ^
invalid syntax

SyntaxError: invalid syntax
gmake[7]: *** [rasterizer/jitter/gen_state_llvm.h] Error 1
gmake[7]: *** Waiting for unfinished jobs....
gmake[7]: *** [rasterizer/jitter/gen_builder.hpp] Error 1
gmake[7]: *** [rasterizer/jitter/gen_builder_intrin.hpp] Error 1
gmake[7]: *** [rasterizer/jitter/gen_builder_meta.hpp] Error 1
gmake[7]: Leaving directory `/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/superbuild/mesa/src/src/gallium/drivers/swr'
gmake[6]: *** [all-recursive] Error 1
gmake[6]: Leaving directory `/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/superbuild/mesa/src/src/gallium'
gmake[5]: Leaving directory `/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/superbuild/mesa/src/src'
gmake[5]: *** [all-recursive] Error 1
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/superbuild/mesa/src/src'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/superbuild/mesa/src'
CMake Error at /home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super/superbuild/sb-mesa-build.cmake:47 (message):
  Failed with exit code 2

make[2]: *** [superbuild/mesa/stamp/mesa-build] Error 1
make[2]: Leaving directory `/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super'
make[1]: *** [superbuild/CMakeFiles/mesa.dir/all] Error 2
make[1]: Leaving directory `/home/shelf1/motorsports/software/Visualization/build/paraview/5.9.0_super'
make: *** [all] Error 2

```

The Python syntax is incorrect? The mesa package is based on Python/2.7 but because I’m also asking the ParaView Superbuild for the Python3 project, the mesa project is getting confused and finding the wrong version of Python?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [September 12, 2023, 11:24am UTC](https://discourse.paraview.org/t/paraview-5-9-0-superbuild-with-mesa/7117/6 "2023-09-12T11:24:04Z")

</div>

> [@Mike\_Tree](#):
>
> `/usr/lib/python2.7/site-packages/pygments/plugin.py`

You have a Python2 floating around. We require Python3 everywhere. It looks like `mesa` found a Python2 and is trying to use it. I’d recommend looking around the `CMakeCache.txt` and ensure that nothing points to Python2.

---

<div class="post-metadata">

### Author: ![Mike\_Tree](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mike_tree/32/5126_2.png) [@Mike\_Tree](https://discourse.paraview.org/u/Mike_Tree)
#### Post date: [September 12, 2023, 3:09pm UTC](https://discourse.paraview.org/t/paraview-5-9-0-superbuild-with-mesa/7117/7 "2023-09-12T15:09:51Z")

</div>

The easiest solution to my problem is to turn off the swr driver with `-Dmesa_USE_SWR:STRING="OFF"`. That’s my personal resolution, but in an effort to help others I’ll continue to investigate.

Here is `build/paraview/5.9.0_super_swr/CMakeCache.txt`:  
[CMakeCache.txt](https://discourse.paraview.org/uploads/short-url/AtZkeyxB4tZY8Lc2k8V661Ds5Qp.txt) (45.5 KB)  
I see nothing in here related to python2

However, in `build/paraview/5.9.0_super_swr/superbuild/mesa/src/src/gallium/drivers/swr/Makefile` I see only references to python2 (line numbers left in for reference):

```auto
1156 PYTHON2 = python2.7
...
1579 PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS)
...
4254 rasterizer/jitter/gen_state_llvm.h: rasterizer/codegen/gen_llvm_types.py rasterizer/codegen/templates/gen_llvm.hpp rasterizer/core/state.h rasterizer/codegen/gen_common.py                                                              
4255 $(MKDIR_GEN)                                                                                                                                                                                                                     
4256 $(PYTHON_GEN) \                                                                                                                                                                                                                  
4257 $(srcdir)/rasterizer/codegen/gen_llvm_types.py \                                                                                                                                                                         
4258 --input $(srcdir)/rasterizer/core/state.h \                                                                                                                                                                              
4259 --output rasterizer/jitter/gen_state_llvm.h                                                                                                                                                                              
4260 $(AM_V_GEN)touch $@                                                                                                                                                                                                              
4261                                                                                                                                                                                                                                          
4262 rasterizer/jitter/gen_builder.hpp: rasterizer/codegen/gen_llvm_ir_macros.py rasterizer/codegen/templates/gen_builder.hpp rasterizer/codegen/gen_common.py                                                                                
4263 $(MKDIR_GEN)                                                                                                                                                                                                                     
4264 $(PYTHON_GEN) \                                                                                                                                                                                                                  
4265 $(srcdir)/rasterizer/codegen/gen_llvm_ir_macros.py \                                                                                                                                                                     
4266 --input $(LLVM_INCLUDEDIR)/llvm/IR/IRBuilder.h \                                                                                                                                                                         
4267 --output rasterizer/jitter \                                                                                                                                                                                             
4268 --gen_h                                                                                                                                                                                                                  
4269 $(AM_V_GEN)touch $@                                                                                                                                                                                                              
4270                                                                                                                                                                                                                                          
4271 rasterizer/jitter/gen_builder_meta.hpp: rasterizer/codegen/gen_llvm_ir_macros.py rasterizer/codegen/templates/gen_builder.hpp rasterizer/codegen/gen_common.py                                                                           
4272 $(MKDIR_GEN)                                                                                                                                                                                                                     
4273 $(PYTHON_GEN) \                                                                                                                                                                                                                  
4274 $(srcdir)/rasterizer/codegen/gen_llvm_ir_macros.py \                                                                                                                                                                     
4275 --output rasterizer/jitter \                                                                                                                                                                                             
4276 --gen_meta_h                                                                                                                                                                                                             
4277 $(AM_V_GEN)touch $@                                                                                                                                                                                                              
4278                                                                                                                                                                                                                                          
4279 rasterizer/jitter/gen_builder_intrin.hpp: rasterizer/codegen/gen_llvm_ir_macros.py rasterizer/codegen/templates/gen_builder.hpp rasterizer/codegen/gen_common.py                                                                         
4280 $(MKDIR_GEN)                                                                                                                                                                                                                     
4281 $(PYTHON_GEN) \                                                                                                                                                                                                                  
4282 $(srcdir)/rasterizer/codegen/gen_llvm_ir_macros.py \                                                                                                                                                                     
4283 --output rasterizer/jitter \                                                                                                                                                                                             
4284 --gen_intrin_h                                                                                                                                                                                                           
4285 $(AM_V_GEN)touch $@

```

This looks like the build is requiring python2 to be used to automatically generate CPP rasterizer source code from python files.

`build/paraview/5.9.0_super_swr/superbuild/mesa/src/src/gallium/drivers/swr/rasterizer/jitter/meson.build`:

```auto
 22 gen_builder_hpp = custom_target(                                                                                                                                                                                                          
 23 'gen_builder.hpp',                                                                                                                                                                                                                      
 24 input : [                                                                                                                                                                                                                               
 25 swr_gen_llvm_ir_macros_py,                                                                                                                                                                                                            
 26 join_paths(                                                                                                                                                                                                                           
 27 dep_llvm.get_configtool_variable('includedir'), 'llvm', 'IR',                                                                                                                                                                       
 28 'IRBuilder.h'                                                                                                                                                                                                                       
 29 )                                                                                                                                                                                                                                     
 30 ],                                                                                                                                                                                                                                      
 31 output : 'gen_builder.hpp',                                                                                                                                                                                                             
 32 command : [                                                                                                                                                                                                                             
 33 prog_python2, '@INPUT0@', '--input', '@INPUT1@', '--output', '@OUTPUT@',                                                                                                                                                              
 34 '--gen_h', '--output-dir', '@OUTDIR@'                                                                                                                                                                                                 
 35 ],                                                                                                                                                                                                                                      
 36 depend_files : swr_gen_builder_depends,                                                                                                                                                                                                 
 37 build_by_default : true,                                                                                                                                                                                                                
 38 )                                                                                                                                                                                                                                         
 39                                                                                                                                                                                                                                           
 40 gen_builder_meta_hpp = custom_target(                                                                                                                                                                                                     
 41 'gen_builder_meta.hpp',                                                                                                                                                                                                                 
 42 input : '../codegen/gen_llvm_ir_macros.py',                                                                                                                                                                                             
 43 output : 'gen_builder_meta.hpp',                                                                                                                                                                                                        
 44 command : [                                                                                                                                                                                                                             
 45 prog_python2, '@INPUT0@', '--gen_meta_h', '--output', '@OUTPUT@',                                                                                                                                                                     
 46 '--output-dir', '@OUTDIR@'                                                                                                                                                                                                            
 47 ],                                                                                                                                                                                                                                      
 48 depend_files : swr_gen_builder_depends,                                                                                                                                                                                                 
 49 )                                                                                                                                                                                                                                         
 50                                                                                                                                                                                                                                           
 51 gen_builder_intrin_hpp = custom_target(                                                                                                                                                                                                   
 52 'gen_builder_intrin.hpp',                                                                                                                                                                                                               
 53 input : '../codegen/gen_llvm_ir_macros.py',                                                                                                                                                                                             
 54 output : 'gen_builder_intrin.hpp',                                                                                                                                                                                                      
 55 command : [                                                                                                                                                                                                                             
 56 prog_python2, '@INPUT0@', '--gen_intrin_h', '--output', '@OUTPUT@',                                                                                                                                                                   
 57 '--output-dir', '@OUTDIR@'                                                                                                                                                                                                            
 58 ],                                                                                                                                                                                                                                      
 59 depend_files : swr_gen_builder_depends,                                                                                                                                                                                                 
 60 ) 

```

Are you sure the build requires Python3 _everywhere_?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [September 13, 2023, 1:13am UTC](https://discourse.paraview.org/t/paraview-5-9-0-superbuild-with-mesa/7117/8 "2023-09-13T01:13:24Z")

</div>

> [@Mike\_Tree](#):
>
> Are you sure the build requires Python3 _everywhere_?

Well, the modern one does. If you’re on the 5.9.0 tag, I suppose some things could still want Python2. I don’t recall how much `PYTHONPATH` stuff we do that may mess things up (something certainly seems to confuse things at least by your logs).

I might recommend pulling the Docker image mentioned in `.gitlab/os-linux.yml` (`kitware/paraview:ci-superbuild-centos7-20210113`) or building it (`.gitlab/ci/docker/centos7` if it has expired from DockerHub) and building using the instructions in the CI scripts.
