FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 12-12-2011, 04:32 AM
Michael Mol
 
Default How do I use LLVM?

On Mon, Dec 12, 2011 at 12:17 AM, Walter Dnes <waltdnes@waltdnes.org> wrote:
> *And no, it's not because I'm adventurous. *Background... I'm trying to
> revive an older Dell Dimension 530 (32 bit install) with a Radeon card
> that uses a binary blob from the radeon-ucode ebuild/download. *When
> trying to "emerge xorg-server", it fails with the message...
>
> configure: error: LLVM is required to build Gallium R300 on x86 and x86_64
>
> *I understand that LLVM is a "gcc-like" compiler. *What is the minimum
> amount of stuff that I need to do? *Are there any LLVM-compatability
> libraries for gcc that would do this build?

llvm is pulled in on most of my systems as a dependency of something
else. It doesn't conflict with having gcc installed.

emerge sys-devel/llvm

And try again. If that fixes it, you should file a bug against the
specific package failing to build, noting the missing explicit build
dependency.
--
:wq
 
Old 12-12-2011, 06:30 AM
Mick
 
Default How do I use LLVM?

On Monday 12 Dec 2011 05:32:04 Michael Mol wrote:
> On Mon, Dec 12, 2011 at 12:17 AM, Walter Dnes <waltdnes@waltdnes.org> wrote:
> > And no, it's not because I'm adventurous. Background... I'm trying to
> > revive an older Dell Dimension 530 (32 bit install) with a Radeon card
> > that uses a binary blob from the radeon-ucode ebuild/download. When
> > trying to "emerge xorg-server", it fails with the message...
> >
> > configure: error: LLVM is required to build Gallium R300 on x86 and
> > x86_64
> >
> > I understand that LLVM is a "gcc-like" compiler. What is the minimum
> > amount of stuff that I need to do? Are there any LLVM-compatability
> > libraries for gcc that would do this build?
>
> llvm is pulled in on most of my systems as a dependency of something
> else. It doesn't conflict with having gcc installed.
>
> emerge sys-devel/llvm
>
> And try again. If that fixes it, you should file a bug against the
> specific package failing to build, noting the missing explicit build
> dependency.

Unless you are using a new radeon card you may need sys-kernel/linux-firmware
instead of radeon-ucode.
--
Regards,
Mick
 
Old 12-12-2011, 09:31 PM
"Walter Dnes"
 
Default How do I use LLVM?

On Mon, Dec 12, 2011 at 12:32:04AM -0500, Michael Mol wrote

> llvm is pulled in on most of my systems as a dependency of something
> else. It doesn't conflict with having gcc installed.
>
> emerge sys-devel/llvm
>
> And try again. If that fixes it, you should file a bug against the
> specific package failing to build, noting the missing explicit build
> dependency.

After some testing, and plain old trial-and-error, I discovered that
it may have been due to me running with USE starting with "-*". I found
out that...

* emergeing llvm does not help
* I unmerged llvm, and added the line
media-libs/mesa llvm
to /etc/portage/package.use, and the build works.

Now that I know what to look for, I can find...
https://bugs.gentoo.org/show_bug.cgi?id=377013
which covers this issue. The problem is that the generic error message...

configure: error: LLVM is required to build Gallium R300 on x86 and x86_64

...is not informative enough. This has been fixed in mesa 7.12, due out
in a few months. Apparently, it'll generate an error message advising
that mesa must be built with USE="llvm" if Gallium R300 is to be built.

--
Walter Dnes <waltdnes@waltdnes.org>
 
Old 12-13-2011, 01:48 AM
"Walter Dnes"
 
Default How do I use LLVM?

On Mon, Dec 12, 2011 at 07:30:32AM +0000, Mick wrote

> Unless you are using a new radeon card you may need
> sys-kernel/linux-firmware instead of radeon-ucode.

As I mentioned in my reply to Michael Mol, building mesa with the
"llvm" USE flag does the trick.

It appears the web pages http://www.gentoo.org/doc/en/xorg-config.xml
and http://www.gentoo.org/doc/en/ati-faq.xml may be out of date. The
video card shows up under lspci as...
"ATI Technologies Inc RV280 [Radeon 9200 PRO]".

According to the Gentoo web pages, it doesn't need a firmware blob at
all. However, when booting, the PC said something about loading an R200
blob. It sat there for a minute, timed out, and went on to a standard
VGA display. I emerged radeon-ucode and it came up with 62 files,
including R200_cp.bin. I stuck that file into the
"[*] Include in-kernel firmware blobs in kernel binary"
option in the kernel, rebuilt, and it appears to work. Since this is an
actual gentoo.org webpage, and not a wiki, I'll file a "documentation
bug" at bugs.gentoo.org.

The "torture test" will come this evening. I'm a paying subscriber to
NHL Gamecenter Live. What prompted me to do all this work in the first
place was the fact that the onboard Intel GPU couldn't quite keep up to
a live hockey game in fullscreen mode. There was occasional stuttering
of the video. I went to all this trouble in hopes of a better viewing
experience. BTW, I have 2 Dell Dimension 530's. On the one with only
the onboard GPU, glxgears shows just over 60 fps. On the one with the
ATI card it's jumped to over 262 fps.

Last minute note. DRM is *NOT* in effect. I'll be starting a
separate thread on that. It's "an excellent adventure" in its own right.

--
Walter Dnes <waltdnes@waltdnes.org>
 

Thread Tools




All times are GMT. The time now is 12:00 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org