* [Bug bootstrap/41818] Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile
2009-10-24 20:08 [Bug bootstrap/41818] New: Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile denis dot onischenko at gmail dot com
@ 2009-10-24 20:23 ` denis dot onischenko at gmail dot com
2009-10-25 21:00 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: denis dot onischenko at gmail dot com @ 2009-10-24 20:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from denis dot onischenko at gmail dot com 2009-10-24 20:23 -------
I run the configure script as follows:
../src/configure --build=x86_64-unknown-linux-gnu
--host=x86_64-unknown-linux-gnu --target=powerpc64-unknown-linux-gnu
--prefix=$(BUILDDIR)/cross-tools --disable-werror --with-sysroot=$(SYSROOT)
--enable-languages=c,c++ --disable-multilib
--disable-nls
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug bootstrap/41818] Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile
2009-10-24 20:08 [Bug bootstrap/41818] New: Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile denis dot onischenko at gmail dot com
2009-10-24 20:23 ` [Bug bootstrap/41818] " denis dot onischenko at gmail dot com
@ 2009-10-25 21:00 ` pinskia at gcc dot gnu dot org
2009-10-25 21:01 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-10-25 21:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2009-10-25 21:00 -------
@if gcc-bootstrap
$(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed
's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
@endif gcc-bootstrap
That is only happens when doing a native bootstrap and never when doing a cross
build.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug bootstrap/41818] Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile
2009-10-24 20:08 [Bug bootstrap/41818] New: Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile denis dot onischenko at gmail dot com
2009-10-24 20:23 ` [Bug bootstrap/41818] " denis dot onischenko at gmail dot com
2009-10-25 21:00 ` pinskia at gcc dot gnu dot org
@ 2009-10-25 21:01 ` pinskia at gcc dot gnu dot org
2010-01-06 13:53 ` jocke at vmlinux dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-10-25 21:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2009-10-25 21:01 -------
Actually, wait:
$(RPATH_ENVVAR)=`echo
"$(HOST_LIB_PATH)$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed
's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
For BASE_TARGET_EXPORTS.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug bootstrap/41818] Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile
2009-10-24 20:08 [Bug bootstrap/41818] New: Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile denis dot onischenko at gmail dot com
` (2 preceding siblings ...)
2009-10-25 21:01 ` pinskia at gcc dot gnu dot org
@ 2010-01-06 13:53 ` jocke at vmlinux dot org
2010-01-06 17:33 ` rwild at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jocke at vmlinux dot org @ 2010-01-06 13:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jocke at vmlinux dot org 2010-01-06 13:53 -------
I can confirm this issue while building an armeb-unknown-uclibcgnueabi
(big-endian) cross toolchain on i686 (Ubuntu 9.10 32-bit) using crosstool-NG.
However, I cannot replicate it on any host running x86_64 (Ubuntu 9.04 or 9.10,
64-bit). Also, when building a arm-unknown-uclibcgnueabi (little-endian) this
bug is not triggered. Maybe that helps.
Some of the messages in the official mailing list archive related to this issue
have somehow been lost (?),
http://gcc.gnu.org/ml/gcc-bugs/2009-10/msg02122.html (see the thread view). I
found
http://old.nabble.com/Re:-Error-when-building-cross-compiler-td25755999.html
where Kai Ruottu gave some interesting insight.
The bug can be worked around by adding the --disable-shared configure option to
the last (final) stage in the compiler build.
--
jocke at vmlinux dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jocke at vmlinux dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug bootstrap/41818] Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile
2009-10-24 20:08 [Bug bootstrap/41818] New: Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile denis dot onischenko at gmail dot com
` (3 preceding siblings ...)
2010-01-06 13:53 ` jocke at vmlinux dot org
@ 2010-01-06 17:33 ` rwild at gcc dot gnu dot org
2010-01-06 20:19 ` denis dot onischenko at gmail dot com
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rwild at gcc dot gnu dot org @ 2010-01-06 17:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rwild at gcc dot gnu dot org 2010-01-06 17:33 -------
Created an attachment (id=19486)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19486&action=view)
patch to add TARGET_LIB_PATH only when bootstrapping
Please try this patch. Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug bootstrap/41818] Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile
2009-10-24 20:08 [Bug bootstrap/41818] New: Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile denis dot onischenko at gmail dot com
` (4 preceding siblings ...)
2010-01-06 17:33 ` rwild at gcc dot gnu dot org
@ 2010-01-06 20:19 ` denis dot onischenko at gmail dot com
2010-01-06 20:32 ` jocke at vmlinux dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: denis dot onischenko at gmail dot com @ 2010-01-06 20:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from denis dot onischenko at gmail dot com 2010-01-06 20:19 -------
(In reply to comment #5)
> Created an attachment (id=19486)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19486&action=view) [edit]
> patch to add TARGET_LIB_PATH only when bootstrapping
>
> Please try this patch. Thanks.
>
I have successfuly compiled cross compiler with this patch. gcc revision is
155559. host is x86_64-unknown-linux-gnu, target is
powerpc64-unknown-linux-gnu.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug bootstrap/41818] Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile
2009-10-24 20:08 [Bug bootstrap/41818] New: Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile denis dot onischenko at gmail dot com
` (5 preceding siblings ...)
2010-01-06 20:19 ` denis dot onischenko at gmail dot com
@ 2010-01-06 20:32 ` jocke at vmlinux dot org
2010-01-07 19:54 ` rwild at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jocke at vmlinux dot org @ 2010-01-06 20:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jocke at vmlinux dot org 2010-01-06 20:31 -------
Yep, works for me too, using crosstool-NG to build an
armeb-unknown-linux-uclibcgnueabi for i686 host. Thanks Ralf!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug bootstrap/41818] Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile
2009-10-24 20:08 [Bug bootstrap/41818] New: Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile denis dot onischenko at gmail dot com
` (6 preceding siblings ...)
2010-01-06 20:32 ` jocke at vmlinux dot org
@ 2010-01-07 19:54 ` rwild at gcc dot gnu dot org
2010-01-07 19:57 ` rwild at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rwild at gcc dot gnu dot org @ 2010-01-07 19:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rwild at gcc dot gnu dot org 2010-01-07 19:54 -------
Subject: Bug 41818
Author: rwild
Date: Thu Jan 7 19:53:50 2010
New Revision: 155706
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155706
Log:
Fix PR bootstrap/41818.
/:
PR bootstrap/41818
* Makefile.tpl (BASE_TARGET_EXPORTS): Only add TARGET_LIB_PATH
to $(RPATH_ENVVAR) if bootstrapping. Fix typo in comment.
* Makefile.in: Regenerate.
Modified:
trunk/ChangeLog
trunk/Makefile.in
trunk/Makefile.tpl
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug bootstrap/41818] Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile
2009-10-24 20:08 [Bug bootstrap/41818] New: Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile denis dot onischenko at gmail dot com
` (7 preceding siblings ...)
2010-01-07 19:54 ` rwild at gcc dot gnu dot org
@ 2010-01-07 19:57 ` rwild at gcc dot gnu dot org
2010-02-27 1:21 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rwild at gcc dot gnu dot org @ 2010-01-07 19:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from rwild at gcc dot gnu dot org 2010-01-07 19:57 -------
Fixed.
--
rwild at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug bootstrap/41818] Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile
2009-10-24 20:08 [Bug bootstrap/41818] New: Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile denis dot onischenko at gmail dot com
` (8 preceding siblings ...)
2010-01-07 19:57 ` rwild at gcc dot gnu dot org
@ 2010-02-27 1:21 ` pinskia at gcc dot gnu dot org
2010-08-05 23:29 ` lacombar at gmail dot com
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-02-27 1:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from pinskia at gcc dot gnu dot org 2010-02-27 01:20 -------
*** Bug 43194 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |viriketo at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug bootstrap/41818] Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile
2009-10-24 20:08 [Bug bootstrap/41818] New: Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile denis dot onischenko at gmail dot com
` (9 preceding siblings ...)
2010-02-27 1:21 ` pinskia at gcc dot gnu dot org
@ 2010-08-05 23:29 ` lacombar at gmail dot com
2010-08-06 0:01 ` lacombar at gmail dot com
2010-08-07 14:18 ` rwild at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: lacombar at gmail dot com @ 2010-08-05 23:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from lacombar at gmail dot com 2010-08-05 23:29 -------
I encountered that issue with gcc 4.3.4 on the following target:
mips-unknown-linux-uclibc. I'm currently confirming with gcc 4.3.5. If it still
happen, would it be worth pulling to the 4.3 branch ?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug bootstrap/41818] Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile
2009-10-24 20:08 [Bug bootstrap/41818] New: Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile denis dot onischenko at gmail dot com
` (10 preceding siblings ...)
2010-08-05 23:29 ` lacombar at gmail dot com
@ 2010-08-06 0:01 ` lacombar at gmail dot com
2010-08-07 14:18 ` rwild at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: lacombar at gmail dot com @ 2010-08-06 0:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from lacombar at gmail dot com 2010-08-06 00:01 -------
ok, 3.4.5, same target is bad too:
./mips-unknown-linux-uclibc/libstdc++-v3/config.log:
error while loading shared libraries:
/targets/mips-unknown-linux-uclibc/build/build-cc/./gcc/libgcc_s.so.1: ELF file
data encoding not little-endian
--
lacombar at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lacombar at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug bootstrap/41818] Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile
2009-10-24 20:08 [Bug bootstrap/41818] New: Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile denis dot onischenko at gmail dot com
` (11 preceding siblings ...)
2010-08-06 0:01 ` lacombar at gmail dot com
@ 2010-08-07 14:18 ` rwild at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: rwild at gcc dot gnu dot org @ 2010-08-07 14:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from rwild at gcc dot gnu dot org 2010-08-07 14:18 -------
(In reply to comment #11)
> I encountered that issue with gcc 4.3.4 on the following target:
> mips-unknown-linux-uclibc. I'm currently confirming with gcc 4.3.5. If it still
> happen, would it be worth pulling to the 4.3 branch ?
Can you please confirm that the patch from comment #8 fixes the issue for you
on the 4.3 (and maybe also 4.4) branch? I'd propose the backport on
gcc-patches then. Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818
^ permalink raw reply [flat|nested] 14+ messages in thread