From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6456 invoked by alias); 29 Nov 2011 22:54:27 -0000 Received: (qmail 6446 invoked by uid 22791); 29 Nov 2011 22:54:26 -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 smtp01.smtpout.orange.fr (HELO smtp.smtpout.orange.fr) (80.12.242.123) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 Nov 2011 22:53:34 +0000 Received: from treguer.localnet ([90.32.37.166]) by mwinf5d36 with ME id 3AtY1i0043b4rwA03AtYUC; Tue, 29 Nov 2011 23:53:33 +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: Tue, 29 Nov 2011 22:54:00 -0000 User-Agent: KMail/1.13.5 (Linux/3.1.4-treguer; KDE/4.4.5; x86_64; ; ) Cc: Trevor Woerner References: In-Reply-To: MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_rJW1Op4vyckFSJS" Message-Id: <201111292353.31922.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-11/txt/msg00198.txt.bz2 --Boundary-00=_rJW1Op4vyckFSJS Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-length: 2032 Trevor, All, On Tuesday 29 November 2011 00:19:13 Trevor Woerner wrote: > I recently upgraded to the latest openSUSE 12.1 release and discovered > that crosstool-NG has trouble building native gdb. > > In scripts/build/debug/300-gdb.sh around line 249 is found: > > native_extra_config+=("--with-curses") > # There's no better way to tell gdb where to find -lcurses... :-( > gdb_native_CFLAGS+=("-I${CT_BUILD_DIR}/static-target/include") > gdb_native_CFLAGS+=("-L${CT_BUILD_DIR}/static-target/lib") > > In previous builds (i.e. openSUSE 11.4, etc) the lib directory (as > specified) exists. With my builds on openSUSE 12.1 this directory > doesn't exist, but ${CT_BUILD_DIR}/static-target/lib64 does. The > native gdb fails during the run of one of the many sub-directory > ./configure scripts saying "no termcap library found". What target are youbuilding for? Could you post your .config, please? > Manually > tweaking the above to say "lib64" allows the native gdb build to > succeed (but, obviously, is not a general solution). I never encountered this issue, but it can make sense if the target architecture is 64-bit, in which case the libraries could be installed in the lib64 sub-directory Care to test the attached patch, please? > The build then fails a little later (during cleanup, stripping all > binaries) but I haven't looking into that yet to provide much > information. Probably again an issue with lib vs. lib64 confusion along the road... 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=_rJW1Op4vyckFSJS Content-Type: text/x-patch; charset="UTF-8"; name="debug-gdb-native-fix-64bit-targets.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="debug-gdb-native-fix-64bit-targets.patch" Content-length: 821 diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -191,6 +191,13 @@ native_extra_config=("${extra_config[@]}") + # For 64-bit targets, the target libs may get installed in lib64/ + # and not in lib/ so symlink the former to the latter. + CT_DoExecLog DEBUG mkdir -p "${CT_BUILD_DIR}/static-target" + CT_DoExecLog DEBUG mkdir -p "${CT_BUILD_DIR}/static-target/lib" + CT_DoExecLog DEBUG ln -s "${CT_BUILD_DIR}/static-target/lib" \ + "${CT_BUILD_DIR}/static-target/lib64" + # GDB on Mingw depends on PDcurses, not ncurses if [ "${do_ncurses}" = "y" ]; then CT_DoLog EXTRA "Building static target ncurses" --Boundary-00=_rJW1Op4vyckFSJS Content-Type: text/plain; charset=us-ascii Content-length: 71 -- For unsubscribe information see http://sourceware.org/lists.html#faq --Boundary-00=_rJW1Op4vyckFSJS--