LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Closed Thread
  Search this Thread
Old 09-06-2016, 09:51 AM   #1576
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106

Quote:
Originally Posted by atelszewski View Post
Hi,

LLVM 3.9 released.
Yes... as already indicated last week.
 
Old 09-06-2016, 10:07 AM   #1577
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Rep: Reputation: Disabled
Hi,

Quote:
Originally Posted by Alien Bob View Post
Yes... as already indicated last week.
Bummer. At least I didn't post it twice ;-)

--
Best regards,
Andrzej Telszewski
 
Old 09-06-2016, 02:19 PM   #1578
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Old men are allowed and forgiven to forget.
 
Old 09-06-2016, 03:49 PM   #1579
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
Hello.

Not a request per se, but does the team have any thoughts on LTO builds (maybe when gcc 6.X lands on -current) ?

I have enabled lto for quite some months now and everything seems to work fine (at least kde5, utilities from coreutils / utilinux, git, vim, and everything in general that you use in every day desktop use and programming) but i do not know if the benefits justify the extra load that Pat's build server will get and extra burden of testing.

An inaccurate and very layman's description of LTO is that instead of producing an object file, the compiler saves in .o files its internal representation of the code. Then at the time of the link, it reads these files and compiles the whole unit as one so it can optimize far better than it can for just one file at a time. This results in better code that performs quicker and the side benefit of less disk consumption (although with today's disks i don't think anyone cares for that).

The cons of LTO are:

* Larger compile times (From 20% to 2-3 times larger and in extreme cases up to 5-6 times larger).
* Significantly more amounts of memory needed for the link stage (firefox needs about 8G memory).
* Some programs cannot be compiled or are miscompiled.
* Messed debugging (there is work being done but at this point debugging info cannot be reliably used together with LTO).

I did a sloppy/naive test of compiling the slackware tree without and with lto and measure the differences. Unfortunately i don't know how to reliable measure peak memory usage so i only measured compile times and disk space. Besides very few programs that didn't compile out even without lto and kde that i left because it would take a lot of time, i compiled the rest of the tree. I noticed the following things:

For the majority of programs the compile time difference is negligible because they are small and not complex enough. If we read a statistic with percentages, we will read large numbers like 50% more time or 100% more time, etc but in truth the difference is a few seconds. For example, hdparm needed 91% more time but in practice it went from 1sec to 1.91sec . Many other libs and sys apps went from 15-17secs to 23-25secs, so unless we are talking about a full slackware rebuild where these differences would add up, then the difference in compile time isn't much.

Some examples of notable programs are:
(the time is not so accurate because it is whole slackbuild run so it also contains the untar and makepkg steps)
Code:
a/coreutils  1min:08sec -> 1:50
a/util-linux 1:13 -> 1:34
d/binutils   3:15 -> 4:05
d/git        3:46 -> 3:56
l/glib2      1:10 -> 1:56
l/glibc     12:02 -> 12:33
l/gtk+3      6:07 -> 8:39
l/ncurses    1:46 -> 2:43
l/qt 1h:26min:07sec -> 1h:27min:28sec (i would expect way more than only 1min difference here. i don't know why it is that)
Large time differences and weird results:
Code:
d/cmake        3:33 -> 8:27
d/ruby         5:03 -> 3:57
l/akonadi      2:37 -> 07:05
l/virtuoso-ose 2:11 -> 10:21
n/NetwManager  2:54 -> 6:48
n/samba       12:12 -> 28:44
x/mesa        10:08 -> 21:44
Disk space:
Code:
/usr/bin 742588K -> 703932K
/usr/lib64 2380320K -> 2272004K
Most significant space differences
libgtkmm-3something 5424K -> 3976K
libaudiofile.a 4456K -> 2372K
cmake 8436K -> 3748K
libavcodec.a 151913K -> 84666K
libavformat.a 49143K -> 34147K
The larger the libraries/binaries a project has the larger the difference will be. Besides firefox and libreoffice which take an enormous amount of time to be built, the difference can be best shown with ffmpeg. The libavcodec library went frm 152M to 84.5M.

Every GCC release contains enormous work on LTO and the optimizer gets better with each release and needs less and less memory. As you can read here, libreoffice needed 18GB memory with gcc 4.9, 12GB with gcc 5.0 and 10GB with gcc 6.0 (all the numbers are highly inflated due to large paralelism of 16 jobs. the needed memory would be smaller with eg -j4 build).

Programs that cannot be compiled with slack's gcc 5.4.0:

Code:
a/btrfs-progs (can be compiled but segfaults)
a/elilo (cannot be linked when gnuefi is built with lto)
a/pciutils
a/xfsprogs (*)
ap/cdrdao
ap/cdrtools (when i compiled cdrtools-3.02a06, mkisofs would segfault but the version provided with slackware seems to work correctly in my test)
ap/flac
ap/mariadb
d/distcc
d/perl (*)
d/ruby (*)
l/alsa-lib
l/elfutils
l/glibc (**)
l/js185
l/libgphoto2
l/libvpx
l/phonon-gstreamer
l/pulseaudio
n/autofs
n/dhcp
n/libgcrypt
n/php
n/procmail
n/ytalk
x/scim-anthy
x/scim-m17n
x/xorg-server (the problem is in the test directory. everything else builds fine)
x/xf86-video-intel
* I have xfsprogs, perl and ruby in my list that aren't buildable but they built correctly which pleasantly surprised me. I didn't test ruby at all but perl worked fine and xfs seems to work fine (i think it was xfs_db that used to segfault but i don't remember)
** glibc supposedly shouldn't be built with lto because it causes problems with many programs (particularly with libpthread). However, i didn't have any problems with it.

Essentially the most significant burden of LTO for the team is additional testing for programs that appear to have been compiled fine but segfault like btrfs and mkisofs that i mentioned.

How to enable LTO:

With gcc-5 you don't need to pass anything to the linker nor mess with no-fat-objects and other stuff that are mentioned in many guides. You just pass -flto to CFLAGS/CXXFLAGS. For programs that use the assembler or the ar utility to produce static libraries, there is an additional step. They need to use gcc to do the job instead of the normal utilities.

One way to do this is to set some variables (for example "export AS=gcc-as" and "export AR=gcc-ar") to tell the build system what binaries to use but not all build systems honour that. A better way is to symlink gcc's lto library to the binutils plugin directory and then the utilities will automatically use the plugin. For slackware the plugin directory is /usr/lib/bfd-plugins (i use slackware64 but binutils still wanted the path in /usr/lib).
Code:
mkdir -p /usr/lib/bfd-plugins
cd /usr/lib/bfd-plugins
ln -snf ../../libexec/gcc/x86_64-slackware-linux/5.4.0/liblto_plugin.so .
If my post is too large / too irrelevant for the requests thread, please move it to a new thread so not to pollute the thread. Thank you for your time.
 
1 members found this post helpful.
Old 09-07-2016, 04:34 AM   #1580
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,141

Rep: Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315
The 4.4.20 version of the Linux Kernel has been released.

The change log,

https://cdn.kernel.org/pub/linux/ker...angeLog-4.4.20

The source, https://cdn.kernel.org/pub/linux/ker...-4.4.20.tar.xz
 
Old 09-09-2016, 10:32 AM   #1581
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,242

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
Quote:
Originally Posted by dugan View Post
In vim-gvim.SlackBuild,

Code:
--enable-gui=gtk2
should be changed to:

Code:
--enable-gui=gtk3
It's ready. I just tested it.
BUMP
 
Old 09-10-2016, 10:14 AM   #1582
Wiser Slacker
Member
 
Registered: May 2014
Location: germany
Distribution: slackware x86_64 , arm , slackware , AlmaLinux
Posts: 83

Rep: Reputation: Disabled
util-linux 2.28.2 clean compile and newer net-tools patch https://www.linuxquestions.org/quest...4/#post5603371

net-tools will comming soon
 
Old 09-10-2016, 06:10 PM   #1583
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Still not happy, guys?

Congratulations! You made Arch Linux development tree to look rock solid compared with the stable Slackware.

Please have some shame and stop destroying a wonderful distribution, pushing latest crap into!

THIS IS NOT ARCH LINUX! STOP PUSHING CRAP ON SLACKWARE!

Last edited by Darth Vader; 09-10-2016 at 06:16 PM.
 
Old 09-11-2016, 02:46 AM   #1584
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 535

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Quote:
Originally Posted by Darth Vader View Post
Still not happy, guys?
It's very unspecific what you say. According to Pat's post about keep this thread going after 14.2 was released, it seems to be appreciated to keep this thread going.

Franzen
 
Old 09-11-2016, 03:53 AM   #1585
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Rep: Reputation: Disabled
Hi,

I would suggest to ignore Darth's post:
1) I have no idea what he means,
2) don't pollute the thread with pointless BS.

