Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 06 May 2016, 14:58
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
What does the humongous /usr/lib/libLLVM.so.3 do?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [25 Posts]   Goto page: Previous 1, 2
Author Message
mikeb


Joined: 23 Nov 2006
Posts: 11071

PostPosted: Tue 13 May 2014, 14:37    Post subject:  

Quote:
Hey, ho, don't shoot me !! I'm only the one who spotted the fatso!!

no intention to Smile

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

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

mike
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 7443
Location: Gatineau (Qc), Canada

PostPosted: Thu 29 May 2014, 18:01    Post subject:  

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? Smile

Thanks in advance for filling us in.

BFN.

musher0

_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink
Back to top
View user's profile Send private message Visit poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 11071

PostPosted: Fri 30 May 2014, 06:46    Post subject:  

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
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 7443
Location: Gatineau (Qc), Canada

PostPosted: Fri 30 May 2014, 17:32    Post subject:  

Thanks, mikeb! TWUL.
_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink
Back to top
View user's profile Send private message Visit poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 11071

PostPosted: Fri 30 May 2014, 18:19    Post subject:  

Info in PM

what does TWUL mean?????

mike
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 7443
Location: Gatineau (Qc), Canada

PostPosted: Sat 31 May 2014, 11:09    Post subject:  

Talk With U Later Smile
_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink
Back to top
View user's profile Send private message Visit poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 11071

PostPosted: Sat 31 May 2014, 17:53    Post subject:  

PM = private message...juicy files in there.

I got the skins build done ok.... but had to use mplayers swscale rather than the shared one ??!!...

Note lucids mplayer can pretty much work on 4.12 if glibc is slightly updated to 2.7 ....

I digress sort of

mike
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 2280
Location: Worcestershire, UK

PostPosted: Tue 01 Dec 2015, 15:59    Post subject: libLLVM and slackware-current
Subject description: how to avoid including it?
 

I have been building slacko-current based on slackware-current - all is working pretty good except I have the unsatisfied dependencies shown below.

The slackware-current llvm package is a humongous 54MB so I really don't want to have to include it if at all possible in a 250MB iso.....it's absence doesn't seem to be causing many problems except 01micko reported:
Quote:
GLX isn't working.. Aha! here's why..
Code:
[   162.762] (EE) AIGLX error: dlopen of /usr/lib/xorg/modules/dri/nouveau_dri.so failed (libLLVM.so.3.7: cannot open shared object file: No such file or directory)

Anybody got any suggestions? - like maybe making a stub libLLVM which satisfies the dependencies in the smallest way possible?

Cheers
peebee

/usr/lib/d3d/d3dadapter9.so.1.0.0:
libLLVM.so.3.7 => not found
/usr/lib/dri/gallium_drv_video.so:
libLLVM.so.3.7 => not found
/usr/lib/libXvMCnouveau.so.1.0.0:
libLLVM.so.3.7 => not found
/usr/lib/libXvMCr600.so.1.0.0:
libLLVM.so.3.7 => not found
/usr/lib/libxatracker.so.2.2.0:
libLLVM.so.3.7 => not found
/usr/lib/vdpau/libvdpau_nouveau.so.1.0.0:
libLLVM.so.3.7 => not found
/usr/lib/vdpau/libvdpau_r300.so.1.0.0:
libLLVM.so.3.7 => not found
/usr/lib/vdpau/libvdpau_r600.so.1.0.0:
libLLVM.so.3.7 => not found
/usr/lib/vdpau/libvdpau_radeonsi.so.1.0.0:
libLLVM.so.3.7 => not found
/usr/lib/xorg/modules/dri/kms_swrast_dri.so:
libLLVM.so.3.7 => not found
/usr/lib/xorg/modules/dri/nouveau_dri.so:
libLLVM.so.3.7 => not found
/usr/lib/xorg/modules/dri/r300_dri.so:
libLLVM.so.3.7 => not found
/usr/lib/xorg/modules/dri/r600_dri.so:
libLLVM.so.3.7 => not found
/usr/lib/xorg/modules/dri/radeonsi_dri.so:
libLLVM.so.3.7 => not found
/usr/lib/xorg/modules/dri/swrast_dri.so:
libLLVM.so.3.7 => not found
/usr/lib/xorg/modules/dri/vmwgfx_dri.so:
libLLVM.so.3.7 => not found
/usr/lib/xorg/modules/drivers/vmware_drv.so:
libLLVM.so.3.7 => not found
libLLVM.so.3.7 => not found

_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 8469
Location: qld

PostPosted: Tue 01 Dec 2015, 16:56    Post subject:  

If you check out slackware-current changelog, on November 24 LLVM was rebuilt with clang compiler - which makes sense.

