Bug 104141 - include/c11/threads_posix.h:96: undefined reference to `pthread_once'
Summary: include/c11/threads_posix.h:96: undefined reference to `pthread_once'
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2017-12-06 08:34 UTC by Vinson Lee
Modified: 2018-01-25 18:27 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2017-12-06 08:34:50 UTC
mesa: 8761a04d0d9332d9c0c99164faf855fc3c741f7c (master 17.4.0-devel)

meson build error

FAILED: src/gallium/targets/xvmc/libXvMCgallium.so 
c++  -o src/gallium/targets/xvmc/libXvMCgallium.so 'src/gallium/targets/xvmc/XvMCgallium@sha/target.c.o' -Wl,--no-undefined -Wl,--as-needed -shared -fPIC -Wl,--start-group -Wl,-soname,libXvMCgallium.so src/gallium/state_trackers/xvmc/libxvmc_st.a src/gallium/auxiliary/libgalliumvlwinsys.a src/gallium/auxiliary/libgalliumvl.a src/gallium/auxiliary/libgallium.a src/util/libmesa_util.a src/gallium/auxiliary/pipe-loader/libpipe_loader_static.a src/loader/libloader.a src/util/libxmlconfig.a src/gallium/winsys/sw/null/libws_null.a src/gallium/winsys/sw/wrapper/libwsw.a src/gallium/drivers/r600/libr600.a src/gallium/winsys/radeon/drm/libradeonwinsys.a src/gallium/winsys/nouveau/drm/libnouveauwinsys.a src/gallium/drivers/nouveau/libnouveau.a -Wl,--version-script mesa/src/gallium/targets/xvmc/xvmc.sym -Wl,--gc-sections -lxcb -lX11-xcb -lX11 -lxcb -lxcb-dri2 -lxcb-dri3 -ldrm -lX11-xcb -lX11 -lxcb -lxcb -lxcb-dri2 -lxcb-dri3 -ldrm -ldrm -L/usr/lib64 -lLLVM-5.0 -lunwind -ldl -lm -lz -ldrm -ldrm -lexpat -lm -ldrm_radeon -lelf -L/usr/lib64 -lLLVM-5.0 -ldrm_radeon -ldrm_nouveau -Wl,--end-group -ldrm -ldrm_nouveau '-Wl,-rpath,$ORIGIN/' -Wl,-rpath-link,mesa/builddir/src/gallium/targets/xvmc  
src/gallium/auxiliary/libgallium.a(gallivm_lp_bld_misc.cpp.o): In function `lp_set_target_options':
include/c11/threads_posix.h:96: undefined reference to `pthread_once'
Comment 1 Eric Engestrom 2017-12-07 14:53:44 UTC
Yup, I noticed the same issue, but there are more libs missing dep_thread.
Sent a patch to the ML that fixes all of them:
https://lists.freedesktop.org/archives/mesa-dev/2017-December/179562.html


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.