Thread overview
[Bug 63] c++ compiler built even when --disable-bootstrap is given
Jun 16, 2013
Iain Buclaw
Jun 14, 2014
Ketmar Dark
Jul 06, 2014
Iain Buclaw
Feb 02, 2015
Iain Buclaw
Feb 02, 2015
Timo Sintonen
Feb 02, 2015
Iain Buclaw
June 16, 2013
http://bugzilla.gdcproject.org/show_bug.cgi?id=63

--- Comment #1 from Iain Buclaw <ibuclaw@gdcproject.org> 2013-06-16 10:28:29 UTC ---
This is gcc configure scripts related.  Have tweaked the config-lang.in scripts so that the dependency on c++ is explicitly as a stage1 language only.  However it looks like the gcc ./configure adds it into enabled_languages regardless...

Though not entirely convinced that not building c++ would save a huge amount of time in the overall build in the whole grand scheme of things either.

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
June 14, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=63

Ketmar Dark <ketmar@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ketmar@ketmar.no-ip.org

--- Comment #2 from Ketmar Dark <ketmar@ketmar.no-ip.org> ---
(In reply to Brad Roberts from comment #0)
> I'd really like that time back.
you can get it with the following patch.
WARNING! only use it with "--disable-bootstrap --enable-languages=d"!

diff --git a/gcc/d/config-lang.in b/gcc/d/config-lang.in index 0a76bea..68b2ada 100644
--- a/gcc/d/config-lang.in
+++ b/gcc/d/config-lang.in
@@ -30,7 +30,7 @@ target_libs="target-libphobos target-zlib
target-libbacktrace"

 # The D frontend is written in C++, so we need to build the C++
 # compiler during stage 1.
-lang_requires_boot_languages=c++
+#lang_requires_boot_languages=c++

 gtfiles="\$(srcdir)/d/d-builtins.cc \$(srcdir)/d/d-lang.cc
\$(srcdir)/d/d-lang.h"

-- 
You are receiving this mail because:
You are watching all bug changes.


July 06, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=63

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Brad, I can add a --running-autotester switch to the setup-gcc script that enables this behaviour.

Are you in favour?

-- 
You are receiving this mail because:
You are watching all bug changes.


February 02, 2015
http://bugzilla.gdcproject.org/show_bug.cgi?id=63

--- Comment #4 from Iain Buclaw <ibuclaw@gdcproject.org> ---
I think it should now be possible to remove this.

C++ is now *the* boot language for gcc.  So by that measure it *must* be automatically enabled in bootstrapped builds.

Let me test...

-- 
You are receiving this mail because:
You are watching all bug changes.


February 02, 2015
http://bugzilla.gdcproject.org/show_bug.cgi?id=63

Timo Sintonen <t.sintonen@luukku.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |t.sintonen@luukku.com

--- Comment #5 from Timo Sintonen <t.sintonen@luukku.com> ---
Not fully releted but...
When building a cross compiler, c++ for target is also built. The time is not
the issue there but c++ and its runtime library may not build in all systems.
If they build properly they may not work anyway. In addition, c++ runtime
requires libc for target to be installed before it is possible to start
compiling gcc.

-- 
You are receiving this mail because:
You are watching all bug changes.


February 02, 2015
http://bugzilla.gdcproject.org/show_bug.cgi?id=63

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Iain Buclaw <ibuclaw@gdcproject.org> ---
It is related.  The configure script for GCC seems to have a slightly odd logic for which languages it should enable in the stage1 phase.  It seems silly to me that lang_requires_boot_languages should even be considered in --disable-bootstrap builds, but hey ho...

The fix Brad has been waiting for - I can give you back that time when we meet at Dconf this year. :)

https://github.com/D-Programming-GDC/GDC/commit/10335c0c00b5b2d2a3c31eb7bf6c2ce7b5e7012b

-- 
You are receiving this mail because:
You are watching all bug changes.