This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/16370] building gdb fails when bash is not installed


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]