jqlang / jq

Command-line JSON processor
https://jqlang.github.io/jq/
Other
29.78k stars 1.55k forks source link

configure doesn't detect missing yacc #1093

Open karlp opened 8 years ago

karlp commented 8 years ago

jq-1.3-763-g1740fd0

karlp@cuth:~/src/jq (master)$ make
  YACC     src/parser.c
./config/ylwrap: line 176: yacc: command not found
Makefile:956: recipe for target 'src/parser.c' failed
make: *** [src/parser.c] Error 127
karlp@cuth:~/src/jq (master)$
karlp commented 8 years ago

Further, installing "byacc" on fedora 22, (the only package matching a yacc search) the invocation fails.

--disable-maintainer-mode works, but is ... not what I expected :)

nicowilliams commented 8 years ago

@karlp jq really wants bison.

karlp commented 8 years ago

ok.... "configure doesn't detect missing bison" ? better?

nicowilliams commented 8 years ago

Sure. Can you post a pastie/gist of the configure output, and maybe config.log?

nicowilliams commented 8 years ago

Also, what version of jq is this?

nicowilliams commented 8 years ago

Oh, 1.3. Sorry, use a newer jq, preferably 1.5. We're not going to patch 1.3.

karlp commented 8 years ago

that was the output of git describe. it was 763 commits past 1.3, or, the commit 1740fd036dc6ab464ef0937a0f3fc81618886837 which was basically git master when I filed this ticket.

Redoing this again from jq-1.5rc2-150-g1740fd0, ie "now" and there's now an explicit "checking for bison, found 2.7, need 3.0 or higher" so... yay. you fixed it, hopefully this was at least somewhat useful then...

nicowilliams commented 8 years ago

:)

karlp commented 8 years ago

actually, no, this still doesn't work on the computer I was reporting with first:

karlp@cuth:~/src$ git clone https://github.com/stedolan/jq.git
Cloning into 'jq'...
remote: Counting objects: 6588, done.
remote: Total 6588 (delta 0), reused 0 (delta 0), pack-reused 6588
Receiving objects: 100% (6588/6588), 4.82 MiB | 2.22 MiB/s, done.
Resolving deltas: 100% (3916/3916), done.
Checking connectivity... done.
karlp@cuth:~/src$ cd jq/
karlp@cuth:~/src/jq (master)$ autoreconf -i
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: copying file `config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `config/m4'.
libtoolize: copying file `config/m4/libtool.m4'
libtoolize: copying file `config/m4/ltoptions.m4'
libtoolize: copying file `config/m4/ltsugar.m4'
libtoolize: copying file `config/m4/ltversion.m4'
libtoolize: copying file `config/m4/lt~obsolete.m4'
configure.ac:14: installing 'config/ar-lib'
configure.ac:14: installing 'config/compile'
configure.ac:22: installing 'config/config.guess'
configure.ac:22: installing 'config/config.sub'
configure.ac:12: installing 'config/install-sh'
configure.ac:12: installing 'config/missing'
Makefile.am: installing 'config/depcomp'
configure.ac: installing 'config/ylwrap'
parallel-tests: installing 'config/test-driver'
karlp@cuth:~/src/jq (master)$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for gcc option to accept ISO C99... none needed
checking for gcc option to accept ISO Standard C... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for bison... no
checking for byacc... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking bison version... not bison
checking for flex... no
checking for lex... no
checking oniguruma.h usability... no
checking oniguruma.h presence... no
checking for oniguruma.h... no
configure: Oniguruma was not found.
configure: Try setting the location using '--with-oniguruma=PREFIX'
checking for valgrind... valgrind
checking for memmem... yes
checking for mkstemp... yes
checking shlwapi.h usability... no
checking shlwapi.h presence... no
checking for shlwapi.h... no
checking for bundle... no
checking for Ruby dependencies... configure: WARNING: 
*****************************************************************
*  Ruby dependencies for building jq documentation not found.   *
*  You can still build, install and hack on jq, but the manpage *
*  will not be rebuilt and some of the tests will not run.      *
*  See docs/README.md for how to install the docs dependencies. *
*****************************************************************
no
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for isatty... yes
checking for _isatty... no
checking for strptime... yes
checking for strftime... yes
checking for timegm... yes
checking for gmtime_r... yes
checking for gmtime... yes
checking for gettimeofday... yes
checking for struct tm.tm_gmtoff... yes
checking for struct tm.__tm_gmtoff... no
checking for acos... yes
checking for acosh... yes, in -lm
checking for asin... yes
checking for asinh... yes
checking for atan... yes
checking for atan2... yes
checking for atanh... yes
checking for cbrt... yes
checking for cos... yes
checking for cosh... yes
checking for exp... yes
checking for exp2... yes
checking for floor... yes
checking for hypot... yes
checking for j0... yes
checking for j1... yes
checking for log... yes
checking for log10... yes
checking for log2... yes
checking for pow... yes
checking for remainder... yes
checking for sin... yes
checking for sinh... yes
checking for sqrt... yes
checking for tan... yes
checking for tanh... yes
checking for tgamma... yes
checking for y0... yes
checking for y1... yes
checking for thread-local storage... yes
checking whether byte ordering is bigendian... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
karlp@cuth:~/src/jq (master)$ make
  YACC     src/parser.c
./config/ylwrap: line 176: yacc: command not found
Makefile:956: recipe for target 'src/parser.c' failed
make: *** [src/parser.c] Error 127
karlp@cuth:~/src/jq (master)$ git describe --tags
jq-1.5rc2-150-g1740fd0
karlp@cuth:~/src/jq (master)$ 
nicowilliams commented 8 years ago

@karlp OK, thanks, I know what to do: require bison, and don't allow any other yaccs. But I'm surprised AC_PROG_YACC set YACC=yacc even though yacc wasn't found -- that's an autoconf bug.