Hi buildroot maintainer, According to the error log, I found man/Makefile:Line-1301 might need to be carefully considered: >> cmp.1: $S/cmp.c cmp.x I then did search for * grep -r "[^a-zA-Z]S[ \t]*=" * * grep "\-s[^a-zA-Z]" * to find some clue, but no luck... Can you help to check if the "S=-s" is expected here? Error log ========= make[2]: Entering directory `/top/buildroot/buildroot-2014.08-rc3/output/build/diffutils-3.3/src' GEN paths.h GEN version.c GEN version.h /usr/bin/make all-am make[3]: Entering directory `/top/buildroot/buildroot-2014.08-rc3/output/build/diffutils-3.3/src' CC version.o CC cmp.o CC analyze.o CC context.o CC diff.o CC dir.o CC ed.o CC ifdef.o CC io.o CC normal.o CC side.o CC util.o CC diff3.o CC sdiff.o AR libver.a CCLD cmp CCLD diff CCLD sdiff CCLD diff3 make[3]: Leaving directory `/top/buildroot/buildroot-2014.08-rc3/output/build/diffutils-3.3/src' make[2]: Leaving directory `/top/buildroot/buildroot-2014.08-rc3/output/build/diffutils-3.3/src' Making all in tests make[2]: Entering directory `/top/buildroot/buildroot-2014.08-rc3/output/build/diffutils-3.3/tests' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/top/buildroot/buildroot-2014.08-rc3/output/build/diffutils-3.3/tests' Making all in doc make[2]: Entering directory `/top/buildroot/buildroot-2014.08-rc3/output/build/diffutils-3.3/doc' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/top/buildroot/buildroot-2014.08-rc3/output/build/diffutils-3.3/doc' Making all in man make[2]: Entering directory `/top/buildroot/buildroot-2014.08-rc3/output/build/diffutils-3.3/man' make[2]: *** No rule to make target `-s/cmp.c', needed by `cmp.1'. Stop. make[2]: Leaving directory `/top/buildroot/buildroot-2014.08-rc3/output/build/diffutils-3.3/man' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/top/buildroot/buildroot-2014.08-rc3/output/build/diffutils-3.3' make: *** [/top/buildroot/buildroot-2014.08-rc3/output/build/diffutils-3.3/.stamp_built] Error 2 Thanks.
Please provide your .config file so we can reproduce. At this moment we have insufficient information to help you.
Created attachment 5576 [details] Failed .config file for diffutils compiling failure Attached is the .config file which was failed on diffutils compile. Please also comment if needing me to try some adjustments. Thanks for your reply.
I cannot reproduce this issue. Variable S is: S=../src here, which I checked by editing man/Makefile and adding $(warning S=$(S)) above the line that you showed (where cmp.c is referenced). This S variable is set from man/Makefile itself, as follows: (line 1069) S = $(top_srcdir)/src and top_srcdir is above: top_srcdir = .. Looking at man/Makefile.in, the definition of S is fixed, while top_srcdir is derived from @top_srcdir@. This variable is set from the autoconf value ac_top_srcdir, which in turn is derived by the configure script using some logic around line 2198. Can you try: make diffutils-dirclean diffutils to make sure there is nothing odd going on, and if the problem persists add some echo statements in the configure script to see how the value of ac_top_srcdir is derived for you. Please also send the output of the configure command from the build log, for me it is: >>> diffutils 3.3 Configuring (cd /home/tdescham/repo/contrib/buildroot-bugs/output/build/diffutils-3.3/ && rm -rf config.cache && PATH="/home/tdescham/repo/contrib/buildroot-bugs/output/host/bin:/home/tdescham/repo/contrib/buildroot-bugs/output/host/sbin:/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin:/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/sbin:/home/tdescham/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" AR="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/mips-linux-gnu-ar" AS="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/mips-linux-gnu-as" LD="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/mips-linux-gnu-ld" NM="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/mips-linux-gnu-nm" CC="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/mips-linux-gnu-gcc" GCC="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/mips-linux-gnu-gcc" CPP="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/mips-linux-gnu-cpp" CXX="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/mips-linux-gnu-g++" FC="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/mips-linux-gnu-gfortran" RANLIB="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/mips-linux-gnu-ranlib" READELF="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/mips-linux-gnu-readelf" STRIP="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/mips-linux-gnu-strip" OBJCOPY="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/mips-linux-gnu-objcopy" OBJDUMP="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/mips-linux-gnu-objdump" AR_FOR_BUILD="/usr/bin/ar" AS_FOR_BUILD="/usr/bin/as" CC_FOR_BUILD="/usr/bin/gcc" GCC_FOR_BUILD="/usr/bin/gcc" CXX_FOR_BUILD="/usr/bin/g++" FC_FOR_BUILD="/usr/bin/ld" LD_FOR_BUILD="/usr/bin/ld" CPPFLAGS_FOR_BUILD="-I/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/include" CFLAGS_FOR_BUILD="-O2 -I/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/include" CXXFLAGS_FOR_BUILD="-O2 -I/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/include" LDFLAGS_FOR_BUILD="-L/home/tdescham/repo/contrib/buildroot-bugs/output/host/lib -L/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/lib -Wl,-rpath,/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/lib" FCFLAGS_FOR_BUILD="" DEFAULT_ASSEMBLER="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/mips-linux-gnu-as" DEFAULT_LINKER="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/mips-linux-gnu-ld" CPPFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -march=1004kc -mtune=1004kc -mdspr2 -mmt -O3 -g2" CXXFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -march=1004kc -mtune=1004kc -mdspr2 -mmt -O3 -g2" LDFLAGS="" FCFLAGS="" PKG_CONFIG="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/bin/pkg-config" STAGING_DIR="/home/tdescham/repo/contrib/buildroot-bugs/output/host/usr/mipsel-buildroot-linux-gnu/sysroot" ac_cv_lbl_unaligned_fail=yes ac_cv_func_mmap_fixed_mapped=yes ac_cv_func_memcmp_working=yes ac_cv_have_decl_malloc=yes gl_cv_func_malloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes ac_cv_func_calloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes lt_cv_sys_lib_search_path_spec="" ac_cv_c_bigendian=no ./configure --target=mipsel-buildroot-linux-gnu --host=mipsel-buildroot-linux-gnu --build=x86_64-unknown-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --program-prefix="" --disable-gtk-doc --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no --disable-dependency-tracking --enable-ipv6 --enable-static --enable-shared ) configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --enable-ipv6, --enable-static, --enable-shared
Hi Thomas, The problem is root caused with the debug method you mentioned: * this is a user environment setting problem instead of buildroot issue. * the "S" variable in Makefile is overridden by the command alias "alias make='make S=-s'". Problem disappeared after manually execute "unalias make" and run make again. Sorry for taking your time helping to rebuild the source code. And really appreciate for your help on this false alarm. Background for how it happen: The alias "alias make='make S=-s'" was preset in /etc/bash.bashrc for most of our Linux box, I was told by admin that this is required by internal project build. Thanks!
Thanks for your feedback, I was indeed starting to think in that direction. I'm glad this is resolved for you.