Hello everyone. Do you plann porting https://github.com/fish-shell/fish-shell terminal?
You can port it and push PKGBUILD here.
@Alexpux ok, how can I do it?
How to port?
You need write PKGBUILD for new package and patches to build for MSYS2. Test it and if all is ok create pull request here.
@Alexpux I downloaded it https://www.archlinux.org/packages/?name=fish. After I run makepkg command and I got following error:
==> Making package: fish 2.1.2-1 (Sat Apr 4 22:08:28 FLEDT 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found fish-2.1.2.tar.gz
-> Found fish-2.1.1-grep-options-is-deprecated.patch
==> Validating source files with md5sums...
fish-2.1.2.tar.gz ... Passed
fish-2.1.1-grep-options-is-deprecated.patch ... FAILED
==> ERROR: One or more files did not pass the validity check!
you need run updpkgsums to fix such errors.
@Alexpux Unfortunately I got yet another error
checking build system type... ./config.guess: unable to guess system type
And
This script, last modified 2012-02-10, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <[email protected]> in order to provide the needed
information to handle your system.
config.guess timestamp = 2012-02-10
uname -m = x86_64
uname -r = 2.1.0(0.287/5/3)
uname -s = MSYS_NT-6.1
uname -v = 2015-03-17 14:33
/usr/bin/uname -p = unknown
/bin/uname -X =
hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch = x86_64
/usr/bin/oslevel =
/usr/convex/getsysinfo =
UNAME_MACHINE = x86_64
UNAME_RELEASE = 2.1.0(0.287/5/3)
UNAME_SYSTEM = MSYS_NT-6.1
UNAME_VERSION = 2015-03-17 14:33
configure: error: cannot guess build type; you must specify one
==> ERROR: A failure occurred in build().
Aborting...
Maybe it happened because expected arch architecture?
This is happened because MSYS is not official target and you need patch configure scripts/sources to add support for MSYS. See other MSYS packages for msysize patches.
I pulled fish's PKGBUILD file and Alexpux made msysize patch for x86_64 (Thanks!).
Please try 'pacman -S fish' command.
Hi @mashir43 I tried use fish but I couldn't install this one via pacman. This is error which I got error: target not found: fish
I've downloaded the https://github.com/Alexpux/MSYS2-packages/tree/master/fish files to build fish (didn't do it through Pacman because I wanted a newer version, couldn't build that, so decided to build the existing one to see if that could help spot the issue).
However, I'm getting the following errors on Windows 10.0.10586 with MYS2 64 from MYS2_shell and with base-devel installed (system is also updated via Pacman):
> makepkg
==> Making package: fish 2.1.2-1 (Fri, 11 Mar 2016 5:06:02)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading fish-2.1.2.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1689k 100 1689k 0 0 841k 0 0:00:02 0:00:02 --:--:-- 977k
-> Found 01-msysize.patch
==> Validating source files with sha256sums...
fish-2.1.2.tar.gz ... Passed
01-msysize.patch ... Passed
==> Extracting sources...
-> Extracting fish-2.1.2.tar.gz with bsdtar
==> Starting prepare()...
patching file config.guess
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: configure.ac: not using Automake
autoreconf: Leaving directory `.'
==> Starting build()...
checking if autoconf needs to be run... no
checking if autoheader needs to be run... no
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
CXXFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw
checking for /usr/pkg/include include directory... no
checking for /usr/pkg/lib library directory... no
checking for /usr/pkg/bin command directory... no
checking for /sw/include include directory... no
checking for /sw/lib library directory... no
checking for /sw/bin command directory... no
checking for /opt/include include directory... no
checking for /opt/lib library directory... no
checking for /opt/bin command directory... no
checking for /opt/local/include include directory... no
checking for /opt/local/lib library directory... no
checking for /opt/local/bin command directory... no
checking for /usr/local/include include directory... no
checking for /usr/local/lib library directory... no
checking for /usr/local/bin command directory... no
checking for msgfmt... msgfmt
checking for doxygen... doxygen
checking the doxygen version... 1.8.11
checking if we are compiling against glibc... no
checking build system type... x86_64-unknown-msys
checking host system type... x86_64-unknown-msys
checking target system type... x86_64-unknown-msys
checking if we are under Solaris... no
checking if we are using non varargs tparm.... no
checking if we are under BSD... no
checking for /proc/self/stat... yes
checking for library containing connect... none required
checking for library containing nanosleep... none required
checking for library containing pthread_create... none required
checking for library containing setupterm... -lncurses
checking for library containing nan... none required
checking for library containing gettext... -lintl
checking for library containing iconv_open... no
checking for library containing libiconv_open... -liconv
checking for library containing gettext... (cached) -lintl
checking for library containing gettext... (cached) -lintl
checking for library containing iconv_open... (cached) no
checking for library containing libiconv_open... (cached) -liconv
checking for library containing gettext... (cached) -lintl
checking for library containing iconv_open... (cached) no
checking for library containing libiconv_open... (cached) -liconv
checking for library containing gettext... (cached) -lintl
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking term.h usability... yes
checking term.h presence... yes
checking for term.h... yes
checking ncurses/term.h usability... yes
checking ncurses/term.h presence... yes
checking for ncurses/term.h... yes
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking siginfo.h usability... no
checking siginfo.h presence... no
checking for siginfo.h... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking execinfo.h usability... no
checking execinfo.h presence... no
checking for execinfo.h... no
checking spawn.h usability... yes
checking spawn.h presence... yes
checking for spawn.h... yes
checking sys/sysctl.h usability... no
checking sys/sysctl.h presence... no
checking for sys/sysctl.h... no
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking how to use -D_XOPEN_SOURCE=600 and -D_POSIX_C_SOURCE=200112L...
checking if switches "" works... yes
checking for wcsdup... yes
checking for wcsndup... no
checking for wcslen... yes
checking for wcscasecmp... yes
checking for wcsncasecmp... yes
checking for fwprintf... yes
checking for futimes... yes
checking for wcwidth... yes
checking for wcswidth... yes
checking for wcstok... yes
checking for fputwc... yes
checking for fgetwc... yes
checking for wcstol... yes
checking for wcslcat... yes
checking for wcslcpy... yes
checking for lrand48_r... no
checking for killpg... yes
checking for backtrace... no
checking for backtrace_symbols... no
checking for sysconf... yes
checking for getifaddrs... yes
checking for gettext... no
checking for dcgettext... no
checking for gettext... (cached) no
checking if realpath accepts null for its second argument... yes
checking if struct winsize and TIOCGWINSZ exist... yes
checking if fwprintf is broken... no
checking for _nl_msg_cat_cntr symbol... no
checking for __environ symbol... no
checking if getopt_long exists and works... yes
checking If del_curterm is broken... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating fish.spec
config.status: creating config.h
fish is now configured.
Use 'make' and 'make install' to build and install fish.
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o function.o function.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o builtin.o builtin.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o complete.o complete.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o env.o env.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o exec.o exec.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o expand.o expand.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o highlight.o highlight.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o history.o history.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o kill.o kill.cpp
In file included from color.h:8:0,
from highlight.h:13,
from builtin.cpp:61:
config.h:220:0: warning: "__sentinel" redefined
#define __sentinel __attribute__ ((sentinel))
^
In file included from /usr/include/stdlib.h:19:0,
from builtin.cpp:22:
/usr/include/sys/cdefs.h:467:0: note: this is the location of the previous definition
#define __sentinel __attribute__((__sentinel__))
^
In file included from postfork.h:15:0,
from exec.cpp:37:
config.h:220:0: warning: "__sentinel" redefined
#define __sentinel __attribute__ ((sentinel))
^
In file included from /usr/include/stdlib.h:19:0,
from exec.cpp:10:
/usr/include/sys/cdefs.h:467:0: note: this is the location of the previous definition
#define __sentinel __attribute__((__sentinel__))
^
In file included from color.h:8:0,
from highlight.h:13,
from highlight.cpp:20:
config.h:220:0: warning: "__sentinel" redefined
#define __sentinel __attribute__ ((sentinel))
^
In file included from /usr/include/stdlib.h:19:0,
from highlight.cpp:6:
/usr/include/sys/cdefs.h:467:0: note: this is the location of the previous definition
#define __sentinel __attribute__((__sentinel__))
^
history.cpp: In member function ‘bool history_t::save_internal_via_rewrite()’:
history.cpp:1330:31: warning: ‘char* mktemp(char*)’ is deprecated (declared at /usr/include/sys/unistd.h:251): the use of `mktemp' is dangerous; use `mkstemp' instead [-Wdeprecated-declarations]
if (narrow_str && mktemp(narrow_str))
^
history.cpp:1330:48: warning: ‘char* mktemp(char*)’ is deprecated (declared at /usr/include/sys/unistd.h:251): the use of `mktemp' is dangerous; use `mkstemp' instead [-Wdeprecated-declarations]
if (narrow_str && mktemp(narrow_str))
^
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o parser.o parser.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o proc.o proc.cpp
In file included from color.h:8:0,
from output.h:13,
from proc.cpp:67:
config.h:220:0: warning: "__sentinel" redefined
#define __sentinel __attribute__ ((sentinel))
^
In file included from /usr/include/stdlib.h:19:0,
from proc.cpp:14:
/usr/include/sys/cdefs.h:467:0: note: this is the location of the previous definition
#define __sentinel __attribute__((__sentinel__))
^
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o reader.o reader.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o sanity.o sanity.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o tokenizer.o tokenizer.cpp
In file included from color.h:8:0,
from highlight.h:13,
from reader.cpp:78:
config.h:220:0: warning: "__sentinel" redefined
#define __sentinel __attribute__ ((sentinel))
^
In file included from /usr/include/stdlib.h:19:0,
from /usr/lib/gcc/x86_64-pc-msys/4.9.2/include/c++/cstdlib:72,
from /usr/lib/gcc/x86_64-pc-msys/4.9.2/include/c++/bits/stl_algo.h:59,
from /usr/lib/gcc/x86_64-pc-msys/4.9.2/include/c++/algorithm:62,
from reader.cpp:23:
/usr/include/sys/cdefs.h:467:0: note: this is the location of the previous definition
#define __sentinel __attribute__((__sentinel__))
^
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o wildcard.o wildcard.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o wgetopt.o wgetopt.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o wutil.o wutil.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o input.o input.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o output.o output.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o intern.o intern.cpp
In file included from color.h:8:0,
from output.h:13,
from input.cpp:59:
config.h:220:0: warning: "__sentinel" redefined
#define __sentinel __attribute__ ((sentinel))
^
In file included from /usr/include/stdlib.h:19:0,
from input.cpp:9:
/usr/include/sys/cdefs.h:467:0: note: this is the location of the previous definition
#define __sentinel __attribute__((__sentinel__))
^
In file included from color.h:8:0,
from output.h:13,
from output.cpp:48:
config.h:220:0: warning: "__sentinel" redefined
#define __sentinel __attribute__ ((sentinel))
^
In file included from /usr/include/stdlib.h:19:0,
from output.cpp:7:
/usr/include/sys/cdefs.h:467:0: note: this is the location of the previous definition
#define __sentinel __attribute__((__sentinel__))
^
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o env_universal.o env_universal.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o env_universal_common.o env_universal_common.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o input_common.o input_common.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o event.o event.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o signal.o signal.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o io.o io.cpp
env_universal_common.cpp:301:59: warning: hex escape sequence out of range
if (*out == L'\xfeff' || *out == L'\xffef' || *out == L'\xefbbbf')
^
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o parse_util.o parse_util.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o common.o common.cpp
input_common.cpp: In function ‘wchar_t input_common_readch(int)’:
input_common.cpp:215:28: warning: large integer implicitly truncated to unsigned type [-Woverflow]
return WEOF;
^
input_common.cpp:218:28: warning: large integer implicitly truncated to unsigned type [-Woverflow]
return WEOF;
^
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o screen.o screen.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o path.o path.cpp
In file included from util.cpp:7:0,
from common.cpp:73:
config.h:220:0: warning: "__sentinel" redefined
#define __sentinel __attribute__ ((sentinel))
^
In file included from /usr/include/sys/unistd.h:11:0,
from /usr/include/unistd.h:4,
from common.cpp:10:
/usr/include/sys/cdefs.h:467:0: note: this is the location of the previous definition
#define __sentinel __attribute__((__sentinel__))
^
In file included from color.h:8:0,
from output.h:13,
from screen.cpp:44:
config.h:220:0: warning: "__sentinel" redefined
#define __sentinel __attribute__ ((sentinel))
^
In file included from /usr/include/stdlib.h:19:0,
from screen.cpp:11:
/usr/include/sys/cdefs.h:467:0: note: this is the location of the previous definition
#define __sentinel __attribute__((__sentinel__))
^
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o autoload.o autoload.cpp
common.cpp: In function ‘wcstring str2wcs_internal(const char*, size_t)’:
common.cpp:216:39: error: ‘bzero’ was not declared in this scope
bzero(&state, sizeof state);
^
common.cpp:223:39: error: ‘bzero’ was not declared in this scope
bzero(&state, sizeof state);
^
common.cpp: In function ‘std::string wcs2string(const wcstring&)’:
common.cpp:317:46: error: ‘bzero’ was not declared in this scope
bzero(converted, sizeof converted);
^
common.cpp: In function ‘void format_size_safe(char*, long long unsigned int)’:
common.cpp:2008:26: error: ‘bzero’ was not declared in this scope
bzero(buff, buff_size);
^
common.cpp: In function ‘int check_runtime_path(const char*)’:
common.cpp:2370:5: error: ‘u_int’ was not declared in this scope
u_int uid = geteuid();
^
common.cpp:2377:35: error: ‘uid’ was not declared in this scope
|| statpath.st_uid != uid
^
g++ -march=x86-64 -mtune=generic -O2 -pipe -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DDATADIR=L\"/usr/share\" -DSYSCONFDIR=L\"/usr/etc\" -DBINDIR=L\"/usr/bin\" -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -DFISH_BUILD_VERSION=\"2.1.2\" -c -o parser_keywords.o parser_keywords.cpp
<builtin>: recipe for target 'common.o' failed
make: *** [common.o] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
Aborting...
@xgrommx Try running pacman -Sy before installing fish.
@mashir43 Installing works, but there seem to be still some bugs left:
$ fish
fish: Runtime path not available. Try deleting the directory /tmp/fish.jhasse and restarting fish.
fish: Could not connect to universal variable server. You will not be able to share variable values between fish sessions.
set_color: Expected an argument
@jhasse the runtime path error is easily fixed by setting set "XDG_RUNTIME_DIR=/tmp/fish.%USERNAME%/" in your .bat files if you run Fish as a login shell or set it in your bash profile so that it's available before fish is launched. The universal variable server is a file that is temporary stored in that folder, so your second error would also go away once you set that env variable.
I think the reason is that included package is way too old and unfortunately building a newer version from source doesn't seem to work (though, I can't even build the version included in this package set with all the included patches) :(
Turned out a simple issue to fix. The __sentinel stopped appearing after I downloaded the latest source code (no idea whether it helped or not, maybe I made some mistake earlier). Since there was an issue with automatically unpacking one symlinked file, I just unpacked manually this time and adjusted PKGBUILD to remove source lines as well as the patch -p1 -i ${srcdir}/01-msysize.patch line since I added those few lines manually.
Another error was fixed by changing u_int uid = geteuid(); to uintmax_t uid = geteuid(); in src/env_universal_common.cpp. The u_int seems to be non-compliant with C++11
Update: the proper var should be uid_t per this clarification and it's already updated in the source.
Fish is now working pretty good :) Has someone managed to get fish_config to work though? I'm getting
~> fish_config
fish could not be executed at path 'C:/msys64/usr/bin/fish'. Is fish installed correctly?
Okay using the MSYS2 shell instead of a MinGW shell works, but you'll have to open the html file manually.
Fish is now working pretty good :) Has someone managed to get
fish_configto work though? I'm getting~> fish_config fish could not be executed at path 'C:/msys64/usr/bin/fish'. Is fish installed correctly?I have the same issue
it has been a year. Any update on this issue?
There is a fish shell package here https://packages.msys2.org/base/fish
Most helpful comment
Fish is now working pretty good :) Has someone managed to get
fish_configto work though? I'm getting