public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
@ 2011-01-08 17:59 John.Tytgat at aaug dot net
  2011-01-08 18:06 ` Jan Hubicka
                   ` (43 more replies)
  0 siblings, 44 replies; 48+ messages in thread
From: John.Tytgat at aaug dot net @ 2011-01-08 17:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

           Summary: [4.6.0 regression]: cross-compile fails while
                    configuring libgcc with "xgcc: fatal error:
                    -fuse-linker-plugin, but liblto_plugin.so not found"
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: John.Tytgat@aaug.net


Cross compile 4.6.0 trunk r168599, target arm-unknown-eabi configured as:

configure --target=arm-unknown-eabi
--prefix=/home/joty/projects/gccsdk/riscos7/cross
--with-gmp=/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/installed-libs-for-cross-gcc
--with-mpfr=/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/installed-libs-for-cross-gcc
--with-mpc=/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/installed-libs-for-cross-gcc
--with-system-zlib
--with-ppl=/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/installed-libs-for-cross-gcc
--with-host-libstdcxx=-Wl,-lstdc++
--with-cloog=/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/installed-libs-for-cross-gcc
--enable-lto
--with-libelf=/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/installed-libs-for-cross-gcc
--disable-threads --disable-multilib --disable-shared --with-newlib
--enable-interwork --disable-nls --disable-libquadmath
--enable-checking=release --enable-languages=c,c++

fails while configuring arm-unknown-eabi/libgcc with:

--8<--
configure:3020:
/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/./gcc/xgcc
-B/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/./gcc/
-nostdinc
-B/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/arm-unknown-eabi/newlib/
-isystem
/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/arm-unknown-eabi/newlib/targ-include
-isystem
/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/srcdir/gcc/newlib/libc/include
-B/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/arm-unknown-eabi/libgloss/arm
-L/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/arm-unknown-eabi/libgloss/libnosys
-L/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/srcdir/gcc/libgloss/arm
-B/home/joty/projects/gccsdk/riscos7/cross/arm-unknown-eabi/bin/
-B/home/joty/projects/gccsdk/riscos7/cross/arm-unknown-eabi/lib/ -isystem
/home/joty/projects/gccsdk/riscos7/cross/arm-unknown-eabi/include -isystem
/home/joty/projects/gccsdk/riscos7/cross/arm-unknown-eabi/sys-include    -o
conftest -g -O2   conftest.c  >&5
xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
configure:3023: $? = 1
configure:3211: checking for suffix of object files
configure:3233:
/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/./gcc/xgcc
-B/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/./gcc/
-nostdinc
-B/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/arm-unknown-eabi/newlib/
-isystem
/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/arm-unknown-eabi/newlib/targ-include
-isystem
/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/srcdir/gcc/newlib/libc/include
-B/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/arm-unknown-eabi/libgloss/arm
-L/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/arm-unknown-eabi/libgloss/libnosys
-L/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/srcdir/gcc/libgloss/arm
-B/home/joty/projects/gccsdk/riscos7/cross/arm-unknown-eabi/bin/
-B/home/joty/projects/gccsdk/riscos7/cross/arm-unknown-eabi/lib/ -isystem
/home/joty/projects/gccsdk/riscos7/cross/arm-unknown-eabi/include -isystem
/home/joty/projects/gccsdk/riscos7/cross/arm-unknown-eabi/sys-include    -c -g
-O2  conftest.c >&5
xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
configure:3237: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3251: error: in
`/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/arm-unknown-eabi/libgcc':
configure:3254: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
--8<--

There is indeed no liblto_plugin.so found in my build tree.

With r168592 I had the last confirmed successful build.


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

* Re: [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
@ 2011-01-08 18:06 ` Jan Hubicka
  2011-01-08 18:07 ` [Bug lto/47225] " hubicka at ucw dot cz
                   ` (42 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: Jan Hubicka @ 2011-01-08 18:06 UTC (permalink / raw)
  To: John.Tytgat at aaug dot net; +Cc: gcc-bugs

> 
> There is indeed no liblto_plugin.so found in my build tree.
> 
> With r168592 I had the last confirmed successful build.
Seems like plugin autodetection somehow screws up.  Do you get the
lto-plugin/Makefile configured?  What is it building there?

Honza


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

* [Bug lto/47225] [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
  2011-01-08 18:06 ` Jan Hubicka
@ 2011-01-08 18:07 ` hubicka at ucw dot cz
  2011-01-08 18:54 ` John.Tytgat at aaug dot net
                   ` (41 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: hubicka at ucw dot cz @ 2011-01-08 18:07 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #1 from Jan Hubicka <hubicka at ucw dot cz> 2011-01-08 17:58:59 UTC ---
> 
> There is indeed no liblto_plugin.so found in my build tree.
> 
> With r168592 I had the last confirmed successful build.
Seems like plugin autodetection somehow screws up.  Do you get the
lto-plugin/Makefile configured?  What is it building there?

Honza


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

* [Bug lto/47225] [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
  2011-01-08 18:06 ` Jan Hubicka
  2011-01-08 18:07 ` [Bug lto/47225] " hubicka at ucw dot cz
@ 2011-01-08 18:54 ` John.Tytgat at aaug dot net
  2011-01-08 18:58   ` Jan Hubicka
  2011-01-08 18:58 ` hubicka at ucw dot cz
                   ` (40 subsequent siblings)
  43 siblings, 1 reply; 48+ messages in thread
From: John.Tytgat at aaug dot net @ 2011-01-08 18:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #2 from John Tytgat <John.Tytgat at aaug dot net> 2011-01-08 18:22:14 UTC ---
I'm giving the --disable-shared configure option for building cross-compiler as
I'm not interested in shared target libraries and it looks like this is passed
on to lto-plugin which is only relevant for the host.  This is configure call
for lto-plugin:

--8<--
  $ /home/joty/projects/gccsdk/gccsdk_svn7/gcc4/srcdir/gcc/lto-plugin/configure
--cache-file=./config.cache --with-system-zlib --with-newlib
--prefix=/home/joty/projects/gccsdk/riscos7/cross
--with-gmp=/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/installed-libs-for-cross-gcc
--with-mpfr=/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/installed-libs-for-cross-gcc
--with-mpc=/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/installed-libs-for-cross-gcc
--with-system-zlib
--with-ppl=/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/installed-libs-for-cross-gcc
--with-host-libstdcxx=-Wl,-lstdc++
--with-cloog=/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/installed-libs-for-cross-gcc
--enable-lto
--with-libelf=/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/installed-libs-for-cross-gcc
--disable-threads --disable-multilib --disable-shared --with-newlib
--enable-interwork --disable-nls --disable-libquadmath
--enable-checking=release --enable-languages=c,c++,lto
--program-transform-name=s&^&arm-unknown-eabi-& --disable-option-checking
--build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu
--target=arm-unknown-eabi
--srcdir=/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/srcdir/gcc/lto-plugin
--8<--

and the buildoutput for the lto-plugin part:

--8<--
make[4]: Entering directory
`/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/lto-plugin'
/bin/bash ./libtool --tag=CC --tag=disable-static  --mode=compile gcc
-DHAVE_CONFIG_H -I.
-I/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/srcdir/gcc/lto-plugin 
-I/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/srcdir/gcc/lto-plugin/../include
-DHAVE_CONFIG_H  -Wall -Werror -O0 -g -c -o lto-plugin.lo
/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/srcdir/gcc/lto-plugin/lto-plugin.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I.
-I/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/srcdir/gcc/lto-plugin
-I/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/srcdir/gcc/lto-plugin/../include
-DHAVE_CONFIG_H -Wall -Werror -O0 -g -c
/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/srcdir/gcc/lto-plugin/lto-plugin.c
-o lto-plugin.o
/bin/bash ./libtool --tag=CC --tag=disable-static  --mode=link gcc -Wall
-Werror -O0 -g  -bindir
/home/joty/projects/gccsdk/riscos7/cross/libexec/gcc/arm-unknown-eabi/4.6.0  
-o liblto_plugin.la -rpath
/home/joty/projects/gccsdk/riscos7/cross/libexec/gcc/arm-unknown-eabi/4.6.0
lto-plugin.lo ../libiberty/pic/libiberty.a 

*** Warning: Linking the shared library liblto_plugin.la against the
*** static library ../libiberty/pic/libiberty.a is not portable!
libtool: link: ar rc .libs/liblto_plugin.a ../libiberty/pic/libiberty.a 
lto-plugin.o
libtool: link: ranlib .libs/liblto_plugin.a
libtool: link: ( cd ".libs" && rm -f "liblto_plugin.la" && ln -s
"../liblto_plugin.la" "liblto_plugin.la" )
/bin/bash ./libtool --tag=disable-static  --mode=install /usr/bin/install -c 
liblto_plugin.la `pwd`/../gcc/
libtool: install: /usr/bin/install -c .libs/liblto_plugin.lai
/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/lto-plugin/../gcc/liblto_plugin.la
libtool: install: /usr/bin/install -c .libs/liblto_plugin.a
/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/lto-plugin/../gcc/liblto_plugin.a
libtool: install: chmod 644
/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/lto-plugin/../gcc/liblto_plugin.a
libtool: install: ranlib
/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/lto-plugin/../gcc/liblto_plugin.a
libtool: install: warning: remember to run `libtool --finish
/home/joty/projects/gccsdk/riscos7/cross/libexec/gcc/arm-unknown-eabi/4.6.0'
make  all-am
make[5]: Entering directory
`/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/lto-plugin'
make[5]: Leaving directory
`/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/lto-plugin'
make[4]: Leaving directory
`/home/joty/projects/gccsdk/gccsdk_svn7/gcc4/builddir/cross-gcc/lto-plugin'
--8<--

I.e. only static library of lto-plugin gets built.


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

* Re: [Bug lto/47225] [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 18:54 ` John.Tytgat at aaug dot net
@ 2011-01-08 18:58   ` Jan Hubicka
  0 siblings, 0 replies; 48+ messages in thread
From: Jan Hubicka @ 2011-01-08 18:58 UTC (permalink / raw)
  To: John.Tytgat at aaug dot net; +Cc: gcc-bugs

> I.e. only static library of lto-plugin gets built.
Ahh, static library for lto-plugin is of course pointless thing.  I guess we
want to disable plugin when --disable-shared is passed.  I will see if my
autoconf-fu is on par to do so.

Still, it is bit sad situation - you are right that you are not interested in
shared libraries for cross, but you might be still interested in plugin for
LTO.  Either we need to document the dependency (and warn when plugin is
available but shared libs are disabled) or just enable shared libs for the
plugin itself.

I am adding paolo to CC, he should know best what to do here.

Honza


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

* [Bug lto/47225] [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (2 preceding siblings ...)
  2011-01-08 18:54 ` John.Tytgat at aaug dot net
@ 2011-01-08 18:58 ` hubicka at ucw dot cz
  2011-01-08 19:16   ` Jan Hubicka
  2011-01-08 19:16 ` hubicka at ucw dot cz
                   ` (39 subsequent siblings)
  43 siblings, 1 reply; 48+ messages in thread
From: hubicka at ucw dot cz @ 2011-01-08 18:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #3 from Jan Hubicka <hubicka at ucw dot cz> 2011-01-08 18:58:09 UTC ---
> I.e. only static library of lto-plugin gets built.
Ahh, static library for lto-plugin is of course pointless thing.  I guess we
want to disable plugin when --disable-shared is passed.  I will see if my
autoconf-fu is on par to do so.

Still, it is bit sad situation - you are right that you are not interested in
shared libraries for cross, but you might be still interested in plugin for
LTO.  Either we need to document the dependency (and warn when plugin is
available but shared libs are disabled) or just enable shared libs for the
plugin itself.

I am adding paolo to CC, he should know best what to do here.

Honza


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

* [Bug lto/47225] [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (3 preceding siblings ...)
  2011-01-08 18:58 ` hubicka at ucw dot cz
@ 2011-01-08 19:16 ` hubicka at ucw dot cz
  2011-01-08 19:45 ` hubicka at gcc dot gnu.org
                   ` (38 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: hubicka at ucw dot cz @ 2011-01-08 19:16 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #4 from Jan Hubicka <hubicka at ucw dot cz> 2011-01-08 19:15:24 UTC ---
Hi,
since lto plugin already enables shared libiberty, this patch extends the
machinery
for plugin itself too.
Does it fix your problem? I seem to be able to bootstrap (C only) with
disable-shared.

Index: configure
===================================================================
--- configure    (revision 168596)
+++ configure    (working copy)
@@ -640,6 +640,7 @@ CFLAGS_FOR_TARGET
 DEBUG_PREFIX_CFLAGS_FOR_TARGET
 SYSROOT_CFLAGS_FOR_TARGET
 stage1_languages
+extra_host_lto_plugin_configure_flags
 extra_host_libiberty_configure_flags
 clooginc
 clooglibs
@@ -6237,6 +6238,7 @@ if test -d ${srcdir}/gcc; then

   # If LTO is enabled, add the LTO front end.
   extra_host_libiberty_configure_flags=
+  extra_host_lto_plugin_configure_flags=
   if test "$enable_lto" = "yes" ; then
     case ,${enable_languages}, in
       *,lto,*) ;;
@@ -6245,10 +6247,12 @@ if test -d ${srcdir}/gcc; then
     if test "${build_lto_plugin}" = "yes" ; then
       configdirs="$configdirs lto-plugin"
       extra_host_libiberty_configure_flags=--enable-shared
+      extra_host_lto_plugin_configure_flags=--enable-shared
     fi
   fi


+
   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e
s/,c,/,/ `
   potential_languages=,c,

Index: configure.ac
===================================================================
--- configure.ac    (revision 168596)
+++ configure.ac    (working copy)
@@ -1810,6 +1810,7 @@ if test -d ${srcdir}/gcc; then

   # If LTO is enabled, add the LTO front end.
   extra_host_libiberty_configure_flags=
+  extra_host_lto_plugin_configure_flags=
   if test "$enable_lto" = "yes" ; then
     case ,${enable_languages}, in
       *,lto,*) ;;
@@ -1818,9 +1819,11 @@ if test -d ${srcdir}/gcc; then
     if test "${build_lto_plugin}" = "yes" ; then
       configdirs="$configdirs lto-plugin"
       extra_host_libiberty_configure_flags=--enable-shared
+      extra_host_lto_plugin_configure_flags=--enable-shared
     fi
   fi
   AC_SUBST(extra_host_libiberty_configure_flags)
+  AC_SUBST(extra_host_lto_plugin_configure_flags)

   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e
s/,c,/,/ `
   potential_languages=,c,
Index: Makefile.def
===================================================================
--- Makefile.def    (revision 168596)
+++ Makefile.def    (working copy)
@@ -145,7 +145,8 @@ host_modules= { module= libtermcap; no_c
                 missing=maintainer-clean; };
 host_modules= { module= utils; no_check=true; };
 host_modules= { module= gnattools; };
-host_modules= { module= lto-plugin; bootstrap=true; };
+host_modules= { module= lto-plugin; bootstrap=true;
+        extra_configure_flags='@extra_host_lto_plugin_configure_flags@'; };

 target_modules = { module= libstdc++-v3;
            bootstrap=true;
Index: Makefile.in
===================================================================
--- Makefile.in    (revision 168596)
+++ Makefile.in    (working copy)
@@ -45248,7 +45248,7 @@ configure-lto-plugin:
     libsrcdir="$$s/lto-plugin"; \
     $(SHELL) $${libsrcdir}/configure \
       $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
-      --target=${target_alias} $${srcdiroption}  \
+      --target=${target_alias} $${srcdiroption}
@extra_host_lto_plugin_configure_flags@ \
       || exit 1
 @endif lto-plugin

@@ -45282,7 +45282,8 @@ configure-stage1-lto-plugin:
     $(SHELL) $${libsrcdir}/configure \
       $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
       --target=${target_alias} $${srcdiroption} \
-      $(STAGE1_CONFIGURE_FLAGS)
+      $(STAGE1_CONFIGURE_FLAGS) \
+      @extra_host_lto_plugin_configure_flags@
 @endif lto-plugin-bootstrap

 .PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
@@ -45315,7 +45316,8 @@ configure-stage2-lto-plugin:
       $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
       --target=${target_alias} $${srcdiroption} \
       --with-build-libsubdir=$(HOST_SUBDIR) \
-      $(STAGE2_CONFIGURE_FLAGS)
+      $(STAGE2_CONFIGURE_FLAGS) \
+      @extra_host_lto_plugin_configure_flags@
 @endif lto-plugin-bootstrap

 .PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
@@ -45348,7 +45350,8 @@ configure-stage3-lto-plugin:
       $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
       --target=${target_alias} $${srcdiroption} \
       --with-build-libsubdir=$(HOST_SUBDIR) \
-      $(STAGE3_CONFIGURE_FLAGS)
+      $(STAGE3_CONFIGURE_FLAGS) \
+      @extra_host_lto_plugin_configure_flags@
 @endif lto-plugin-bootstrap

 .PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
@@ -45381,7 +45384,8 @@ configure-stage4-lto-plugin:
       $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
       --target=${target_alias} $${srcdiroption} \
       --with-build-libsubdir=$(HOST_SUBDIR) \
-      $(STAGE4_CONFIGURE_FLAGS)
+      $(STAGE4_CONFIGURE_FLAGS) \
+      @extra_host_lto_plugin_configure_flags@
 @endif lto-plugin-bootstrap

 .PHONY: configure-stageprofile-lto-plugin
maybe-configure-stageprofile-lto-plugin
@@ -45414,7 +45418,8 @@ configure-stageprofile-lto-plugin:
       $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
       --target=${target_alias} $${srcdiroption} \
       --with-build-libsubdir=$(HOST_SUBDIR) \
-      $(STAGEprofile_CONFIGURE_FLAGS)
+      $(STAGEprofile_CONFIGURE_FLAGS) \
+      @extra_host_lto_plugin_configure_flags@
 @endif lto-plugin-bootstrap

 .PHONY: configure-stagefeedback-lto-plugin
maybe-configure-stagefeedback-lto-plugin
@@ -45447,7 +45452,8 @@ configure-stagefeedback-lto-plugin:
       $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
       --target=${target_alias} $${srcdiroption} \
       --with-build-libsubdir=$(HOST_SUBDIR) \
-      $(STAGEfeedback_CONFIGURE_FLAGS)
+      $(STAGEfeedback_CONFIGURE_FLAGS) \
+      @extra_host_lto_plugin_configure_flags@
 @endif lto-plugin-bootstrap


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

* Re: [Bug lto/47225] [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 18:58 ` hubicka at ucw dot cz
@ 2011-01-08 19:16   ` Jan Hubicka
  0 siblings, 0 replies; 48+ messages in thread
From: Jan Hubicka @ 2011-01-08 19:16 UTC (permalink / raw)
  To: hubicka at ucw dot cz; +Cc: gcc-bugs

Hi,
since lto plugin already enables shared libiberty, this patch extends the machinery
for plugin itself too.
Does it fix your problem? I seem to be able to bootstrap (C only) with disable-shared.

Index: configure
===================================================================
--- configure	(revision 168596)
+++ configure	(working copy)
@@ -640,6 +640,7 @@ CFLAGS_FOR_TARGET
 DEBUG_PREFIX_CFLAGS_FOR_TARGET
 SYSROOT_CFLAGS_FOR_TARGET
 stage1_languages
+extra_host_lto_plugin_configure_flags
 extra_host_libiberty_configure_flags
 clooginc
 clooglibs
@@ -6237,6 +6238,7 @@ if test -d ${srcdir}/gcc; then
 
   # If LTO is enabled, add the LTO front end.
   extra_host_libiberty_configure_flags=
+  extra_host_lto_plugin_configure_flags=
   if test "$enable_lto" = "yes" ; then
     case ,${enable_languages}, in
       *,lto,*) ;;
@@ -6245,10 +6247,12 @@ if test -d ${srcdir}/gcc; then
     if test "${build_lto_plugin}" = "yes" ; then
       configdirs="$configdirs lto-plugin"
       extra_host_libiberty_configure_flags=--enable-shared
+      extra_host_lto_plugin_configure_flags=--enable-shared
     fi
   fi
 
 
+
   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
   potential_languages=,c,
 
Index: configure.ac
===================================================================
--- configure.ac	(revision 168596)
+++ configure.ac	(working copy)
@@ -1810,6 +1810,7 @@ if test -d ${srcdir}/gcc; then
 
   # If LTO is enabled, add the LTO front end.
   extra_host_libiberty_configure_flags=
+  extra_host_lto_plugin_configure_flags=
   if test "$enable_lto" = "yes" ; then
     case ,${enable_languages}, in
       *,lto,*) ;;
@@ -1818,9 +1819,11 @@ if test -d ${srcdir}/gcc; then
     if test "${build_lto_plugin}" = "yes" ; then
       configdirs="$configdirs lto-plugin"
       extra_host_libiberty_configure_flags=--enable-shared
+      extra_host_lto_plugin_configure_flags=--enable-shared
     fi
   fi
   AC_SUBST(extra_host_libiberty_configure_flags)
+  AC_SUBST(extra_host_lto_plugin_configure_flags)
 
   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
   potential_languages=,c,
Index: Makefile.def
===================================================================
--- Makefile.def	(revision 168596)
+++ Makefile.def	(working copy)
@@ -145,7 +145,8 @@ host_modules= { module= libtermcap; no_c
                 missing=maintainer-clean; };
 host_modules= { module= utils; no_check=true; };
 host_modules= { module= gnattools; };
-host_modules= { module= lto-plugin; bootstrap=true; };
+host_modules= { module= lto-plugin; bootstrap=true;
+		extra_configure_flags='@extra_host_lto_plugin_configure_flags@'; };
 
 target_modules = { module= libstdc++-v3;
 		   bootstrap=true;
Index: Makefile.in
===================================================================
--- Makefile.in	(revision 168596)
+++ Makefile.in	(working copy)
@@ -45248,7 +45248,7 @@ configure-lto-plugin:
 	libsrcdir="$$s/lto-plugin"; \
 	$(SHELL) $${libsrcdir}/configure \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
-	  --target=${target_alias} $${srcdiroption}  \
+	  --target=${target_alias} $${srcdiroption} @extra_host_lto_plugin_configure_flags@ \
 	  || exit 1
 @endif lto-plugin
 
@@ -45282,7 +45282,8 @@ configure-stage1-lto-plugin:
 	$(SHELL) $${libsrcdir}/configure \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
 	  --target=${target_alias} $${srcdiroption} \
-	  $(STAGE1_CONFIGURE_FLAGS)
+	  $(STAGE1_CONFIGURE_FLAGS) \
+	  @extra_host_lto_plugin_configure_flags@
 @endif lto-plugin-bootstrap
 
 .PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
@@ -45315,7 +45316,8 @@ configure-stage2-lto-plugin:
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
 	  --target=${target_alias} $${srcdiroption} \
 	  --with-build-libsubdir=$(HOST_SUBDIR) \
-	  $(STAGE2_CONFIGURE_FLAGS)
+	  $(STAGE2_CONFIGURE_FLAGS) \
+	  @extra_host_lto_plugin_configure_flags@
 @endif lto-plugin-bootstrap
 
 .PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
@@ -45348,7 +45350,8 @@ configure-stage3-lto-plugin:
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
 	  --target=${target_alias} $${srcdiroption} \
 	  --with-build-libsubdir=$(HOST_SUBDIR) \
-	  $(STAGE3_CONFIGURE_FLAGS)
+	  $(STAGE3_CONFIGURE_FLAGS) \
+	  @extra_host_lto_plugin_configure_flags@
 @endif lto-plugin-bootstrap
 
 .PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
@@ -45381,7 +45384,8 @@ configure-stage4-lto-plugin:
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
 	  --target=${target_alias} $${srcdiroption} \
 	  --with-build-libsubdir=$(HOST_SUBDIR) \
-	  $(STAGE4_CONFIGURE_FLAGS)
+	  $(STAGE4_CONFIGURE_FLAGS) \
+	  @extra_host_lto_plugin_configure_flags@
 @endif lto-plugin-bootstrap
 
 .PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
@@ -45414,7 +45418,8 @@ configure-stageprofile-lto-plugin:
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
 	  --target=${target_alias} $${srcdiroption} \
 	  --with-build-libsubdir=$(HOST_SUBDIR) \
-	  $(STAGEprofile_CONFIGURE_FLAGS)
+	  $(STAGEprofile_CONFIGURE_FLAGS) \
+	  @extra_host_lto_plugin_configure_flags@
 @endif lto-plugin-bootstrap
 
 .PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
@@ -45447,7 +45452,8 @@ configure-stagefeedback-lto-plugin:
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
 	  --target=${target_alias} $${srcdiroption} \
 	  --with-build-libsubdir=$(HOST_SUBDIR) \
-	  $(STAGEfeedback_CONFIGURE_FLAGS)
+	  $(STAGEfeedback_CONFIGURE_FLAGS) \
+	  @extra_host_lto_plugin_configure_flags@
 @endif lto-plugin-bootstrap
 
 


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

* [Bug lto/47225] [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (4 preceding siblings ...)
  2011-01-08 19:16 ` hubicka at ucw dot cz
@ 2011-01-08 19:45 ` hubicka at gcc dot gnu.org
  2011-01-08 20:04 ` John.Tytgat at aaug dot net
                   ` (37 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-08 19:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011.01.08 19:19:57
                 CC|                            |bonzini at gnu dot org,
                   |                            |hubicka at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |hubicka at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-08 19:19:57 UTC ---
mine.


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

* [Bug lto/47225] [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (5 preceding siblings ...)
  2011-01-08 19:45 ` hubicka at gcc dot gnu.org
@ 2011-01-08 20:04 ` John.Tytgat at aaug dot net
  2011-01-09 14:47 ` hubicka at gcc dot gnu.org
                   ` (36 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: John.Tytgat at aaug dot net @ 2011-01-08 20:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #6 from John Tytgat <John.Tytgat at aaug dot net> 2011-01-08 19:58:00 UTC ---
That patch results in successful build.  And lto works as well.


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

* [Bug lto/47225] [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (6 preceding siblings ...)
  2011-01-08 20:04 ` John.Tytgat at aaug dot net
@ 2011-01-09 14:47 ` hubicka at gcc dot gnu.org
  2011-01-09 17:25 ` hubicka at gcc dot gnu.org
                   ` (35 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-09 14:47 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #7 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-09 14:34:44 UTC ---
Author: hubicka
Date: Sun Jan  9 14:34:41 2011
New Revision: 168612

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168612
Log:

    PR lto/47225
    * Makefile.in: Regenerate.
    * Makefile.def (lto-plugin): Always pass enable-shared to the plugin
    configure.

Modified:
    trunk/ChangeLog
    trunk/Makefile.def
    trunk/Makefile.in


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

* [Bug lto/47225] [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (7 preceding siblings ...)
  2011-01-09 14:47 ` hubicka at gcc dot gnu.org
@ 2011-01-09 17:25 ` hubicka at gcc dot gnu.org
  2011-01-10 11:51 ` fxcoudert at gcc dot gnu.org
                   ` (34 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-09 17:25 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

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

--- Comment #8 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-09 17:19:21 UTC ---
Fixed.


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

* [Bug lto/47225] [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (8 preceding siblings ...)
  2011-01-09 17:25 ` hubicka at gcc dot gnu.org
@ 2011-01-10 11:51 ` fxcoudert at gcc dot gnu.org
  2011-01-10 12:12   ` Jan Hubicka
  2011-01-10 12:42 ` hubicka at ucw dot cz
                   ` (33 subsequent siblings)
  43 siblings, 1 reply; 48+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2011-01-10 11:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |i586-pc-mingw32
             Status|RESOLVED                    |REOPENED
                 CC|                            |fxcoudert at gcc dot
                   |                            |gnu.org
               Host|                            |x86_64-apple-darwin10.6.0
         Resolution|FIXED                       |
              Build|                            |x86_64-apple-darwin10.6.0

--- Comment #9 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> 2011-01-10 10:54:10 UTC ---
(In reply to comment #8)
> Fixed.

I don't think it is. I am building a cross-compiler (with build = host =
x86_64-apple-darwin10.6.0, target = i586-pc-mingw32) from unpatched GCC
revision 168626, and it's failing with the same symptoms. When configuring
libgcc, I get:


checking for suffix of object files... configure: error: in
`/Users/fx/devel/mingw/ibin/i586-pc-mingw32/libgcc':
configure: error: cannot compute suffix of object files: cannot compile


And the relevant part of config.log says:

xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.


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

* Re: [Bug lto/47225] [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-10 11:51 ` fxcoudert at gcc dot gnu.org
@ 2011-01-10 12:12   ` Jan Hubicka
  0 siblings, 0 replies; 48+ messages in thread
From: Jan Hubicka @ 2011-01-10 12:12 UTC (permalink / raw)
  To: fxcoudert at gcc dot gnu.org; +Cc: gcc-bugs

> I don't think it is. I am building a cross-compiler (with build = host =
> x86_64-apple-darwin10.6.0, target = i586-pc-mingw32) from unpatched GCC
> revision 168626, and it's failing with the same symptoms. When configuring
> libgcc, I get:
> 
> 
> checking for suffix of object files... configure: error: in
> `/Users/fx/devel/mingw/ibin/i586-pc-mingw32/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> 
> 
> And the relevant part of config.log says:
> 
> xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
> compilation terminated.

Do you have any idea why liblto_plugin.so is not built this time?
Is it the case where host is not able to build shared libraries we discussed
with Ralph?

Honza


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

* [Bug lto/47225] [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (9 preceding siblings ...)
  2011-01-10 11:51 ` fxcoudert at gcc dot gnu.org
@ 2011-01-10 12:42 ` hubicka at ucw dot cz
  2011-01-11 13:05 ` [Bug lto/47225] [4.6 " rguenth at gcc dot gnu.org
                   ` (32 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: hubicka at ucw dot cz @ 2011-01-10 12:42 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #10 from Jan Hubicka <hubicka at ucw dot cz> 2011-01-10 11:51:43 UTC ---
> I don't think it is. I am building a cross-compiler (with build = host =
> x86_64-apple-darwin10.6.0, target = i586-pc-mingw32) from unpatched GCC
> revision 168626, and it's failing with the same symptoms. When configuring
> libgcc, I get:
> 
> 
> checking for suffix of object files... configure: error: in
> `/Users/fx/devel/mingw/ibin/i586-pc-mingw32/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> 
> 
> And the relevant part of config.log says:
> 
> xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
> compilation terminated.

Do you have any idea why liblto_plugin.so is not built this time?
Is it the case where host is not able to build shared libraries we discussed
with Ralph?

Honza


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (10 preceding siblings ...)
  2011-01-10 12:42 ` hubicka at ucw dot cz
@ 2011-01-11 13:05 ` rguenth at gcc dot gnu.org
  2011-01-11 13:06 ` rguenth at gcc dot gnu.org
                   ` (31 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-11 13:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
   Target Milestone|---                         |4.6.0
            Summary|[4.6.0 regression]:         |[4.6 regression]:
                   |cross-compile fails while   |cross-compile fails while
                   |configuring libgcc with     |configuring libgcc with
                   |"xgcc: fatal error:         |"xgcc: fatal error:
                   |-fuse-linker-plugin, but    |-fuse-linker-plugin, but
                   |liblto_plugin.so not found" |liblto_plugin.so not found"

--- Comment #11 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-11 13:03:36 UTC ---
As said in another PR we should not add -fuse-linker-plugin to all command
lines.


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (11 preceding siblings ...)
  2011-01-11 13:05 ` [Bug lto/47225] [4.6 " rguenth at gcc dot gnu.org
@ 2011-01-11 13:06 ` rguenth at gcc dot gnu.org
  2011-01-11 13:35 ` hubicka at gcc dot gnu.org
                   ` (30 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-11 13:06 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |coolypf at qq dot com

--- Comment #12 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-11 13:04:30 UTC ---
*** Bug 47223 has been marked as a duplicate of this bug. ***


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (12 preceding siblings ...)
  2011-01-11 13:06 ` rguenth at gcc dot gnu.org
@ 2011-01-11 13:35 ` hubicka at gcc dot gnu.org
  2011-01-23  1:02 ` hubicka at gcc dot gnu.org
                   ` (29 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-11 13:35 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #13 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-11 13:27:54 UTC ---
Even when we do not default to -flinker-plugin w/o LTO this remains a problem.
We should chase out cases where we build plugin but it is useless.


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (13 preceding siblings ...)
  2011-01-11 13:35 ` hubicka at gcc dot gnu.org
@ 2011-01-23  1:02 ` hubicka at gcc dot gnu.org
  2011-01-24 22:53 ` burnus at gcc dot gnu.org
                   ` (28 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-23  1:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|hubicka at gcc dot gnu.org  |unassigned at gcc dot
                   |                            |gnu.org

--- Comment #14 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-22 23:49:29 UTC ---
We probably still could tweak toplevel configury to not build liblto when
libtool is not able to produce shared libs, but unassigning myself. Someone
with better libtool-fu hopefully will look into this.


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (14 preceding siblings ...)
  2011-01-23  1:02 ` hubicka at gcc dot gnu.org
@ 2011-01-24 22:53 ` burnus at gcc dot gnu.org
  2011-02-01 21:34 ` aoliva at gcc dot gnu.org
                   ` (27 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-01-24 22:53 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #15 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-01-24 21:41:31 UTC ---
As reported at http://gcc.gnu.org/ml/fortran/2011-01/msg00182.html, for BUILD =
HOST = TARGET = MinGW, the build fails if configured with --disabled-shared as
for lto-plugin --tag=disable-static is explicitly required. I was told that the
same error occurs also if one builds with --enable-shared.


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (15 preceding siblings ...)
  2011-01-24 22:53 ` burnus at gcc dot gnu.org
@ 2011-02-01 21:34 ` aoliva at gcc dot gnu.org
  2011-02-02  4:53 ` aoliva at gcc dot gnu.org
                   ` (26 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: aoliva at gcc dot gnu.org @ 2011-02-01 21:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

Alexandre Oliva <aoliva at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aoliva at gcc dot gnu.org

--- Comment #16 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-02-01 21:34:08 UTC ---
I'll have a look tonight.


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (16 preceding siblings ...)
  2011-02-01 21:34 ` aoliva at gcc dot gnu.org
@ 2011-02-02  4:53 ` aoliva at gcc dot gnu.org
  2011-02-02  7:32 ` aoliva at gcc dot gnu.org
                   ` (25 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: aoliva at gcc dot gnu.org @ 2011-02-02  4:53 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #17 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-02-02 04:53:05 UTC ---
It appears to me that one possible solution is to add the -shared flag to
liblto_plugin_la_LDFLAGS.  This will cause libtool to fail the link if it can't
create a dynamic library, so you'd know the ltoplugin is not supported on that
platform.

Of course, ideally we'd report it earlier, but I don't quite see how to
accomplish that.  Testing whether shared libraries remained enabled in
lto-plugin/configure is another viable option, but even that feels too late,
and it wouldn't catch all cases: libtoolo might configure itself to build
shared libraries, and decide that it can't do that for the specific case of
lto-plugin (say, on a platform that doesn't support shared libs with undefined
symbols, given that we don't pass -no-undefined, or for other reasons, such as
non-dynamic dependency libs on platforms that can't have non-PIC in shared
libs)

Will the former do?  Any other thoughts or wishes?


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (17 preceding siblings ...)
  2011-02-02  4:53 ` aoliva at gcc dot gnu.org
@ 2011-02-02  7:32 ` aoliva at gcc dot gnu.org
  2011-02-03 17:12 ` jakub at gcc dot gnu.org
                   ` (24 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: aoliva at gcc dot gnu.org @ 2011-02-02  7:32 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #18 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-02-02 07:31:42 UTC ---
Created attachment 23210
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23210
Patch that exposes the problem at an earlier point

Like this...


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (18 preceding siblings ...)
  2011-02-02  7:32 ` aoliva at gcc dot gnu.org
@ 2011-02-03 17:12 ` jakub at gcc dot gnu.org
  2011-02-06 15:54 ` ktietz at gcc dot gnu.org
                   ` (23 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-02-03 17:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #19 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-03 17:11:53 UTC ---
I guess it isn't that important whether lto-plugin is or is not built, but
whether gcc configury assumes it exists or not.


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (19 preceding siblings ...)
  2011-02-03 17:12 ` jakub at gcc dot gnu.org
@ 2011-02-06 15:54 ` ktietz at gcc dot gnu.org
  2011-02-06 16:58 ` tschwinge at gcc dot gnu.org
                   ` (22 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: ktietz at gcc dot gnu.org @ 2011-02-06 15:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #20 from Kai Tietz <ktietz at gcc dot gnu.org> 2011-02-06 15:06:58 UTC ---
Author: ktietz
Date: Sun Feb  6 15:06:56 2011
New Revision: 169863

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169863
Log:
2011-02-06  Kai Tietz  <kai.tietz@onevision.com>

    PR lto/47225
    * Makefile.def: Add dependency for install-gcc
    on install-lto-plugin.
    * Makfile.in: Regenerated


Modified:
    trunk/ChangeLog
    trunk/Makefile.def
    trunk/Makefile.in


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (20 preceding siblings ...)
  2011-02-06 15:54 ` ktietz at gcc dot gnu.org
@ 2011-02-06 16:58 ` tschwinge at gcc dot gnu.org
  2011-02-07  9:04 ` ktietz at gcc dot gnu.org
                   ` (21 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2011-02-06 16:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktietz at gcc dot gnu.org,
                   |                            |tschwinge at gcc dot
                   |                            |gnu.org

--- Comment #21 from Thomas Schwinge <tschwinge at gcc dot gnu.org> 2011-02-06 16:44:53 UTC ---
Yesterday, I it a similar problem when building GCC --target=i586-pc-gnu
(with all-gcc), and the lto-plugin was built, and was meant to be used,
but the gcc installed with install-gcc wasn't usable (failing to find the
shared library) unless I also did invoke install-lto-plugin.  I was just
about to submit a patch, but first update to current trunk source --
where Kai had just fixed the problem in exactly the same way I meant to,
thus thanks for that!

As for me, this can be set to RESOLVED, FIXED.


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (21 preceding siblings ...)
  2011-02-06 16:58 ` tschwinge at gcc dot gnu.org
@ 2011-02-07  9:04 ` ktietz at gcc dot gnu.org
  2011-02-07  9:49 ` tschwinge at gcc dot gnu.org
                   ` (20 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: ktietz at gcc dot gnu.org @ 2011-02-07  9:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #22 from Kai Tietz <ktietz at gcc dot gnu.org> 2011-02-07 08:20:59 UTC ---
Author: ktietz
Date: Mon Feb  7 08:20:56 2011
New Revision: 169877

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169877
Log:
2011-02-07  Kai Tietz  <kai.tietz@onevision.com>

        PR lto/47225
        * Makefile.am (Wl): New helper for encoding -Wl,.
        (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
        * Makefile.in: Regenerated.


Modified:
    trunk/lto-plugin/ChangeLog
    trunk/lto-plugin/Makefile.am
    trunk/lto-plugin/Makefile.in


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (22 preceding siblings ...)
  2011-02-07  9:04 ` ktietz at gcc dot gnu.org
@ 2011-02-07  9:49 ` tschwinge at gcc dot gnu.org
  2011-02-07 10:10 ` bonzini at gnu dot org
                   ` (19 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2011-02-07  9:49 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot       |ktietz at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #23 from Thomas Schwinge <tschwinge at gcc dot gnu.org> 2011-02-07 09:43:59 UTC ---
Kai?

    make[1]: Entering directory
`/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc.obj/lto-plugin'
    /bin/sh ./libtool --tag=CC --tag=disable-static  --mode=compile gcc
-DHAVE_CONFIG_H -I. -I/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin 
-I/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin/../include
-DHAVE_CONFIG_H  -Wall -Werror -g -O2 -c -o lto-plugin.lo
/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin/lto-plugin.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I.
-I/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin
-I/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin/../include
-DHAVE_CONFIG_H -Wall -Werror -g -O2 -c
/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin/lto-plugin.c  -fPIC
-DPIC -o .libs/lto-plugin.o
    make[1]: *** No rule to make target `-Wl,../libiberty/pic/libiberty.a',
needed by `liblto_plugin.la'.  Stop.
    make[1]: Leaving directory
`/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc.obj/lto-plugin'


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (23 preceding siblings ...)
  2011-02-07  9:49 ` tschwinge at gcc dot gnu.org
@ 2011-02-07 10:10 ` bonzini at gnu dot org
  2011-02-07 18:55 ` iains at gcc dot gnu.org
                   ` (18 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: bonzini at gnu dot org @ 2011-02-07 10:10 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #24 from Paolo Bonzini <bonzini at gnu dot org> 2011-02-07 09:48:42 UTC ---
Please use LDFLAGS, not LIBADD.


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (24 preceding siblings ...)
  2011-02-07 10:10 ` bonzini at gnu dot org
@ 2011-02-07 18:55 ` iains at gcc dot gnu.org
  2011-02-07 19:42 ` ktietz at gcc dot gnu.org
                   ` (17 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: iains at gcc dot gnu.org @ 2011-02-07 18:55 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |iains at gcc dot gnu.org

--- Comment #25 from Iain Sandoe <iains at gcc dot gnu.org> 2011-02-07 18:52:17 UTC ---
a bit late to this ....

I had this yesterday on a cross from darwin9 to cris-elf.

the liblto_plugin.dylib is built (correct shlib suffix) and copied to
(builddir)/gcc  - but the code is looking for  liblto_plugin.so

I sim-linked gcc/liblto_plugin.so -> liblto_plugin.dylib  as work-around... and
the rest proceeded OK.


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (25 preceding siblings ...)
  2011-02-07 18:55 ` iains at gcc dot gnu.org
@ 2011-02-07 19:42 ` ktietz at gcc dot gnu.org
  2011-02-07 20:35 ` ktietz at gcc dot gnu.org
                   ` (16 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: ktietz at gcc dot gnu.org @ 2011-02-07 19:42 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #26 from Kai Tietz <ktietz at gcc dot gnu.org> 2011-02-07 19:37:16 UTC ---
(In reply to comment #23)
> Kai?
> 
>     make[1]: Entering directory
> `/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc.obj/lto-plugin'
>     /bin/sh ./libtool --tag=CC --tag=disable-static  --mode=compile gcc
> -DHAVE_CONFIG_H -I. -I/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin 
> -I/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin/../include
> -DHAVE_CONFIG_H  -Wall -Werror -g -O2 -c -o lto-plugin.lo
> /home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin/lto-plugin.c
>     libtool: compile:  gcc -DHAVE_CONFIG_H -I.
> -I/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin
> -I/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin/../include
> -DHAVE_CONFIG_H -Wall -Werror -g -O2 -c
> /home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin/lto-plugin.c  -fPIC
> -DPIC -o .libs/lto-plugin.o
>     make[1]: *** No rule to make target `-Wl,../libiberty/pic/libiberty.a',
> needed by `liblto_plugin.la'.  Stop.
>     make[1]: Leaving directory
> `/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc.obj/lto-plugin'

Could you please test attached patch at
http://gcc.gnu.org/ml/gcc-patches/2011-02/msg00469.html that it works for you?

Thanks,
Kai


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (26 preceding siblings ...)
  2011-02-07 19:42 ` ktietz at gcc dot gnu.org
@ 2011-02-07 20:35 ` ktietz at gcc dot gnu.org
  2011-02-07 20:53 ` iains at gcc dot gnu.org
                   ` (15 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: ktietz at gcc dot gnu.org @ 2011-02-07 20:35 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #27 from Kai Tietz <ktietz at gcc dot gnu.org> 2011-02-07 20:32:24 UTC ---
Author: ktietz
Date: Mon Feb  7 20:32:17 2011
New Revision: 169900

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169900
Log:
2011-02-07  Kai Tietz  <kai.tietz@onevision.com>

        PR lto/47225
        * Makefile.am (Wc): New helper for encoding -Wc,.
        (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
        (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
        * Makefile.in: Regenerated.


Modified:
    trunk/lto-plugin/ChangeLog
    trunk/lto-plugin/Makefile.am
    trunk/lto-plugin/Makefile.in


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (27 preceding siblings ...)
  2011-02-07 20:35 ` ktietz at gcc dot gnu.org
@ 2011-02-07 20:53 ` iains at gcc dot gnu.org
  2011-02-07 20:55 ` ktietz at gcc dot gnu.org
                   ` (14 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: iains at gcc dot gnu.org @ 2011-02-07 20:53 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #28 from Iain Sandoe <iains at gcc dot gnu.org> 2011-02-07 20:48:48 UTC ---
(In reply to comment #26)
> (In reply to comment #23)

> Could you please test attached patch at
> http://gcc.gnu.org/ml/gcc-patches/2011-02/msg00469.html that it works for you?

I guess the bug I'm seeing must be different;
...  applied the patch and still get:

checking for suffix of object files... configure: error: in
`/GCC/cross-trees/cris-elf/cris-elf/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make: *** [all] Error 2

apollo:cris-elf $ ls gcc/liblto_plugin.*
gcc/liblto_plugin.0.dylib       gcc/liblto_plugin.dylib        
gcc/liblto_plugin.la

apollo:cris-elf $ ./gcc/xgcc -Bgcc ../../tests/trivial-0.c -S
xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.

after sym-linking gcc/liblto_plugin.dylib to gcc/liblto_plugin.so the compile
runs fine and the build completes.


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (28 preceding siblings ...)
  2011-02-07 20:53 ` iains at gcc dot gnu.org
@ 2011-02-07 20:55 ` ktietz at gcc dot gnu.org
  2011-02-07 21:05 ` iains at gcc dot gnu.org
                   ` (13 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: ktietz at gcc dot gnu.org @ 2011-02-07 20:55 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #29 from Kai Tietz <ktietz at gcc dot gnu.org> 2011-02-07 20:53:32 UTC ---
(In reply to comment #28)
> (In reply to comment #26)
> > (In reply to comment #23)
> 
> > Could you please test attached patch at
> > http://gcc.gnu.org/ml/gcc-patches/2011-02/msg00469.html that it works for you?
> 
> I guess the bug I'm seeing must be different;
> ...  applied the patch and still get:
> 
> checking for suffix of object files... configure: error: in
> `/GCC/cross-trees/cris-elf/cris-elf/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details.
> make[1]: *** [configure-target-libgcc] Error 1
> make: *** [all] Error 2
> 
> apollo:cris-elf $ ls gcc/liblto_plugin.*
> gcc/liblto_plugin.0.dylib       gcc/liblto_plugin.dylib        
> gcc/liblto_plugin.la
> 
> apollo:cris-elf $ ./gcc/xgcc -Bgcc ../../tests/trivial-0.c -S
> xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
> compilation terminated.
> 
> after sym-linking gcc/liblto_plugin.dylib to gcc/liblto_plugin.so the compile
> runs fine and the build completes.

Well, maybe check if target defines LTOPLUGINSONAME correct.


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (29 preceding siblings ...)
  2011-02-07 20:55 ` ktietz at gcc dot gnu.org
@ 2011-02-07 21:05 ` iains at gcc dot gnu.org
  2011-02-07 21:32 ` iains at gcc dot gnu.org
                   ` (12 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: iains at gcc dot gnu.org @ 2011-02-07 21:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #30 from Iain Sandoe <iains at gcc dot gnu.org> 2011-02-07 21:03:02 UTC ---
(In reply to comment #29)
> (In reply to comment #28)
> > (In reply to comment #26)
> > > (In reply to comment #23)
> > 
> > > Could you please test attached patch at
> > > http://gcc.gnu.org/ml/gcc-patches/2011-02/msg00469.html that it works for you?
> > 
> > I guess the bug I'm seeing must be different;
> > ...  applied the patch and still get:
> > 
> > checking for suffix of object files... configure: error: in
> > `/GCC/cross-trees/cris-elf/cris-elf/libgcc':
> > configure: error: cannot compute suffix of object files: cannot compile
> > See `config.log' for more details.
> > make[1]: *** [configure-target-libgcc] Error 1
> > make: *** [all] Error 2
> > 
> > apollo:cris-elf $ ls gcc/liblto_plugin.*
> > gcc/liblto_plugin.0.dylib       gcc/liblto_plugin.dylib        
> > gcc/liblto_plugin.la
> > 
> > apollo:cris-elf $ ./gcc/xgcc -Bgcc ../../tests/trivial-0.c -S
> > xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
> > compilation terminated.
> > 
> > after sym-linking gcc/liblto_plugin.dylib to gcc/liblto_plugin.so the compile
> > runs fine and the build completes.
> 
> Well, maybe check if target defines LTOPLUGINSONAME correct.

hm. it's running on the host tho.     OK - I'll have an investigate at some
point.


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (30 preceding siblings ...)
  2011-02-07 21:05 ` iains at gcc dot gnu.org
@ 2011-02-07 21:32 ` iains at gcc dot gnu.org
  2011-02-07 23:14 ` tschwinge at gcc dot gnu.org
                   ` (11 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: iains at gcc dot gnu.org @ 2011-02-07 21:32 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #31 from Iain Sandoe <iains at gcc dot gnu.org> 2011-02-07 21:22:10 UTC ---
(In reply to comment #30)
> (In reply to comment #29)
> > (In reply to comment #28)
> > > (In reply to comment #26)
> > > > (In reply to comment #23)
> > > 
> > > > Could you please test attached patch at
> > > > http://gcc.gnu.org/ml/gcc-patches/2011-02/msg00469.html that it works for you?
> > > 
> > > I guess the bug I'm seeing must be different;
> > > ...  applied the patch and still get:

> hm. it's running on the host tho.     OK - I'll have an investigate at some
> point.

given that the fault was reported on darwin it's still likely to need this...
testing:

Index: gcc/config.host
===================================================================
--- gcc/config.host     (revision 169878)
+++ gcc/config.host     (working copy)
@@ -96,6 +96,7 @@ case ${host} in
     # Generic darwin host support.
     out_host_hook_obj=host-darwin.o
     host_xmake_file="${host_xmake_file} x-darwin"
+    host_lto_plugin_soname=liblto_plugin.dylib
     ;;
 esac


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (31 preceding siblings ...)
  2011-02-07 21:32 ` iains at gcc dot gnu.org
@ 2011-02-07 23:14 ` tschwinge at gcc dot gnu.org
  2011-02-08  0:15 ` iains at gcc dot gnu.org
                   ` (10 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2011-02-07 23:14 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #32 from Thomas Schwinge <tschwinge at gcc dot gnu.org> 2011-02-07 23:06:33 UTC ---
I'm fine with the current state: I built a tree containing the r169900
change, on i686-pc-linux-gnu, --target=i586-pc-gnu, and it built fine;
the build log diff -w to an earlier tree is simply the following:

@@ -5289,10 +5289,7 @@
 make[1]: Entering directory
`/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc.obj/lto-plugin'
 /bin/sh ./libtool --tag=CC --tag=disable-static  --mode=compile gcc
-DHAVE_CONFIG_H -I. -I/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin 
-I/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin/../include
-DHAVE_CONFIG_H  -Wall -Werror -g -O2 -c -o lto-plugin.lo
/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin/lto-plugin.c
 libtool: compile:  gcc -DHAVE_CONFIG_H -I.
-I/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin
-I/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin/../include
-DHAVE_CONFIG_H -Wall -Werror -g -O2 -c
/home/tschwinge/tmp/gnu-Elephant_Bird/src/gcc/lto-plugin/lto-plugin.c  -fPIC
-DPIC -o .libs/lto-plugin.o
-/bin/sh ./libtool --tag=CC --tag=disable-static  --mode=link gcc -Wall -Werror
-g -O2  -bindir
/home/tschwinge/tmp/gnu-Elephant_Bird/libexec/gcc/i586-pc-gnu/4.6.0   -o
liblto_plugin.la -rpath
/home/tschwinge/tmp/gnu-Elephant_Bird/libexec/gcc/i586-pc-gnu/4.6.0
lto-plugin.lo ../libiberty/pic/libiberty.a 
-
-*** Warning: Linking the shared library liblto_plugin.la against the
-*** static library ../libiberty/pic/libiberty.a is not portable!
+/bin/sh ./libtool --tag=CC --tag=disable-static  --mode=link gcc -Wall -Werror
-g -O2  -bindir
/home/tschwinge/tmp/gnu-Elephant_Bird/libexec/gcc/i586-pc-gnu/4.6.0   -o
liblto_plugin.la -rpath
/home/tschwinge/tmp/gnu-Elephant_Bird/libexec/gcc/i586-pc-gnu/4.6.0
lto-plugin.lo -Wc,../libiberty/pic/libiberty.a 
 libtool: link: gcc -shared  .libs/lto-plugin.o   ../libiberty/pic/libiberty.a 
  -Wl,-soname -Wl,liblto_plugin.so.0 -o .libs/liblto_plugin.so.0.0.0
 libtool: link: (cd ".libs" && rm -f "liblto_plugin.so.0" && ln -s
"liblto_plugin.so.0.0.0" "liblto_plugin.so.0")
 libtool: link: (cd ".libs" && rm -f "liblto_plugin.so" && ln -s
"liblto_plugin.so.0.0.0" "liblto_plugin.so")

That is, -Wc,[...]/libiberty.a used, and the warning gone.


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (32 preceding siblings ...)
  2011-02-07 23:14 ` tschwinge at gcc dot gnu.org
@ 2011-02-08  0:15 ` iains at gcc dot gnu.org
  2011-02-08  8:56 ` bonzini at gnu dot org
                   ` (9 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: iains at gcc dot gnu.org @ 2011-02-08  0:15 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #33 from Iain Sandoe <iains at gcc dot gnu.org> 2011-02-07 23:37:21 UTC ---
(In reply to comment #32)
> I'm fine with the current state: I built a tree containing the r169900
> change, on i686-pc-linux-gnu, --target=i586-pc-gnu, and it built fine;
> the build log diff -w to an earlier tree is simply the following:

OK. :-)
The fix at comment #31 is needed for darwin x to cris-elf (at least) - I'll
post it separately (it's near obvious anyway)


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (33 preceding siblings ...)
  2011-02-08  0:15 ` iains at gcc dot gnu.org
@ 2011-02-08  8:56 ` bonzini at gnu dot org
  2011-02-08 10:01 ` iains at gcc dot gnu.org
                   ` (8 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: bonzini at gnu dot org @ 2011-02-08  8:56 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #34 from Paolo Bonzini <bonzini at gnu dot org> 2011-02-08 08:06:28 UTC ---
Iain,

the correct fix is to add -module to the LTO plugin LDFLAGS.  This changes the
extension from .dylib to .so.


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (34 preceding siblings ...)
  2011-02-08  8:56 ` bonzini at gnu dot org
@ 2011-02-08 10:01 ` iains at gcc dot gnu.org
  2011-02-08 10:04 ` bonzini at gnu dot org
                   ` (7 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: iains at gcc dot gnu.org @ 2011-02-08 10:01 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #35 from Iain Sandoe <iains at gcc dot gnu.org> 2011-02-08 09:56:08 UTC ---
(In reply to comment #34)

> the correct fix is to add -module to the LTO plugin LDFLAGS.  This changes the
> extension from .dylib to .so.

Thanks, I suppose the intention of the other entry is really for hosts that
want to change the base-name of the plugin? (that wasn't 100% clear to me from
the comment in gcc/config.host).

anyway, something like this?

Index: lto-plugin/configure.ac
===================================================================
--- lto-plugin/configure.ac    (revision 169878)
+++ lto-plugin/configure.ac    (working copy)
@@ -9,6 +9,13 @@ AC_SYS_LARGEFILE
 AM_PROG_LIBTOOL
 ACX_LT_HOST_FLAGS
 AC_SUBST(target_noncanonical)
+case "${host}" in
+  *-darwin*)
+    # Darwin needs -module to produce a dylib with .so suffix
+    extra_ldflags_lto_plugin='-module'
+    ;;
+esac
+AC_SUBST(extra_ldflags_lto_plugin)
 AC_TYPE_INT64_T
 AC_TYPE_UINT64_T
 AC_HEADER_SYS_WAIT
Index: lto-plugin/Makefile.am
===================================================================
--- lto-plugin/Makefile.am    (revision 169878)
+++ lto-plugin/Makefile.am    (working copy)
@@ -11,6 +11,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/../include $(DEFS)
 AM_CFLAGS = -Wall -Werror
 AM_LIBTOOLFLAGS = --tag=disable-static

+extra_ldflags_lto_plugin = @extra_ldflags_lto_plugin@
+
 libexecsub_LTLIBRARIES = liblto_plugin.la

 liblto_plugin_la_SOURCES = lto-plugin.c
@@ -18,6 +20,7 @@ liblto_plugin_la_LIBADD = \
     $(if $(wildcard
../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,)
 # Note that we intentionally override the bindir supplied by ACX_LT_HOST_FLAGS
 liblto_plugin_la_LDFLAGS = $(lt_host_flags) -bindir $(libexecsubdir) \
+    $(extra_ldflags_lto_plugin) \
     $(if $(wildcard
../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a)

 all: copy_lto_plugin


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (35 preceding siblings ...)
  2011-02-08 10:01 ` iains at gcc dot gnu.org
@ 2011-02-08 10:04 ` bonzini at gnu dot org
  2011-02-08 10:18 ` iains at gcc dot gnu.org
                   ` (6 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: bonzini at gnu dot org @ 2011-02-08 10:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #36 from Paolo Bonzini <bonzini at gnu dot org> 2011-02-08 10:00:41 UTC ---
No, it should be added for all targets.


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (36 preceding siblings ...)
  2011-02-08 10:04 ` bonzini at gnu dot org
@ 2011-02-08 10:18 ` iains at gcc dot gnu.org
  2011-02-10 12:09 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: iains at gcc dot gnu.org @ 2011-02-08 10:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #37 from Iain Sandoe <iains at gcc dot gnu.org> 2011-02-08 10:10:21 UTC ---
(In reply to comment #36)
> No, it should be added for all targets.

so.. 

Index: lto-plugin/Makefile.am
===================================================================
--- lto-plugin/Makefile.am    (revision 169878)
+++ lto-plugin/Makefile.am    (working copy)
@@ -17,7 +17,7 @@ liblto_plugin_la_SOURCES = lto-plugin.c
 liblto_plugin_la_LIBADD = \
     $(if $(wildcard
../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,)
 # Note that we intentionally override the bindir supplied by ACX_LT_HOST_FLAGS
-liblto_plugin_la_LDFLAGS = $(lt_host_flags) -bindir $(libexecsubdir) \
+liblto_plugin_la_LDFLAGS = $(lt_host_flags) -module -bindir $(libexecsubdir) \
     $(if $(wildcard
../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a)

 all: copy_lto_plugin


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (37 preceding siblings ...)
  2011-02-08 10:18 ` iains at gcc dot gnu.org
@ 2011-02-10 12:09 ` jakub at gcc dot gnu.org
  2011-02-10 12:15 ` iains at gcc dot gnu.org
                   ` (4 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-02-10 12:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #38 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-10 11:50:48 UTC ---
So, is this fixed now except for the darwin issue (#c37)?  Are you going to
post it to gcc-patches after testing?


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (38 preceding siblings ...)
  2011-02-10 12:09 ` jakub at gcc dot gnu.org
@ 2011-02-10 12:15 ` iains at gcc dot gnu.org
  2011-02-11 15:33 ` aoliva at gcc dot gnu.org
                   ` (3 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: iains at gcc dot gnu.org @ 2011-02-10 12:15 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #39 from Iain Sandoe <iains at gcc dot gnu.org> 2011-02-10 12:08:44 UTC ---
(In reply to comment #38)
> So, is this fixed now except for the darwin issue (#c37)?  Are you going to
> post it to gcc-patches after testing?

Ralf indicated that he was OK with all of this (incl. comment #37) in
http://gcc.gnu.org/ml/gcc-patches/2011-02/msg00552.html

I can confirm that this resolves my problem with Darwin9 X cris-elf.
 I wonder if FX is able to confirm it solves his case too? [per comment #9].


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (39 preceding siblings ...)
  2011-02-10 12:15 ` iains at gcc dot gnu.org
@ 2011-02-11 15:33 ` aoliva at gcc dot gnu.org
  2011-02-12 12:06 ` aoliva at gcc dot gnu.org
                   ` (2 subsequent siblings)
  43 siblings, 0 replies; 48+ messages in thread
From: aoliva at gcc dot gnu.org @ 2011-02-11 15:33 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

Alexandre Oliva <aoliva at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED
         AssignedTo|ktietz at gcc dot gnu.org   |aoliva at gcc dot gnu.org

--- Comment #40 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-02-11 15:02:20 UTC ---
Created attachment 23307
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23307
Patch that detects whether liblto_plugin.la was built as a shared library

This ought to fix the reported problem.  I'll probably check it in over the
weekend.


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (40 preceding siblings ...)
  2011-02-11 15:33 ` aoliva at gcc dot gnu.org
@ 2011-02-12 12:06 ` aoliva at gcc dot gnu.org
  2011-02-12 12:14 ` aoliva at gcc dot gnu.org
  2011-02-28 19:26 ` ktietz at gcc dot gnu.org
  43 siblings, 0 replies; 48+ messages in thread
From: aoliva at gcc dot gnu.org @ 2011-02-12 12:06 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

--- Comment #41 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-02-12 12:02:27 UTC ---
Author: aoliva
Date: Sat Feb 12 12:02:24 2011
New Revision: 170070

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170070
Log:
ChangeLog:
PR lto/47225
* Makefile.def (lto-plugin): Double dash for enable-shared.
(configure-gcc): Depend on all-lto-plugin.
* Makefile.in: Rebuilt.
lto-plugin/ChangeLog:
PR lto/47225
* Makefile.am (gcc_build_dir, in_gcc_libs): New.
(liblto_plugin_la_LDFLAGS): Add -module.
(copy_lto_plugin): Renamed to...
($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
of static modules.
* Makefile.in: Rebuild.
gcc/ChangeLog:
PR lto/47225
* configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
in the current directory.
* configure: Rebuilt.

Modified:
    trunk/ChangeLog
    trunk/Makefile.def
    trunk/Makefile.in
    trunk/gcc/ChangeLog
    trunk/gcc/configure
    trunk/gcc/configure.ac
    trunk/lto-plugin/ChangeLog
    trunk/lto-plugin/Makefile.am
    trunk/lto-plugin/Makefile.in


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (41 preceding siblings ...)
  2011-02-12 12:06 ` aoliva at gcc dot gnu.org
@ 2011-02-12 12:14 ` aoliva at gcc dot gnu.org
  2011-02-28 19:26 ` ktietz at gcc dot gnu.org
  43 siblings, 0 replies; 48+ messages in thread
From: aoliva at gcc dot gnu.org @ 2011-02-12 12:14 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

Alexandre Oliva <aoliva at gcc dot gnu.org> changed:

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

--- Comment #42 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-02-12 12:10:29 UTC ---
Fixed


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

* [Bug lto/47225] [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
  2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
                   ` (42 preceding siblings ...)
  2011-02-12 12:14 ` aoliva at gcc dot gnu.org
@ 2011-02-28 19:26 ` ktietz at gcc dot gnu.org
  43 siblings, 0 replies; 48+ messages in thread
From: ktietz at gcc dot gnu.org @ 2011-02-28 19:26 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anhvofrcaus at gmail dot
                   |                            |com

--- Comment #43 from Kai Tietz <ktietz at gcc dot gnu.org> 2011-02-28 19:12:04 UTC ---
*** Bug 47669 has been marked as a duplicate of this bug. ***


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

end of thread, other threads:[~2011-02-28 19:13 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-08 17:59 [Bug lto/47225] New: [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" John.Tytgat at aaug dot net
2011-01-08 18:06 ` Jan Hubicka
2011-01-08 18:07 ` [Bug lto/47225] " hubicka at ucw dot cz
2011-01-08 18:54 ` John.Tytgat at aaug dot net
2011-01-08 18:58   ` Jan Hubicka
2011-01-08 18:58 ` hubicka at ucw dot cz
2011-01-08 19:16   ` Jan Hubicka
2011-01-08 19:16 ` hubicka at ucw dot cz
2011-01-08 19:45 ` hubicka at gcc dot gnu.org
2011-01-08 20:04 ` John.Tytgat at aaug dot net
2011-01-09 14:47 ` hubicka at gcc dot gnu.org
2011-01-09 17:25 ` hubicka at gcc dot gnu.org
2011-01-10 11:51 ` fxcoudert at gcc dot gnu.org
2011-01-10 12:12   ` Jan Hubicka
2011-01-10 12:42 ` hubicka at ucw dot cz
2011-01-11 13:05 ` [Bug lto/47225] [4.6 " rguenth at gcc dot gnu.org
2011-01-11 13:06 ` rguenth at gcc dot gnu.org
2011-01-11 13:35 ` hubicka at gcc dot gnu.org
2011-01-23  1:02 ` hubicka at gcc dot gnu.org
2011-01-24 22:53 ` burnus at gcc dot gnu.org
2011-02-01 21:34 ` aoliva at gcc dot gnu.org
2011-02-02  4:53 ` aoliva at gcc dot gnu.org
2011-02-02  7:32 ` aoliva at gcc dot gnu.org
2011-02-03 17:12 ` jakub at gcc dot gnu.org
2011-02-06 15:54 ` ktietz at gcc dot gnu.org
2011-02-06 16:58 ` tschwinge at gcc dot gnu.org
2011-02-07  9:04 ` ktietz at gcc dot gnu.org
2011-02-07  9:49 ` tschwinge at gcc dot gnu.org
2011-02-07 10:10 ` bonzini at gnu dot org
2011-02-07 18:55 ` iains at gcc dot gnu.org
2011-02-07 19:42 ` ktietz at gcc dot gnu.org
2011-02-07 20:35 ` ktietz at gcc dot gnu.org
2011-02-07 20:53 ` iains at gcc dot gnu.org
2011-02-07 20:55 ` ktietz at gcc dot gnu.org
2011-02-07 21:05 ` iains at gcc dot gnu.org
2011-02-07 21:32 ` iains at gcc dot gnu.org
2011-02-07 23:14 ` tschwinge at gcc dot gnu.org
2011-02-08  0:15 ` iains at gcc dot gnu.org
2011-02-08  8:56 ` bonzini at gnu dot org
2011-02-08 10:01 ` iains at gcc dot gnu.org
2011-02-08 10:04 ` bonzini at gnu dot org
2011-02-08 10:18 ` iains at gcc dot gnu.org
2011-02-10 12:09 ` jakub at gcc dot gnu.org
2011-02-10 12:15 ` iains at gcc dot gnu.org
2011-02-11 15:33 ` aoliva at gcc dot gnu.org
2011-02-12 12:06 ` aoliva at gcc dot gnu.org
2011-02-12 12:14 ` aoliva at gcc dot gnu.org
2011-02-28 19:26 ` ktietz at gcc dot gnu.org

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