public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Patch RFA: Top-level configure patch: disable go on systems where it doesn't work
@ 2014-10-23  6:30 Ian Taylor
  2014-10-23 15:31 ` Pedro Alves
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Ian Taylor @ 2014-10-23  6:30 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 345 bytes --]

This patch to the top level GCC configure script disables the go
languages on some systems where it is known to not work.  Bootstrapped
on x86_64-unknown-gnu-linux.

OK for mainline?

Ian

2014-10-22  Ian Lance Taylor  <iant@google.com>

* configure.ac: Disable the Go frontend on systems where it is known
to not work.
* configure: Regenerate.

[-- Attachment #2: foo.txt --]
[-- Type: text/plain, Size: 591 bytes --]

Index: configure.ac
===================================================================
--- configure.ac	(revision 216522)
+++ configure.ac	(working copy)
@@ -772,6 +772,13 @@ case "${target}" in
     ;; 
 esac
 
+# Disable the go frontend on systems where it is known to not work.
+case "${target}" in
+*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
+    unsupported_languages="$unsupported_languages go"
+    ;;
+esac
+
 # Disable libgo for some systems where it is known to not work.
 # For testing, you can easily override this with --enable-libgo.
 if test x$enable_libgo = x; then

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work
  2014-10-23  6:30 Patch RFA: Top-level configure patch: disable go on systems where it doesn't work Ian Taylor
@ 2014-10-23 15:31 ` Pedro Alves
  2014-10-23 15:35   ` Ian Taylor
  2014-10-23 18:17 ` Jeff Law
  2014-10-27 15:07 ` Jan-Benedict Glaw
  2 siblings, 1 reply; 15+ messages in thread
From: Pedro Alves @ 2014-10-23 15:31 UTC (permalink / raw)
  To: Ian Taylor, gcc-patches

On 10/23/2014 04:36 AM, Ian Taylor wrote:
> This patch to the top level GCC configure script disables the go
> languages on some systems where it is known to not work.  Bootstrapped
> on x86_64-unknown-gnu-linux.
> 
> OK for mainline?
> 
> Ian
> 
> 2014-10-22  Ian Lance Taylor  <iant@google.com>
> 
> * configure.ac: Disable the Go frontend on systems where it is known
> to not work.
> * configure: Regenerate.
> 

I think it'd be better if knowledge specific to subdirs was pushed down to
the subdirs, rather than being kept in the top level, in the direction
of how we disable libatomic, libsanitizer, etc.  That is, by sourcing
something in the subdir to get back the info top level needs.  With that
in place, changes to the set of supported hosts/targets/configurations
no longer needs to be synchronized between the projects that use
the top-level scripts.

In the specific case of languages, it seems to be we already have such
a script.  E.g.:

  # First scan to see if an enabled language requires some other language.
  # We assume that a given config-lang.in will list all the language
  # front ends it requires, even if some are required indirectly.
  for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
    case ${lang_frag} in

Each config-lang.in sets some output variables.  For the case of a
language being unsupported for some reason, we'd declare that
the lang fragments can specify one more output variable, simply called
"unsupported", and then in in go's gcc/go/config-lang.in, we'd add:

# Disable the go frontend on systems where it is known to not work.
case "${target}" in
*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
    unsupported=true
    ;;
esac

Then back in the top level, near where we do:

        # Disable languages that need other directories if these aren't available.
	for i in $subdir_requires; do
	  test -f "$srcdir/gcc/$i/config-lang.in" && continue
	...

We'd handle the "unsupported" variable.

WDYT?

Thanks,
Pedro Alves

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work
  2014-10-23 15:31 ` Pedro Alves
@ 2014-10-23 15:35   ` Ian Taylor
  2014-10-23 15:41     ` Pedro Alves
  0 siblings, 1 reply; 15+ messages in thread
From: Ian Taylor @ 2014-10-23 15:35 UTC (permalink / raw)
  To: Pedro Alves; +Cc: gcc-patches

On Thu, Oct 23, 2014 at 8:27 AM, Pedro Alves <palves@redhat.com> wrote:
>
> I think it'd be better if knowledge specific to subdirs was pushed down to
> the subdirs, rather than being kept in the top level, in the direction
> of how we disable libatomic, libsanitizer, etc.  That is, by sourcing
> something in the subdir to get back the info top level needs.  With that
> in place, changes to the set of supported hosts/targets/configurations
> no longer needs to be synchronized between the projects that use
> the top-level scripts.
>
> In the specific case of languages, it seems to be we already have such
> a script.  E.g.:
>
>   # First scan to see if an enabled language requires some other language.
>   # We assume that a given config-lang.in will list all the language
>   # front ends it requires, even if some are required indirectly.
>   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
>     case ${lang_frag} in
>
> Each config-lang.in sets some output variables.  For the case of a
> language being unsupported for some reason, we'd declare that
> the lang fragments can specify one more output variable, simply called
> "unsupported", and then in in go's gcc/go/config-lang.in, we'd add:
>
> # Disable the go frontend on systems where it is known to not work.
> case "${target}" in
> *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
>     unsupported=true
>     ;;
> esac
>
> Then back in the top level, near where we do:
>
>         # Disable languages that need other directories if these aren't available.
>         for i in $subdir_requires; do
>           test -f "$srcdir/gcc/$i/config-lang.in" && continue
>         ...
>
> We'd handle the "unsupported" variable.

My patch was, of course, just building on the existing
unsupported_languages support.  You are suggesting that we move that
support from the top level configure script to the language-specific
config-lang.in scripts.

That change sounds fine to me.

Ian

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work
  2014-10-23 15:35   ` Ian Taylor
@ 2014-10-23 15:41     ` Pedro Alves
  2014-10-23 18:27       ` Ian Taylor
  0 siblings, 1 reply; 15+ messages in thread
From: Pedro Alves @ 2014-10-23 15:41 UTC (permalink / raw)
  To: Ian Taylor; +Cc: gcc-patches

On 10/23/2014 04:31 PM, Ian Taylor wrote:
> On Thu, Oct 23, 2014 at 8:27 AM, Pedro Alves <palves@redhat.com> wrote:
>>
>> I think it'd be better if knowledge specific to subdirs was pushed down to
>> the subdirs, rather than being kept in the top level, in the direction
>> of how we disable libatomic, libsanitizer, etc.  That is, by sourcing
>> something in the subdir to get back the info top level needs.  With that
>> in place, changes to the set of supported hosts/targets/configurations
>> no longer needs to be synchronized between the projects that use
>> the top-level scripts.
>>
>> In the specific case of languages, it seems to be we already have such
>> a script.  E.g.:
>>
>>   # First scan to see if an enabled language requires some other language.
>>   # We assume that a given config-lang.in will list all the language
>>   # front ends it requires, even if some are required indirectly.
>>   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
>>     case ${lang_frag} in
>>
>> Each config-lang.in sets some output variables.  For the case of a
>> language being unsupported for some reason, we'd declare that
>> the lang fragments can specify one more output variable, simply called
>> "unsupported", and then in in go's gcc/go/config-lang.in, we'd add:
>>
>> # Disable the go frontend on systems where it is known to not work.
>> case "${target}" in
>> *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
>>     unsupported=true
>>     ;;
>> esac
>>
>> Then back in the top level, near where we do:
>>
>>         # Disable languages that need other directories if these aren't available.
>>         for i in $subdir_requires; do
>>           test -f "$srcdir/gcc/$i/config-lang.in" && continue
>>         ...
>>
>> We'd handle the "unsupported" variable.
> 
> My patch was, of course, just building on the existing
> unsupported_languages support.  You are suggesting that we move that
> support from the top level configure script to the language-specific
> config-lang.in scripts.

AFAICS no target in the top level disables go yet, so we
could IMO do the config-lang.in mechanism without moving any of
the existing target checks for other languages.  It'd be a small
change that way.

As bonus, I think you wouldn't need approval for further changes
to the set of go supported systems (though that may not
change often).

My .02c.

> That change sounds fine to me.

Thanks,
Pedro Alves

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work
  2014-10-23  6:30 Patch RFA: Top-level configure patch: disable go on systems where it doesn't work Ian Taylor
  2014-10-23 15:31 ` Pedro Alves
@ 2014-10-23 18:17 ` Jeff Law
  2014-10-27 15:07 ` Jan-Benedict Glaw
  2 siblings, 0 replies; 15+ messages in thread
From: Jeff Law @ 2014-10-23 18:17 UTC (permalink / raw)
  To: Ian Taylor, gcc-patches

On 10/22/14 21:36, Ian Taylor wrote:
> This patch to the top level GCC configure script disables the go
> languages on some systems where it is known to not work.  Bootstrapped
> on x86_64-unknown-gnu-linux.
>
> OK for mainline?
>
> Ian
>
> 2014-10-22  Ian Lance Taylor  <iant@google.com>
>
> * configure.ac: Disable the Go frontend on systems where it is known
> to not work.
> * configure: Regenerate.
Yea.  This would seem to fall under the obvious rule to me.  Add to that 
your status as "Mr. go", it's a no-brainer. :-)

jeff

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work
  2014-10-23 15:41     ` Pedro Alves
@ 2014-10-23 18:27       ` Ian Taylor
  0 siblings, 0 replies; 15+ messages in thread
From: Ian Taylor @ 2014-10-23 18:27 UTC (permalink / raw)
  To: Pedro Alves; +Cc: gcc-patches

On Thu, Oct 23, 2014 at 8:39 AM, Pedro Alves <palves@redhat.com> wrote:
> On 10/23/2014 04:31 PM, Ian Taylor wrote:
>>
>> My patch was, of course, just building on the existing
>> unsupported_languages support.  You are suggesting that we move that
>> support from the top level configure script to the language-specific
>> config-lang.in scripts.
>
> AFAICS no target in the top level disables go yet, so we
> could IMO do the config-lang.in mechanism without moving any of
> the existing target checks for other languages.  It'd be a small
> change that way.

That sounds like setting up yet another incomplete transition.  I
would strongly prefer to have all languages act the same way.

Ian

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work
  2014-10-23  6:30 Patch RFA: Top-level configure patch: disable go on systems where it doesn't work Ian Taylor
  2014-10-23 15:31 ` Pedro Alves
  2014-10-23 18:17 ` Jeff Law
@ 2014-10-27 15:07 ` Jan-Benedict Glaw
  2014-10-27 15:20   ` Ian Taylor
  2 siblings, 1 reply; 15+ messages in thread
From: Jan-Benedict Glaw @ 2014-10-27 15:07 UTC (permalink / raw)
  To: Ian Taylor; +Cc: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 724 bytes --]

Hi Ian,

On Wed, 2014-10-22 20:36:53 -0700, Ian Taylor <iant@golang.org> wrote:
> This patch to the top level GCC configure script disables the go
> languages on some systems where it is known to not work.  Bootstrapped
> on x86_64-unknown-gnu-linux.

I don't have a clue here, but in what way is Go broken for these
targets? Bacause this patch "breaks" a number of targets mentioned in
contrib/config-list.mk.  Maybe Go didn't work on these, but it at
least built.  Is it FUBAR there? Or just little fixes needed?

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
Signature of:       Warum ist Scheiße braun? ...weil braun schon immer scheiße ist!
the second  :

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work
  2014-10-27 15:07 ` Jan-Benedict Glaw
@ 2014-10-27 15:20   ` Ian Taylor
  2014-10-27 16:03     ` Jan-Benedict Glaw
  0 siblings, 1 reply; 15+ messages in thread
From: Ian Taylor @ 2014-10-27 15:20 UTC (permalink / raw)
  To: Jan-Benedict Glaw; +Cc: gcc-patches

On Mon, Oct 27, 2014 at 8:06 AM, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
>
> On Wed, 2014-10-22 20:36:53 -0700, Ian Taylor <iant@golang.org> wrote:
>> This patch to the top level GCC configure script disables the go
>> languages on some systems where it is known to not work.  Bootstrapped
>> on x86_64-unknown-gnu-linux.
>
> I don't have a clue here, but in what way is Go broken for these
> targets? Bacause this patch "breaks" a number of targets mentioned in
> contrib/config-list.mk.  Maybe Go didn't work on these, but it at
> least built.  Is it FUBAR there? Or just little fixes needed?

I'm not sure exactly what you mean by "breaks," here, as Go is never
in the set of default languages.  It should only break builds that are
using --enable-languages=go.  And for those targets, the Go support
has never worked, so they were already broken.

For Darwin I expect that only small fixes are needed.  This is
http://gcc.gnu.org/PR46986.

For Windows the compiler probably only needs small fixes, but the
libgo build will need a bunch of support, particularly in the syscall
package.  The support for Windows is mostly there in the code, because
it is in the master Go library, but it's not being built for libgo.

For AIX I'm not sure.  It's probably not too much work.

Ian

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work
  2014-10-27 15:20   ` Ian Taylor
@ 2014-10-27 16:03     ` Jan-Benedict Glaw
  2014-10-27 16:57       ` Ian Taylor
  0 siblings, 1 reply; 15+ messages in thread
From: Jan-Benedict Glaw @ 2014-10-27 16:03 UTC (permalink / raw)
  To: Ian Taylor, Joern Rennecke; +Cc: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 1597 bytes --]

On Mon, 2014-10-27 08:19:34 -0700, Ian Taylor <iant@golang.org> wrote:
> On Mon, Oct 27, 2014 at 8:06 AM, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
> > On Wed, 2014-10-22 20:36:53 -0700, Ian Taylor <iant@golang.org> wrote:
> > > This patch to the top level GCC configure script disables the go
> > > languages on some systems where it is known to not work.  Bootstrapped
> > > on x86_64-unknown-gnu-linux.
> >
> > I don't have a clue here, but in what way is Go broken for these
> > targets? Bacause this patch "breaks" a number of targets mentioned in
> > contrib/config-list.mk.  Maybe Go didn't work on these, but it at
> > least built.  Is it FUBAR there? Or just little fixes needed?
> 
> I'm not sure exactly what you mean by "breaks," here, as Go is never
> in the set of default languages.  It should only break builds that are
> using --enable-languages=go.  And for those targets, the Go support
> has never worked, so they were already broken.

With its initial commit in 2010, Joern had Go in the
--enable-languages list in contrib/config-list.mk .  This used to work
(read: build succeeded), even if Go wouldn't work (or wasn't built
silently, I didn't check.)

  With this slight change in behavior, we'd probably fix
config-list.mk to reflect these targets where Go would lead to a
configury failure early.

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
  Signature of:                        Lauf nicht vor Deinem Glück davon:
  the second  :                             Es könnte hinter Dir stehen!

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work
  2014-10-27 16:03     ` Jan-Benedict Glaw
@ 2014-10-27 16:57       ` Ian Taylor
  2014-10-30 14:15         ` [PATCH] config-list.mk: Build Go only for supported targets (was: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work) Jan-Benedict Glaw
  0 siblings, 1 reply; 15+ messages in thread
From: Ian Taylor @ 2014-10-27 16:57 UTC (permalink / raw)
  To: Jan-Benedict Glaw; +Cc: Joern Rennecke, gcc-patches

On Mon, Oct 27, 2014 at 9:02 AM, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
> On Mon, 2014-10-27 08:19:34 -0700, Ian Taylor <iant@golang.org> wrote:
>> On Mon, Oct 27, 2014 at 8:06 AM, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
>> > On Wed, 2014-10-22 20:36:53 -0700, Ian Taylor <iant@golang.org> wrote:
>> > > This patch to the top level GCC configure script disables the go
>> > > languages on some systems where it is known to not work.  Bootstrapped
>> > > on x86_64-unknown-gnu-linux.
>> >
>> > I don't have a clue here, but in what way is Go broken for these
>> > targets? Bacause this patch "breaks" a number of targets mentioned in
>> > contrib/config-list.mk.  Maybe Go didn't work on these, but it at
>> > least built.  Is it FUBAR there? Or just little fixes needed?
>>
>> I'm not sure exactly what you mean by "breaks," here, as Go is never
>> in the set of default languages.  It should only break builds that are
>> using --enable-languages=go.  And for those targets, the Go support
>> has never worked, so they were already broken.
>
> With its initial commit in 2010, Joern had Go in the
> --enable-languages list in contrib/config-list.mk .  This used to work
> (read: build succeeded), even if Go wouldn't work (or wasn't built
> silently, I didn't check.)
>
>   With this slight change in behavior, we'd probably fix
> config-list.mk to reflect these targets where Go would lead to a
> configury failure early.

I think changing config-list.mk is appropriate.

I added this patch to the top-level configure script because someone
observed that it was annoying to configure GCC for Darwin with
--enable-languages=go, have the whole build succeed, and only then
discover that attempts to build Go programs failed with obscure error
messages.  That does not serve our users.

Ian

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH] config-list.mk: Build Go only for supported targets (was: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work)
  2014-10-27 16:57       ` Ian Taylor
@ 2014-10-30 14:15         ` Jan-Benedict Glaw
  2014-10-30 15:20           ` Ian Taylor
  0 siblings, 1 reply; 15+ messages in thread
From: Jan-Benedict Glaw @ 2014-10-30 14:15 UTC (permalink / raw)
  To: Ian Taylor, Joern Rennecke; +Cc: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 3875 bytes --]

On Mon, 2014-10-27 09:33:41 -0700, Ian Taylor <iant@golang.org> wrote:
> On Mon, Oct 27, 2014 at 9:02 AM, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
> > On Mon, 2014-10-27 08:19:34 -0700, Ian Taylor <iant@golang.org> wrote:
> > > On Mon, Oct 27, 2014 at 8:06 AM, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
> > > > On Wed, 2014-10-22 20:36:53 -0700, Ian Taylor <iant@golang.org> wrote:
> > > > > This patch to the top level GCC configure script disables
> > > > > the go languages on some systems where it is known to not
> > > > > work.  Bootstrapped on x86_64-unknown-gnu-linux.
> > With its initial commit in 2010, Joern had Go in the
> > --enable-languages list in contrib/config-list.mk .  This used to
> > work (read: build succeeded), even if Go wouldn't work (or wasn't
> > built silently, I didn't check.)
> >
> >   With this slight change in behavior, we'd probably fix
> > config-list.mk to reflect these targets where Go would lead to a
> > configury failure early.
> 
> I think changing config-list.mk is appropriate.

This updates contrib/config-list.mk to build Go for all but
known-non-working targets. A comment to configure{.ac,} is also added.

Ok for mainline?



2014-10-30  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

./contrib
	* config-list.mk: Don't build Go for certain targets.

./
	* configure.ac: Update comment.
	* configure: Regenerate.



diff --git a/contrib/config-list.mk b/contrib/config-list.mk
index 94884d9..16900e1 100644
--- a/contrib/config-list.mk
+++ b/contrib/config-list.mk
@@ -95,11 +95,24 @@ make-log-dir: ../gcc/MAINTAINERS
 
 $(LIST): make-log-dir
 	-mkdir $@
-	(cd $@ && \
-	../../gcc/configure \
-	--target=$(subst SCRIPTS,`pwd`/../scripts/,$(subst OPT,$(empty) -,$@)) \
-	--enable-werror-always ${host_options} --enable-languages=all,ada,go) \
-	> log/$@-config.out 2>&1
+	(											\
+		cd $@ &&									\
+		echo $@ &&									\
+		TGT=`echo $@ | sed -e 's/^\(.*\)OPT.*$$/\1/'` &&				\
+		TGT=`../../gcc/config.sub $$TGT` &&						\
+		case $$TGT in									\
+			*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)			\
+				ADDITIONAL_LANGUAGES="";					\
+				;;								\
+			*)									\
+				ADDITIONAL_LANGUAGES=",go";					\
+				;;								\
+		esac &&										\
+		../../gcc/configure								\
+			--target=$(subst SCRIPTS,`pwd`/../scripts/,$(subst OPT,$(empty) -,$@))	\
+			--enable-werror-always ${host_options}					\
+			--enable-languages=all,ada$$ADDITIONAL_LANGUAGES;			\
+	) > log/$@-config.out 2>&1
 
 $(LOGFILES) : log/%-make.out : %
 	-$(MAKE) -C $< $(TEST) > $@ 2>&1 && rm -rf $<diff --git a/configure.ac b/configure.ac
index d8262f8..2f0af4a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -769,10 +769,11 @@ case "${target}" in
     ;;
   *-*-lynxos*)
     noconfigdirs="$noconfigdirs ${libgcj}"
-    ;; 
+    ;;
 esac
 
-# Disable the go frontend on systems where it is known to not work.
+# Disable the go frontend on systems where it is known to not work. Please keep
+# this in sync with contrib/config-list.mk.
 case "${target}" in
 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
     unsupported_languages="$unsupported_languages go"
diff --git a/configure b/configure
index 3eab122..d0c760b 100755
--- a/configure
+++ b/configure
@@ -3413,7 +3413,8 @@ case "${target}" in
     ;;
 esac
 
-# Disable the go frontend on systems where it is known to not work.
+# Disable the go frontend on systems where it is known to not work. Please keep
+# this in sync with contrib/config-list.mk.
 case "${target}" in
 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
     unsupported_languages="$unsupported_languages go"

-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
Signature of:              Träume nicht von Deinem Leben: Lebe Deinen Traum!
the second  :

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] config-list.mk: Build Go only for supported targets (was: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work)
  2014-10-30 14:15         ` [PATCH] config-list.mk: Build Go only for supported targets (was: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work) Jan-Benedict Glaw
@ 2014-10-30 15:20           ` Ian Taylor
  2014-10-30 19:43             ` Jan-Benedict Glaw
  0 siblings, 1 reply; 15+ messages in thread
From: Ian Taylor @ 2014-10-30 15:20 UTC (permalink / raw)
  To: Jan-Benedict Glaw; +Cc: Joern Rennecke, gcc-patches

On Thu, Oct 30, 2014 at 6:19 AM, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
>
> This updates contrib/config-list.mk to build Go for all but
> known-non-working targets. A comment to configure{.ac,} is also added.



> diff --git a/contrib/config-list.mk b/contrib/config-list.mk
> index 94884d9..16900e1 100644
> --- a/contrib/config-list.mk
> +++ b/contrib/config-list.mk
> @@ -95,11 +95,24 @@ make-log-dir: ../gcc/MAINTAINERS
>
>  $(LIST): make-log-dir
>         -mkdir $@
> -       (cd $@ && \
> -       ../../gcc/configure \
> -       --target=$(subst SCRIPTS,`pwd`/../scripts/,$(subst OPT,$(empty) -,$@)) \
> -       --enable-werror-always ${host_options} --enable-languages=all,ada,go) \
> -       > log/$@-config.out 2>&1
> +       (                                                                                       \
> +               cd $@ &&                                                                        \
> +               echo $@ &&                                                                      \
> +               TGT=`echo $@ | sed -e 's/^\(.*\)OPT.*$$/\1/'` &&                                \
> +               TGT=`../../gcc/config.sub $$TGT` &&                                             \

This isn't necessary.  The OPT bits will be matched by the * at the
end of the cases anyhow.  You can just write
                 case $@ in

This is OK with that change.

Thanks for doing it.

Ian

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] config-list.mk: Build Go only for supported targets (was: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work)
  2014-10-30 15:20           ` Ian Taylor
@ 2014-10-30 19:43             ` Jan-Benedict Glaw
  2014-10-31  0:44               ` Ian Taylor
  0 siblings, 1 reply; 15+ messages in thread
From: Jan-Benedict Glaw @ 2014-10-30 19:43 UTC (permalink / raw)
  To: Ian Taylor; +Cc: Joern Rennecke, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 2118 bytes --]

On Thu, 2014-10-30 08:08:51 -0700, Ian Taylor <iant@golang.org> wrote:
> On Thu, Oct 30, 2014 at 6:19 AM, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
> >
> > This updates contrib/config-list.mk to build Go for all but
> > known-non-working targets. A comment to configure{.ac,} is also added.
> 
> > diff --git a/contrib/config-list.mk b/contrib/config-list.mk
> > index 94884d9..16900e1 100644
> > --- a/contrib/config-list.mk
> > +++ b/contrib/config-list.mk
> > @@ -95,11 +95,24 @@ make-log-dir: ../gcc/MAINTAINERS
> >
> >  $(LIST): make-log-dir
> >         -mkdir $@
> > -       (cd $@ && \
> > -       ../../gcc/configure \
> > -       --target=$(subst SCRIPTS,`pwd`/../scripts/,$(subst OPT,$(empty) -,$@)) \
> > -       --enable-werror-always ${host_options} --enable-languages=all,ada,go) \
> > -       > log/$@-config.out 2>&1
> > +       (                                                                                       \
> > +               cd $@ &&                                                                        \
> > +               echo $@ &&                                                                      \
> > +               TGT=`echo $@ | sed -e 's/^\(.*\)OPT.*$$/\1/'` &&                                \
> > +               TGT=`../../gcc/config.sub $$TGT` &&                                             \
> 
> This isn't necessary.  The OPT bits will be matched by the * at the
> end of the cases anyhow.  You can just write
>                  case $@ in
> 
> This is OK with that change.

Not exactly: My intention was to keep the triplet matches as they show
up in configure.ac .  However, the target list in config-list.mk uses
(almost exclusively) shorthands for all the targets, so these need to
be expand (--> config.sub); that however won't really fly with the
OPTs in there.

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
Signature of:             God put me on earth to accomplish a certain number of
the second  :            things. Right now I am so far behind I will never die.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] config-list.mk: Build Go only for supported targets (was: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work)
  2014-10-30 19:43             ` Jan-Benedict Glaw
@ 2014-10-31  0:44               ` Ian Taylor
  2014-10-31 11:07                 ` Jan-Benedict Glaw
  0 siblings, 1 reply; 15+ messages in thread
From: Ian Taylor @ 2014-10-31  0:44 UTC (permalink / raw)
  To: Jan-Benedict Glaw; +Cc: Joern Rennecke, gcc-patches

On Thu, Oct 30, 2014 at 12:14 PM, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
> On Thu, 2014-10-30 08:08:51 -0700, Ian Taylor <iant@golang.org> wrote:
>> On Thu, Oct 30, 2014 at 6:19 AM, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
>> >
>> > This updates contrib/config-list.mk to build Go for all but
>> > known-non-working targets. A comment to configure{.ac,} is also added.
>>
>> > diff --git a/contrib/config-list.mk b/contrib/config-list.mk
>> > index 94884d9..16900e1 100644
>> > --- a/contrib/config-list.mk
>> > +++ b/contrib/config-list.mk
>> > @@ -95,11 +95,24 @@ make-log-dir: ../gcc/MAINTAINERS
>> >
>> >  $(LIST): make-log-dir
>> >         -mkdir $@
>> > -       (cd $@ && \
>> > -       ../../gcc/configure \
>> > -       --target=$(subst SCRIPTS,`pwd`/../scripts/,$(subst OPT,$(empty) -,$@)) \
>> > -       --enable-werror-always ${host_options} --enable-languages=all,ada,go) \
>> > -       > log/$@-config.out 2>&1
>> > +       (                                                                                       \
>> > +               cd $@ &&                                                                        \
>> > +               echo $@ &&                                                                      \
>> > +               TGT=`echo $@ | sed -e 's/^\(.*\)OPT.*$$/\1/'` &&                                \
>> > +               TGT=`../../gcc/config.sub $$TGT` &&                                             \
>>
>> This isn't necessary.  The OPT bits will be matched by the * at the
>> end of the cases anyhow.  You can just write
>>                  case $@ in
>>
>> This is OK with that change.
>
> Not exactly: My intention was to keep the triplet matches as they show
> up in configure.ac .  However, the target list in config-list.mk uses
> (almost exclusively) shorthands for all the targets, so these need to
> be expand (--> config.sub); that however won't really fly with the
> OPTs in there.

Oh, right, sorry.

The original patch is OK.

Thanks.

Ian

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] config-list.mk: Build Go only for supported targets (was: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work)
  2014-10-31  0:44               ` Ian Taylor
@ 2014-10-31 11:07                 ` Jan-Benedict Glaw
  0 siblings, 0 replies; 15+ messages in thread
From: Jan-Benedict Glaw @ 2014-10-31 11:07 UTC (permalink / raw)
  To: Ian Taylor; +Cc: Joern Rennecke, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 1173 bytes --]

On Thu, 2014-10-30 17:10:38 -0700, Ian Taylor <iant@golang.org> wrote:
> On Thu, Oct 30, 2014 at 12:14 PM, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
> > On Thu, 2014-10-30 08:08:51 -0700, Ian Taylor <iant@golang.org> wrote:
> > > On Thu, Oct 30, 2014 at 6:19 AM, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
> > > > This updates contrib/config-list.mk to build Go for all but
> > > > known-non-working targets. A comment to configure{.ac,} is
> > > > also added.
[Fiddling with target names]
> > Not exactly: My intention was to keep the triplet matches as they
> > show up in configure.ac .  However, the target list in
> > config-list.mk uses (almost exclusively) shorthands for all the
> > targets, so these need to be expand (--> config.sub); that however
> > won't really fly with the OPTs in there.
> 
> Oh, right, sorry.
> 
> The original patch is OK.

Thanks, committed as r216957.

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
Signature of:              What we do for ourselves dies with us. What we do for
the second  :         others and the world remains and is immortal. (Albert Pine)

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-10-31 11:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-23  6:30 Patch RFA: Top-level configure patch: disable go on systems where it doesn't work Ian Taylor
2014-10-23 15:31 ` Pedro Alves
2014-10-23 15:35   ` Ian Taylor
2014-10-23 15:41     ` Pedro Alves
2014-10-23 18:27       ` Ian Taylor
2014-10-23 18:17 ` Jeff Law
2014-10-27 15:07 ` Jan-Benedict Glaw
2014-10-27 15:20   ` Ian Taylor
2014-10-27 16:03     ` Jan-Benedict Glaw
2014-10-27 16:57       ` Ian Taylor
2014-10-30 14:15         ` [PATCH] config-list.mk: Build Go only for supported targets (was: Patch RFA: Top-level configure patch: disable go on systems where it doesn't work) Jan-Benedict Glaw
2014-10-30 15:20           ` Ian Taylor
2014-10-30 19:43             ` Jan-Benedict Glaw
2014-10-31  0:44               ` Ian Taylor
2014-10-31 11:07                 ` Jan-Benedict Glaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).