Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] gcc-configure-common.inc: Stop gcc looking at build system paths
@ 2012-04-15 17:05 Richard Purdie
  2012-04-15 23:42 ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2012-04-15 17:05 UTC (permalink / raw)
  To: openembedded-core

There were puzzling failures when you make a force recompile of any gcc
component. The error was in do_configure with cross-compilation badness
being detected in config.log files.

gcc is different in that many of the config.log files are generated during
the do_compile phase. This means this host contamination issue has always
been present but only shows up on a rebuild.

The fix is to force the appropriate configuration variable to "none required"
then gcc won't look in the bad locations.

[YOCTO #2279]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
index 7a96e91..9542dc9 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
@@ -107,6 +107,10 @@ do_configure () {
 	export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
 	export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
 	export ARCH_FLAGS_FOR_TARGET="${ARCH_FLAGS_FOR_TARGET}"
+	# We need to set this else there is cross-compilation badness
+	# in the config.log files (which might not get generated until do_compile
+	# hence being missed by the insane do_configure check).
+	export gcc_cv_collect2_libs="none required"
 	(cd ${S} && gnu-configize) || die "failure running gnu-configize"
 
 	oe_runconf





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

* Re: [PATCH] gcc-configure-common.inc: Stop gcc looking at build system paths
  2012-04-15 17:05 [PATCH] gcc-configure-common.inc: Stop gcc looking at build system paths Richard Purdie
@ 2012-04-15 23:42 ` Khem Raj
  2012-04-16  8:23   ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2012-04-15 23:42 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Sun, Apr 15, 2012 at 10:05 AM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> gcc_cv_collect2_libs

is it the /usr/lib/cmplrs/cc2.11 access issue ?
in that case the fix it fine. However if its something in LTO
then we need to dig deeper



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

* Re: [PATCH] gcc-configure-common.inc: Stop gcc looking at build system paths
  2012-04-15 23:42 ` Khem Raj
@ 2012-04-16  8:23   ` Richard Purdie
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2012-04-16  8:23 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Sun, 2012-04-15 at 16:42 -0700, Khem Raj wrote:
> On Sun, Apr 15, 2012 at 10:05 AM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > gcc_cv_collect2_libs
> 
> is it the /usr/lib/cmplrs/cc2.11 access issue ?

It is.

> in that case the fix it fine. However if its something in LTO
> then we need to dig deeper

Its not lto related.

Cheers,

Richard




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

end of thread, other threads:[~2012-04-16  8:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-15 17:05 [PATCH] gcc-configure-common.inc: Stop gcc looking at build system paths Richard Purdie
2012-04-15 23:42 ` Khem Raj
2012-04-16  8:23   ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox