www.digitalmars.com         C & C++   DMDScript  

D.gnu - GDC install guide

reply "eles" <eles eles.com> writes:
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.
Mar 25 2013
parent Iain Buclaw <ibuclaw ubuntu.com> writes:
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';
Mar 25 2013