Snapping LDC (LLVM-based D compiler)

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Mon Aug 29 00:01:01 UTC 2016


On 28.08.2016 23:21, Joseph Rushton Wakeling wrote:
> Just to make sure I don't head off in completely the wrong direction, is there a
> straightforward (or at least, advisable) way to include gcc and the C standard
> libraries in a snap, perhaps deriving from existing Ubuntu packages?  I imagine
> this doesn't have a ready solution yet, but just to make sure...

OK, I discovered `stage-packages` ;-)  This is turning into a little bit of a 
rabbit warren, but looks promising: including gcc and libc6 got me to the point 
where the complaints have moved from the availability of gcc to:

     /snap/ldc2/x1/usr/bin/ld: cannot find crt1.o: No such file or directory
     /snap/ldc2/x1/usr/bin/ld: cannot find crti.o: No such file or directory
     /snap/ldc2/x1/usr/bin/ld: cannot find -lrt
     /snap/ldc2/x1/usr/bin/ld: cannot find -ldl
     /snap/ldc2/x1/usr/bin/ld: cannot find -lpthread
     /snap/ldc2/x1/usr/bin/ld: cannot find -lm
     /snap/ldc2/x1/usr/bin/ld: cannot find -lc
     /snap/ldc2/x1/usr/bin/ld: cannot find crtn.o: No such file or directory

As far as I can see the libraries are installed, but presumably something is 
missing from various bits of config to tell gcc where to look for them.

No doubt I'll be able to work it out after sleeping on it ... :-P




More information about the Snapcraft mailing list