Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
May 31, 2013 Re: Building on Ubuntu -- what GCC sources to use? | ||||
---|---|---|---|---|
| ||||
On 05/31/2013 01:05 PM, Joseph Rushton Wakeling wrote: > It seems best to download sources from the Debian repos as they should be patched to work with Debian/Ubuntu, but I thought I'd ask in case anyone has any advice. On a related note -- seems that there is a PPA with reasonably up-to-date GDC included: https://launchpad.net/~ubuntu-toolchain-r/+archive/test |
May 31, 2013 Re: Building on Ubuntu -- what GCC sources to use? | ||||
---|---|---|---|---|
| ||||
On Fri, May 31, 2013 at 01:05:18PM +0200, Joseph Rushton Wakeling wrote: > Hi all, > > So far when building from source on Ubuntu I've always used the gcc-snapshot sources. This is a Bad Habit (it's specifically disallowed by Debian for building actual packages), but was an effective workaround in the period before GCC 4.8 was released. > > Anyway, now that 4.8 _has_ been released, the question is -- where to get the appropriate sources? Ubuntu only has GCC 4.7.3 and earlier in its repositories, gcc-snapshot is now frozen (and probably is best to avoid if possible anyway). > > It seems best to download sources from the Debian repos as they should be patched to work with Debian/Ubuntu, but I thought I'd ask in case anyone has any advice. [...] I thought the usual method is: apt-get source <package> Or is that not working for you for some reason? T -- First Rule of History: History doesn't repeat itself -- historians merely repeat each other. |
May 31, 2013 Re: Building on Ubuntu -- what GCC sources to use? | ||||
---|---|---|---|---|
| ||||
On 05/31/2013 04:30 PM, H. S. Teoh wrote:
> I thought the usual method is: apt-get source <package>
>
> Or is that not working for you for some reason?
The required sources (gcc 4.8) aren't available in the Ubuntu repositories, and obviously neither will 4.9 be when that becomes necessary.
Did you ever manage to get a successful GDC build on Ubuntu/Debian? Would be interested to hear if my description here is useful to you.
|
May 31, 2013 Re: Building on Ubuntu -- what GCC sources to use? | ||||
---|---|---|---|---|
| ||||
On Fri, May 31, 2013 at 05:22:24PM +0200, Joseph Rushton Wakeling wrote: > On 05/31/2013 04:30 PM, H. S. Teoh wrote: > > I thought the usual method is: apt-get source <package> > > > > Or is that not working for you for some reason? > > The required sources (gcc 4.8) aren't available in the Ubuntu repositories, and obviously neither will 4.9 be when that becomes necessary. You could point /etc/apt/sources.list to the Debian repo: deb-src http://ftp.debian.org/debian unstable main The deb-src line only affects 'apt-get source', so it shouldn't affect your other packages. > Did you ever manage to get a successful GDC build on Ubuntu/Debian? Would be interested to hear if my description here is useful to you. Actually, I haven't tried since the last time, when it didn't quite work. I'll see if I can find some time to try it again sometime. I've been quite busy in the past while, so I haven't really done too much D-related stuff. T -- Life is unfair. Ask too much from it, and it may decide you don't deserve what you have now either. |
May 31, 2013 Re: Building on Ubuntu -- what GCC sources to use? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joseph Rushton Wakeling | On Friday, 31 May 2013 at 15:22:33 UTC, Joseph Rushton Wakeling wrote: > On 05/31/2013 04:30 PM, H. S. Teoh wrote: >> I thought the usual method is: apt-get source <package> >> >> Or is that not working for you for some reason? > > The required sources (gcc 4.8) aren't available in the Ubuntu repositories, and > obviously neither will 4.9 be when that becomes necessary. > > Did you ever manage to get a successful GDC build on Ubuntu/Debian? Would be > interested to hear if my description here is useful to you. GDC 4.8 builds without problems on Debian Wheezy. For 4.7, you need something like export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH export CPATH=/usr/include/x86_64-linux-gnu:$CPATH |
June 01, 2013 Re: Building on Ubuntu -- what GCC sources to use? | ||||
---|---|---|---|---|
| ||||
Posted in reply to jerro | On Friday, 31 May 2013 at 23:41:40 UTC, jerro wrote:
> GDC 4.8 builds without problems on Debian Wheezy. For 4.7, you need something like
>
> export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH
> export CPATH=/usr/include/x86_64-linux-gnu:$CPATH
Good to know. Actually I wasn't really asking about Debian builds in general; Teoh and I had some exchanges a while back, because I had succeeded in building on Ubuntu using gcc-snapshot and he wasn't able to replicate my success. So I wanted to check if using the upstream gcc 4.8.1 sources worked for him.
|
Copyright © 1999-2021 by the D Language Foundation