From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16153 invoked by alias); 13 Feb 2014 10:44:00 -0000 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 Received: (qmail 16142 invoked by uid 89); 13 Feb 2014 10:43:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 13 Feb 2014 10:43:58 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s1DAhq02017857 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 13 Feb 2014 05:43:53 -0500 Received: from host2.jankratochvil.net (ovpn-116-93.ams2.redhat.com [10.36.116.93]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s1DAhm74006710 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 13 Feb 2014 05:43:50 -0500 Date: Thu, 13 Feb 2014 10:44:00 -0000 From: Jan Kratochvil To: Joel Brobecker Cc: Eli Zaretskii , gdb-patches@sourceware.org Subject: [patch] [sim] --disable-sim on ppc* by default (for AIX) [Re: getaddrinfo available on all GDB hosts?] Message-ID: <20140213104347.GA27475@host2.jankratochvil.net> References: <1392033768-16793-1-git-send-email-fercerpav@gmail.com> <831tzavrhw.fsf@gnu.org> <20140210170244.GO2320@home.lan> <83vbwmuaj8.fsf@gnu.org> <20140210195758.GA16956@host2.jankratochvil.net> <20140211034157.GG5485@adacore.com> <20140211200456.GA22728@host2.jankratochvil.net> <20140212030012.GO5485@adacore.com> <20140212120945.GA2109@host2.jankratochvil.net> <20140213073726.GU5485@adacore.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="CE+1k2dSO48ffgeK" Content-Disposition: inline In-Reply-To: <20140213073726.GU5485@adacore.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00453.txt.bz2 --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 1001 On Thu, 13 Feb 2014 08:37:26 +0100, Joel Brobecker wrote: > > I failed to build (make failed to find how to build file "-lz") GDB even on > > AIX - on gcc111.fsffrance.org - which should be a supported OS (by you > > coincidentally) so I have doubts GDB is buildable on OSes no one even tests. > > I did so on gcc111 not so long ago, and now that we have our ppc-aix > machine back, we build it routinely. gcc111.fsffrance.org: bzip2 -dc gdb-7.7.tar.bz2|tar xf -;cd gdb-7.7;./configure;make gcc -g -O2 -I. -I. -I./../../include -I../../bfd -I./../../bfd -I../../gdb -I./../../gdb -I./../../gdb/config -I. -I../common -I./../common -o gentmap gcc: fatal error: no input files compilation terminated. make: 1254-004 The error code from the last command is 1. (BTW it builds OK on RHEL-5 ppc64.) But I have figured out now it builds with --disable-sim . Maybe to disable ppc* sim by default? I have disabled it in Fedora/RHEL in Feb 2008 as already that time it could not run any binary. Jan --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="nosim.patch" Content-length: 2742 sim/ 2014-02-13 Jan Kratochvil * configure: Regenerate. * configure.ac (enable_sim): Use AS_HELP_STRING, set auto by defaultr. * configure.tgt (sim_default): New. (powerpc*-*-*): Disable it. diff --git a/sim/configure b/sim/configure index ab98231b..33df8f9 100755 --- a/sim/configure +++ b/sim/configure @@ -1280,7 +1280,8 @@ Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-sim + --enable-sim Include simulated target (default=yes for most + targets) Some influential environment variables: CC C compiler command @@ -3605,11 +3606,14 @@ if test "${enable_sim+set}" = set; then : yes | no) ;; *) as_fn_error "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;; esac +else + enable_sim=auto fi -if test "${enable_sim}" != no; then +if test "${enable_sim}" = yes \ + -o '(' "${enable_sim}" != no -a $sim_default = yes ')'; then # WHEN ADDING ENTRIES TO THIS MATRIX: @@ -3624,6 +3628,7 @@ sim_testsuite=no sim_common=yes sim_igen=no sim_arch= +sim_default=yes case "${target}" in arm*-*-*) @@ -3820,6 +3825,7 @@ subdirs="$subdirs arm" subdirs="$subdirs ppc" + sim_default=no ;; v850*-*-*) diff --git a/sim/configure.ac b/sim/configure.ac index 8c1d914..6a76712 100644 --- a/sim/configure.ac +++ b/sim/configure.ac @@ -30,17 +30,20 @@ AC_SUBST(CFLAGS_FOR_BUILD) # If a cpu ever has more than one simulator to choose from, use # --enable-sim=... to choose. AC_ARG_ENABLE(sim, -[ --enable-sim ], +AS_HELP_STRING([--enable-sim], + [Include simulated target (default=yes for most targets)]), [case "${enableval}" in yes | no) ;; *) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;; -esac]) +esac], +[enable_sim=auto]) m4_define([SIM_ARCH], [ sim_arch=$1 AC_CONFIG_SUBDIRS($1) ]) -if test "${enable_sim}" != no; then +if test "${enable_sim}" = yes \ + -o '(' "${enable_sim}" != no -a $sim_default = yes ')'; then sinclude(configure.tgt) if test "$sim_testsuite" = yes; then AC_CONFIG_SUBDIRS(testsuite) diff --git a/sim/configure.tgt b/sim/configure.tgt index 39f92b6..b5cd02a 100644 --- a/sim/configure.tgt +++ b/sim/configure.tgt @@ -15,6 +15,7 @@ sim_testsuite=no sim_common=yes sim_igen=no sim_arch= +sim_default=yes case "${target}" in arm*-*-*) SIM_ARCH(arm) @@ -109,6 +110,7 @@ case "${target}" in ;; powerpc*-*-*) SIM_ARCH(ppc) + sim_default=no ;; v850*-*-*) SIM_ARCH(v850) --CE+1k2dSO48ffgeK--