Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Avoiding LLVM on X or alternatives
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
user29039805
n00b
n00b


Joined: 21 Jan 2019
Posts: 3

PostPosted: Mon Jan 21, 2019 12:50 am    Post subject: Avoiding LLVM on X or alternatives Reply with quote

LLVM takes so long to compile that it discourages me to update. But, LLVM is required for xorg-server... What are my alternatives? Is there any way to avoid LLVM yet still have a window server? I wish to run dwm only, not XFCE or any full DE.
Back to top
View user's profile Send private message
mike155
l33t
l33t


Joined: 17 Sep 2010
Posts: 995
Location: Frankfurt, Germany

PostPosted: Mon Jan 21, 2019 12:58 am    Post subject: Reply with quote

Hello user29039805,

welcome to the Gentoo forums!

It's probably not the Xorg server, but Mesa that pulls in LLVM.

Which CPU and graphics chip do you have? Intel? Nvidia? AMD? Which graphics driver do you use?

Depending on your graphics chip, it might be possible to install Mesa without LLVM or to completely uninstall Mesa and LLVM.

Mike
Back to top
View user's profile Send private message
user29039805
n00b
n00b


Joined: 21 Jan 2019
Posts: 3

PostPosted: Mon Jan 21, 2019 3:27 am    Post subject: Reply with quote

mike155 wrote:
Hello user29039805,
Which CPU and graphics chip do you have? Intel? Nvidia? AMD? Which graphics driver do you use?

CPU is Core 2 Duo P8400. Graphics is:
Code:
VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated
Graphics Controller (rev 07)

I have set make.conf to use
Code:
VIDEO_CARDS="intel"

_________________
ACCEPT_LICENSE="-* @FREE"
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1692

PostPosted: Mon Jan 21, 2019 7:00 am    Post subject: Reply with quote

I know it is fully possible to compile mesa without llvm (the llvm use flag is defaulted to be enabled). From what the mesa ebuild looks like, only the radeon/amd video drivers directly need llvm, otherwise, you should be able to turn it off without much trouble.

Code:
ct85711@Oate ~ $ emerge -pv mesa llvm

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sys-devel/llvm-common-7.0.1::gentoo  27,648 KiB
[ebuild   R    ] media-libs/mesa-18.3.1::gentoo  USE="classic dri3 egl gallium gbm lm_sensors osmesa -d3d9 -debug -gles1 -gles2 -llvm -opencl -pax_kernel -pic (-selinux) -test -unwind -vaapi -valgrind -vdpau -vulkan -wayland -xa -xvmc" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="nouveau (-freedreno) -i915 -i965 (-imx) -intel -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) -virgl (-vivante) -vmware" 0 KiB
[ebuild  N     ] sys-devel/llvm-7.0.1:7::gentoo  USE="libffi ncurses xml -debug -doc -exegesis -gold -libedit -test -xar" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -PowerPC -Sparc -SystemZ -XCore" 119 KiB
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Mon Jan 21, 2019 7:25 am    Post subject: Reply with quote

Code:
equery d llvm

_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
mike155
l33t
l33t


Joined: 17 Sep 2010
Posts: 995
Location: Frankfurt, Germany

PostPosted: Mon Jan 21, 2019 11:38 am    Post subject: Reply with quote

Add the line below to /etc/portage/package.use:
Code:
media-libs/mesa -llvm

After that, run
Code:
emerge --update --deep --newuse -av @world
emerge --depclean
Back to top
View user's profile Send private message
user29039805
n00b
n00b


Joined: 21 Jan 2019
Posts: 3

PostPosted: Wed Jan 23, 2019 6:06 am    Post subject: Reply with quote

mike155 wrote:
Add the line below to /etc/portage/package.use:
Code:
media-libs/mesa -llvm

After that, run
Code:
emerge --update --deep --newuse -av @world
emerge --depclean


Thanks, I can confirm that worked.

I might clarify, that there were no other dependencies as this was a new install, but I was avoiding LLVM from the start based on another Gentoo box, where it is slow updating.

LLVM is not something to install lightly! Now to remove it from the other machine...
_________________
ACCEPT_LICENSE="-* @FREE"
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6276

PostPosted: Thu Jan 24, 2019 9:19 pm    Post subject: Reply with quote

user29039805 wrote:
Now to remove it from the other machine...

Before you do that, test whether the Xorg applications you use are still fast enough for you. For example, googleearth or tuxracer will likely become unusable slow.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum