[Bug build/34407] New: Unable to build gdb when $SHELL is non-POSIX fish

nyanpasu64 at tuta dot io via Gdb-prs <[email protected]>
Newsgroups gmane.comp.gdb.bugs.discuss
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=34407

            Bug ID: 34407
           Summary: Unable to build gdb when $SHELL is non-POSIX fish
           Product: gdb
           Version: 17.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: nyanpasu64 at tuta dot io
  Target Milestone: ---

I'm unable to build gdb when having fish as my user shell. I get errors such
as:

lm32/stamp-mloop.lineno.sh (line 135): Unsupported use of '='. In fish, please
use 'set type mono'.
type=mono
^~~~~~~~^

This happens even when running configure and make under Bash.

I found out that in local.mk and sim/Makefile.in, CGEN_GEN_MLOOP invokes
lineno.sh to call `genmloop.sh` while passing `-shell $(SHELL)`. The problem is
lineno.sh uses the *environment* $(SHELL) (bash or fish) to run genmloop.sh,
causing genmloop.sh to crash.

Can this be changed to properly export SHELL and build under non-POSIX user
shells?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.