Closed zenvzenv closed 2 months ago
A bit confused, are you building via rpm somehow or downloaded source tar.gz? could you also try without autoreconf -i
as it should only be needed if you building from git cloned repo.
I build it from git clone repo.If I don't use autoreconf -i
,there is no configure
to exec.
Aha ok, /root/rpmbuild/SOURCE/jq-1.7.1
made me think it might be a source tar ball somehow. I think we need some details how your build env/setup looks like. Your using rpm package system (sorry don't know much about it) to clone the 1.7.1 tag but then perform the build steps manually? does autoreconf -i
log something? is here more log to see?
I does not use rpmbuild to build jq.My steps follow:
git submodule update --init
autoreconf -i
,log follow:
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, '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:11: installing 'config/ar-lib'
configure.ac:8: installing 'config/compile'
configure.ac:19: installing 'config/config.guess'
configure.ac:19: installing 'config/config.sub'
configure.ac:9: installing 'config/install-sh'
configure.ac:9: installing 'config/missing'
Makefile.am: installing 'config/depcomp'
configure.ac: installing 'config/ylwrap'
parallel-tests: installing 'config/test-driver'
./configure --with-oniguruma=builtin --disable-docs
.log follow:
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 how to run the C preprocessor... gcc -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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
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 the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking whether make supports nested variables... (cached) yes
checking for ar... ar
checking the archiver (ar) interface... ar
checking whether to enable maintainer-specific portions of Makefiles... no
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 for gcc option to accept ISO C99... none needed
checking for gcc option to accept ISO Standard C... (cached) none needed
checking for bison... bison -y
checking build system type... loongarch64-unknown-linux-gnu
checking host system type... loongarch64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
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 how to convert loongarch64-unknown-linux-gnu file names to loongarch64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert loongarch64-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 a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
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... yes
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) 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 for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for valgrind... valgrind
checking for memmem... yes
checking sys/cygwin.h usability... no
checking sys/cygwin.h presence... no
checking for sys/cygwin.h... no
checking shlwapi.h usability... no
checking shlwapi.h presence... no
checking for shlwapi.h... no
checking for pipenv... no
checking whether gcc is Clang... no
checking whether pthreads work with "-pthread" and "-lpthread"... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking whether more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
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 setenv... yes
checking for timegm... yes
checking for gmtime_r... yes
checking for gmtime... yes
checking for localtime_r... yes
checking for localtime... yes
checking for gettimeofday... yes
checking for struct tm.tm_gmtoff... yes
checking for struct tm.__tm_gmtoff... no
checking for setlocale... yes
checking for pthread_key_create... yes
checking for pthread_once... yes
checking for atexit... yes
checking for acos in -lm... yes
checking for acosh in -lm... yes
checking for asin in -lm... yes
checking for asinh in -lm... yes
checking for atan2 in -lm... yes
checking for atan in -lm... yes
checking for atanh in -lm... yes
checking for cbrt in -lm... yes
checking for ceil in -lm... yes
checking for copysign in -lm... yes
checking for cos in -lm... yes
checking for cosh in -lm... yes
checking for drem in -lm... yes
checking for erf in -lm... yes
checking for erfc in -lm... yes
checking for exp10 in -lm... yes
checking for __exp10 in -lm... no
checking for exp2 in -lm... yes
checking for exp in -lm... yes
checking for expm1 in -lm... yes
checking for fabs in -lm... yes
checking for fdim in -lm... yes
checking for floor in -lm... yes
checking for fma in -lm... yes
checking for fmax in -lm... yes
checking for fmin in -lm... yes
checking for fmod in -lm... yes
checking for frexp in -lm... yes
checking for gamma in -lm... yes
checking for hypot in -lm... yes
checking for j0 in -lm... yes
checking for j1 in -lm... yes
checking for jn in -lm... yes
checking for ldexp in -lm... yes
checking for lgamma in -lm... yes
checking for log10 in -lm... yes
checking for log1p in -lm... yes
checking for log2 in -lm... yes
checking for log in -lm... yes
checking for logb in -lm... yes
checking for modf in -lm... yes
checking for lgamma_r in -lm... yes
checking for nearbyint in -lm... yes
checking for nextafter in -lm... yes
checking for nexttoward in -lm... yes
checking for pow10 in -lm... no
checking for pow in -lm... yes
checking for remainder in -lm... yes
checking for rint in -lm... yes
checking for round in -lm... yes
checking for scalb in -lm... yes
checking for scalbln in -lm... yes
checking for significand in -lm... yes
checking for scalbn in -lm... yes
checking for ilogb in -lm... yes
checking for sin in -lm... yes
checking for sinh in -lm... yes
checking for sqrt in -lm... yes
checking for tan in -lm... yes
checking for tanh in -lm... yes
checking for tgamma in -lm... yes
checking for trunc in -lm... yes
checking for y0 in -lm... yes
checking for y1 in -lm... yes
checking for yn in -lm... 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: creating libjq.pc
config.status: executing depfiles commands
config.status: executing libtool commands
=== configuring in modules/oniguruma (/root/rpmbuild/SOURCES/jq/jq/modules/oniguruma)
configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local' '--with-oniguruma=builtin' '--disable-docs' --cache-file=/dev/null --srcdir=.
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 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 whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking build system type... loongarch64-unknown-linux-gnu
checking host system type... loongarch64-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 how to convert loongarch64-unknown-linux-gnu file names to loongarch64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert loongarch64-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 ar... ar
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 a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -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 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... yes
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) 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 whether make sets $(MAKE)... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of void*... 8
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating test/Makefile
config.status: creating sample/Makefile
config.status: creating onig-config
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default commands
make
,log follow
make[2]: *** enter dir "/root/rpmbuild/SOURCE/jq-1.7.1"
CC src/builtin.lo
/bin/sh: ./libtool: no such file or dir
make[2]: *** [Makefile:1047: src/builtin.lo] error 127
make[2]: leave dir "/root/rpmbuild/SOURCE/jq-1.7.1"
make[1]: *** [Makefile:1184: all-recursive] error 1
make[1]: leave dir "/root/rpmbuild/SOURCE/jq-1.7.1"
make[1]: *** [Makefile:815: all] error 2
Why does the version number of my compiled binary file have -dirty after it? When I exec
jq --version
output
jq-1.7.1-dirty
When I exec make check
there are two fail task tests/jqtest
and tests/optionaltest
The dirty suffix in the version means your working repository is dirty, it has some diff or untracked files.
Does it affect use? Or how to fix it?
It depends what changes there are. You can probably use git status
or git diff
to see what has changed, and use git clean
with some flags (might want to be careful) to cleanup things
Ok,thanks
Describe the bug Follow README.md steps:
When execute make -j8, throw the error information as below:
Environment (please complete the following information): automake-1.16 autoconf-2.69 make-4.3 libtool-2.4.6
Additional context Add any other context about the problem here.