This is the mail archive of the gdb-patches@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]

Re: [PATCH] testsuite: Fix cc-with-tweaks.sh being executed in the wrong shell


On 2018-04-26 15:34, Simon Marchi wrote:
The cc-with-tweaks.sh script needs to be executed with bash.  When
trying to run this:

  make check RUNTESTFLAGS="--target_board=dwarf4-gdb-index"
TESTS="gdb.base/return.exp"

I get:

  gdb compile failed,
/home/emaisin/src/binutils-gdb/gdb/contrib/cc-with-tweaks.sh: 174:
/home/emaisin/src/binutils-gdb/gdb/contrib/cc-with-tweaks.sh: Bad
substitution

The reason is that the board files execute cc-with-tweaks.sh using
/bin/sh, which points to dash on my machine.  Remove the /bin/sh part
and let the shebang choose the right interpreter.

I pushed this.

Simon


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