[Mesa-dev] Next Mesa git build error wit latest LLVM version (4.0.0svn).

Jan Vesely jan.vesely at rutgers.edu
Thu Nov 10 04:13:39 UTC 2016


On Thu, 2016-11-10 at 03:30 +0100, Dieter Nützel wrote:
> Tried LLVM version 4.0.0svn (after Tom's and Aaron's fixes), today.
> I had to go back to version from 2. Nov.

radv wasn't covered by those 2 patches. should be fixed now
by 2fdaf38c0106d

Jan

> 
> Thanks,
> Dieter
> 
> make[3]: Entering directory '/opt/mesa/src/amd/common'
>    CC       ac_nir_to_llvm.lo
> ac_nir_to_llvm.c:145:43: error: unknown type name 'LLVMAttribute'
>                       unsigned param_count, LLVMAttribute attribs);
>                                             ^
> ac_nir_to_llvm.c: In function 'create_llvm_function':
> ac_nir_to_llvm.c:231:4: error: implicit declaration of function 
> 'LLVMAddAttribute' [-Werror=implicit-function-declaration]
>      LLVMAddAttribute(P, LLVMByValAttribute);
>      ^
> ac_nir_to_llvm.c:231:24: error: 'LLVMByValAttribute' undeclared (first 
> use in this function)
>      LLVMAddAttribute(P, LLVMByValAttribute);
>                          ^
> ac_nir_to_llvm.c:231:24: note: each undeclared identifier is reported 
> only once for each function it appears in
> ac_nir_to_llvm.c:235:24: error: 'LLVMInRegAttribute' undeclared (first 
> use in this function)
>      LLVMAddAttribute(P, LLVMInRegAttribute);
>                          ^
> ac_nir_to_llvm.c: In function 'emit_intrin_1f_param':
> ac_nir_to_llvm.c:711:2: error: implicit declaration of function 
> 'emit_llvm_intrinsic' [-Werror=implicit-function-declaration]
>    return emit_llvm_intrinsic(ctx, intrin, ctx->f32, params, 1, 
> LLVMReadNoneAttribute);
>    ^
> ac_nir_to_llvm.c:711:63: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>    return emit_llvm_intrinsic(ctx, intrin, ctx->f32, params, 1, 
> LLVMReadNoneAttribute);
>                                                                 ^
> ac_nir_to_llvm.c: In function 'emit_intrin_2f_param':
> ac_nir_to_llvm.c:722:63: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>    return emit_llvm_intrinsic(ctx, intrin, ctx->f32, params, 2, 
> LLVMReadNoneAttribute);
>                                                                 ^
> ac_nir_to_llvm.c: In function 'emit_intrin_3f_param':
> ac_nir_to_llvm.c:734:63: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>    return emit_llvm_intrinsic(ctx, intrin, ctx->f32, params, 3, 
> LLVMReadNoneAttribute);
>                                                                 ^
> ac_nir_to_llvm.c: In function 'emit_find_lsb':
> ac_nir_to_llvm.c:760:72: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>    return emit_llvm_intrinsic(ctx, "llvm.cttz.i32", ctx->i32, params, 2, 
> LLVMReadNoneAttribute);
>                                                                          
> ^
> ac_nir_to_llvm.c: In function 'emit_ifind_msb':
> ac_nir_to_llvm.c:768:13: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>               LLVMReadNoneAttribute);
>               ^
> ac_nir_to_llvm.c: In function 'emit_ufind_msb':
> ac_nir_to_llvm.c:794:13: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>               LLVMReadNoneAttribute);
>               ^
> ac_nir_to_llvm.c: In function 'emit_ffract':
> ac_nir_to_llvm.c:858:8: error: 'LLVMReadNoneAttribute' undeclared (first 
> use in this function)
>          LLVMReadNoneAttribute);
>          ^
> ac_nir_to_llvm.c: In function 'emit_uint_carry':
> ac_nir_to_llvm.c:874:18: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>         params, 2, LLVMReadNoneAttribute);
>                    ^
> ac_nir_to_llvm.c: In function 'emit_bitfield_extract':
> ac_nir_to_llvm.c:919:63: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>    result = emit_llvm_intrinsic(ctx, intrin, ctx->i32, srcs, 3, 
> LLVMReadNoneAttribute);
>                                                                 ^
> ac_nir_to_llvm.c: In function 'get_thread_id':
> ac_nir_to_llvm.c:1026:21: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>          tid_args, 2, LLVMReadNoneAttribute);
>                       ^
> ac_nir_to_llvm.c: In function 'emit_ddxy':
> ac_nir_to_llvm.c:1118:7: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>         LLVMReadNoneAttribute);
>         ^
> ac_nir_to_llvm.c: In function 'visit_alu':
> ac_nir_to_llvm.c:1454:78: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>     result = emit_llvm_intrinsic(ctx, "llvm.bitreverse.i32", ctx->i32, 
> src, 1, LLVMReadNoneAttribute);
>                                                                           
>       ^
> ac_nir_to_llvm.c: At top level:
> ac_nir_to_llvm.c:1585:43: error: unknown type name 'LLVMAttribute'
>                       unsigned param_count, LLVMAttribute attribs)
>                                             ^
> ac_nir_to_llvm.c: In function 'radv_lower_gather4_integer':
> ac_nir_to_llvm.c:1683:9: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>           LLVMReadNoneAttribute);
>           ^
> ac_nir_to_llvm.c:1707:32: error: 'LLVMNoUnwindAttribute' undeclared 
> (first use in this function)
>          LLVMReadNoneAttribute | LLVMNoUnwindAttribute);
>                                  ^
> ac_nir_to_llvm.c: In function 'build_tex_intrinsic':
> ac_nir_to_llvm.c:1775:8: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>          LLVMReadNoneAttribute | LLVMNoUnwindAttribute);
>          ^
> ac_nir_to_llvm.c:1775:32: error: 'LLVMNoUnwindAttribute' undeclared 
> (first use in this function)
>          LLVMReadNoneAttribute | LLVMNoUnwindAttribute);
>                                  ^
> ac_nir_to_llvm.c: In function 'visit_atomic_ssbo':
> ac_nir_to_llvm.c:1958:2: warning: return makes pointer from integer 
> without a cast [enabled by default]
>    return emit_llvm_intrinsic(ctx, name, ctx->i32, params, arg_count, 0);
>    ^
> ac_nir_to_llvm.c: In function 'visit_load_buffer':
> ac_nir_to_llvm.c:1989:6: warning: initialization makes pointer from 
> integer without a cast [enabled by default]
>        emit_llvm_intrinsic(ctx, load_name, data_type, params, 5, 0);
>        ^
> ac_nir_to_llvm.c: In function 'visit_image_load':
> ac_nir_to_llvm.c:2383:7: warning: assignment makes pointer from integer 
> without a cast [enabled by default]
>     res = emit_llvm_intrinsic(ctx, 
> "llvm.amdgcn.buffer.load.format.v4f32", ctx->v4f32,
>         ^
> ac_nir_to_llvm.c:2419:17: error: 'LLVMReadOnlyAttribute' undeclared 
> (first use in this function)
>        params, 7, LLVMReadOnlyAttribute);
>                   ^
> ac_nir_to_llvm.c: In function 'visit_image_atomic':
> ac_nir_to_llvm.c:2555:2: warning: return makes pointer from integer 
> without a cast [enabled by default]
>    return emit_llvm_intrinsic(ctx, intrinsic_name, ctx->i32, params, 
> param_count, 0);
>    ^
> ac_nir_to_llvm.c: In function 'visit_image_size':
> ac_nir_to_llvm.c:2584:19: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>         params, 10, LLVMReadNoneAttribute);
>                     ^
> ac_nir_to_llvm.c: In function 'visit_interp':
> ac_nir_to_llvm.c:2835:10: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>            LLVMReadNoneAttribute);
>            ^
> ac_nir_to_llvm.c: In function 'build_cube_intrinsic':
> ac_nir_to_llvm.c:3133:23: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>             f32, in, 3, LLVMReadNoneAttribute);
>                         ^
> ac_nir_to_llvm.c: In function 'cube_to_2d_coords':
> ac_nir_to_llvm.c:3170:21: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>        &coords[2], 1, LLVMReadNoneAttribute);
>                       ^
> ac_nir_to_llvm.c: In function 'visit_tex':
> ac_nir_to_llvm.c:3249:9: warning: missing braces around initializer 
> [-Wmissing-braces]
>    struct ac_tex_info tinfo = { 0 };
>           ^
> ac_nir_to_llvm.c:3249:9: warning: (near initialization for 'tinfo.args') 
> [-Wmissing-braces]
> ac_nir_to_llvm.c:3397:15: warning: assignment makes pointer from integer 
> without a cast [enabled by default]
>       coords[2] = emit_llvm_intrinsic(ctx, "llvm.rint.f32", ctx->f32, 
> &coords[2],
>                 ^
> ac_nir_to_llvm.c:3422:10: warning: missing braces around initializer 
> [-Wmissing-braces]
>     struct ac_tex_info txf_info = { 0 };
>            ^
> ac_nir_to_llvm.c:3422:10: warning: (near initialization for 
> 'txf_info.args') [-Wmissing-braces]
> ac_nir_to_llvm.c:3457:10: warning: missing braces around initializer 
> [-Wmissing-braces]
>     struct ac_tex_info txf_info = { 0 };
>            ^
> ac_nir_to_llvm.c:3457:10: warning: (near initialization for 
> 'txf_info.args') [-Wmissing-braces]
> ac_nir_to_llvm.c: In function 'handle_vs_input_decl':
> ac_nir_to_llvm.c:3775:4: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>      LLVMReadNoneAttribute | LLVMNoUnwindAttribute);
>      ^
> ac_nir_to_llvm.c:3775:28: error: 'LLVMNoUnwindAttribute' undeclared 
> (first use in this function)
>      LLVMReadNoneAttribute | LLVMNoUnwindAttribute);
>                              ^
> ac_nir_to_llvm.c: In function 'interp_fs_input':
> ac_nir_to_llvm.c:3821:9: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>           LLVMReadNoneAttribute | LLVMNoUnwindAttribute);
>           ^
> ac_nir_to_llvm.c:3821:33: error: 'LLVMNoUnwindAttribute' undeclared 
> (first use in this function)
>           LLVMReadNoneAttribute | LLVMNoUnwindAttribute);
>                                   ^
> ac_nir_to_llvm.c: In function 'si_llvm_init_export_args':
> ac_nir_to_llvm.c:4080:13: error: 'LLVMReadNoneAttribute' undeclared 
> (first use in this function)
>               LLVMReadNoneAttribute);
>               ^
> ac_nir_to_llvm.c: In function 'emit_intrin_1f_param':
> ac_nir_to_llvm.c:712:1: warning: control reaches end of non-void 
> function [-Wreturn-type]
>   }
>   ^
> ac_nir_to_llvm.c: In function 'emit_intrin_2f_param':
> ac_nir_to_llvm.c:723:1: warning: control reaches end of non-void 
> function [-Wreturn-type]
>   }
>   ^
> ac_nir_to_llvm.c: In function 'emit_intrin_3f_param':
> ac_nir_to_llvm.c:735:1: warning: control reaches end of non-void 
> function [-Wreturn-type]
>   }
>   ^
> ac_nir_to_llvm.c: In function 'emit_find_lsb':
> ac_nir_to_llvm.c:761:1: warning: control reaches end of non-void 
> function [-Wreturn-type]
>   }
>   ^
> ac_nir_to_llvm.c: In function 'build_tex_intrinsic':
> ac_nir_to_llvm.c:1777:1: warning: control reaches end of non-void 
> function [-Wreturn-type]
>   }
>   ^
> ac_nir_to_llvm.c: In function 'radv_lower_gather4_integer':
> ac_nir_to_llvm.c:1709:1: warning: control reaches end of non-void 
> function [-Wreturn-type]
>   }
>   ^
> cc1: some warnings being treated as errors
> Makefile:655: recipe for target 'ac_nir_to_llvm.lo' failed
> make[3]: *** [ac_nir_to_llvm.lo] Error 1
> make[3]: Leaving directory '/opt/mesa/src/amd/common'
> Makefile:855: recipe for target 'all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory '/opt/mesa/src'
> Makefile:645: recipe for target 'all' failed
> make[1]: *** [all] Error 2
> make[1]: Leaving directory '/opt/mesa/src'
> Makefile:640: recipe for target 'all-recursive' failed
> make: *** [all-recursive] Error 1
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev

-- 
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161109/4692e1ee/attachment.sig>


More information about the mesa-dev mailing list