* [Bug build/16370] building gdb fails when bash is not installed
2013-12-26 22:20 [Bug build/16370] New: building gcc fails when bash is not installed maillist-gdb at barfooze dot de
@ 2013-12-26 22:21 ` maillist-gdb at barfooze dot de
2013-12-27 0:46 ` maillist-gdb at barfooze dot de
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: maillist-gdb at barfooze dot de @ 2013-12-26 22:21 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16370
maillist-gdb at barfooze dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|building gcc fails when |building gdb fails when
|bash is not installed |bash is not installed
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug build/16370] building gdb fails when bash is not installed
2013-12-26 22:20 [Bug build/16370] New: building gcc fails when bash is not installed maillist-gdb at barfooze dot de
2013-12-26 22:21 ` [Bug build/16370] building gdb " maillist-gdb at barfooze dot de
@ 2013-12-27 0:46 ` maillist-gdb at barfooze dot de
2013-12-27 20:26 ` sergiodj at redhat dot com
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: maillist-gdb at barfooze dot de @ 2013-12-27 0:46 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16370
--- Comment #1 from maillist-gdb at barfooze dot de ---
update: 7.5.1 is the latest version that works with dash symlinked to /bin/bash
and /bin/sh.
7.6(.0) is the first version that fails.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug build/16370] building gdb fails when bash is not installed
2013-12-26 22:20 [Bug build/16370] New: building gcc fails when bash is not installed maillist-gdb at barfooze dot de
2013-12-26 22:21 ` [Bug build/16370] building gdb " maillist-gdb at barfooze dot de
2013-12-27 0:46 ` maillist-gdb at barfooze dot de
@ 2013-12-27 20:26 ` sergiodj at redhat dot com
2014-01-08 4:12 ` sergiodj at redhat dot com
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: sergiodj at redhat dot com @ 2013-12-27 20:26 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16370
Sergio Durigan Junior <sergiodj at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sergiodj at redhat dot com
--- Comment #2 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
Thanks for the bug report.
I'm not able to reproduce this. I am using Fedora 19 here, and did what you
recommended (installed dash, symlinked bash -> dash, sh -> dash), but configure
runs fine for me on both git HEAD and the 7.6 .tar.bz2.
BTW, do you see this bug using git HEAD?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug build/16370] building gdb fails when bash is not installed
2013-12-26 22:20 [Bug build/16370] New: building gcc fails when bash is not installed maillist-gdb at barfooze dot de
` (2 preceding siblings ...)
2013-12-27 20:26 ` sergiodj at redhat dot com
@ 2014-01-08 4:12 ` sergiodj at redhat dot com
2014-03-21 1:58 ` maillist-gdb at barfooze dot de
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: sergiodj at redhat dot com @ 2014-01-08 4:12 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16370
Sergio Durigan Junior <sergiodj at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug build/16370] building gdb fails when bash is not installed
2013-12-26 22:20 [Bug build/16370] New: building gcc fails when bash is not installed maillist-gdb at barfooze dot de
` (3 preceding siblings ...)
2014-01-08 4:12 ` sergiodj at redhat dot com
@ 2014-03-21 1:58 ` maillist-gdb at barfooze dot de
2014-03-21 3:44 ` sergiodj at redhat dot com
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: maillist-gdb at barfooze dot de @ 2014-03-21 1:58 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16370
--- Comment #3 from maillist-gdb at barfooze dot de ---
the same happens for binutils 2.24. there must've been some bashism that crept
into the configure (config.sub/.guess/.host etc) infrastructure during the last
year.
sorry i didn't have time yet to experiment with latest git :/
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug build/16370] building gdb fails when bash is not installed
2013-12-26 22:20 [Bug build/16370] New: building gcc fails when bash is not installed maillist-gdb at barfooze dot de
` (4 preceding siblings ...)
2014-03-21 1:58 ` maillist-gdb at barfooze dot de
@ 2014-03-21 3:44 ` sergiodj at redhat dot com
2014-05-05 11:19 ` ncopa at alpinelinux dot org
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: sergiodj at redhat dot com @ 2014-03-21 3:44 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16370
--- Comment #4 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
It would be very useful if you could identify which kind of "bashism" you're
talking about. As I said, I could not reproduce the bug, so there is nothing I
can do to fix it. I will wait a few more weeks until you provide more input.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug build/16370] building gdb fails when bash is not installed
2013-12-26 22:20 [Bug build/16370] New: building gcc fails when bash is not installed maillist-gdb at barfooze dot de
` (5 preceding siblings ...)
2014-03-21 3:44 ` sergiodj at redhat dot com
@ 2014-05-05 11:19 ` ncopa at alpinelinux dot org
2014-05-06 6:20 ` ncopa at alpinelinux dot org
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ncopa at alpinelinux dot org @ 2014-05-05 11:19 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16370
ncopa at alpinelinux dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ncopa at alpinelinux dot org
--- Comment #5 from ncopa at alpinelinux dot org ---
I have bumped into same problem on Alpine Linux and binutils-2.24. I use
busybox ash as /bin/sh. (ln -s /bin/busybox /bin/sh)
It happens both with uclibc and musl libc and binutils-2.24. I does not happen
with binutils-2.23.
I created a fedora-20 vm and tried to reproduce it there too but I am not able
to either.
I was not able to reproduce it with /bin/dash so I suspect this is a bug in
recent busybox ash that does not affect the acient busybox shipped with fedora
20.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug build/16370] building gdb fails when bash is not installed
2013-12-26 22:20 [Bug build/16370] New: building gcc fails when bash is not installed maillist-gdb at barfooze dot de
` (6 preceding siblings ...)
2014-05-05 11:19 ` ncopa at alpinelinux dot org
@ 2014-05-06 6:20 ` ncopa at alpinelinux dot org
2014-05-06 7:07 ` ncopa at alpinelinux dot org
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ncopa at alpinelinux dot org @ 2014-05-06 6:20 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16370
--- Comment #6 from ncopa at alpinelinux dot org ---
After more digging in the generated autoconf, it seems that there is something
wrong with the generated configure.lineno. If I regenerate configure scripts
with autoconf 2.69 it all works again.
My guess is that the version of autoconf used to generate the tarballs is
buggy.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug build/16370] building gdb fails when bash is not installed
2013-12-26 22:20 [Bug build/16370] New: building gcc fails when bash is not installed maillist-gdb at barfooze dot de
` (7 preceding siblings ...)
2014-05-06 6:20 ` ncopa at alpinelinux dot org
@ 2014-05-06 7:07 ` ncopa at alpinelinux dot org
2014-05-06 15:03 ` ncopa at alpinelinux dot org
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ncopa at alpinelinux dot org @ 2014-05-06 7:07 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16370
--- Comment #7 from ncopa at alpinelinux dot org ---
I finally found a way to reproduce it on fedora-20 and binutils-2.24:
yum install busybox
mv /bin/sh /bin/sh.backup
ln -s /usr/sbin/busybox /bin/sh
CONFIG_SHELL=/bin/sh ./configure
make configure-host
Some things to note:
CONFIG_SHELL=/bin/ash ./configure does not trigger it.
This is from configure.lineno:
...
for as_base in sh bash ksh sh5; do
# Try only shells that exist, to save several forks.
as_shell=$as_dir/$as_base
...
note that it does not check for "ash".
configure will find and use /bin/bash if it exists - even if /bin/sh points to
something else. So rename /bin/bash might also trigger it (careful though.. its
the shell for root so you can easily brick your fedora box...)
I was not able to trigger it with dash. I think this is becuase recent versions
of dash has support for $LINENO, so it does not use sed to generate
configure.lineno (where i think the problem is). (see under LINENO on
http://www.gnu.org/software/autoconf/manual/autoconf.html#Special-Shell-Variables)
I think it might be possible to trigger it with dash on (older?) debian.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=582952
My conclusion is that something is broke with the generation of
configure.lineno in the version of autoconf that created the tarball. (2.64).
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug build/16370] building gdb fails when bash is not installed
2013-12-26 22:20 [Bug build/16370] New: building gcc fails when bash is not installed maillist-gdb at barfooze dot de
` (8 preceding siblings ...)
2014-05-06 7:07 ` ncopa at alpinelinux dot org
@ 2014-05-06 15:03 ` ncopa at alpinelinux dot org
2014-05-12 13:57 ` maillist-gdb at barfooze dot de
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ncopa at alpinelinux dot org @ 2014-05-06 15:03 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16370
--- Comment #8 from ncopa at alpinelinux dot org ---
This change/revert appears to fix it:
-BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
+BFD_VERSION=`sed -n 's/AC_INIT(\[bfd\], *\[\([0-9.]*\)\])/\1/p'
<${srcdir}/../bfd/configure.in`
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug build/16370] building gdb fails when bash is not installed
2013-12-26 22:20 [Bug build/16370] New: building gcc fails when bash is not installed maillist-gdb at barfooze dot de
` (9 preceding siblings ...)
2014-05-06 15:03 ` ncopa at alpinelinux dot org
@ 2014-05-12 13:57 ` maillist-gdb at barfooze dot de
2014-05-15 11:22 ` ncopa at alpinelinux dot org
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: maillist-gdb at barfooze dot de @ 2014-05-12 13:57 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16370
--- Comment #9 from maillist-gdb at barfooze dot de ---
ncopa, thanks for your findings.
i can confirm that this patch
http://git.proteanos.com/pkg/gdb.git/tree/patches/02_fix-opcodes-configure-bfd-version-on-busybox-ash.patch
fixes the issue in gdb 7.6.2.
i wonder if the new sed command in that line is not ERE conforming.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug build/16370] building gdb fails when bash is not installed
2013-12-26 22:20 [Bug build/16370] New: building gcc fails when bash is not installed maillist-gdb at barfooze dot de
` (10 preceding siblings ...)
2014-05-12 13:57 ` maillist-gdb at barfooze dot de
@ 2014-05-15 11:22 ` ncopa at alpinelinux dot org
2014-05-15 15:51 ` maillist-gdb at barfooze dot de
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ncopa at alpinelinux dot org @ 2014-05-15 11:22 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16370
--- Comment #10 from ncopa at alpinelinux dot org ---
(In reply to maillist-gdb from comment #9)
> i wonder if the new sed command in that line is not ERE conforming.
I doubt that. I think its a bug in autoconf and I think this fixes it:
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=55f532e539427ff5829790fd71b6f8c6342b141a
Which means that you should not use anything older than autoconf-2.68 to
generate the tarballs.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug build/16370] building gdb fails when bash is not installed
2013-12-26 22:20 [Bug build/16370] New: building gcc fails when bash is not installed maillist-gdb at barfooze dot de
` (11 preceding siblings ...)
2014-05-15 11:22 ` ncopa at alpinelinux dot org
@ 2014-05-15 15:51 ` maillist-gdb at barfooze dot de
2014-06-30 18:44 ` maillist-gdb at barfooze dot de
2022-11-24 5:04 ` amodra at gmail dot com
14 siblings, 0 replies; 16+ messages in thread
From: maillist-gdb at barfooze dot de @ 2014-05-15 15:51 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16370
--- Comment #11 from maillist-gdb at barfooze dot de ---
filed https://sourceware.org/bugzilla/show_bug.cgi?id=16948 ( bug #16948 )
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug build/16370] building gdb fails when bash is not installed
2013-12-26 22:20 [Bug build/16370] New: building gcc fails when bash is not installed maillist-gdb at barfooze dot de
` (12 preceding siblings ...)
2014-05-15 15:51 ` maillist-gdb at barfooze dot de
@ 2014-06-30 18:44 ` maillist-gdb at barfooze dot de
2022-11-24 5:04 ` amodra at gmail dot com
14 siblings, 0 replies; 16+ messages in thread
From: maillist-gdb at barfooze dot de @ 2014-06-30 18:44 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16370
maillist-gdb at barfooze dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |16948
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug build/16370] building gdb fails when bash is not installed
2013-12-26 22:20 [Bug build/16370] New: building gcc fails when bash is not installed maillist-gdb at barfooze dot de
` (13 preceding siblings ...)
2014-06-30 18:44 ` maillist-gdb at barfooze dot de
@ 2022-11-24 5:04 ` amodra at gmail dot com
14 siblings, 0 replies; 16+ messages in thread
From: amodra at gmail dot com @ 2022-11-24 5:04 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16370
Bug 16370 depends on bug 16948, which changed state.
Bug 16948 Summary: recent binutils/bfd release tarballs generated with ancient autoconf version
https://sourceware.org/bugzilla/show_bug.cgi?id=16948
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread