View mode: basic / threaded / horizontal-split · Log in · Help
March 25, 2013
GDC install guide
The install guide at:

http://gdcproject.org/wiki/Installation

is wrong/outdated, at least for Ubuntu.

Several issues:

# apt-get source gcc-4.7     # this installs the GCC tarballs in 
/usr/src/gcc-4.7/gcc-4.7-4.7.2

is not true. The sources are installed in the current directory, 
not in /usr/src, at least for regular users.

# vi debian/rules.patch      # search for the line reads 
"debian_patches += gcc-d-lang", and comment it out

there is no such file as debian/rules.patch, only a 
debian/gdc.preinst, which has no patch line inside.

# ./update-gcc.sh /usr/src/gcc-4.7/gcc-4.7-4.7.2/src

there is no script update-gcc.sh

Finally, the script gcc-setup.sh has as sole help:

Usage: ./setup-gcc.sh [OPTION] PATH

which is quite cryptic. [OPTION] field should be... optional, 
however when called with:

./setup-gcc.sh ~/gcc/gcc-defaults-1.120ubuntu8

it says:

error: invalid option 
'/home/e_ftotir/gcc/gcc-defaults-1.120ubuntu8'

Thanks.
March 25, 2013
Re: GDC install guide
On 25 March 2013 11:24, eles <eles@eles.com> wrote:

> The install guide at:
>
> http://gdcproject.org/wiki/**Installation<http://gdcproject.org/wiki/Installation>
>
> is wrong/outdated, at least for Ubuntu.
>
> Several issues:
>
> # apt-get source gcc-4.7     # this installs the GCC tarballs in
> /usr/src/gcc-4.7/gcc-4.7-4.7.2
>
> is not true. The sources are installed in the current directory, not in
> /usr/src, at least for regular users.
>
> # vi debian/rules.patch      # search for the line reads "debian_patches
> += gcc-d-lang", and comment it out
>
> there is no such file as debian/rules.patch, only a debian/gdc.preinst,
> which has no patch line inside.
>
> # ./update-gcc.sh /usr/src/gcc-4.7/gcc-4.7-4.7.**2/src
>
> there is no script update-gcc.sh
>
> Finally, the script gcc-setup.sh has as sole help:
>
> Usage: ./setup-gcc.sh [OPTION] PATH
>
> which is quite cryptic. [OPTION] field should be... optional, however when
> called with:
>
> ./setup-gcc.sh ~/gcc/gcc-defaults-1.**120ubuntu8
>
> it says:
>
> error: invalid option '/home/e_ftotir/gcc/gcc-**defaults-1.120ubuntu8'
>
> Thanks.
>



The only exception to Debian/Ubuntu is that they are multiarch systems, and
you need to tell vanilla GCC where to find the library/headers.

Other than that, the general installation goes fine.


-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';
Top | Discussion index | About this forum | D home