From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25034 invoked by alias); 12 Apr 2009 18:24:19 -0000 Received: (qmail 25019 invoked by uid 22791); 12 Apr 2009 18:24:16 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_63,J_CHICKENPOX_65,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout7.012.net.il (HELO mtaout7.012.net.il) (84.95.2.19) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 12 Apr 2009 18:24:09 +0000 Received: from conversion-daemon.i-mtaout7.012.net.il by i-mtaout7.012.net.il (HyperSendmail v2007.08) id <0KI00050033VE700@i-mtaout7.012.net.il> for gdb-patches@sources.redhat.com; Sun, 12 Apr 2009 21:24:05 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.240.185]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KI000DHE344DF40@i-mtaout7.012.net.il>; Sun, 12 Apr 2009 21:24:05 +0300 (IDT) Date: Sun, 12 Apr 2009 18:24:00 -0000 From: Eli Zaretskii Subject: target/build mismatch for DJGPP To: config-patches@gnu.org Cc: gdb-patches@sources.redhat.com Reply-to: Eli Zaretskii Message-id: <83hc0tohmd.fsf@gnu.org> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-04/txt/msg00228.txt.bz2 On the DJGPP platform, we currently have: $ sh ./config.guess i386-pc-msdosdjgpp But then the top-level config/mh-djgpp has this: # Shorten the target alias so when it is used to set 'libsubdir' # the name will work in both short and long filename environments. ifeq ($(findstring -pc-msdosdjgpp,$(target_alias)),-pc-msdosdjgpp) target_alias=djgpp endif This causes all the configure scripts in subdirectories to be invoked with --target=djgpp. But $ sh ./config.sub djgpp i586-pc-msdosdjgpp This mismatch between the host and the target causes GDB to build as a cross-debugger, without native support for the djgpp target. To resolve this, I propose the change below. I think assuming i586 as the lowest common denominator is okay these days, even for DJGPP. Thanks. 2009-04-12 Eli Zaretskii * config.guess (pc:*:*:*): Return i586-pc-msdosdjgpp, for consistency with config.sub. --- config.guess.~1~ 2008-12-18 07:26:46.000000000 +0200 +++ config.guess 2009-04-11 18:42:45.875000000 +0300 @@ -1115,8 +1115,11 @@ pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about - # the processor, so we play safe by assuming i386. - echo i386-pc-msdosdjgpp + # the processor, so we play safe by assuming i586. + # Note: whatever this is, it MUST be the same as what config.sub + # prints for the "djgpp" host, or else GDB configury will decide that + # this is a cross-build. + echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3