This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: build failure in native gdb with crosstool-ng-1.13.1 on openSUSE 12.1


Trevor, All,

On Monday 12 December 2011 22:52:54 Trevor Woerner wrote:
> Both openSUSE-32 and openSUSE-64 introduced a "config.site" file and
> define a CONFIG_SITE environment variable to point to this file in the
> default configuration (/etc/profile.d/profile.sh). On 64-bit systems
> this file is /usr/share/site/x86_64-unknown-linux-gnu and on 32-bit
> systems it is /usr/share/site/i686-pc-linux-gnu. Neither version
> (32-bit nor 64-bit) of 11.4 had this mechanism.
[--SNIP--]
> On openSUSE 12.1 64-bit using Yann's patch .OR. Guillaume's patch .OR.
> unsetting CONFIG_SITE by themselves solved the gdb-native build
> failure. However, only unsetting CONFIG_PATH solved the

Did you mean CONFIG_PATH, or CONFIG_SITE ?

> "install-strip" problem.

OK, so if we just unset CONFIG_SITE, it fixes both. Good. I'll push
the attached patch very shortly.

> openSUSE 11.4 does not include the CONFIG_PATH mechanism in either of
> the 32-bit or 64-bit installs, so crosstool-NG builds fine on those
> distributions.
> 
> On openSUSE 12.1 32-bit nothing needs to be done to get "gdb-native"
> to build correctly, however the "install-strip" phase also fails
> unless CONFIG_PATH is unset in the environment.

Thanks for this complete summary! :-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -41,6 +41,8 @@
 CT_TestAndAbort "Don't set CXXFLAGS. It screws up the build." -n "${CXXFLAGS}"
 CT_Test "GREP_OPTIONS screws up the build. Resetting." -n "${GREP_OPTIONS}"
 export GREP_OPTIONS=
+# Workaround against openSUSE 12.1 that breaks ./configure for cross-compilation:
+export CONFIG_SITE=
 
 # Some sanity checks on paths content
 for d in            \

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]