--
Best regards,
Andrzej Telszewski
 
Old 09-11-2016, 04:17 AM   #1586
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by atelszewski View Post
Hi,

I would suggest to ignore Darth's post:
1) I have no idea what he means,
2) don't pollute the thread with pointless BS.

--
Best regards,
Andrzej Telszewski
I mean that the path of pushing the latest crap on distribution was already well tested by Arch Linux.

Basically, Arch Linux is Slackware + PACMAN, their shiny package manager. So, please ask yourself WHY Arch Linux is well know as being so unstable?

I will tell you, sparing you of effort to think five seconds today: because they push the latest crap into.

I believe that those requests for current should mean thoughtfully and well tested requests for packages on Slackware Style (NOT always the latest crap deployed by upstream), while I see just some bitches which already go the Hell of well tested Arch Linux way of destruction.

So, again, thanks you all for destroying the Slackware, from its inner core! Wondering when you are kind to stop that Devil Works...

Last edited by Darth Vader; 09-11-2016 at 06:26 AM.
 
1 members found this post helpful.
Old 09-11-2016, 05:18 AM   #1587
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
I'll just leave this here: http://imgur.com/gallery/VZiO5
 
1 members found this post helpful.
Old 09-11-2016, 06:17 AM   #1588
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
STOP THE MADNESS! TAKE YOUR SLACKWARE BACK!

The path of pushing the latest crap on distribution was already well tested by Arch Linux.

Basically, Arch Linux is Slackware + PACMAN, their shiny package manager. So, please ask yourself WHY Arch Linux is well know as being so unstable?

I will tell you, sparing you of effort to think five seconds today: because they push the latest crap into.

I believe that those requests for current should mean thoughtfully and well tested requests for packages on Slackware Style (NOT always the latest crap deployed by upstream), while I see just some bitches which already go the Hell of well tested Arch Linux way of destruction.

So, again, thanks you all for destroying the Slackware, from its inner core! Wondering when you are kind to stop that Devil Works...

Last edited by Darth Vader; 09-11-2016 at 06:26 AM.
 
Old 09-11-2016, 06:28 AM   #1589
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
@55020, a quick fact...

You know that Slackware 14.2 is basically incompatible with any Radeon proprietary driver? How you comment?

STOP THE MADNESS! TAKE YOUR SLACKWARE BACK!

Last edited by Darth Vader; 09-11-2016 at 06:31 AM.
 
Old 09-11-2016, 06:34 AM   #1590
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by Darth Vader View Post
@55020, a quick fact...

You know that Slackware 14.2 is basically incompatible with any Radeon proprietary driver? How you comment?
I refer you to the reply given in the case of Arkell v. Pressdram (1971).
 
1 members found this post helpful.
  


Closed Thread



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
[SOLVED] how to show the current time at the top in the current shell Always ? rohitchauhan Linux - General 5 04-09-2014 03:05 PM
Slackware ARM (current) epic mistake: the current Android kernels are kicked out! Darth Vader Slackware 16 08-25-2013 04:36 PM
[SOLVED] setup fails on most current Slackware-current March 26, 2012 AlleyTrotter Slackware 15 04-09-2012 06:05 AM
Observation of Feb -current vs March -current Hangaber Slackware 14 03-12-2010 08:26 AM
cvs diff the most current and second last current version powah Linux - Software 1 03-30-2006 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:21 PM.

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