Failure in installation of mesa from source - undefined reference to llvm after running make command
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I am trying to install the mesa package from the repository: git://anongit.freedesktop.org/mesa/mesa. I have successfully run the following command from within the mesa folder:
$ ./autogen.sh
--prefix=$NVD
--enable-texture-float
--enable-gles1
--enable-gles2
--enable-glx
--enable-egl
--enable-gallium-egl
--enable-gallium-llvm
--enable-shared-glapi
--enable-gbm
--enable-glx-tls
--enable-dri
--enable-osmesa
--with-egl-platforms=x11,drm
--with-gallium-drivers=nouveau
--with-dri-drivers=nouveau
--enable-vdpau
$./configure
However, when I run the make command with superuser permissions, I get the following error:
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `llvm::RTDyldMemoryManager::getSymbolAddress(std::string const&)':
/usr/lib/llvm-3.8/include/llvm/ExecutionEngine/RTDyldMemoryManager.h:77: undefined reference to `llvm::RTDyldMemoryManager::getSymbolAddressInProcess(std::string const&)'
/usr/lib/llvm-3.8/include/llvm/ExecutionEngine/RTDyldMemoryManager.h:77: undefined reference to `llvm::RTDyldMemoryManager::getSymbolAddressInProcess(std::string const&)'
collect2: error: ld returned 1 exit status
Makefile:991: recipe for target 'gallium_dri.la' failed
make[4]: *** [gallium_dri.la] Error 1
make[4]: Leaving directory '/home/nouveau/mesa/src/gallium/targets/dri'
Makefile:620: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/nouveau/mesa/src/gallium'
Makefile:869: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/nouveau/mesa/src'
Makefile:660: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/nouveau/mesa/src'
Makefile:677: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
drivers make
add a comment |Â
up vote
0
down vote
favorite
I am trying to install the mesa package from the repository: git://anongit.freedesktop.org/mesa/mesa. I have successfully run the following command from within the mesa folder:
$ ./autogen.sh
--prefix=$NVD
--enable-texture-float
--enable-gles1
--enable-gles2
--enable-glx
--enable-egl
--enable-gallium-egl
--enable-gallium-llvm
--enable-shared-glapi
--enable-gbm
--enable-glx-tls
--enable-dri
--enable-osmesa
--with-egl-platforms=x11,drm
--with-gallium-drivers=nouveau
--with-dri-drivers=nouveau
--enable-vdpau
$./configure
However, when I run the make command with superuser permissions, I get the following error:
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `llvm::RTDyldMemoryManager::getSymbolAddress(std::string const&)':
/usr/lib/llvm-3.8/include/llvm/ExecutionEngine/RTDyldMemoryManager.h:77: undefined reference to `llvm::RTDyldMemoryManager::getSymbolAddressInProcess(std::string const&)'
/usr/lib/llvm-3.8/include/llvm/ExecutionEngine/RTDyldMemoryManager.h:77: undefined reference to `llvm::RTDyldMemoryManager::getSymbolAddressInProcess(std::string const&)'
collect2: error: ld returned 1 exit status
Makefile:991: recipe for target 'gallium_dri.la' failed
make[4]: *** [gallium_dri.la] Error 1
make[4]: Leaving directory '/home/nouveau/mesa/src/gallium/targets/dri'
Makefile:620: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/nouveau/mesa/src/gallium'
Makefile:869: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/nouveau/mesa/src'
Makefile:660: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/nouveau/mesa/src'
Makefile:677: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
drivers make
What version of Ubuntu? What version ofllvm-3.8-dev
?
â steeldriver
May 3 at 22:22
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to install the mesa package from the repository: git://anongit.freedesktop.org/mesa/mesa. I have successfully run the following command from within the mesa folder:
$ ./autogen.sh
--prefix=$NVD
--enable-texture-float
--enable-gles1
--enable-gles2
--enable-glx
--enable-egl
--enable-gallium-egl
--enable-gallium-llvm
--enable-shared-glapi
--enable-gbm
--enable-glx-tls
--enable-dri
--enable-osmesa
--with-egl-platforms=x11,drm
--with-gallium-drivers=nouveau
--with-dri-drivers=nouveau
--enable-vdpau
$./configure
However, when I run the make command with superuser permissions, I get the following error:
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `llvm::RTDyldMemoryManager::getSymbolAddress(std::string const&)':
/usr/lib/llvm-3.8/include/llvm/ExecutionEngine/RTDyldMemoryManager.h:77: undefined reference to `llvm::RTDyldMemoryManager::getSymbolAddressInProcess(std::string const&)'
/usr/lib/llvm-3.8/include/llvm/ExecutionEngine/RTDyldMemoryManager.h:77: undefined reference to `llvm::RTDyldMemoryManager::getSymbolAddressInProcess(std::string const&)'
collect2: error: ld returned 1 exit status
Makefile:991: recipe for target 'gallium_dri.la' failed
make[4]: *** [gallium_dri.la] Error 1
make[4]: Leaving directory '/home/nouveau/mesa/src/gallium/targets/dri'
Makefile:620: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/nouveau/mesa/src/gallium'
Makefile:869: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/nouveau/mesa/src'
Makefile:660: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/nouveau/mesa/src'
Makefile:677: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
drivers make
I am trying to install the mesa package from the repository: git://anongit.freedesktop.org/mesa/mesa. I have successfully run the following command from within the mesa folder:
$ ./autogen.sh
--prefix=$NVD
--enable-texture-float
--enable-gles1
--enable-gles2
--enable-glx
--enable-egl
--enable-gallium-egl
--enable-gallium-llvm
--enable-shared-glapi
--enable-gbm
--enable-glx-tls
--enable-dri
--enable-osmesa
--with-egl-platforms=x11,drm
--with-gallium-drivers=nouveau
--with-dri-drivers=nouveau
--enable-vdpau
$./configure
However, when I run the make command with superuser permissions, I get the following error:
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `llvm::RTDyldMemoryManager::getSymbolAddress(std::string const&)':
/usr/lib/llvm-3.8/include/llvm/ExecutionEngine/RTDyldMemoryManager.h:77: undefined reference to `llvm::RTDyldMemoryManager::getSymbolAddressInProcess(std::string const&)'
/usr/lib/llvm-3.8/include/llvm/ExecutionEngine/RTDyldMemoryManager.h:77: undefined reference to `llvm::RTDyldMemoryManager::getSymbolAddressInProcess(std::string const&)'
collect2: error: ld returned 1 exit status
Makefile:991: recipe for target 'gallium_dri.la' failed
make[4]: *** [gallium_dri.la] Error 1
make[4]: Leaving directory '/home/nouveau/mesa/src/gallium/targets/dri'
Makefile:620: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/nouveau/mesa/src/gallium'
Makefile:869: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/nouveau/mesa/src'
Makefile:660: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/nouveau/mesa/src'
Makefile:677: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
drivers make
edited May 3 at 22:23
![](https://i.stack.imgur.com/WwSSv.jpg?s=32&g=1)
![](https://i.stack.imgur.com/WwSSv.jpg?s=32&g=1)
ubashu
2,23721736
2,23721736
asked May 3 at 19:02
T.Lazarus
1
1
What version of Ubuntu? What version ofllvm-3.8-dev
?
â steeldriver
May 3 at 22:22
add a comment |Â
What version of Ubuntu? What version ofllvm-3.8-dev
?
â steeldriver
May 3 at 22:22
What version of Ubuntu? What version of
llvm-3.8-dev
?â steeldriver
May 3 at 22:22
What version of Ubuntu? What version of
llvm-3.8-dev
?â steeldriver
May 3 at 22:22
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
Firstly, it is unnessecary to build mesa
from source in Ubuntu. It will already be installed as part of Xorg. The three packages installed are libglu1-mesa
, libgl1-mesa-glx
and libgl1-mesa-dri
.
If you really need to build mesa
, then your problem is with the new(ish) c++11 ABI. As the links in this bug report from Red Hat shows, the problem is that your llvm has not been compiled with c++11. You may like to update your llvm-3.8
installation with sudo apt-get install --only-upgrade llvm-3.8
. Otherwise, you may like to install a newer version of llvm
- llvm-3.9
, llvm-4.0
or llvm-5.0
(recommended).
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Firstly, it is unnessecary to build mesa
from source in Ubuntu. It will already be installed as part of Xorg. The three packages installed are libglu1-mesa
, libgl1-mesa-glx
and libgl1-mesa-dri
.
If you really need to build mesa
, then your problem is with the new(ish) c++11 ABI. As the links in this bug report from Red Hat shows, the problem is that your llvm has not been compiled with c++11. You may like to update your llvm-3.8
installation with sudo apt-get install --only-upgrade llvm-3.8
. Otherwise, you may like to install a newer version of llvm
- llvm-3.9
, llvm-4.0
or llvm-5.0
(recommended).
add a comment |Â
up vote
0
down vote
Firstly, it is unnessecary to build mesa
from source in Ubuntu. It will already be installed as part of Xorg. The three packages installed are libglu1-mesa
, libgl1-mesa-glx
and libgl1-mesa-dri
.
If you really need to build mesa
, then your problem is with the new(ish) c++11 ABI. As the links in this bug report from Red Hat shows, the problem is that your llvm has not been compiled with c++11. You may like to update your llvm-3.8
installation with sudo apt-get install --only-upgrade llvm-3.8
. Otherwise, you may like to install a newer version of llvm
- llvm-3.9
, llvm-4.0
or llvm-5.0
(recommended).
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Firstly, it is unnessecary to build mesa
from source in Ubuntu. It will already be installed as part of Xorg. The three packages installed are libglu1-mesa
, libgl1-mesa-glx
and libgl1-mesa-dri
.
If you really need to build mesa
, then your problem is with the new(ish) c++11 ABI. As the links in this bug report from Red Hat shows, the problem is that your llvm has not been compiled with c++11. You may like to update your llvm-3.8
installation with sudo apt-get install --only-upgrade llvm-3.8
. Otherwise, you may like to install a newer version of llvm
- llvm-3.9
, llvm-4.0
or llvm-5.0
(recommended).
Firstly, it is unnessecary to build mesa
from source in Ubuntu. It will already be installed as part of Xorg. The three packages installed are libglu1-mesa
, libgl1-mesa-glx
and libgl1-mesa-dri
.
If you really need to build mesa
, then your problem is with the new(ish) c++11 ABI. As the links in this bug report from Red Hat shows, the problem is that your llvm has not been compiled with c++11. You may like to update your llvm-3.8
installation with sudo apt-get install --only-upgrade llvm-3.8
. Otherwise, you may like to install a newer version of llvm
- llvm-3.9
, llvm-4.0
or llvm-5.0
(recommended).
answered May 3 at 22:40
![](https://i.stack.imgur.com/WwSSv.jpg?s=32&g=1)
![](https://i.stack.imgur.com/WwSSv.jpg?s=32&g=1)
ubashu
2,23721736
2,23721736
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1031689%2ffailure-in-installation-of-mesa-from-source-undefined-reference-to-llvm-after%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
What version of Ubuntu? What version of
llvm-3.8-dev
?â steeldriver
May 3 at 22:22