ParaView (5.9.0) superbuild with mesa


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


Making all in targets/libgl-xlib

CC xlib.lo


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 ‘’ failed

gmake[7]: *** [] Error 1

This looks like a Mesa problem. @chuckatkins Thoughts?

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.

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