[Mesa-dev] [Bug 104818] mesa fails to build on ia64

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jan 29 11:44:35 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=104818

Jason Duerstock <jason.duerstock at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|All                         |Linux (All)

--- Comment #5 from Jason Duerstock <jason.duerstock at gmail.com> ---
Hi Emil,

Yes, that fixed the pthread problem.  Originally, I was trying to troubleshoot
this:

libtool: link: g++  -fPIC -DPIC -shared -nostdlib
/usr/lib/gcc/ia64-linux-gnu/7/../../../ia64-linux-gnu/crti.o
/usr/lib/gcc/ia64-linux-gnu/7/crtbeginS.o  .libs/gallium_drv_video_la-target.o 
-Wl,--whole-archive
../../../../src/gallium/state_trackers/va/.libs/libvatracker.a
../../../../src/gallium/auxiliary/.libs/libgalliumvlwinsys.a
../../../../src/gallium/auxiliary/.libs/libgalliumvl.a
../../../../src/gallium/auxiliary/.libs/libgallium.a
../../../../src/util/.libs/libmesautil.a
../../../../src/gallium/auxiliary/pipe-loader/.libs/libpipe_loader_static.a
../../../../src/gallium/winsys/sw/null/.libs/libws_null.a
../../../../src/gallium/winsys/sw/wrapper/.libs/libwsw.a
../../../../src/gallium/winsys/sw/dri/.libs/libswdri.a
../../../../src/gallium/winsys/sw/kms-dri/.libs/libswkmsdri.a
../../../../src/gallium/winsys/nouveau/drm/.libs/libnouveaudrm.a
../../../../src/gallium/drivers/nouveau/.libs/libnouveau.a
../../../../src/gallium/drivers/r600/.libs/libr600.a
../../../../src/gallium/winsys/radeon/drm/.libs/libradeonwinsys.a
-Wl,--no-whole-archive  -lz -lsensors -lpthread -ldl -lxcb-dri2 -lX11-xcb -lX11
-lxcb -lxcb-dri3 -lxcb-xfixes -lxcb-present -lxcb-sync -lxshmfence -lexpat
-ldrm_nouveau -ldrm_radeon -ldrm -L/usr/lib/gcc/ia64-linux-gnu/7
-L/usr/lib/gcc/ia64-linux-gnu/7/../../../ia64-linux-gnu
-L/usr/lib/gcc/ia64-linux-gnu/7/../../.. -L/lib/ia64-linux-gnu
-L/usr/lib/ia64-linux-gnu -lstdc++ -lm -lc -lgcc_s -lunwind
/usr/lib/gcc/ia64-linux-gnu/7/crtendS.o
/usr/lib/gcc/ia64-linux-gnu/7/../../../ia64-linux-gnu/crtn.o  -g -O2
-Wl,--gc-sections -Wl,--no-undefined
-Wl,--version-script=../../../../../src/gallium/targets/va/va.sym -pthread  
-pthread -Wl,-soname -Wl,gallium_drv_video.so -o .libs/gallium_drv_video.so
/usr/bin/ld: Warning: gc-sections option ignored
../../../../src/gallium/auxiliary/.libs/libgallium.a(tgsi_to_nir.o): In
function `nir_build_imm':
./build/src/gallium/auxiliary/../../../../src/compiler/nir/nir_builder.h:196:
undefined reference to `nir_load_const_instr_create'
../../../../src/gallium/auxiliary/.libs/libgallium.a(tgsi_to_nir.o): In
function `nir_builder_instr_insert':
./build/src/gallium/auxiliary/../../../../src/compiler/nir/nir_builder.h:65:
undefined reference to `nir_instr_insert'
../../../../src/gallium/auxiliary/.libs/libgallium.a(tgsi_to_nir.o): In
function `nir_imov_alu':
./build/src/gallium/auxiliary/../../../../src/compiler/nir/nir_builder.h:405:
undefined reference to `nir_alu_instr_create'
./build/src/gallium/auxiliary/../../../../src/compiler/nir/nir_builder.h:406:
undefined reference to `nir_ssa_dest_init'
...
../../../../src/gallium/auxiliary/.libs/libgallium.a(tgsi_to_nir.o):(.sdata+0x28):
more undefined references to `nir_op_infos' follow
collect2: error: ld returned 1 exit status
Makefile:814: recipe for target 'gallium_drv_video.la' failed
make[5]: *** [gallium_drv_video.la] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/build/src/gallium/targets/va'
Makefile:611: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1

This is what it takes to make it build currently on Debian/ia64:

--- src/gallium/drivers/radeonsi/Automake.inc   2018-01-23 13:08:50.000000000
-0500
+++ /home/jason/Automake.inc    2018-01-29 06:38:24.235489245 -0500
@@ -1,3 +1,6 @@
+TARGET_COMPILER_LIB_DEPS = \
+       $(top_builddir)/src/compiler/nir/libnir.la
+
 if HAVE_GALLIUM_RADEONSI

 TARGET_DRIVERS += radeonsi
@@ -8,9 +11,6 @@
        $(LIBDRM_LIBS) \
        $(AMDGPU_LIBS)

-TARGET_COMPILER_LIB_DEPS = \
-       $(top_builddir)/src/compiler/nir/libnir.la
-
 TARGET_RADEON_WINSYS = \
        $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
        $(top_builddir)/src/gallium/winsys/amdgpu/drm/libamdgpuwinsys.la

I don't know if this is the right fix or not, but it works for me.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180129/c2061b50/attachment.html>


More information about the mesa-dev mailing list