LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-30-2013, 10:10 AM   #1
Dinesh Raja
Member
 
Registered: Jun 2013
Location: India
Distribution: Antergos,Ubuntu,LFS
Posts: 31

Rep: Reputation: Disabled
MesaLib-9.1.3 Configure error


Hello,I am doing BLFS(Ongoing Development) i used the following code to compile MesaLib

Code:
patch -Np1 -i ../MesaLib-9.1.3-llvm_fixes-1.patch &&
autoreconf -fi &&
./configure CFLAGS="-O2" CXXFLAGS="-O2"    \
            --prefix=/usr                  \
            --sysconfdir=/etc              \
            --enable-texture-float         \
            --enable-gles1                 \
            --enable-gles2                 \
            --enable-openvg                \
            --enable-osmesa                \
            --enable-xa                    \
            --enable-gbm                   \
            --enable-gallium-egl           \
            --enable-gallium-gbm           \
            --enable-glx-tls               \
            --with-llvm-shared-libs        \
            --with-egl-platforms="drm,x11" \
            --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &&
make
I am getting the following error
Code:
configure: error: LLVM R600 Target not enabled.  You can enable it when building the LLVM
                      sources with the --enable-experimental-targets=R600
                      configure flag
Additional Info:
I have compiled and installed LLVM 3.2 with the following command sequence
Code:
sed -e 's:\$(PROJ_prefix)/docs/llvm:$(PROJ_prefix)/share/doc/llvm-3.2:' \
    -i Makefile.config.in &&
CC=gcc CXX=g++                         \
./configure --prefix=/usr              \
            --sysconfdir=/etc          \
            --enable-libffi            \
            --enable-optimized         \
            --enable-shared            \
            --enable-targets=all       \
            --disable-assertions       \
            --disable-debug-runtime    \
            --disable-expensive-checks &&
            
make
Here i have removed "--enable-experimental-targets=R600" since i got errors with this unrelavant target like that but this has screwed up my Mesalib compilation

Some please help me to overcome this issue.
 
Old 06-30-2013, 10:50 AM   #2
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
What graphic card do you have?
Do you need that experimental driver?
Otherwise you can just remove it from the configure line. I have Intel and I only used
--with-gallium-drivers="i915".
 
Old 06-30-2013, 10:54 AM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
I would have thought that as you have removed the R600 option from llvm you should remove it from the list of drivers for mesalib.
 
Old 06-30-2013, 11:17 AM   #4
Dinesh Raja
Member
 
Registered: Jun 2013
Location: India
Distribution: Antergos,Ubuntu,LFS
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
I would have thought that as you have removed the R600 option from llvm you should remove it from the list of drivers for mesalib.
I tried compilation after removing R600 but again the same error
 
Old 06-30-2013, 11:20 AM   #5
Dinesh Raja
Member
 
Registered: Jun 2013
Location: India
Distribution: Antergos,Ubuntu,LFS
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Lennie View Post
What graphic card do you have?
Do you need that experimental driver?
Otherwise you can just remove it from the configure line. I have Intel and I only used
--with-gallium-drivers="i915".
I tried configuring Mesalib with the following code but still the same error

Code:
patch -Np1 -i ../MesaLib-9.1.3-llvm_fixes-1.patch &&
autoreconf -fi &&
./configure CFLAGS="-O2" CXXFLAGS="-O2"    \
            --prefix=/usr                  \
            --sysconfdir=/etc              \
            --enable-texture-float         \
            --enable-gles1                 \
            --enable-gles2                 \
            --enable-openvg                \
            --enable-osmesa                \
            --enable-xa                    \
            --enable-gbm                   \
            --enable-gallium-egl           \
            --enable-gallium-gbm           \
            --enable-glx-tls               \
            --with-llvm-shared-libs        \
            --with-egl-platforms="drm,x11" \
            --with-gallium-drivers="nouveau,r300,radeonsi,svga,swrast,i915" &&
make
My result is
Code:
configure: error: LLVM R600 Target not enabled.  You can enable it when building the LLVM
                      sources with the --enable-experimental-targets=R600
                      configure flag
My problem is enabling experimental-targets=R600 is also generating errors please help me to fix this loop error
 
Old 06-30-2013, 12:15 PM   #6
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
You didn't answer what graphic card you have. You're trying to compile the drivers for nvidia(nouveau), ati(radeon) and now also intel(i915) card. Remove everything you don't need.

from blfs about llvm:
Quote:
--enable-experimental-targets=R600: This switch enables R600 target which is required by Mesa to build the radeonsi 3D driver. It can be used for R600 LLVM backend and OpenCL state tracker in Mesa.
from blfs about mesalib:
Quote:
You will need to remove r300, r600 and radeonsi from the list if you did not install LLVM-3.3.
In other words, you need to also remove r300 and radeonsi, or build R600.
 
Old 06-30-2013, 01:05 PM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Do you NEED LLVM I compiled mesalib without it just fine, but I use the ati propriety driver anyway.
 
Old 07-01-2013, 09:14 AM   #8
Dinesh Raja
Member
 
Registered: Jun 2013
Location: India
Distribution: Antergos,Ubuntu,LFS
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Lennie View Post
You didn't answer what graphic card you have. You're trying to compile the drivers for nvidia(nouveau), ati(radeon) and now also intel(i915) card. Remove everything you don't need.

from blfs about llvm:

from blfs about mesalib:

In other words, you need to also remove r300 and radeonsi, or build R600.
I am sorry i missed that i am using Intel Graphics card and i removed r300 and radeonsi, or build R600 now i am able to compile it but my question is last time <My Previous BLFS build> LLVM,Mesalib compiled without errors i dont know what has caused this anyway thanks for the solution marking this as solved.
 
Old 07-01-2013, 09:16 AM   #9
Dinesh Raja
Member
 
Registered: Jun 2013
Location: India
Distribution: Antergos,Ubuntu,LFS
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
Do you NEED LLVM I compiled mesalib without it just fine, but I use the ati propriety driver anyway.
I too skipped LLVM now Mesalib is working good thank you Keith Hedger.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mesalib 8.0.4 LLVM compile error. Arcosanti Linux - Software 8 03-02-2013 11:46 AM
Mesalib 8.0.4 compile error due to file missing. Arcosanti Linux - Software 4 08-31-2012 07:04 PM
[SOLVED] Mesalib complaining about libdrm_nouveau??? spiky0011 Linux From Scratch 2 12-17-2011 02:50 PM
Error with Mesalib spiky0011 Linux From Scratch 26 04-09-2011 03:12 AM
configure error: configure: error: cannot execute: /usr/local/bin/arm-apple-darwin-ld GunNam Linux - General 0 10-24-2008 08:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration