ctags icon indicating copy to clipboard operation
ctags copied to clipboard

make check failed on OpenBSD and NetBSD

Open leleliu008 opened this issue 5 years ago • 3 comments

Running the following code in the terminal on OpenBSD 6.8:

sudo pkg_add git automake-1.16.2

export AUTOCONF_VERSION=2.69
export AUTOMAKE_VERSION=1.16

export CFLAGS='-I/usr/local/include -L/usr/local/lib'

sudo ln -s /usr/local/lib/libiconv.so.* /usr/local/lib/libiconv.so

git clone https://github.com/universal-ctags/ctags
cd ctags
./autogen.sh
./configure
make
make check

the make check report : click me



Running the following code in the terminal on NetBSD 9.1:

run sudo pkgin -y install mozilla-rootcerts automake pkg-config

run sudo mozilla-rootcerts install

git clone https://github.com/universal-ctags/ctags
cd ctags
./autogen.sh
./configure
make
make check

the make check report : click me

leleliu008 avatar Jan 25 '21 12:01 leleliu008

cat Tmain/readtags-qualifier-begin.d/stdout-diff.txt

--- /home/vagrant/ctags/Tmain/readtags-qualifier-begin.d/stdout-actual.txt      2021-01-25 04:04:46.337550509 +0000
+++ ./Tmain/readtags-qualifier-begin.d/stdout-expected.txt      2021-01-25 04:02:46.869399415 +0000
@@ -1,2 +1,16 @@
-;; (begin
-;; (begin0
+;; (begin #f (print $name) (print $line) #t)
+abc    sample.c        /^int abc;$/;"  kind:variable   language:C      typeref:typename:int    roles:def       end:2
+efg    sample.c        /^int efg;$/;"  kind:variable   language:C      typeref:typename:int    roles:def       end:3
+;; (begin #t (print $name) (print $line) #f)
+;; (begin #t (print $name) (print $line) (eq? $name "efg"))
+efg    sample.c        /^int efg;$/;"  kind:variable   language:C      typeref:typename:int    roles:def       end:3
+;; (begin #t (and (eq? $name "abc") (print $name) (print $line)) (eq? $name "efg"))
+efg    sample.c        /^int efg;$/;"  kind:variable   language:C      typeref:typename:int    roles:def       end:3
+;; (begin0 #t                (print $name) (print $line) #f)
+abc    sample.c        /^int abc;$/;"  kind:variable   language:C      typeref:typename:int    roles:def       end:2
+efg    sample.c        /^int efg;$/;"  kind:variable   language:C      typeref:typename:int    roles:def       end:3
+;; (begin0 #f                (print $name) (print $line) #t)
+;; (begin0 (eq? $name "abc") (print $name) (print $line) #t)
+abc    sample.c        /^int abc;$/;"  kind:variable   language:C      typeref:typename:int    roles:def       end:2
+;; (begin0 (eq? $name "abc") (and (eq? $name "efg") (print $name) (print $line)) #t)
+abc    sample.c        /^int abc;$/;"  kind:variable   language:C      typeref:typename:int    roles:def       end:2

cat Tmain/readtags-qualifier-begin.d/stderr-diff.txt

--- /home/vagrant/ctags/Tmain/readtags-qualifier-begin.d/stderr-actual.txt      2021-01-25 04:04:46.337917668 +0000
+++ ./Tmain/readtags-qualifier-begin.d/stderr-expected.txt      2021-01-25 04:02:46.869150064 +0000
@@ -1,8 +1,36 @@
-local: #f: bad variable name
-;; (begin
-Failed to read the expression for filter: (begin
-Reason: READ-ERROR
-local: (eq?: bad variable name
-;; (begin0
-Failed to read the expression for filter: (begin0
-Reason: READ-ERROR
+;; (begin #f (print $name) (print $line) #t)
+"abc"
+2
+"efg"
+3
+;; (begin #t (print $name) (print $line) #f)
+"abc"
+2
+"efg"
+3
+;; (begin #t (print $name) (print $line) (eq? $name "efg"))
+"abc"
+2
+"efg"
+3
+;; (begin #t (and (eq? $name "abc") (print $name) (print $line)) (eq? $name "efg"))
+"abc"
+2
+;; (begin0 #t                (print $name) (print $line) #f)
+"abc"
+2
+"efg"
+3
+;; (begin0 #f                (print $name) (print $line) #t)
+"abc"
+2
+"efg"
+3
+;; (begin0 (eq? $name "abc") (print $name) (print $line) #t)
+"abc"
+2
+"efg"
+3
+;; (begin0 (eq? $name "abc") (and (eq? $name "efg") (print $name) (print $line)) #t)
+"efg"
+3

cat Tmain/readtags-qualifier-begin.d/exit-diff.txt

--- /home/vagrant/ctags/Tmain/readtags-qualifier-begin.d/exit-actual.txt        2021-01-25 04:04:46.337177049 +0000
+++ ./Tmain/readtags-qualifier-begin.d/exit-expected.txt        2021-01-25 04:02:46.868080709 +0000
@@ -1 +1 @@
-1
+0

leleliu008 avatar Jan 25 '21 12:01 leleliu008

To understand the situation I made a wiki page. https://github.com/universal-ctags/ctags/wiki/Platforms-and-test-harnesses

masatake avatar Feb 10 '21 21:02 masatake

make check heavily rely on GNU implemention tools.

on OpenBSD:

sudo pkg_add bash coreutils gmake ggrep gdiff

mkdir ~/bin

ln -s /usr/local/bin/bash  ~/bin/sh
ln -s /usr/local/bin/gseq  ~/bin/seq
ln -s /usr/local/bin/gmake ~/bin/make
ln -s /usr/local/bin/gdiff ~/bin/diff
ln -s /usr/local/bin/ggrep ~/bin/grep

export PATH=~/bin:$PATH

leleliu008 avatar Aug 12 '22 06:08 leleliu008