> Sent: Monday, November 11, 2019 at 7:08 AM
> From: "Ken Moffat via blfs-support" <[email protected]>
> To: "BLFS Support List" <[email protected]>
> Cc: "Ken Moffat" <[email protected]>
> Subject: Re: [blfs-support] My compilation of Mesa-19.1.4 is looking for 
> Gallium softpipe or LLVMpipe
>
> On Sun, Nov 10, 2019 at 10:12:06PM +0530, Herbert Laubner via blfs-support 
> wrote:
> > I am not sure where I lost the path of the book. But compiling Mesa, the
> > compilation stops in cmake
> > 
> > Run-time dependency libdrm_amdgpu found: YES 2.4.100
> > Run-time dependency libdrm_nouveau found: YES 2.4.100
> > Run-time dependency libdrm found: YES 2.4.100
> > llvm-config found: YES (/usr/bin/llvm-config) 8.0.1
> > Run-time dependency LLVM (modules: amdgpu, bitreader, bitwriter, engine,
> > ipo, mcdisassembler, mcjit, native, coroutines) found: YES 8.0.1
> > WARNING: Project targetting '>= 0.46' but tried to use feature introduced in
> > '0.51.0': dep.get_variable
> > Run-time dependency libelf found: YES 0.177
> > Program bison found: YES (/usr/bin/bison)
> > Program flex found: YES (/usr/bin/flex)
> > Run-time dependency libunwind found: NO (tried pkgconfig and cmake)
> > 
> > meson.build:1513:4: ERROR: Problem encountered: OSMesa gallium requires
> > gallium softpipe or llvmpipe.
> > 
> > I have tried a newer version of mesa, which required newer version of
> > libdrm, but that did not solve the issue in cmake.
> > 
> > I found at https://www.mesa3d.org/llvmpipe.html an explanation on the how to
> > create an llvmpipe driver, but I have the impression, it guides me on the
> > wrong path. I assume, I made something wrong before I came to mesa, to force
> > mesa to look for the galluim softpipe or llvmpipe.
> > 
> > Any hint, where to look?
> > 
> > Herbert
> > 
> Maybe in the options you used.  Looking at one of the versions of
> mesa I have here (you didn't say which later version you were using,
> beyond mentioning you tried something later) I found the following
> in meson.build:
> 
> The generation of the error message -
> 
> with_gallium_softpipe = gallium_drivers.contains('swrast')
> if with_osmesa != 'none'
>   if with_osmesa == 'classic' and not with_dri_swrast
>     error('OSMesa classic requires dri (classic) swrast.')
>   endif
>   if with_osmesa == 'gallium' and not with_gallium_softpipe
>     error('OSMesa gallium requires gallium softpipe or llvmpipe.')
>   endif
> [snip]
> 
> So you are using gallium (good).  Looks as if the reference to
> llvmpipe in the message is old, because it wants whatever sets
> with_gallium_softpipe.
> 
> That turns out to be set *much* earlier in meson.build -
> 
> with_gallium_softpipe = gallium_drivers.contains('swrast')
> 
> So, I assume that you have specified a subset of gallium drivers,
> but excluded swrast.
> 
> Maybe we need to mention that swrast should always be included,
> since we tell it to use -Dosmesa=gallium.  I see we mention the need
> for swrast under the explanation for gallium-nine, which we disable
> be default but not under the osmesa explanation.  I'll amend that in
> a little while.
> 
> ĸen
> -- 
> Whilst all mushrooms are edible, the trick is to eat only those which
> will prove to be edible more than once. The Celebrated Discworld Almanak
> recommends you play safe and eat beans on toast.
> -- 
> http://lists.linuxfromscratch.org/listinfo/blfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
> 

Hello,

I have just completed the installation of Mesa, and when I first attempted to 
build it, I got the exact same error.  I rebooted my system and tried again and 
the problem was solved.  Perhaps running source /etc/profile would have 
corrected the issue.

I thought that my installation of llvm was at fault.

Regards,

Christopher.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to