I am running into a problem on OmniOS building Mesa (2019Q2), getting the
following link errors with src/intel/compiler/libintel_compiler.a. I got this
same error using Joyent pkgsrc as well. I am not familiar with Mesa and will
continue to try to find problem but I have no clue about Meson build system
(or Mesa either)
Is this perhaps just a problem with latest release (mesa-19.1.6)?
g++ -o src/mesa/drivers/dri/libmesa_dri_drivers.so -I/opt/alt/include -I/opt/alt/include/libdrm -I/usr/include -I/opt/alt/include/python3.7 -L/opt/alt/lib -L/
usr/lib/amd64 -Wl,--no-undefined -Wl,--as-needed -shared -fPIC -Wl,-soname,libmesa_dri_drivers.so -Wl,--whole-archive src/mesa/drivers/dri/i915/libi915.a src/me
sa/drivers/dri/i965/libi965.a src/mesa/drivers/dri/radeon/libr100.a src/mesa/drivers/dri/r200/libr200.a src/mesa/drivers/dri/nouveau/libnouveau_vieux.a -Wl,--no
-whole-archive -O2 -D_FORTIFY_SOURCE=2 -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS -Drestrict=__restrict__ -lsocket -lnsl -Wl,-R/opt/alt/lib -Wl,-R/usr/lib/amd6
4 src/mesa/drivers/dri/common/libmegadriver_stub.a src/mesa/drivers/dri/common/libdricommon.a src/util/libxmlconfig.a src/util/libmesa_util.a src/mapi/shared-gl
api/libglapi.so.0.0.0 src/mesa/libmesa_classic.a src/compiler/glsl/libglsl.a src/compiler/glsl/glcpp/libglcpp.a src/compiler/nir/libnir.a src/compiler/libcompil
er.a src/mesa/libmesa_sse41.a src/mesa/drivers/dri/i965/libi965_gen40.a src/mesa/drivers/dri/i965/libi965_gen45.a src/mesa/drivers/dri/i965/libi965_gen50.a src/
mesa/drivers/dri/i965/libi965_gen60.a src/mesa/drivers/dri/i965/libi965_gen70.a src/mesa/drivers/dri/i965/libi965_gen75.a src/mesa/drivers/dri/i965/libi965_gen8
0.a src/mesa/drivers/dri/i965/libi965_gen90.a src/mesa/drivers/dri/i965/libi965_gen100.a src/mesa/drivers/dri/i965/libi965_gen110.a src/intel/common/libintel_co
mmon.a src/intel/isl/libisl.a src/intel/isl/libisl_gen40.a src/intel/isl/libisl_gen50.a src/intel/isl/libisl_gen60.a src/intel/isl/libisl_gen70.a src/intel/isl/
libisl_gen75.a src/intel/isl/libisl_gen80.a src/intel/isl/libisl_gen90.a src/intel/isl/libisl_gen100.a src/intel/isl/libisl_gen110.a src/intel/isl/libisl_tiled_
memcpy.a src/intel/isl/libisl_tiled_memcpy_sse41.a src/intel/dev/libintel_dev.a src/intel/compiler/libintel_compiler.a src/intel/blorp/libblorp.a src/intel/perf
/libintel_perf.a -Wl,--build-id=sha1 -Wl,--gc-sections -Wl,-R/opt/alt/lib /opt/alt/lib/libdrm.so -Wl,-R/opt/alt/lib /opt/alt/lib/libexpat.so -lm -pthread -Wl,-R
/opt/alt/lib -Wl,-R/opt/alt/lib -Wl,-R/opt/alt/lib /usr/lib/amd64/libz.so -Wl,-R/opt/alt/lib /opt/alt/lib/libdrm_intel.so -Wl,-R/opt/alt/lib -Wl,-R/opt/alt/lib
-Wl,-R/opt/alt/lib -Wl,-R/opt/alt/lib -Wl,-R/opt/alt/lib -Wl,-R/opt/alt/lib -Wl,-R/opt/alt/lib -Wl,-R/opt/alt/lib -Wl,-R/opt/alt/lib -Wl,-R/opt/alt/lib -Wl,-R/o
pt/alt/lib -Wl,-R/opt/alt/lib -Wl,-R/opt/alt/lib -Wl,-R/opt/alt/lib -Wl,-R/opt/alt/lib /opt/alt/lib/libdrm_radeon.so -Wl,-R/opt/alt/lib -Wl,-R/opt/alt/lib /opt/
alt/lib/libdrm_nouveau.so '-Wl,-rpath,$ORIGIN/common:$ORIGIN/../../../util:$ORIGIN/../../../mapi/shared-glapi:$ORIGIN/../..:$ORIGIN/../../../compiler/glsl:$ORIG
IN/../../../compiler/glsl/glcpp:$ORIGIN/../../../compiler/nir:$ORIGIN/../../../compiler'
Undefined first referenced
symbol in file
nir_lower_subgroups src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
ra_get_node_reg src/intel/compiler/libintel_compiler.a(brw_fs_reg_allocate.cpp.o)
ra_alloc_reg_set src/intel/compiler/libintel_compiler.a(brw_fs_reg_allocate.cpp.o)
_mesa_strtod src/compiler/glsl/libglsl.a(meson-generated_.._glsl_lexer.cpp.o)
_mesa_strtof src/mesa/libmesa_classic.a(meson-generated_.._program_lex.yy.c.o)
nir_search_op_for_nir_op src/intel/compiler/libintel_compiler.a(meson-generated_.._brw_nir_trig_workarounds.c.o)
nir_lower_bit_size src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_opt_remove_phis src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_remove_unused_varyings src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_gs_count_vertices src/intel/compiler/libintel_compiler.a(brw_vec4_gs_visitor.cpp.o)
ra_set_node_spill_cost src/intel/compiler/libintel_compiler.a(brw_fs_reg_allocate.cpp.o)
_mesa_float_to_half src/mesa/libmesa_classic.a(main_mipmap.c.o)
_mesa_string_buffer_vprintf src/compiler/glsl/glcpp/libglcpp.a(pp.c.o)
nir_opt_dead_cf src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_opt_combine_stores src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_copy_prop src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_lower_io_to_scalar_early src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_opt_move_comparisons src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
ra_set_node_reg src/intel/compiler/libintel_compiler.a(brw_fs_reg_allocate.cpp.o)
ra_allocate src/intel/compiler/libintel_compiler.a(brw_fs_reg_allocate.cpp.o)
nir_lower_alu_to_scalar src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_replace_instr src/intel/compiler/libintel_compiler.a(meson-generated_.._brw_nir_trig_workarounds.c.o)
nir_move_vec_src_uses_to_dest src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_lower_array_deref_of_vec src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
_mesa_string_buffer_create src/compiler/glsl/glcpp/libglcpp.a(pp.c.o)
util_format_srgb_8unorm_to_linear_float_table src/mesa/libmesa_classic.a(main_texcompress_bptc.c.o)
nir_lower_io_arrays_to_elements src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_lower_io_to_vector src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_convert_from_ssa src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_lower_gs_intrinsics src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
util_format_signed_fetch_texel_rgtc src/mesa/libmesa_classic.a(main_texcompress_rgtc.c.o)
util_format_linear_to_srgb_8unorm_table src/mesa/libmesa_classic.a(meson-generated_.._format_pack.c.o)
_mesa_locale_init src/mesa/libmesa_classic.a(main_context.c.o)
_mesa_locale_fini src/mesa/libmesa_classic.a(main_context.c.o)
nir_opt_cse src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_lower_phis_to_scalar src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_opt_copy_prop_vars src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_opt_if src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_lower_indirect_derefs src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
driDriverAPI src/mesa/drivers/dri/common/libdricommon.a(dri_util.c.o)
ra_get_best_spill_node src/intel/compiler/libintel_compiler.a(brw_fs_reg_allocate.cpp.o)
nir_link_opt_varyings src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_lower_vars_to_ssa src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
ra_add_node_interference src/intel/compiler/libintel_compiler.a(brw_fs_reg_allocate.cpp.o)
ra_alloc_interference_graph src/intel/compiler/libintel_compiler.a(brw_fs_reg_allocate.cpp.o)
_mesa_string_buffer_printf src/compiler/glsl/glcpp/libglcpp.a(pp.c.o)
nir_opt_trivial_continues src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
ra_set_node_class src/intel/compiler/libintel_compiler.a(brw_fs_reg_allocate.cpp.o)
util_format_signed_encode_rgtc_ubyte src/mesa/libmesa_classic.a(main_texcompress_rgtc.c.o)
nir_lower_load_const_to_scalar src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
util_format_linear_to_srgb_helper_table src/mesa/libmesa_classic.a(meson-generated_.._format_pack.c.o)
nir_opt_intrinsics src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_split_struct_vars src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_lower_var_copies src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_lower_tex src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_split_array_vars src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_lower_bool_to_int32 src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
u_vector_remove src/compiler/nir/libnir.a(nir_opt_dce.c.o)
ra_set_allocate_round_robin src/intel/compiler/libintel_compiler.a(brw_fs_reg_allocate.cpp.o)
ra_set_finalize src/intel/compiler/libintel_compiler.a(brw_fs_reg_allocate.cpp.o)
nir_opt_dead_write_vars src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_opt_algebraic_late src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_lower_vec_to_movs src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_opt_large_constants src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_normalize_cubemap_coords src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
ra_make_reg_conflicts_transitive src/intel/compiler/libintel_compiler.a(brw_fs_reg_allocate.cpp.o)
nir_opt_algebraic src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
ra_alloc_reg_class src/intel/compiler/libintel_compiler.a(brw_fs_reg_allocate.cpp.o)
_mesa_string_buffer_append_len src/compiler/glsl/glcpp/libglcpp.a(pp.c.o)
nir_opt_loop_unroll src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
util_format_unsigned_encode_rgtc_ubyte src/mesa/libmesa_classic.a(main_texcompress_rgtc.c.o)
nir_opt_algebraic_before_ffma src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
util_format_unsigned_fetch_texel_rgtc src/mesa/libmesa_classic.a(main_texcompress_rgtc.c.o)
nir_opt_idiv_const src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
ra_add_reg_conflict src/intel/compiler/libintel_compiler.a(brw_fs_reg_allocate.cpp.o)
nir_lower_system_values src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_lower_pack src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_opt_peephole_select src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
_mesa_half_to_float src/mesa/libmesa_classic.a(main_mipmap.c.o)
nir_lower_global_vars_to_local src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
u_vector_init src/compiler/nir/libnir.a(nir_opt_dce.c.o)
nir_opt_find_array_copies src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_opt_undef src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
ra_class_add_reg src/intel/compiler/libintel_compiler.a(brw_fs_reg_allocate.cpp.o)
nir_shrink_vec_array_vars src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
util_format_srgb_to_linear_8unorm_table src/mesa/libmesa_classic.a(meson-generated_.._format_unpack.c.o)
nir_lower_clip_cull_distance_arrays src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_opt_comparison_pre src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
u_vector_add src/compiler/nir/libnir.a(nir_opt_dce.c.o)
nir_lower_to_source_mods src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
nir_lower_locals_to_regs src/intel/compiler/libintel_compiler.a(brw_nir.c.o)
ld: fatal: symbol referencing errors. No output written to src/mesa/drivers/dri/libmesa_dri_drivers.so
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
*** Error code 1
Stop.
bmake[1]: stopped in /opt/alt/pkgsrc/graphics/MesaLib
*** Error code 1