Re: [Mesa-dev] Error when trying to compile RADV

2016-10-02 Thread Michel Dänzer
On 02/10/16 08:28 PM, Jakub Hlusička wrote: > I ended up having to use `env LLVM_CONFIG=llvm-config-3.9` in order to > get it to compile. FWIW, passing --with-llvm-prefix=/usr/lib/llvm-3.9 to the configure script might do the trick as well. That'll be recorded in the config.status file (not sure a

Re: [Mesa-dev] Error when trying to compile RADV

2016-10-02 Thread Jakub Hlusička
I ended up having to use `env LLVM_CONFIG=llvm-config-3.9` in order to get it to compile. After installing it, I think it loaded up properly. I couldn't get Vulkan examples ( https://github.com/SaschaWillems/Vulkan ) to work, though; it was saying "Unsupported driver". So I played around the fi

Re: [Mesa-dev] Error when trying to compile RADV

2016-10-01 Thread Gustaw Smolarczyk
I don't think your fix with the symlinks is correct. You've just worked-around one part of the problem (missing include directories) leaving the total lack of detection of llvm alone. Now you lack the HAVE_LLVM define that should be automatically created by the build system if it recognizes llvm co

Re: [Mesa-dev] Error when trying to compile RADV

2016-10-01 Thread Limeth
I have found out that the llvm-3.9 installation directory in Ubuntu is not as you said and ended up creating symlinks to it: ``` sudo ln -s /usr/include/llvm-3.9/llvm/ /usr/include/llvm sudo ln -s /usr/include/llvm-c-3.9/llvm-c/ /usr/include/llvm-c ``` Now I seem to be getting a different error:

Re: [Mesa-dev] Error when trying to compile RADV

2016-10-01 Thread Bas Nieuwenhuizen
Hi, Do you have LLVM development packages installed? It seems configure can't find llvm-config and the header that can't be found is in the standard include path, at least for archlinux (i.e. /usr/include/llvm-c/TargetMachine.h). radv needs LLVM 3.9 development packages or newer. The issue Gustaw

Re: [Mesa-dev] Error when trying to compile RADV

2016-10-01 Thread Gustaw Smolarczyk
Hello, I might not be an expert, but it seems that the build system failed to locate radeon_llvm_check function. I heard somewhere on this list that there is currently a problem with it being used before it's defined. I think you will need to modify configure.ac and move it from line 2323 to, e.g.

[Mesa-dev] Error when trying to compile RADV

2016-10-01 Thread Limeth
Hello, I decided to try out the work-in-progress AMD driver with Vulkan support: https://github.com/airlied/mesa/tree/semi-interesting But when I try to compile the source, it fails -- see the log: http://pastebin.com/1nCQYCEF Is this a common problem with the official mesa3d repo aswell, or i