public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
To: crossgcc@sourceware.org
Cc: Trevor Woerner <twoerner@gmail.com>
Subject: Re: build failure in native gdb with crosstool-ng-1.13.1 on openSUSE 12.1
Date: Mon, 12 Dec 2011 22:43:00 -0000	[thread overview]
Message-ID: <201112122343.39072.yann.morin.1998@anciens.enib.fr> (raw)
In-Reply-To: <CAHUNapQKvYAJxFe3ZV=Pr0x+UjpoNJ2YWHDF82urtDiZRN+hZA@mail.gmail.com>

[-- Attachment #1: Type: Text/Plain, Size: 1762 bytes --]

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.  |
'------------------------------^-------^------------------^--------------------'

[-- Attachment #2: ct-ng.fix-for-CONFIG_SITE-on-openSUSE.patch --]
[-- Type: text/x-patch, Size: 501 bytes --]

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            \


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

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

  reply	other threads:[~2011-12-12 22:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-28 23:19 Trevor Woerner
2011-11-29 22:54 ` Yann E. MORIN
     [not found]   ` <CAHUNapRiJtqH3yJDztc-ZroJKzjgRWuSwDKNjZVYYSn5iM0ryA@mail.gmail.com>
2011-11-30  2:46     ` Trevor Woerner
2011-12-05 22:36       ` Trevor Woerner
2011-12-11 21:44         ` Yann E. MORIN
2011-12-12 12:36         ` Yann E. MORIN
2011-12-12 13:54           ` Trevor Woerner
2011-12-12 14:07             ` Yann E. MORIN
2011-12-12 21:53               ` Trevor Woerner
2011-12-12 22:43                 ` Yann E. MORIN [this message]
2011-12-13  3:43                   ` Trevor Woerner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201112122343.39072.yann.morin.1998@anciens.enib.fr \
    --to=yann.morin.1998@anciens.enib.fr \
    --cc=crossgcc@sourceware.org \
    --cc=twoerner@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).