From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Eli Zaretskii <eliz@gnu.org>, gdb-patches@sourceware.org
Subject: [patch] [sim] --disable-sim on ppc* by default (for AIX) [Re: getaddrinfo available on all GDB hosts?]
Date: Thu, 13 Feb 2014 10:44:00 -0000 [thread overview]
Message-ID: <20140213104347.GA27475@host2.jankratochvil.net> (raw)
In-Reply-To: <20140213073726.GU5485@adacore.com>
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
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
[-- Attachment #2: nosim.patch --]
[-- Type: text/plain, Size: 2742 bytes --]
sim/
2014-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
* 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)
next prev parent reply other threads:[~2014-02-13 10:44 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-08 16:54 [PATCH] Add IPv6 support for remote TCP connections Paul Fertser
2014-02-09 8:31 ` Jan Kratochvil
2014-02-09 9:53 ` Paul Fertser
2014-02-09 13:05 ` Jan Kratochvil
2014-02-09 16:35 ` Eli Zaretskii
2014-02-09 16:47 ` Jan Kratochvil
2014-02-09 17:08 ` Paul Fertser
2014-02-09 17:29 ` Jan Kratochvil
[not found] ` <1392033768-16793-1-git-send-email-fercerpav@gmail.com>
2014-02-10 16:53 ` [PATCH v2] " Eli Zaretskii
2014-02-10 17:02 ` Paul Fertser
2014-02-10 17:45 ` Eli Zaretskii
2014-02-10 19:58 ` getaddrinfo available on all GDB hosts? [Re: [PATCH v2] Add IPv6 support for remote TCP connections] Jan Kratochvil
2014-02-11 3:42 ` Joel Brobecker
2014-02-11 20:05 ` Jan Kratochvil
2014-02-11 20:33 ` Stan Shebs
2014-02-12 3:04 ` Joel Brobecker
2014-02-12 3:00 ` Joel Brobecker
2014-02-12 12:10 ` Jan Kratochvil
2014-02-13 7:37 ` Joel Brobecker
2014-02-13 10:44 ` Jan Kratochvil [this message]
2014-02-13 10:51 ` [patch] [sim] --disable-sim on ppc* by default (for AIX) [Re: getaddrinfo available on all GDB hosts?] Pedro Alves
2014-02-13 11:04 ` Jan Kratochvil
2014-02-13 11:39 ` Pedro Alves
2014-02-13 11:51 ` Joel Brobecker
2014-02-13 12:08 ` [cancel] " Jan Kratochvil
2014-02-13 11:59 ` Joel Brobecker
2014-02-13 14:26 ` getaddrinfo available on all GDB hosts? [Re: [PATCH v2] Add IPv6 support for remote TCP connections] Tom Tromey
2014-02-13 11:36 ` Jan Kratochvil
2014-02-13 11:55 ` Joel Brobecker
2014-02-11 19:48 ` [PATCH v3] Add IPv6 support for outgoing remote TCP connections Paul Fertser
2014-02-12 16:53 ` Jan Kratochvil
2014-02-12 17:32 ` Paul Fertser
2014-02-12 20:10 ` Jan Kratochvil
2015-03-22 16:39 ` [PATCH] Add IPv6 support for " Jan Kratochvil
2015-03-22 16:54 ` Eli Zaretskii
2015-03-22 17:09 ` Jan Kratochvil
2015-03-22 17:48 ` Eli Zaretskii
2015-03-23 18:02 ` Pedro Alves
2015-03-23 18:42 ` Eli Zaretskii
2015-03-23 19:12 ` Joel Brobecker
2015-03-23 19:18 ` Eli Zaretskii
2015-04-13 15:12 ` Pedro Alves
2015-04-13 15:27 ` Eli Zaretskii
2015-04-13 16:10 ` Pedro Alves
2015-03-23 19:19 ` Pedro Alves
2015-03-23 19:03 ` Corinna Vinschen
2015-03-23 19:12 ` Pedro Alves
2014-02-09 16:29 ` Eli Zaretskii
2014-02-09 16:25 ` Eli Zaretskii
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=20140213104347.GA27475@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=brobecker@adacore.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
/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