www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Updated LDC snap package with link-time optimization (LTO) support

reply Joseph Rushton Wakeling <joseph.wakeling webdrake.net> writes:
Revision 3 of the ldc2 snap package is now available in the 
'edge' channel of the snap store.  This still provides LDC 1.1.0, 
but with the following important changes:

   * the backend is provided by LLVM 3.9.1

   * support for LDC's experimental link-time optimization
     (the -flto={full,thin} flag) has been included

I would be very grateful if people could try out these new 
features and report back on whether or not they work (and if any 
problems are encountered, on which distro and version).


-- to install --

This package should be possible to install on Ubuntu 16.04 or 
later, or Ubuntu 14.04, as well as any other distro making 
available a recent version of snapd (2.21 or later):
https://snapcraft.io/docs/core/install

Once snapd is installed (on Ubuntu or Debian, `sudo apt install 
snapd`), the ldc2 snap can be installed with:

     sudo snap install --classic --edge ldc2

If you already have a version installed, you can upgrade it with:

     sudo snap refresh --classic --edge ldc2

Note, if this version breaks something for you, you can downgrade 
to revision 2 with:

     sudo snap refresh --classic --edge --revision=2 ldc2
Feb 09
next sibling parent Joseph Rushton Wakeling <joseph.wakeling webdrake.net> writes:
On Thursday, 9 February 2017 at 17:16:35 UTC, Joseph Rushton 
Wakeling wrote:
 This package should be possible to install on Ubuntu 16.04 or 
 later, or Ubuntu 14.04, as well as any other distro making 
 available a recent version of snapd (2.21 or later):
 https://snapcraft.io/docs/core/install
Looks like there is a linking problem on Ubuntu 14.04 presumably related to ABI incompatibility between the precompiled libphobos and libdruntime and the system toolchain. I'll investigate further and follow up on this with an appropriate fix.
Feb 10
prev sibling parent reply David Nadlinger <code klickverbot.at> writes:
On Thursday, 9 February 2017 at 17:16:35 UTC, Joseph Rushton 
Wakeling wrote:
 This package should be possible to install on Ubuntu 16.04 or 
 later, or Ubuntu 14.04, as well as any other distro making 
 available a recent version of snapd (2.21 or later):
 https://snapcraft.io/docs/core/install
Hmm, for whatever reason, Arch still ships 2.16 by default… Seems to work fine on Ubuntu 16.10, though. — David
Feb 10
next sibling parent reply Daniel Kozak via Digitalmars-d-announce writes:
Dne 10.2.2017 v 17:30 David Nadlinger via Digitalmars-d-announce napsal(a):

 On Thursday, 9 February 2017 at 17:16:35 UTC, Joseph Rushton Wakeling 
 wrote:
 This package should be possible to install on Ubuntu 16.04 or later, 
 or Ubuntu 14.04, as well as any other distro making available a 
 recent version of snapd (2.21 or later):
 https://snapcraft.io/docs/core/install
Hmm, for whatever reason, Arch still ships 2.16 by default… Seems to work fine on Ubuntu 16.10, though. — David
http://www.phoronix.com/scan.php?page=news_item&px=Snaps-v-Flatpaks-Linux-Distros
Feb 10
parent Joseph Rushton Wakeling <joseph.wakeling webdrake.net> writes:
On Friday, 10 February 2017 at 16:37:13 UTC, Daniel Kozak wrote:
 http://www.phoronix.com/scan.php?page=news_item&px=Snaps-v-Flatpaks-Linux-Distros
Please don't ask me to read that dreadful, dreadful website :-\ I have read the blogpost that article summarizes. My own feelings are: * short term up-to-dateness of snapd is probably something that will sort itself out in good time * the 'centralization' of the Ubuntu snap store (which serves all snap users on all distros) isn't really true, but inasmuch as it is a thing, it's an asset: one place of delivery for all snap users, a bunch of automated security checking guaranteed on every upload, no burden to host one's own repository or for the user to need to know about multiple repos ... compare with the flatpak website where every highlighted download is coming from a different site Basically: snaps provide an easy way to define a package that can reach a lot of developers, now, with minimal infrastructural effort required. That seems a worthwhile investment to me.
Feb 10
prev sibling parent Joseph Rushton Wakeling <joseph.wakeling webdrake.net> writes:
On Friday, 10 February 2017 at 16:30:57 UTC, David Nadlinger 
wrote:
 Hmm, for whatever reason, Arch still ships 2.16 by default… 
 Seems to work fine on Ubuntu 16.10, though.
Yes, I'll ping the maintainer about it some time soon. It's possible they were holding off until after the Ubuntu 14.04 rollout of snapd was complete: there are some changes needed for that which might also prove useful for other distros. Glad to hear it works on 16.10, though. Including the LTO ... ?
Feb 10