Code:
+--------------------------+
Tue Nov 24 03:31:43 UTC 2015
a/dbus-1.10.4-i586-1.txz: Upgraded.
a/kmod-22-i586-1.txz: Upgraded.
a/lilo-24.2-i586-1.txz: Upgraded.
a/sysvinit-scripts-2.0-noarch-23.txz: Rebuilt.
       rc.6: Don't clear /var/lock/subsys.
       rc.S: Clear /var/lock/subsys here instead, so that the directory will be
       cleared out on startup after a power failure.
       rc.sysvinit: Run kill scripts for the current, not previous, runlevel.
       Thanks to Sl4ck3ver.
a/upower-0.9.23-i586-2.txz: Rebuilt.
ap/cups-filters-1.0.76-i586-2.txz: Rebuilt.
ap/lm_sensors-3.4.0-i586-1.txz: Upgraded.
       Thanks to Robby Workman.
d/intltool-0.51.0-i586-2.txz: Rebuilt.
       Fix warnings with perl-5.22.0. Thanks to Stuart Winter.
d/llvm-3.7.0-i586-2.txz: Rebuilt.
       Build using cmake and clang. This results in a smaller package size, fixes
       compiler-rt, and changes the shared library name from libLLVM-3.7.so to
       libLLVM.so.3.7.0 (which requires recompiling any binaries linked to libLLVM).
       Thanks to Heinz Wiesinger.


More info on LLVM

The Xorg drivers don't seem to have been built with clang (well they could be but I don't see it in the changelog) however from the same day MESA is rebuilt. Maybe Patrick will rebuild Xorg and drivers linked against LLVM (with clang compiler) before release. Hard to say for sure but it would make sense and make those packages smaller.

Code:
x/mesa-11.0.6-i586-1.txz: Upgraded.
       Patched to find the new LLVM library.
       Thanks to Heinz Wiesinger.


This explains why GLX fails.

If you crack open the LLVM package you see that most of the bloat is executables in /usr/bin. To my way of thinking, these will be unnecessary for our purposes so can be discarded in a package template in woof (I'll attach one). The actual libLLVM.so.3.7.0 is ~33M. All the lib*.a and lib*.la will go to devx removing more bloat. I'm guessing we can get compressed size on disk to around 10 to 15MB (a real guess!).

Perhaps an optional 'clang' template could be made putting clang and friends on the devx. I'll think about that when I migrate to -current.

Cheers!

------------------------------------------------------------------------------------

Usage for the packages-templates:

extract the attached package in the woof tree
add the following to your specs file

yes|llvm-cut|llvm|exe,dev,doc,nls

(I have no idea if more deps are needed. Before you do this just add llvm to your running setup and reboot. see if GLX works and check /var/log/xorg.0.log for errors)

run ./1download an llvm will be downloaded
run ./2createpackages and choose llvm-cut

Check that you have a sane llvm-cut in packages-slacko

build the iso

---------------------------------------------------------------------------------------

UPDATE:

from the slackware-current LLVM package I ran the doinst.sh (to create the symlinks) , deleted everything except /usr/lib (which is what the template does) deleted all the *.la, *.a libs (which go to devx) and repackaged as llvm-3.7.0-i586.pet, weighing in at 12MB (xz compressed). Size on disk is ~57MB.

I then booted into my slackocurrent install and installed the pet.

Results are good:

Code:
# glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
302 frames in 5.0 seconds = 60.249 FPS
300 frames in 5.0 seconds = 59.869 FPS
300 frames in 5.0 seconds = 59.889 FPS
# export vblank_mode=0
# glxgears           
ATTENTION: default value of option vblank_mode overridden by environment.
6878 frames in 5.0 seconds = 1375.497 FPS
6884 frames in 5.0 seconds = 1376.691 FPS
6888 frames in 5.0 seconds = 1377.411 FPS
6882 frames in 5.0 seconds = 1376.382 FPS
6881 frames in 5.0 seconds = 1376.085 FPS
# . /etc/DISTRO_SPECS
# echo $DISTRO_FILE_PREFIX-$DISTRO_VERSION
slackocurrent-15.11.9
package-template-llvm.tar
Description 
tar

 Download 
Filename  package-template-llvm.tar 
Filesize  10 KB 
Downloaded  39 Time(s) 

_________________
Puppy Linux Blog - contact me for access
Back to top
View user's profile Send private message Visit poster's website 
peebee


Joined: 21 Sep 2008
Posts: 2280
Location: Worcestershire, UK

PostPosted: Wed 02 Dec 2015, 10:15    Post subject:  

Many thanks Mick - all the above incorporated into next slacko-current - glxgears now working AOK on my nvidia desktop with nouveau driver.
_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 2 [25 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1214s ][ Queries: 12 (0.0216s) ][ GZIP on ]