From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13283 invoked by alias); 12 Dec 2011 22:43:55 -0000 Received: (qmail 13271 invoked by uid 22791); 12 Dec 2011 22:43:54 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from smtp02.smtpout.orange.fr (HELO smtp.smtpout.orange.fr) (80.12.242.124) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Dec 2011 22:43:41 +0000 Received: from treguer.localnet ([90.32.38.45]) by mwinf5d55 with ME id 8Njf1i00A0ySpGA03Njfmu; Mon, 12 Dec 2011 23:43:39 +0100 From: "Yann E. MORIN" To: crossgcc@sourceware.org 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 User-Agent: KMail/1.13.5 (Linux/3.1.4-treguer; KDE/4.4.5; x86_64; ; ) Cc: Trevor Woerner References: <201112121507.32134.yann.morin.1998@anciens.enib.fr> In-Reply-To: MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_aOo5OHA3wqzDcFz" Message-Id: <201112122343.39072.yann.morin.1998@anciens.enib.fr> Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2011-12/txt/msg00038.txt.bz2 --Boundary-00=_aOo5OHA3wqzDcFz Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-length: 1762 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. | '------------------------------^-------^------------------^--------------------' --Boundary-00=_aOo5OHA3wqzDcFz Content-Type: text/x-patch; charset="UTF-8"; name="ct-ng.fix-for-CONFIG_SITE-on-openSUSE.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ct-ng.fix-for-CONFIG_SITE-on-openSUSE.patch" Content-length: 501 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 \ --Boundary-00=_aOo5OHA3wqzDcFz Content-Type: text/plain; charset=us-ascii Content-length: 71 -- For unsubscribe information see http://sourceware.org/lists.html#faq --Boundary-00=_aOo5OHA3wqzDcFz--