Page 1 of 2

What does the humongous /usr/lib/libLLVM.so.3 do?

Posted: Thu 01 May 2014, 19:21
by musher0
Note, 2014-05-13 -- I removed the "solved" mention I had put in the title, because uses for
this lib are still being discovered.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi.

As the title says. It seems to have been in the Precise series from version 5.4.3 on.
Maybe earlier?

I entered some pics in evidence :) at:
http://murga-linux.com/puppy/viewtopic. ... ost#774769

Thanks in advance for any insight. BFN.

musher0

Posted: Thu 01 May 2014, 19:43
by starhawk
This might provide some useful information...

http://llvm.org/

Posted: Thu 01 May 2014, 20:41
by mikeb
Are you suggesting puppy has become a fat pile of bollocks with the help of ubuntu?

mike

Posted: Thu 01 May 2014, 21:39
by musher0
@starhawk
Sure. There's also the explanation at the Linux from Scratch site. I've been running
this Puppy Precise 5.7.1 without it for the past 24 hours, and it isn't crashing. So...
what's the point in including this fatso library if it's not needed in regular day-to-day
Puppy-ing?

Putting my question another way: is there any program or utility in the daily operations of
a Puppy that needs live compiling? If so, ok, let's leave the fatso in. Otherwise, out it
goes!

In the docs you mention, it says that's it's a better, faster compiler than gcc. So the
question now becomes: why is it not in the devx instead? And if what the authors say is
true, why do we have both gcc and LLVM in the Puppy?

@mikeb.
Yeah, I am! :twisted: Remove it and you gain +/- 12 Mg in the iso.

BFN.

musher0

Posted: Thu 01 May 2014, 22:12
by mikeb
libsambaclient seemed another fat dinosaur (samba no longer uses it I believe)... but its linked to mplayer (or was) a recompile got rid of that one saving 5MB+

mike

/usr/lib/libLLVM-3.0.so.1 (20MB)

Posted: Fri 02 May 2014, 00:04
by shinobar
Precise Puppy 571JP (Japanese edition) removes this with the nouveau and some drivers. Instead, optional nvidia drivers are available at
http://shino.pos.to/party/bridge.cgi?pu ... 5/precise/.

# ls -1 /usr/lib/dri/*.so | while read F;do ldd $F | grep -q libLLVM && echo $F; done
/usr/lib/dri/nouveau_dri.so
/usr/lib/dri/r300_dri.so
/usr/lib/dri/r600_dri.so
/usr/lib/dri/swrast_dri.so

See also:
http://murga-linux.com/puppy/viewtopic. ... &start=137
http://murga-linux.com/puppy/viewtopic. ... &start=150

Posted: Fri 02 May 2014, 01:18
by musher0
Haha, the cat is coming out of the bag! :twisted:
Thanks, mikeb; thanks, shinobar!

Posted: Sat 03 May 2014, 00:21
by gcmartin
REMOVE by me. Probably would have been taken wrongly in substance.

Posted: Wed 07 May 2014, 14:24
by technosaurus
llvm can be used by various programs to provide JIT compilation of scripted languages (similar to the difference between python's .py and .pyo files) Lightspark uses it for actionscript3, some webkit variant was using it for javascript JIT, vmkit is an llvm base java engine

btw libICU can be configured to compile down to <1/2Mb

Posted: Fri 09 May 2014, 16:12
by musher0
technosaurus wrote:llvm can be used by various programs to provide JIT compilation of scripted languages (similar to the difference between python's .py and .pyo files) Lightspark uses it for actionscript3, some webkit variant was using it for javascript JIT, vmkit is an llvm base java engine

btw libICU can be configured to compile down to <1/2Mb
Thanks, technosaurus. Finally someone knows! :)

Posted: Tue 13 May 2014, 06:06
by Ibidem
Most FOSS OpenGL drivers use LLVM in the backend, to compile shaders and so on.

Posted: Tue 13 May 2014, 09:50
by musher0
Thanks, Ibidem.

It is also needed by abiword and gnumeric, at least those versions used in pemasu's
UpupRaring-3.9.9.2. Otherwise, the gtk theme is not used, and those programs appear
with black context and white characters only.

In gnumeric, it is particularly serious. If the libLLVM library is not present, templates and
sheets become unreadable, because the fg and bg both are shades of dark grey, and the
function to select the fg color (for the characters and digits) and the bg color (for the
background of the sheet) is inoperative.

BFN.

musher0

Posted: Tue 13 May 2014, 12:43
by mikeb
Is it me or does all this sound like utter geekoid crap.......

'compiler needs including for video drivers and gtk.... '

this gets funnier by the week.....

sprout farming has its appeal too

mike

Posted: Tue 13 May 2014, 12:46
by mikeb
Oh yes I remember now...in slax 7 there was this terrible gtk theme...it made everything laggy and and ultimately unuseable...I wonder if thats the one in question... not an easy bitch to remove either...more use it or else strong arm stuff...

is the ultimate aim of linux devs to make a system thats so unuseable that microsoft would be proud and yet killing themselves laughing at the same time ?

Mike

Posted: Tue 13 May 2014, 15:59
by musher0
Hey, ho, don't shoot me !! I'm only the one who spotted the fatso!!

My hunch is that it's used to theme gtk-3 programs running on an gtk-2 system.

Posted: Tue 13 May 2014, 18:37
by mikeb
Hey, ho, don't shoot me !! I'm only the one who spotted the fatso!!
no intention to :)

Good to have a rant now and then .... feel free to have one on any threads I happen to bring up pet hates :D

Anyway we do seem to share the same Bloat Spotters...perhaps we are related ?

mike

Posted: Thu 29 May 2014, 22:01
by musher0
mikeb wrote:libsambaclient seemed another fat dinosaur (samba no longer uses it I believe)... but its linked to mplayer (or was) a recompile got rid of that one saving 5MB+

mike
Hi, mikeb.

Back to this one. Re-reading it, it's not so clear anymore... Which one needs to be
recompiled: libsambaclient or mplayer?

I ask because, since I relayed your info on the French side of the forum, some members
have been quite interested in the idea of getting Puppy to shed 5 Mgs!

A couple of derivative questions, if I may:
you know this because you re-compiled the bugger, right? Which could mean that
lazybones such as myself could benefit from your re-compilation? :)

Thanks in advance for filling us in.

BFN.

musher0

Posted: Fri 30 May 2014, 10:46
by mikeb
Funny world...I am actually compiling it at the moment.... doing a build with the skins gmplayer as I slightly hate gnome-mplayer and its plugins.

Yes i gave my build to rerwin for his consideration for the Lucid updates but don't think he used it.

Both it and the shared ffmpeg are not lucid versions but later so it took a bit of finding to get the sources originally used. I also left out such as libdirectfb . The idea was to make a drop in but slimmer replacement. I also did gnome-mplayer though thats a funny one and had to use a slightly later version as the original sources been removed....that one might simply benefit from a newer version if you can get it to build...i disable crap like gnome dependancies.

I might still have the results up on dropbox so will post links back here when I take a look...watch this space.

mike

Posted: Fri 30 May 2014, 21:32
by musher0
Thanks, mikeb! TWUL.

Posted: Fri 30 May 2014, 22:19
by mikeb
Info in PM

what does TWUL mean?????

mike