* [gentoo-user] How do I use LLVM?
@ 2011-12-12 5:17 Walter Dnes
2011-12-12 5:32 ` Michael Mol
0 siblings, 1 reply; 5+ messages in thread
From: Walter Dnes @ 2011-12-12 5:17 UTC (permalink / raw
To: Gentoo Users List
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?
--
Walter Dnes <waltdnes@waltdnes.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] How do I use LLVM?
2011-12-12 5:17 [gentoo-user] How do I use LLVM? Walter Dnes
@ 2011-12-12 5:32 ` Michael Mol
2011-12-12 7:30 ` Mick
2011-12-12 22:31 ` Walter Dnes
0 siblings, 2 replies; 5+ messages in thread
From: Michael Mol @ 2011-12-12 5:32 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] How do I use LLVM?
2011-12-12 5:32 ` Michael Mol
@ 2011-12-12 7:30 ` Mick
2011-12-13 2:48 ` Walter Dnes
2011-12-12 22:31 ` Walter Dnes
1 sibling, 1 reply; 5+ messages in thread
From: Mick @ 2011-12-12 7:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 1171 bytes --]
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
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] How do I use LLVM?
2011-12-12 5:32 ` Michael Mol
2011-12-12 7:30 ` Mick
@ 2011-12-12 22:31 ` Walter Dnes
1 sibling, 0 replies; 5+ messages in thread
From: Walter Dnes @ 2011-12-12 22:31 UTC (permalink / raw
To: gentoo-user
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>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] How do I use LLVM?
2011-12-12 7:30 ` Mick
@ 2011-12-13 2:48 ` Walter Dnes
0 siblings, 0 replies; 5+ messages in thread
From: Walter Dnes @ 2011-12-13 2:48 UTC (permalink / raw
To: gentoo-user
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>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-12-13 2:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-12 5:17 [gentoo-user] How do I use LLVM? Walter Dnes
2011-12-12 5:32 ` Michael Mol
2011-12-12 7:30 ` Mick
2011-12-13 2:48 ` Walter Dnes
2011-12-12 22:31 ` Walter Dnes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox