public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [build] Link genmatch with $(LIBINTL)
@ 2014-10-22 15:56 Rainer Orth
  2014-10-22 16:01 ` Jakub Jelinek
  2014-10-22 17:21 ` Joseph S. Myers
  0 siblings, 2 replies; 8+ messages in thread
From: Rainer Orth @ 2014-10-22 15:56 UTC (permalink / raw)
  To: gcc-patches; +Cc: Richard Biener

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

With the match-and-simply patch, Solaris 10 bootstrap is broken:

Undefined                       first referenced
 symbol                             in file
libintl_bindtextdomain              ../libcpp/libcpp.a(init.o)
libintl_dgettext                    ../libcpp/libcpp.a(errors.o)
ld: fatal: symbol referencing errors. No output written to build/genmatch
collect2: error: ld returned 1 exit status
make[3]: *** [build/genmatch] Error 1

It seems the following patch fixes this, at least a i386-pc-solaris2.10
bootstrap is in stage2 now.

Ok for mainline?

	Rainer


2014-10-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* Makefile.in (build/genmatch(build_exeext)): Add $(LIBINTL) to
	BUILD_LIBS.
	Add $(LIBINTL_DEP) dependency.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gm.patch --]
[-- Type: text/x-patch, Size: 585 bytes --]

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -2519,8 +2519,9 @@ genprog = $(genprogerr) check checksum c
 
 # These programs need libs over and above what they get from the above list.
 build/genautomata$(build_exeext) : BUILD_LIBS += -lm
-
-build/genmatch$(build_exeext) : $(CPPLIB) $(LIBIBERTY) \
+build/genmatch(build_exeext) : BUILD_LIBS += $(LIBINTL)
+
+build/genmatch$(build_exeext) : $(CPPLIB) $(LIBIBERTY) $(LIBINTL_DEP) \
   $(BUILD_ERRORS) build/vec.o build/hash-table.o
 
 # These programs are not linked with the MD reader.

[-- Attachment #3: Type: text/plain, Size: 143 bytes --]


-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

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

* Re: [build] Link genmatch with $(LIBINTL)
  2014-10-22 15:56 [build] Link genmatch with $(LIBINTL) Rainer Orth
@ 2014-10-22 16:01 ` Jakub Jelinek
  2014-10-22 17:21 ` Joseph S. Myers
  1 sibling, 0 replies; 8+ messages in thread
From: Jakub Jelinek @ 2014-10-22 16:01 UTC (permalink / raw)
  To: Rainer Orth; +Cc: gcc-patches, Richard Biener

On Wed, Oct 22, 2014 at 05:53:22PM +0200, Rainer Orth wrote:
> 2014-10-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
> 
> 	* Makefile.in (build/genmatch(build_exeext)): Add $(LIBINTL) to

Shouldn't that be build/genmatch$(build_exeext) , both in the ChangeLog and
more importantly, in the patch?

> 	BUILD_LIBS.
> 	Add $(LIBINTL_DEP) dependency.
> 

> diff --git a/gcc/Makefile.in b/gcc/Makefile.in
> --- a/gcc/Makefile.in
> +++ b/gcc/Makefile.in
> @@ -2519,8 +2519,9 @@ genprog = $(genprogerr) check checksum c
>  
>  # These programs need libs over and above what they get from the above list.
>  build/genautomata$(build_exeext) : BUILD_LIBS += -lm
> -
> -build/genmatch$(build_exeext) : $(CPPLIB) $(LIBIBERTY) \
> +build/genmatch(build_exeext) : BUILD_LIBS += $(LIBINTL)
> +
> +build/genmatch$(build_exeext) : $(CPPLIB) $(LIBIBERTY) $(LIBINTL_DEP) \
>    $(BUILD_ERRORS) build/vec.o build/hash-table.o
>  
>  # These programs are not linked with the MD reader.

> 
> -- 
> -----------------------------------------------------------------------------
> Rainer Orth, Center for Biotechnology, Bielefeld University


	Jakub

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

* Re: [build] Link genmatch with $(LIBINTL)
  2014-10-22 15:56 [build] Link genmatch with $(LIBINTL) Rainer Orth
  2014-10-22 16:01 ` Jakub Jelinek
@ 2014-10-22 17:21 ` Joseph S. Myers
  2014-10-22 19:21   ` Richard Biener
  1 sibling, 1 reply; 8+ messages in thread
From: Joseph S. Myers @ 2014-10-22 17:21 UTC (permalink / raw)
  To: Rainer Orth; +Cc: gcc-patches, Richard Biener

On Wed, 22 Oct 2014, Rainer Orth wrote:

> 2014-10-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
> 
> 	* Makefile.in (build/genmatch(build_exeext)): Add $(LIBINTL) to
> 	BUILD_LIBS.
> 	Add $(LIBINTL_DEP) dependency.

No, this doesn't look right.  A program built for the build system needs 
to use build versions of all relevant libraries, not host versions.  That 
means $(BUILD_LIBIBERTY) not host libiberty, and build versions of libcpp 
and libintl if those are now needed for something built for the build 
system.  That in turn needs toplevel changes to add libcpp and intl to 
build_modules.

-- 
Joseph S. Myers
joseph@codesourcery.com

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

* Re: [build] Link genmatch with $(LIBINTL)
  2014-10-22 17:21 ` Joseph S. Myers
@ 2014-10-22 19:21   ` Richard Biener
  2014-10-22 20:02     ` Joseph S. Myers
  0 siblings, 1 reply; 8+ messages in thread
From: Richard Biener @ 2014-10-22 19:21 UTC (permalink / raw)
  To: Joseph S. Myers, Rainer Orth; +Cc: gcc-patches

On October 22, 2014 7:19:33 PM CEST, "Joseph S. Myers" <joseph@codesourcery.com> wrote:
>On Wed, 22 Oct 2014, Rainer Orth wrote:
>
>> 2014-10-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
>> 
>> 	* Makefile.in (build/genmatch(build_exeext)): Add $(LIBINTL) to
>> 	BUILD_LIBS.
>> 	Add $(LIBINTL_DEP) dependency.
>
>No, this doesn't look right.  A program built for the build system
>needs 
>to use build versions of all relevant libraries, not host versions. 
>That 
>means $(BUILD_LIBIBERTY) not host libiberty, and build versions of
>libcpp 
>and libintl if those are now needed for something built for the build 
>system.  That in turn needs toplevel changes to add libcpp and intl to 
>build_modules.

I suppose we should build the build variant of libcpp without NLS support instead.

Richard.


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

* Re: [build] Link genmatch with $(LIBINTL)
  2014-10-22 19:21   ` Richard Biener
@ 2014-10-22 20:02     ` Joseph S. Myers
  0 siblings, 0 replies; 8+ messages in thread
From: Joseph S. Myers @ 2014-10-22 20:02 UTC (permalink / raw)
  To: Richard Biener; +Cc: Rainer Orth, gcc-patches

On Wed, 22 Oct 2014, Richard Biener wrote:

> On October 22, 2014 7:19:33 PM CEST, "Joseph S. Myers" <joseph@codesourcery.com> wrote:
> >On Wed, 22 Oct 2014, Rainer Orth wrote:
> >
> >> 2014-10-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
> >> 
> >> 	* Makefile.in (build/genmatch(build_exeext)): Add $(LIBINTL) to
> >> 	BUILD_LIBS.
> >> 	Add $(LIBINTL_DEP) dependency.
> >
> >No, this doesn't look right.  A program built for the build system
> >needs 
> >to use build versions of all relevant libraries, not host versions. 
> >That 
> >means $(BUILD_LIBIBERTY) not host libiberty, and build versions of
> >libcpp 
> >and libintl if those are now needed for something built for the build 
> >system.  That in turn needs toplevel changes to add libcpp and intl to 
> >build_modules.
> 
> I suppose we should build the build variant of libcpp without NLS support instead.

Indeed, that would avoid various complications such as configure options 
for where to find libiconv only being correct for the host and not the 
build system.

-- 
Joseph S. Myers
joseph@codesourcery.com

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

* Re: [build] Link genmatch with $(LIBINTL)
  2014-10-22 18:01 ` Richard Biener
@ 2014-10-22 19:00   ` David Edelsohn
  0 siblings, 0 replies; 8+ messages in thread
From: David Edelsohn @ 2014-10-22 19:00 UTC (permalink / raw)
  To: Richard Biener; +Cc: Rainer Orth, Jakub Jelinek, GCC Patches

On Wed, Oct 22, 2014 at 1:31 PM, Richard Biener <rguenther@suse.de> wrote:
> On October 22, 2014 7:13:41 PM CEST, David Edelsohn <dje.gcc@gmail.com> wrote:
>>I reported the same problem in a separate thread.
>>
>>On AIX it needs LIBINTL and LIBICONV.
>
> I wonder what ends up linking those with Linux? Or is all the features available from glibc?

The dependency comes from libcpp.

Thanks, David

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

* Re: [build] Link genmatch with $(LIBINTL)
  2014-10-22 17:16 David Edelsohn
@ 2014-10-22 18:01 ` Richard Biener
  2014-10-22 19:00   ` David Edelsohn
  0 siblings, 1 reply; 8+ messages in thread
From: Richard Biener @ 2014-10-22 18:01 UTC (permalink / raw)
  To: David Edelsohn, Rainer Orth, Jakub Jelinek; +Cc: GCC Patches

On October 22, 2014 7:13:41 PM CEST, David Edelsohn <dje.gcc@gmail.com> wrote:
>I reported the same problem in a separate thread.
>
>On AIX it needs LIBINTL and LIBICONV.

I wonder what ends up linking those with Linux? Or is all the features available from glibc?

Fixed patch is OK.

Thanks,
Richard.

>Index: Makefile.in
>===================================================================
>--- Makefile.in (revision 216542)
>+++ Makefile.in (working copy)
>@@ -2520,7 +2520,7 @@
># These programs need libs over and above what they get from the above
>list.
> build/genautomata$(build_exeext) : BUILD_LIBS += -lm
>
>-build/genmatch$(build_exeext) : $(CPPLIB) $(LIBIBERTY) \
>+build/genmatch$(build_exeext) : $(CPPLIB) $(LIBIBERTY) $(LIBINTL)
>$(LIBICONV) \
>   $(BUILD_ERRORS) build/vec.o build/hash-table.o
>
> # These programs are not linked with the MD reader.
>
>
>Thanks, David


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

* Re: [build] Link genmatch with $(LIBINTL)
@ 2014-10-22 17:16 David Edelsohn
  2014-10-22 18:01 ` Richard Biener
  0 siblings, 1 reply; 8+ messages in thread
From: David Edelsohn @ 2014-10-22 17:16 UTC (permalink / raw)
  To: Rainer Orth, Jakub Jelinek; +Cc: Richard Biener, GCC Patches

I reported the same problem in a separate thread.

On AIX it needs LIBINTL and LIBICONV.

Index: Makefile.in
===================================================================
--- Makefile.in (revision 216542)
+++ Makefile.in (working copy)
@@ -2520,7 +2520,7 @@
 # These programs need libs over and above what they get from the above list.
 build/genautomata$(build_exeext) : BUILD_LIBS += -lm

-build/genmatch$(build_exeext) : $(CPPLIB) $(LIBIBERTY) \
+build/genmatch$(build_exeext) : $(CPPLIB) $(LIBIBERTY) $(LIBINTL) $(LIBICONV) \
   $(BUILD_ERRORS) build/vec.o build/hash-table.o

 # These programs are not linked with the MD reader.


Thanks, David

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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-22 15:56 [build] Link genmatch with $(LIBINTL) Rainer Orth
2014-10-22 16:01 ` Jakub Jelinek
2014-10-22 17:21 ` Joseph S. Myers
2014-10-22 19:21   ` Richard Biener
2014-10-22 20:02     ` Joseph S. Myers
2014-10-22 17:16 David Edelsohn
2014-10-22 18:01 ` Richard Biener
2014-10-22 19:00   ` David Edelsohn

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).