www.digitalmars.com         C & C++   DMDScript  

D.gnu - GDC 4.7 Error Build

reply "Mildi" <mildi06 gmail.com> writes:
GDC 4.7
Download https://github.com/D-Programming-GDC/GDC
GCC 4.7.1
Download ftp://ftp.fu-berlin.de/unix/languages/gcc/

../gcc-4.7.1/configure --enable-languages=d --disable-bootstrap \
         --prefix=/opt/gdc \
         --with-bugurl="http://gdcproject.org/bugzilla" \
         --enable-checking=yes
not error

make -j2 2>&1 | tee build.log

The last lines of the build log with an error

/home/mildi/D_GDC4.7/gdc/objdir/./prev-gcc/g++ 
-B/home/mildi/D_GDC4.7/gdc/objdir/./prev-gcc/ 
-B/opt/gdc2/x86_64-unknown-linux-gnu/bin/ -nostdinc++ 
-B/home/mildi/D_GDC4.7/gdc/objdir/prev-x86_64-unknown-linux-gnu/li
stdc++-v3/src/.libs 
-B/home/mildi/D_GDC4.7/gdc/objdir/prev-x86_64-unknown-linux-gnu/libstdc+
-v3/libsupc++/.libs 
-I/home/mildi/D_GDC4.7/gdc/objdir/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_
4-unknown-linux-gnu 
-I/home/mildi/D_GDC4.7/gdc/objdir/prev-x86_64-unknown-linux-gnu/
ibstdc++-v3/include 
-I/home/mildi/D_GDC4.7/gdc/gcc-4.7.1/libstdc++-v3/libsupc++ 
-L/home/mildi/D_GDC4.7/gdc/objdir/prev-x86_64-unknown-linux-gnu/li
stdc++-v3/src/.libs 
-L/home/mildi/D_GDC4.7/gdc/objdir/prev-x86_64-unknown-linux-gnu/libstdc+
-v3/libsupc++/.libs 
-DIN_GCC_FRONTEND -g -O2 -gtoggle -DIN_GCC -fno-exceptions 
-fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual 
-DHAVE_CONFIG_H -I. -Id -I../../gcc-4.7.1/gcc 
-I../../gcc-4.7.1/gcc/d -I../../gcc-4.7.1/gcc/../include 
-I../../gcc-4.7.1/gcc/../libcpp/include 
-I../../gcc-4.7.1/gcc/../libdecnumber 
-I../../gcc-4.7.1/gcc/../libdecnumber/bid -I../libdecnumber -I. 
-Id -I../../gcc-4.7.1/gcc -I../../gcc-4.7.1/gcc/d 
-I../../gcc-4.7.1/gcc/../include 
-I../../gcc-4.7.1/gcc/../libcpp/include 
-I../../gcc-4.7.1/gcc/../libdecnumber 
-I../../gcc-4.7.1/gcc/../libdecnumber/bid -I../libdecnumber 
-I../../gcc-4.7.1/gcc/d -I../../gcc-4.7.1/gcc/d/dfrontend -Id 
-Wno-missing-braces -Wno-format -Wno-deprecated -Wstrict-aliasing 
-DGCC_SAFE_DMD=1 -o d/d-lang.glue.o -c 
../../gcc-4.7.1/gcc/d/d-lang.cc
../../gcc-4.7.1/gcc/d/d-lang.cc: In function ‘void 
d_write_global_declarations()’:
../../gcc-4.7.1/gcc/d/d-lang.cc:641:31: error: 
‘finalize_compilation_unit’ was not declared in this scope
make[3]: *** [d/d-lang.glue.o] Ошибка 1
make[3]: *** Ожидание завершения 
заданий...
rm gcc.pod
make[3]: Выход из каталога 
/home/mildi/D_GDC4.7/gdc/objdir/gcc'
make[2]: *** [all-stage2-gcc] Ошибка 2
make[2]: Выход из 
каталога/home/mildi/D_GDC4.7/gdc/objdir'
make[1]: *** [stage2-bubble] Ошибка 2
make[1]: Выход из каталога 
`/home/mildi/D_GDC4.7/gdc/objdir'
make: *** [all] Ошибка 2
Jul 30 2012
parent reply "jerro" <a a.com> writes:
It looks like you are using the branch master of GDC. To use gcc 
4.7.1 you should use the branch gdc-4.7. You can download it here:

https://github.com/D-Programming-GDC/GDC/tree/gdc-4.7

Or clone it with:

git clone -b gdc-4.7 git://github.com/D-Programming-GDC/GDC.git

The master branch of GDC only works with recent gcc 4.8 snapshots.
Jul 30 2012
next sibling parent "Mildi" <mildi06 gmail.com> writes:
On Tuesday, 31 July 2012 at 00:44:36 UTC, jerro wrote:
 It looks like you are using the branch master of GDC. To use 
 gcc 4.7.1 you should use the branch gdc-4.7. You can download 
 it here:

 https://github.com/D-Programming-GDC/GDC/tree/gdc-4.7

 Or clone it with:

 git clone -b gdc-4.7 git://github.com/D-Programming-GDC/GDC.git

 The master branch of GDC only works with recent gcc 4.8 
 snapshots.
Thank you! I cloned the instructions on the http://www.gdcproject.org/wiki/Installation It seems there is not enough clarification about the versions of the GCC and the branches repository. In branch download a patch for GCC4.7.x. present.
Jul 31 2012
prev sibling parent "Daniel Harper" <djharperuk gmail.com> writes:
On Tuesday, 31 July 2012 at 00:44:36 UTC, jerro wrote:
 It looks like you are using the branch master of GDC. To use 
 gcc 4.7.1 you should use the branch gdc-4.7. You can download 
 it here:

 https://github.com/D-Programming-GDC/GDC/tree/gdc-4.7

 Or clone it with:

 git clone -b gdc-4.7 git://github.com/D-Programming-GDC/GDC.git

 The master branch of GDC only works with recent gcc 4.8 
 snapshots.
Oh god thank you ever so much, I've been pulling my hair out over this. The instructions on the official website may need to be updated regarding this because it's not really clear...
Sep 12 2012