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 Duerstock <jason.duerst...@gmail.com> wrote: > 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 > <andreas.boll....@gmail.com> 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 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