[Bug 217016] graphics/libGL et. al. forces use of llvm39 when llvm40 is installed

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 6 16:20:24 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217016

--- Comment #1 from Jan Beich (mail not working) <jbeich at FreeBSD.org> ---
graphics/dri fails to build against devel/llvm40 but graphics/libGL and other
Mesa ports don't really use LLVM.

In file included from draw/draw_llvm.c:45:
./gallivm/lp_bld_intr.h:69:20: error: unknown type name 'LLVMAttribute'; did
you mean
      'LLVMAttributeRef'?
                   LLVMAttribute attr);
                   ^~~~~~~~~~~~~
                   LLVMAttributeRef
/usr/local/llvm40/include/llvm-c/Types.h:116:40: note: 'LLVMAttributeRef'
declared here
typedef struct LLVMOpaqueAttributeRef *LLVMAttributeRef;
                                       ^
draw/draw_llvm.c:1577:10: error: implicit declaration of function
'LLVMAddAttribute' is invalid in
      C99 [-Werror,-Wimplicit-function-declaration]
         LLVMAddAttribute(LLVMGetParam(variant_func, i),
         ^

draw/draw_llvm.c:1578:27: error: use of undeclared identifier
'LLVMNoAliasAttribute'; did you mean
      'LLVMAddAttribute'?
                          LLVMNoAliasAttribute);
                          ^~~~~~~~~~~~~~~~~~~~
                          LLVMAddAttribute
draw/draw_llvm.c:1577:10: note: 'LLVMAddAttribute' declared here
         LLVMAddAttribute(LLVMGetParam(variant_func, i),
         ^
draw/draw_llvm.c:2193:27: error: use of undeclared identifier
'LLVMNoAliasAttribute'; did you mean
      'LLVMAddAttribute'?
                          LLVMNoAliasAttribute);
                          ^~~~~~~~~~~~~~~~~~~~
                          LLVMAddAttribute
draw/draw_llvm.c:1577:10: note: 'LLVMAddAttribute' declared here
         LLVMAddAttribute(LLVMGetParam(variant_func, i),
         ^

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-x11 mailing list