Bug#884356: mesa FTBFS on ia64
So I got it to build, but I'm pretty sure the way I did it is less than Right. In src/gallium/drivers/radeonsi/Automake.inc, I moved the following bit out of the "if" statement: TARGET_COMPILER_LIB_DEPS = \ $(top_builddir)/src/compiler/nir/libnir.la Also, I used ./configure with LIBS="-lpthread". I think you might be right about the gc-sections link warning, but I'm not quite sure what it will take to get that working for ia64 any time soon. Are you able to understand what is going on here, or should I push this upstream? Thanks, Jason On Mon, Dec 18, 2017 at 7:48 AM, Jason Duerstockwrote: > I attached the full build log. > > I don't think the warning is related. My understanding is that that > option just removes unused sections on linking. But I will dig in > further to be sure. > > Thanks, > > Jason > > > On Fri, Dec 15, 2017 at 1:50 PM, Andreas Boll > wrote: >> On Thu, Dec 14, 2017 at 08:29:25AM -0500, Jason Duerstock wrote: >>> Source: mesa >>> Severity: normal >>> >>> Dear Maintainer, >>> >>> On ia64, mesa appears to FTBFS due to a missing link to libpthread by >>> libgbm: >>> >>> /bin/bash ../../libtool --tag=CC --mode=link gcc -I../../../include >>> -I../../../src -I../../../src/loader -I../../../src/gbm/main >>> -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS >>> -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DTEXTURE_FL >>> OAT_ENABLED -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF >>> -DHAVE_MKOSTEMP -DHAVE_STRTOD_L -DHAVE_DL_ITERATE_PHDR >>> -DHAVE_POSIX_MEMALIGN -DHAVE_GALLIUM_EXTRA_HUD=1 -DHAVE_LIBSENSORS=1 >>> -DUSE_LIBGLVND=1 -DHAVE_LIBDRM -DGLX_USE_DRM -DGLX_INDIRECT_RENDERING >>> -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_X11_PLATFORM >>> -DHAVE_SURFACELESS_PLATFORM -DHAVE_WAYLAND_PLATFORM -DWL_HIDE_DEPRECATED >>> -DHAVE_DRM_PLATFORM -DHAVE_DRI3 -DENABLE_SHADER_CACHE -DHAVE_MINCORE >>> -DHAVE_ST_VDPAU -fvisibility=hidden >>> -DDEFAULT_DRIVER_DIR='"/usr/lib/ia64-linux-gnu/dri:\${ORIGIN}/dri:/usr/lib/dri"' >>> -I/usr/include/libdrm -g -O2 -fdebug-prefix-map=/mnt/a/sid/mesa-17.3.0=. >>> -Wformat -Werror=format-security -Wall -Wall >>> -Werror=implicit-function-declaration -Werror=missing-prototypes >>> -Wmissing-prototypes -fno-math-errno -fno-trapping-math -std=c99 >>> -no-undefined -version-info 1:0 -Wl,--gc-sections -Wl,--no-undefined -o >>> libgbm.la -rpath /usr/lib/ia64-linux-gnu main/backend.lo main/gbm.lo >>> backends/dri/gbm_dri.lo! >>> ../../sr >>> c/loader/libloader.la ../../src/util/libmesautil.la >>> ../../src/util/libxmlconfig.la -ldl >>> ../../src/egl/wayland/wayland-drm/libwayland-drm.la -lwayland-server -ldrm >>> libtool: link: gcc -shared -fPIC -DPIC main/.libs/backend.o >>> main/.libs/gbm.o backends/dri/.libs/gbm_dri.o -Wl,--whole-archive >>> ../../src/loader/.libs/libloader.a ../../src/util/.libs/libmesautil.a >>> ../../src/util/.libs/libxmlconfig.a >>> ../../src/egl/wayland/wayland-drm/.libs/libwayland-drm.a >>> -Wl,--no-whole-archive -lz -lexpat -lm -ldl -lwayland-server -ldrm -g -O2 >>> -Wl,--gc-sections -Wl,--no-undefined -Wl,-soname -Wl,libgbm.so.1 -o >>> .libs/libgbm.so.1.0.0 >>> /usr/bin/ld: Warning: gc-sections option ignored >> >> Maybe it's related to this warning. >> >>> ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function >>> `u_thread_setname': >>> ./build/src/util/../../../src/util/u_thread.h:66: undefined reference to >>> `pthread_setname_np' >>> ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function >>> `thrd_join': >>> ./build/src/util/../../../include/c11/threads_posix.h:336: undefined >>> reference to `pthread_join' >>> ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function >>> `u_thread_create': >>> ./build/src/util/../../../src/util/u_thread.h:48: undefined reference to >>> `pthread_sigmask' >>> ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function >>> `thrd_create': >>> ./build/src/util/../../../include/c11/threads_posix.h:296: undefined >>> reference to `pthread_create' >>> ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function >>> `u_thread_create': >>> ./build/src/util/../../../src/util/u_thread.h:50: undefined reference to >>> `pthread_sigmask' >>> ./build/src/util/../../../src/util/u_thread.h:50: undefined reference to >>> `pthread_sigmask' >>> ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function >>> `call_once': >>> ./build/src/util/../../../include/c11/threads_posix.h:96: undefined >>> reference to `pthread_once' >>> ./build/src/util/../../../include/c11/threads_posix.h:96: undefined >>> reference to `pthread_once' >>> ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function >>> `u_thread_get_time_nano': >>> ./build/src/util/../../../src/util/u_thread.h:84: undefined reference to >>> `pthread_getcpuclockid' >>> >>> I have attached the last 50
Bug#884356: mesa FTBFS on ia64
I attached the full build log. I don't think the warning is related. My understanding is that that option just removes unused sections on linking. But I will dig in further to be sure. Thanks, Jason On Fri, Dec 15, 2017 at 1:50 PM, Andreas Bollwrote: > On Thu, Dec 14, 2017 at 08:29:25AM -0500, Jason Duerstock wrote: >> Source: mesa >> Severity: normal >> >> Dear Maintainer, >> >> On ia64, mesa appears to FTBFS due to a missing link to libpthread by libgbm: >> >> /bin/bash ../../libtool --tag=CC --mode=link gcc -I../../../include >> -I../../../src -I../../../src/loader -I../../../src/gbm/main >> -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS >> -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DTEXTURE_FL >> OAT_ENABLED -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF >> -DHAVE_MKOSTEMP -DHAVE_STRTOD_L -DHAVE_DL_ITERATE_PHDR -DHAVE_POSIX_MEMALIGN >> -DHAVE_GALLIUM_EXTRA_HUD=1 -DHAVE_LIBSENSORS=1 -DUSE_LIBGLVND=1 >> -DHAVE_LIBDRM -DGLX_USE_DRM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING >> -DGLX_USE_TLS -DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM >> -DHAVE_WAYLAND_PLATFORM -DWL_HIDE_DEPRECATED -DHAVE_DRM_PLATFORM -DHAVE_DRI3 >> -DENABLE_SHADER_CACHE -DHAVE_MINCORE -DHAVE_ST_VDPAU -fvisibility=hidden >> -DDEFAULT_DRIVER_DIR='"/usr/lib/ia64-linux-gnu/dri:\${ORIGIN}/dri:/usr/lib/dri"' >> -I/usr/include/libdrm -g -O2 -fdebug-prefix-map=/mnt/a/sid/mesa-17.3.0=. >> -Wformat -Werror=format-security -Wall -Wall >> -Werror=implicit-function-declaration -Werror=missing-prototypes >> -Wmissing-prototypes -fno-math-errno -fno-trapping-math -std=c99 >> -no-undefined -version-info 1:0 -Wl,--gc-sections -Wl,--no-undefined -o >> libgbm.la -rpath /usr/lib/ia64-linux-gnu main/backend.lo main/gbm.lo >> backends/dri/gbm_dri.lo! >> ../../sr >> c/loader/libloader.la ../../src/util/libmesautil.la >> ../../src/util/libxmlconfig.la -ldl >> ../../src/egl/wayland/wayland-drm/libwayland-drm.la -lwayland-server -ldrm >> libtool: link: gcc -shared -fPIC -DPIC main/.libs/backend.o >> main/.libs/gbm.o backends/dri/.libs/gbm_dri.o -Wl,--whole-archive >> ../../src/loader/.libs/libloader.a ../../src/util/.libs/libmesautil.a >> ../../src/util/.libs/libxmlconfig.a >> ../../src/egl/wayland/wayland-drm/.libs/libwayland-drm.a >> -Wl,--no-whole-archive -lz -lexpat -lm -ldl -lwayland-server -ldrm -g -O2 >> -Wl,--gc-sections -Wl,--no-undefined -Wl,-soname -Wl,libgbm.so.1 -o >> .libs/libgbm.so.1.0.0 >> /usr/bin/ld: Warning: gc-sections option ignored > > Maybe it's related to this warning. > >> ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function >> `u_thread_setname': >> ./build/src/util/../../../src/util/u_thread.h:66: undefined reference to >> `pthread_setname_np' >> ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function >> `thrd_join': >> ./build/src/util/../../../include/c11/threads_posix.h:336: undefined >> reference to `pthread_join' >> ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function >> `u_thread_create': >> ./build/src/util/../../../src/util/u_thread.h:48: undefined reference to >> `pthread_sigmask' >> ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function >> `thrd_create': >> ./build/src/util/../../../include/c11/threads_posix.h:296: undefined >> reference to `pthread_create' >> ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function >> `u_thread_create': >> ./build/src/util/../../../src/util/u_thread.h:50: undefined reference to >> `pthread_sigmask' >> ./build/src/util/../../../src/util/u_thread.h:50: undefined reference to >> `pthread_sigmask' >> ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function >> `call_once': >> ./build/src/util/../../../include/c11/threads_posix.h:96: undefined >> reference to `pthread_once' >> ./build/src/util/../../../include/c11/threads_posix.h:96: undefined >> reference to `pthread_once' >> ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function >> `u_thread_get_time_nano': >> ./build/src/util/../../../src/util/u_thread.h:84: undefined reference to >> `pthread_getcpuclockid' >> >> I have attached the last 50 lines of the build log, but the full log is >> available if you need it. > > Yes, the full log would be nice, especially the part from configure > would be interesting. > > Thanks, > Andreas mesa.build.log.xz Description: Binary data
Bug#884356: mesa FTBFS on ia64
On Thu, Dec 14, 2017 at 08:29:25AM -0500, Jason Duerstock wrote: > Source: mesa > Severity: normal > > Dear Maintainer, > > On ia64, mesa appears to FTBFS due to a missing link to libpthread by libgbm: > > /bin/bash ../../libtool --tag=CC --mode=link gcc -I../../../include > -I../../../src -I../../../src/loader -I../../../src/gbm/main > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DTEXTURE_FL > OAT_ENABLED -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF > -DHAVE_MKOSTEMP -DHAVE_STRTOD_L -DHAVE_DL_ITERATE_PHDR -DHAVE_POSIX_MEMALIGN > -DHAVE_GALLIUM_EXTRA_HUD=1 -DHAVE_LIBSENSORS=1 -DUSE_LIBGLVND=1 -DHAVE_LIBDRM > -DGLX_USE_DRM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS > -DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_WAYLAND_PLATFORM > -DWL_HIDE_DEPRECATED -DHAVE_DRM_PLATFORM -DHAVE_DRI3 -DENABLE_SHADER_CACHE > -DHAVE_MINCORE -DHAVE_ST_VDPAU -fvisibility=hidden > -DDEFAULT_DRIVER_DIR='"/usr/lib/ia64-linux-gnu/dri:\${ORIGIN}/dri:/usr/lib/dri"' > -I/usr/include/libdrm -g -O2 -fdebug-prefix-map=/mnt/a/sid/mesa-17.3.0=. > -Wformat -Werror=format-security -Wall -Wall > -Werror=implicit-function-declaration -Werror=missing-prototypes > -Wmissing-prototypes -fno-math-errno -fno-trapping-math -std=c99 > -no-undefined -version-info 1:0 -Wl,--gc-sections -Wl,--no-undefined -o > libgbm.la -rpath /usr/lib/ia64-linux-gnu main/backend.lo main/gbm.lo > backends/dri/gbm_dri.lo! > ../../sr > c/loader/libloader.la ../../src/util/libmesautil.la > ../../src/util/libxmlconfig.la -ldl > ../../src/egl/wayland/wayland-drm/libwayland-drm.la -lwayland-server -ldrm > libtool: link: gcc -shared -fPIC -DPIC main/.libs/backend.o > main/.libs/gbm.o backends/dri/.libs/gbm_dri.o -Wl,--whole-archive > ../../src/loader/.libs/libloader.a ../../src/util/.libs/libmesautil.a > ../../src/util/.libs/libxmlconfig.a > ../../src/egl/wayland/wayland-drm/.libs/libwayland-drm.a > -Wl,--no-whole-archive -lz -lexpat -lm -ldl -lwayland-server -ldrm -g -O2 > -Wl,--gc-sections -Wl,--no-undefined -Wl,-soname -Wl,libgbm.so.1 -o > .libs/libgbm.so.1.0.0 > /usr/bin/ld: Warning: gc-sections option ignored Maybe it's related to this warning. > ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function > `u_thread_setname': > ./build/src/util/../../../src/util/u_thread.h:66: undefined reference to > `pthread_setname_np' > ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function > `thrd_join': > ./build/src/util/../../../include/c11/threads_posix.h:336: undefined > reference to `pthread_join' > ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function > `u_thread_create': > ./build/src/util/../../../src/util/u_thread.h:48: undefined reference to > `pthread_sigmask' > ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function > `thrd_create': > ./build/src/util/../../../include/c11/threads_posix.h:296: undefined > reference to `pthread_create' > ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function > `u_thread_create': > ./build/src/util/../../../src/util/u_thread.h:50: undefined reference to > `pthread_sigmask' > ./build/src/util/../../../src/util/u_thread.h:50: undefined reference to > `pthread_sigmask' > ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function > `call_once': > ./build/src/util/../../../include/c11/threads_posix.h:96: undefined reference > to `pthread_once' > ./build/src/util/../../../include/c11/threads_posix.h:96: undefined reference > to `pthread_once' > ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function > `u_thread_get_time_nano': > ./build/src/util/../../../src/util/u_thread.h:84: undefined reference to > `pthread_getcpuclockid' > > I have attached the last 50 lines of the build log, but the full log is > available if you need it. Yes, the full log would be nice, especially the part from configure would be interesting. Thanks, Andreas
Bug#884356: mesa FTBFS on ia64
Source: mesa Severity: normal Dear Maintainer, On ia64, mesa appears to FTBFS due to a missing link to libpthread by libgbm: /bin/bash ../../libtool --tag=CC --mode=link gcc -I../../../include -I../../../src -I../../../src/loader -I../../../src/gbm/main -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DTEXTURE_FL OAT_ENABLED -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_STRTOD_L -DHAVE_DL_ITERATE_PHDR -DHAVE_POSIX_MEMALIGN -DHAVE_GALLIUM_EXTRA_HUD=1 -DHAVE_LIBSENSORS=1 -DUSE_LIBGLVND=1 -DHAVE_LIBDRM -DGLX_USE_DRM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_WAYLAND_PLATFORM -DWL_HIDE_DEPRECATED -DHAVE_DRM_PLATFORM -DHAVE_DRI3 -DENABLE_SHADER_CACHE -DHAVE_MINCORE -DHAVE_ST_VDPAU -fvisibility=hidden -DDEFAULT_DRIVER_DIR='"/usr/lib/ia64-linux-gnu/dri:\${ORIGIN}/dri:/usr/lib/dri"' -I/usr/include/libdrm -g -O2 -fdebug-prefix-map=/mnt/a/sid/mesa-17.3.0=. -Wformat -Werror=format-security -Wall -Wall -Werror=implicit-function-declaration -Werror=missing-prototypes -Wmissing-prototypes -fno-math-errno -fno-trapping-math -std=c99 -no-undefined -version-info 1:0 -Wl,--gc-sections -Wl,--no-undefined -o libgbm.la -rpath /usr/lib/ia64-linux-gnu main/backend.lo main/gbm.lo backends/dri/gbm_dri.lo! ../../sr c/loader/libloader.la ../../src/util/libmesautil.la ../../src/util/libxmlconfig.la -ldl ../../src/egl/wayland/wayland-drm/libwayland-drm.la -lwayland-server -ldrm libtool: link: gcc -shared -fPIC -DPIC main/.libs/backend.o main/.libs/gbm.o backends/dri/.libs/gbm_dri.o -Wl,--whole-archive ../../src/loader/.libs/libloader.a ../../src/util/.libs/libmesautil.a ../../src/util/.libs/libxmlconfig.a ../../src/egl/wayland/wayland-drm/.libs/libwayland-drm.a -Wl,--no-whole-archive -lz -lexpat -lm -ldl -lwayland-server -ldrm -g -O2 -Wl,--gc-sections -Wl,--no-undefined -Wl,-soname -Wl,libgbm.so.1 -o .libs/libgbm.so.1.0.0 /usr/bin/ld: Warning: gc-sections option ignored ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `u_thread_setname': ./build/src/util/../../../src/util/u_thread.h:66: undefined reference to `pthread_setname_np' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `thrd_join': ./build/src/util/../../../include/c11/threads_posix.h:336: undefined reference to `pthread_join' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `u_thread_create': ./build/src/util/../../../src/util/u_thread.h:48: undefined reference to `pthread_sigmask' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `thrd_create': ./build/src/util/../../../include/c11/threads_posix.h:296: undefined reference to `pthread_create' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `u_thread_create': ./build/src/util/../../../src/util/u_thread.h:50: undefined reference to `pthread_sigmask' ./build/src/util/../../../src/util/u_thread.h:50: undefined reference to `pthread_sigmask' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `call_once': ./build/src/util/../../../include/c11/threads_posix.h:96: undefined reference to `pthread_once' ./build/src/util/../../../include/c11/threads_posix.h:96: undefined reference to `pthread_once' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `u_thread_get_time_nano': ./build/src/util/../../../src/util/u_thread.h:84: undefined reference to `pthread_getcpuclockid' I have attached the last 50 lines of the build log, but the full log is available if you need it. -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: ia64 Kernel: Linux 3.14-0.bpo.2-mckinley (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Making all in gbm make[4]: Entering directory '/mnt/a/sid/mesa-17.3.0/build/src/gbm' /bin/bash ../../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"17.3.0\" -DPACKAGE_STRING=\"Mesa\ 17.3.0\" -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi\?product=Mesa\; -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"17.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DYYTEXT_POINTER=1 -DHAVE___BUILTIN_BSWAP32=1 -DHAVE___BUILTIN_BSWAP64=1 -DHAVE___BUILTIN_CLZ=1 -DHAVE___BUILTIN_CLZLL=1 -DHAVE___BUILTIN_CTZ=1 -DHAVE___BUILTIN_EXPECT=1 -DHAVE___BUILTIN_FFS=1 -DHAVE___BUILTIN_FFSLL=1 -DHAVE___BUILTIN_POPCOUNT=1 -DHAVE___BUILTIN_POPCOUNTLL=1 -DHAVE___BUILTIN_UNREACHABLE=1