From unknown Wed Aug 20 06:04:23 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#10766 <10766@debbugs.gnu.org> To: bug#10766 <10766@debbugs.gnu.org> Subject: Status: CXX gets the value 'CC' on Cygwin, but CC is in fact cc Reply-To: bug#10766 <10766@debbugs.gnu.org> Date: Wed, 20 Aug 2025 13:04:23 +0000 retitle 10766 CXX gets the value 'CC' on Cygwin, but CC is in fact cc reassign 10766 automake submitter 10766 Peter Rosin severity 10766 minor tag 10766 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 08 16:05:45 2012 Received: (at submit) by debbugs.gnu.org; 8 Feb 2012 21:05:45 +0000 Received: from localhost ([127.0.0.1]:32865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvEhz-0004Qr-QL for submit@debbugs.gnu.org; Wed, 08 Feb 2012 16:05:45 -0500 Received: from eggs.gnu.org ([140.186.70.92]:42833) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvEht-0004QY-NH for submit@debbugs.gnu.org; Wed, 08 Feb 2012 16:05:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvEgh-00079O-AS for submit@debbugs.gnu.org; Wed, 08 Feb 2012 16:04:29 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:34076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvEgh-00079K-8P for submit@debbugs.gnu.org; Wed, 08 Feb 2012 16:04:23 -0500 Received: from eggs.gnu.org ([140.186.70.92]:44284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvEga-0005M9-77 for bug-automake@gnu.org; Wed, 08 Feb 2012 16:04:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvEgV-00077f-MW for bug-automake@gnu.org; Wed, 08 Feb 2012 16:04:16 -0500 Received: from mail.lysator.liu.se ([130.236.254.3]:51720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvEgV-00076w-4R for bug-automake@gnu.org; Wed, 08 Feb 2012 16:04:11 -0500 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id C4F8940016 for ; Wed, 8 Feb 2012 22:04:09 +0100 (CET) Received: from [10.171.115.55] (host-95-199-19-55.mobileonline.telia.com [95.199.19.55]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 42DE740008 for ; Wed, 8 Feb 2012 22:04:09 +0100 (CET) Message-ID: <4F32E34D.60503@lysator.liu.se> Date: Wed, 08 Feb 2012 22:04:13 +0100 From: Peter Rosin User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: bug-automake@gnu.org Subject: CXX gets the value 'CC' on Cygwin, but CC is in fact cc Content-Type: multipart/mixed; boundary="------------020804050201020708030307" X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) This is a multi-part message in MIME format. --------------020804050201020708030307 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi! The testsuite on master tries to use lesser compilers, but on Cygwin this causes some failures due to the fact that /usr/bin/cc{.exe} is also recognized as /usr/bin/CC{.EXE} (due to the filesystem not being case sensitive), leading to CXX being set to 'CC'. But then CXX isn't a C++ compiler and some tests go downhill, namely silent-many-generic.test and suffix3.tap. Or something, I didn't look all that much at it. Maybe the failure in silent-many-generic.test is just a variant of the SunStudio CC case mentioned in the comment? Cheers, Peter --------------020804050201020708030307 Content-Type: text/plain; name="silent-many-generic.log" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="silent-many-generic.log" Running from installcheck: no Using TAP: no PATH =3D /home/peda/automake/tests:/cygdrive/c/Program Files (x86)/Micros= oft F#/v4.0/:/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0= /VSTSDB/Deploy:/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10= =2E0/Common7/IDE/:/cygdrive/c/Program Files (x86)/Microsoft Visual Studio= 10.0/VC/BIN:/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0= /Common7/Tools/:/cygdrive/c/Windows/Microsoft.NET/Framework/v4.0.30319:/c= ygdrive/c/Windows/Microsoft.NET/Framework/v3.5:/cygdrive/c/Program Files = (x86)/Microsoft Visual Studio 10.0/VC/VCPackages:/cygdrive/c/Program File= s (x86)/HTML Help Workshop:/cygdrive/c/Program Files (x86)/Microsoft Visu= al Studio 10.0/Team Tools/Performance Tools:/cygdrive/c/Program Files (x8= 6)/Microsoft SDKs/Windows/v7.0A/bin/NETFX 4.0 Tools:/usr/local/bin:/usr/b= in:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/S= ystem32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/usr/lib= /lapack silent-many-generic: running flex --version flex 2.5.35 silent-many-generic: running bison --version bison (GNU Bison) 2.4.2 Written by Robert Corbett and Richard Stallman. Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is N= O warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS= E. ++ pwd /home/peda/automake/tests/silent-many-generic.dir + mkdir sub + cat + cat + cat + cat + cat + cat + cat + cat + cp foo1.cpp bar.c + cp foo1.cpp sub/baz.c + cp foo1.cpp sub/bla.c + cp foo1.cpp sub/baz1.cpp + cp foo2.f90 sub/baz2.f90 + cp foo3.f sub/baz3.f + cp foo5.l sub/baz5.l + cp foo6.y sub/baz6.y + mkdir bin + saved_PATH=3D'/home/peda/automake/tests:/cygdrive/c/Program Files (x86)= /Microsoft F#/v4.0/:/cygdrive/c/Program Files (x86)/Microsoft Visual Stud= io 10.0/VSTSDB/Deploy:/cygdrive/c/Program Files (x86)/Microsoft Visual St= udio 10.0/Common7/IDE/:/cygdrive/c/Program Files (x86)/Microsoft Visual S= tudio 10.0/VC/BIN:/cygdrive/c/Program Files (x86)/Microsoft Visual Studio= 10.0/Common7/Tools/:/cygdrive/c/Windows/Microsoft.NET/Framework/v4.0.303= 19:/cygdrive/c/Windows/Microsoft.NET/Framework/v3.5:/cygdrive/c/Program F= iles (x86)/Microsoft Visual Studio 10.0/VC/VCPackages:/cygdrive/c/Program= Files (x86)/HTML Help Workshop:/cygdrive/c/Program Files (x86)/Microsoft= Visual Studio 10.0/Team Tools/Performance Tools:/cygdrive/c/Program File= s (x86)/Microsoft SDKs/Windows/v7.0A/bin/NETFX 4.0 Tools:/usr/local/bin:/= usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Wind= ows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/us= r/lib/lapack' + export saved_PATH ++ pwd + PATH=3D'/home/peda/automake/tests/silent-many-generic.dir/bin:/home/ped= a/automake/tests:/cygdrive/c/Program Files (x86)/Microsoft F#/v4.0/:/cygd= rive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VSTSDB/Deploy:/cy= gdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/:/c= ygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VC/BIN:/cygdri= ve/c/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/Tools/:/cyg= drive/c/Windows/Microsoft.NET/Framework/v4.0.30319:/cygdrive/c/Windows/Mi= crosoft.NET/Framework/v3.5:/cygdrive/c/Program Files (x86)/Microsoft Visu= al Studio 10.0/VC/VCPackages:/cygdrive/c/Program Files (x86)/HTML Help Wo= rkshop:/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/Team = Tools/Performance Tools:/cygdrive/c/Program Files (x86)/Microsoft SDKs/Wi= ndows/v7.0A/bin/NETFX 4.0 Tools:/usr/local/bin:/usr/bin:/cygdrive/c/Windo= ws/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdri= ve/c/Windows/System32/WindowsPowerShell/v1.0:/usr/lib/lapack' + export PATH + aclocal-1.11a -Werror + automake-1.11a --foreign -Werror -Wall --add-missing configure.in:5: installing `./compile' configure.in: installing `./ylwrap' + autoconf -B /no/such/dir + for config_args in --enable-dependency-tracking --disable-dependency-tr= acking + ./configure --enable-dependency-tracking --enable-silent-rules 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 style of include used by make... GNU checking for gcc... cc 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 cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking dependency style of cc... gcc3 checking whether cc understands -c and -o together... yes checking whether we are using the GNU Fortran 77 compiler... yes checking whether gfortran accepts -g... yes checking whether we are using the GNU Fortran compiler... yes checking whether gfortran accepts -g... yes checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for bison... bison -y checking whether we are using the GNU C++ compiler... yes checking whether CC accepts -g... yes checking dependency style of CC... gcc3 configure: WARNING: the C++ compiler 'CC' seems to be named 'CC' configure: WARNING: it will be wrapped with the custom script 'am--cxx' checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating sub/Makefile config.status: executing depfiles commands + do_and_check_silent_build + case $1 in + rebuild=3Dfalse + make CC: 1.0": No such file or directory :0:16: warning: missing terminating " character make[3]: *** [baz1.o] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 + cat stdout YACC foo6.c updating foo6.h make all-recursive make[1]: Entering directory `/home/peda/automake/tests/silent-many-generi= c.dir' Making all in sub make[2]: Entering directory `/home/peda/automake/tests/silent-many-generi= c.dir/sub' YACC baz6.c updating baz6.h make all-am make[3]: Entering directory `/home/peda/automake/tests/silent-many-generi= c.dir/sub' CXX baz1.o Makefile:413: recipe for target `baz1.o' failed make[3]: Leaving directory `/home/peda/automake/tests/silent-many-generic= =2Edir/sub' Makefile:256: recipe for target `all' failed make[2]: Leaving directory `/home/peda/automake/tests/silent-many-generic= =2Edir/sub' Makefile:536: recipe for target `all-recursive' failed make[1]: Leaving directory `/home/peda/automake/tests/silent-many-generic= =2Edir' Makefile:313: recipe for target `all' failed + Exit 1 + set +e + test 77 =3D 1 + exit 1 + exit 1 + exit_status=3D1 + set +e + cd /home/peda/automake/tests + test no =3D yes + case $am_explicit_skips in + test 1 -eq 0 + keep_testdirs=3Dyes + am_keeping_testdirs + case $keep_testdirs in + return 0 + set +x silent-many-generic: exit 1 --------------020804050201020708030307 Content-Type: text/plain; name="suffix3.log" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="suffix3.log" Running from installcheck: no Using TAP: yes PATH =3D /home/peda/automake/tests:/cygdrive/c/Program Files (x86)/Micros= oft F#/v4.0/:/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0= /VSTSDB/Deploy:/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10= =2E0/Common7/IDE/:/cygdrive/c/Program Files (x86)/Microsoft Visual Studio= 10.0/VC/BIN:/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0= /Common7/Tools/:/cygdrive/c/Windows/Microsoft.NET/Framework/v4.0.30319:/c= ygdrive/c/Windows/Microsoft.NET/Framework/v3.5:/cygdrive/c/Program Files = (x86)/Microsoft Visual Studio 10.0/VC/VCPackages:/cygdrive/c/Program File= s (x86)/HTML Help Workshop:/cygdrive/c/Program Files (x86)/Microsoft Visu= al Studio 10.0/Team Tools/Performance Tools:/cygdrive/c/Program Files (x8= 6)/Microsoft SDKs/Windows/v7.0A/bin/NETFX 4.0 Tools:/usr/local/bin:/usr/b= in:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/S= ystem32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/usr/lib= /lapack ++ pwd /home/peda/automake/tests/suffix3.dir + plan_ 10 + test 1 -eq 0 + test 1 -ge 2 + test x10 =3D xunknown + test x10 =3D xlater + test x10 =3D xlazy + test x10 =3D xnow + test 10 -ge 0 + echo 1..10 1..10 + have_tap_plan_=3Dyes + cat + cat + command_ok_ aclocal aclocal-1.11a -Werror + tap_directive_=3D + tap_reason_=3D + test 3 -gt 0 + tap_description_=3Daclocal + shift + test 2 -gt 0 + case $1 in + break + tap_result_=3Dok + aclocal-1.11a -Werror + result_ ok -D '' -r '' -- aclocal + set +x ok 1 - aclocal PASS: suffix3.tap 1 - aclocal + command_ok_ automake automake-1.11a --foreign -Werror -Wall + tap_directive_=3D + tap_reason_=3D + test 5 -gt 0 + tap_description_=3Dautomake + shift + test 4 -gt 0 + case $1 in + break + tap_result_=3Dok + automake-1.11a --foreign -Werror -Wall + result_ ok -D '' -r '' -- automake + set +x ok 2 - automake PASS: suffix3.tap 2 - automake + command_ok_ 'intermediate files not mentioned' not /usr/bin/grep -F foo= =2Ec Makefile.in + tap_directive_=3D + tap_reason_=3D + test 6 -gt 0 + tap_description_=3D'intermediate files not mentioned' + shift + test 5 -gt 0 + case $1 in + break + tap_result_=3Dok + not /usr/bin/grep -F foo.c Makefile.in + /usr/bin/grep -F foo.c Makefile.in + return 0 + result_ ok -D '' -r '' -- 'intermediate files not mentioned' + set +x ok 3 - intermediate files not mentioned PASS: suffix3.tap 3 - intermediate files not mentioned + command_ok_ 'final object file figured out' /usr/bin/grep -F 'foo.$(OBJ= EXT)' Makefile.in + tap_directive_=3D + tap_reason_=3D + test 5 -gt 0 + tap_description_=3D'final object file figured out' + shift + test 4 -gt 0 + case $1 in + break + tap_result_=3Dok + /usr/bin/grep -F 'foo.$(OBJEXT)' Makefile.in am_foo_OBJECTS =3D foo.$(OBJEXT) + result_ ok -D '' -r '' -- 'final object file figured out' + set +x ok 4 - final object file figured out PASS: suffix3.tap 4 - final object file figured out + command_ok_ autoconf autoconf -B /no/such/dir + tap_directive_=3D + tap_reason_=3D + test 4 -gt 0 + tap_description_=3Dautoconf + shift + test 3 -gt 0 + case $1 in + break + tap_result_=3Dok + autoconf -B /no/such/dir + result_ ok -D '' -r '' -- autoconf + set +x ok 5 - autoconf PASS: suffix3.tap 5 - autoconf + command_ok_ configure ./configure + tap_directive_=3D + tap_reason_=3D + test 2 -gt 0 + tap_description_=3Dconfigure + shift + test 1 -gt 0 + case $1 in + break + tap_result_=3Dok + ./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 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 CC accepts -g... yes checking for style of include used by make... GNU checking dependency style of CC... gcc3 checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands + result_ ok -D '' -r '' -- configure + set +x ok 6 - configure PASS: suffix3.tap 6 - configure + cat + directive=3D + make_can_chain_suffix_rules + test -z '' + using_gmake + case $am__using_gmake in + make --version -v + grep GNU GNU Make 3.82.90 License GPLv3+: GNU GPL version 3 or later + am__using_gmake=3Dyes + return 0 + am__can_chain_suffix_rules=3Dyes + return 0 + for target in all distcheck + command_ok_ 'make all' -D '' -r 'suffix rules not chained' make all + tap_directive_=3D + tap_reason_=3D + test 7 -gt 0 + tap_description_=3D'make all' + shift + test 6 -gt 0 + case $1 in + tap_directive_=3D + shift + shift + test 4 -gt 0 + case $1 in + tap_reason_=3D'suffix rules not chained' + shift + shift + test 2 -gt 0 + case $1 in + break + tap_result_=3Dok + make all sed 's/INTEGER/int/g' `test -f 'foo.zoo' || echo ./`foo.zoo >foo.cc CC -DPACKAGE_NAME=3D\"suffix3\" -DPACKAGE_TARNAME=3D\"suffix3\" -DPACKAGE= _VERSION=3D\"1.0\" -DPACKAGE_STRING=3D\"suffix3\ 1.0\" -DPACKAGE_BUGREPOR= T=3D\"\" -DPACKAGE_URL=3D\"\" -DPACKAGE=3D\"suffix3\" -DVERSION=3D\"1.0\"= -I. -g -O2 -MT foo.o -MD -MP -MF .deps/foo.Tpo -c -o foo.o foo.cc mv -f .deps/foo.Tpo .deps/foo.Po CC -g -O2 -o foo.exe foo.o =20 foo.o: In function `__static_initialization_and_destruction_0': /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/iostream:73: undefined refe= rence to `std::ios_base::Init::~Init()' /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/iostream:73: undefined refe= rence to `std::ios_base::Init::Init()' collect2: ld returned 1 exit status Makefile:262: recipe for target `foo.exe' failed make: *** [foo.exe] Error 1 rm foo.cc + tap_result_=3D'not ok' + result_ 'not ok' -D '' -r 'suffix rules not chained' -- 'make all' + set +x not ok 7 - make all FAIL: suffix3.tap 7 - make all + for target in all distcheck + command_ok_ 'make distcheck' -D '' -r 'suffix rules not chained' make d= istcheck + tap_directive_=3D + tap_reason_=3D + test 7 -gt 0 + tap_description_=3D'make distcheck' + shift + test 6 -gt 0 + case $1 in + tap_directive_=3D + shift + shift + test 4 -gt 0 + case $1 in + tap_reason_=3D'suffix rules not chained' + shift + shift + test 2 -gt 0 + case $1 in + break + tap_result_=3Dok + make distcheck make dist-gzip am__post_remove_distdir=3D'@:' make[1]: Entering directory `/home/peda/automake/tests/suffix3.dir' if test -d "suffix3-1.0"; then find "suffix3-1.0" -type d ! -perm -200 -= exec chmod u+w {} ';' && rm -rf "suffix3-1.0" || { sleep 5 && rm -rf "s= uffix3-1.0"; }; else :; fi test -d "suffix3-1.0" || mkdir "suffix3-1.0" test -n "" \ || find "suffix3-1.0" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec /bin/sh /home/peda/automake/tests/suffix3.= dir/install-sh -c -m a+r {} {} \; \ || chmod -R a+r "suffix3-1.0" tardir=3Dsuffix3-1.0 && ${TAR-tar} chof - "$tardir" | GZIP=3D--best gzip = -c >suffix3-1.0.tar.gz make[1]: Leaving directory `/home/peda/automake/tests/suffix3.dir' if test -d "suffix3-1.0"; then find "suffix3-1.0" -type d ! -perm -200 -= exec chmod u+w {} ';' && rm -rf "suffix3-1.0" || { sleep 5 && rm -rf "s= uffix3-1.0"; }; else :; fi case 'suffix3-1.0.tar.gz' in \ *.tar.gz*) \ GZIP=3D--best gzip -dc suffix3-1.0.tar.gz | ${TAR-tar} xf - ;;\ *.tar.bz2*) \ bzip2 -dc suffix3-1.0.tar.bz2 | ${TAR-tar} xf - ;;\ *.tar.lz*) \ lzip -dc suffix3-1.0.tar.lz | ${TAR-tar} xf - ;;\ *.tar.xz*) \ xz -dc suffix3-1.0.tar.xz | ${TAR-tar} xf - ;;\ *.tar.Z*) \ uncompress -c suffix3-1.0.tar.Z | ${TAR-tar} xf - ;;\ *.shar.gz*) \ GZIP=3D--best gzip -dc suffix3-1.0.shar.gz | unshar ;;\ *.zip*) \ unzip suffix3-1.0.zip ;;\ esac chmod -R a-w suffix3-1.0; chmod a+w suffix3-1.0 mkdir suffix3-1.0/_build mkdir suffix3-1.0/_inst chmod a-w suffix3-1.0 test -d suffix3-1.0/_build || exit 0; \ dc_install_base=3D`CDPATH=3D"${ZSH_VERSION+.}:" && cd suffix3-1.0/_inst &= & pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir=3D"${TMPDIR-/tmp}/am-dc-$$/" \ && am__cwd=3D`pwd` \ && CDPATH=3D"${ZSH_VERSION+.}:" && cd suffix3-1.0/_build \ && ../configure --srcdir=3D.. --prefix=3D"$dc_install_base" \ \ \ && make \ && make dvi \ && make check \ && make install \ && make installcheck \ && make uninstall \ && make distuninstallcheck_dir=3D"$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$dc_destdir") \ && make DESTDIR=3D"$dc_destdir" install \ && make DESTDIR=3D"$dc_destdir" uninstall \ && make DESTDIR=3D"$dc_destdir" \ distuninstallcheck_dir=3D"$dc_destdir" distuninstallcheck; \ } || { rm -rf "$dc_destdir"; exit 1; }) \ && rm -rf "$dc_destdir" \ && make dist \ && rm -rf suffix3-1.0.tar.gz \ && make distcleancheck \ && cd "$am__cwd" \ || exit 1 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 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 CC accepts -g... yes checking for style of include used by make... GNU checking dependency style of CC... gcc3 checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands make[1]: Entering directory `/home/peda/automake/tests/suffix3.dir/suffix= 3-1.0/_build' sed 's/INTEGER/int/g' `test -f '../foo.zoo' || echo ../`../foo.zoo >foo.c= c CC -DPACKAGE_NAME=3D\"suffix3\" -DPACKAGE_TARNAME=3D\"suffix3\" -DPACKAGE= _VERSION=3D\"1.0\" -DPACKAGE_STRING=3D\"suffix3\ 1.0\" -DPACKAGE_BUGREPOR= T=3D\"\" -DPACKAGE_URL=3D\"\" -DPACKAGE=3D\"suffix3\" -DVERSION=3D\"1.0\"= -I. -I.. -g -O2 -MT foo.o -MD -MP -MF .deps/foo.Tpo -c -o foo.o foo= =2Ecc mv -f .deps/foo.Tpo .deps/foo.Po CC -g -O2 -o foo.exe foo.o =20 foo.o: In function `__static_initialization_and_destruction_0': /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/iostream:73: undefined refe= rence to `std::ios_base::Init::~Init()' /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/iostream:73: undefined refe= rence to `std::ios_base::Init::Init()' collect2: ld returned 1 exit status Makefile:262: recipe for target `foo.exe' failed make[1]: *** [foo.exe] Error 1 rm foo.cc make[1]: Leaving directory `/home/peda/automake/tests/suffix3.dir/suffix3= -1.0/_build' Makefile:439: recipe for target `distcheck' failed make: *** [distcheck] Error 1 + tap_result_=3D'not ok' + result_ 'not ok' -D '' -r 'suffix rules not chained' -- 'make distcheck= ' + set +x not ok 8 - make distcheck FAIL: suffix3.tap 8 - make distcheck + command_ok_ 'make distdir' make distdir + tap_directive_=3D + tap_reason_=3D + test 3 -gt 0 + tap_description_=3D'make distdir' + shift + test 2 -gt 0 + case $1 in + break + tap_result_=3Dok + make distdir if test -d "suffix3-1.0"; then find "suffix3-1.0" -type d ! -perm -200 -= exec chmod u+w {} ';' && rm -rf "suffix3-1.0" || { sleep 5 && rm -rf "s= uffix3-1.0"; }; else :; fi test -d "suffix3-1.0" || mkdir "suffix3-1.0" test -n "" \ || find "suffix3-1.0" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec /bin/sh /home/peda/automake/tests/suffix3.= dir/install-sh -c -m a+r {} {} \; \ || chmod -R a+r "suffix3-1.0" + result_ ok -D '' -r '' -- 'make distdir' + set +x ok 9 - make distdir PASS: suffix3.tap 9 - make distdir + command_ok_ 'intermediate file not distributed' test '!' -r suffix3-1.0= /foo.cc + tap_directive_=3D + tap_reason_=3D + test 5 -gt 0 + tap_description_=3D'intermediate file not distributed' + shift + test 4 -gt 0 + case $1 in + break + tap_result_=3Dok + test '!' -r suffix3-1.0/foo.cc + result_ ok -D '' -r '' -- 'intermediate file not distributed' + set +x ok 10 - intermediate file not distributed PASS: suffix3.tap 10 - intermediate file not distributed + : + exit_status=3D0 + set +e + cd /home/peda/automake/tests + test yes =3D yes + test yes '!=3D' yes + test 0 -eq 0 + test 8 -eq 10 + keep_testdirs=3Dyes + am_keeping_testdirs + case $keep_testdirs in + return 0 + set +x suffix3: exit 0 --------------020804050201020708030307-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 08 16:32:41 2012 Received: (at 10766) by debbugs.gnu.org; 8 Feb 2012 21:32:41 +0000 Received: from localhost ([127.0.0.1]:32876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvF84-00055P-Lc for submit@debbugs.gnu.org; Wed, 08 Feb 2012 16:32:41 -0500 Received: from mail-ey0-f172.google.com ([209.85.215.172]:62978) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvF82-000557-1j for 10766@debbugs.gnu.org; Wed, 08 Feb 2012 16:32:39 -0500 Received: by eaal12 with SMTP id l12so494662eaa.3 for <10766@debbugs.gnu.org>; Wed, 08 Feb 2012 13:31:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=S1RzjhriVXCafvLuR/vHgL1Ezqw8phEjjlvL1lZo4cU=; b=kZPs9UXUZZL9m5YovWlsZZuLxJCdt6piwR9DlSFjo3qgeMErZS3vVB1oc525qeT6N7 cp9H5Tru9BMNYOYRBHyqojyVix3/RzqiY1dT+OC5SeT14xRgmDQQZBtPev0R4Wgr/pEw nttuoXl2Ptmj8MncZVP/QmrQdyI4yOAKJAmWg= Received: by 10.14.127.80 with SMTP id c56mr6814262eei.13.1328736687441; Wed, 08 Feb 2012 13:31:27 -0800 (PST) Received: from [87.14.90.217] (host217-90-dynamic.14-87-r.retail.telecomitalia.it. [87.14.90.217]) by mx.google.com with ESMTPS id o49sm1633038eeb.7.2012.02.08.13.31.24 (version=SSLv3 cipher=OTHER); Wed, 08 Feb 2012 13:31:25 -0800 (PST) Message-ID: <4F32E9AB.7060108@gmail.com> Date: Wed, 08 Feb 2012 22:31:23 +0100 From: Stefano Lattarini MIME-Version: 1.0 To: Peter Rosin Subject: Re: bug#10766: CXX gets the value 'CC' on Cygwin, but CC is in fact cc References: <4F32E34D.60503@lysator.liu.se> In-Reply-To: <4F32E34D.60503@lysator.liu.se> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 10766 Cc: bug-autoconf@gnu.org, 10766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Reference: [CC:ing the bug-autoconf list] On 02/08/2012 10:04 PM, Peter Rosin wrote: > Hi! > > The testsuite on master tries to use lesser compilers, but on Cygwin > this causes some failures due to the fact that /usr/bin/cc{.exe} is > also recognized as /usr/bin/CC{.EXE} (due to the filesystem not being > case sensitive), leading to CXX being set to 'CC'. > That is bad. But this sounds more like an autoconf bug, since AC_PROG_CXX isn't rejecting the C compiler as it IMHO should. Or am I missing something? > But then CXX isn't a C++ compiler and some tests go downhill, namely > silent-many-generic.test and suffix3.tap. > > Or something, I didn't look all that much at it. Maybe the failure > in silent-many-generic.test is just a variant of the SunStudio CC > case mentioned in the comment? > Or more likely some bug in our custom wrapper script kicking in. But let's look into this once we have solved the other, more serious issue. Thanks, Stefano From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 08 16:40:43 2012 Received: (at 10766) by debbugs.gnu.org; 8 Feb 2012 21:40:43 +0000 Received: from localhost ([127.0.0.1]:32884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvFFr-0005Io-5m for submit@debbugs.gnu.org; Wed, 08 Feb 2012 16:40:43 -0500 Received: from mail.lysator.liu.se ([130.236.254.3]:48468) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvFFn-0005Ie-Fg for 10766@debbugs.gnu.org; Wed, 08 Feb 2012 16:40:41 -0500 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 8E26F40010; Wed, 8 Feb 2012 22:39:33 +0100 (CET) Received: from [10.171.115.55] (host-95-199-19-55.mobileonline.telia.com [95.199.19.55]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id B128B40008; Wed, 8 Feb 2012 22:39:32 +0100 (CET) Message-ID: <4F32EB9A.9080306@lysator.liu.se> Date: Wed, 08 Feb 2012 22:39:38 +0100 From: Peter Rosin User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Stefano Lattarini Subject: Re: bug#10766: CXX gets the value 'CC' on Cygwin, but CC is in fact cc References: <4F32E34D.60503@lysator.liu.se> <4F32E9AB.7060108@gmail.com> In-Reply-To: <4F32E9AB.7060108@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10766 Cc: bug-autoconf@gnu.org, 10766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Stefano Lattarini skrev 2012-02-08 22:31: > Reference: > > > [CC:ing the bug-autoconf list] > > On 02/08/2012 10:04 PM, Peter Rosin wrote: >> Hi! >> >> The testsuite on master tries to use lesser compilers, but on Cygwin >> this causes some failures due to the fact that /usr/bin/cc{.exe} is >> also recognized as /usr/bin/CC{.EXE} (due to the filesystem not being >> case sensitive), leading to CXX being set to 'CC'. >> > That is bad. But this sounds more like an autoconf bug, since AC_PROG_CXX > isn't rejecting the C compiler as it IMHO should. Or am I missing > something? Well, to be fair the Automake usage of AC_PROG_CXX on master is more than a little bit special in that it overrides the search order and puts g++ last in the list. This isn't hitting anything real, not anything big anyway... Cheers, Peter From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 11 08:50:29 2012 Received: (at 10766) by debbugs.gnu.org; 11 Jul 2012 12:50:29 +0000 Received: from localhost ([127.0.0.1]:33224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SowN9-0006Wq-U5 for submit@debbugs.gnu.org; Wed, 11 Jul 2012 08:50:28 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:36851) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SowN5-0006WY-Dq; Wed, 11 Jul 2012 08:50:24 -0400 Received: by bkty7 with SMTP id y7so813833bkt.3 for ; Wed, 11 Jul 2012 05:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type; bh=ps0xKqthdRabeUYCQG0OLGvWxG6U8azoxrEgNRFrqfk=; b=ME/xLxOOha+h3RdRj6UeEl7Pfwf4bCWLjvXLOqyWNIPbdMGxuudv+KOJEPtyFfZtf6 0OdqfrxeJC7FXH4MvoxMySF1Mh0d8c5fQAQfJtwHMpUCK6jVF+j2xCHmIvhnXzg/AUQj hrAJDMMF+ITgBhOxooX14ZUCZOOdLrDVm7eVbBgRwKrzu1BvkmylUcJq7wlbTIoc22Go YAHch9OFHnaGCgBPK0durMgyg2dNf+QAmkgnY0n3eTyIZcgzXokvuy4dIXXFepAd1+x2 ijm2/QHk8WyjU+7tp2lAQvjgB/Ic6vPSjeU3F/MMqPLPOi4nAmn3TTVzuDOPOKxYlFKy c+nQ== Received: by 10.204.130.10 with SMTP id q10mr23623059bks.90.1342010696309; Wed, 11 Jul 2012 05:44:56 -0700 (PDT) Received: from [82.56.37.83] (host83-37-dynamic.56-82-r.retail.telecomitalia.it. [82.56.37.83]) by mx.google.com with ESMTPS id ht18sm1080300bkc.16.2012.07.11.05.44.54 (version=SSLv3 cipher=OTHER); Wed, 11 Jul 2012 05:44:55 -0700 (PDT) Message-ID: <4FFD753D.7030108@gmail.com> Date: Wed, 11 Jul 2012 14:44:45 +0200 From: Stefano Lattarini MIME-Version: 1.0 To: Max Horn Subject: Re: bug#11893: Regression in automake 1.12.1 on Mac OS X References: <7D311749-2399-48ED-A3D1-02E34BF936A6@quendi.de> In-Reply-To: <7D311749-2399-48ED-A3D1-02E34BF936A6@quendi.de> Content-Type: multipart/mixed; boundary="------------070407010202010700060200" X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: 10766 Cc: Peter Rosin , 11893@debbugs.gnu.org, "automake-patches@gnu.org" , 10766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.9 (/) This is a multi-part message in MIME format. --------------070407010202010700060200 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 07/09/2012 07:04 PM, Max Horn wrote: > Hi there, > Hi Max. > I am currently looking into packaging automake 1.12.1 for > Fink on Mac OS X 10.7. > Doing that, several test suite failures popped up, which > I am now working through to resolve. > In the meantime, could you please post the 'test-suite.log' file, for reference? Thanks. > The first one is t/silentcxx-gcc.sh failing. > Note that t/silentcxx.sh incorrectly (!) succeeds. > > There are two problems here: > > 1) The C++ compiler from Sun Studio is named "CC". This caused > t/silentcxx.sh to fail, which was fixed with commit ad5d0be02d > in the autonconf > s/autoconf/automake/ I guess. BTW, the problem you are reporting is similar to the one reported in bug#10766 by Peter Rosin (which I'm thus CC:ing): > git repository. The same fix also needs to be applied to > t/silentcxx-gcc.sh. > See if the attached patch solves the issue for you. Ideally, it should also fix bug#10766; Peter, could you give it a try? > 2) But actually I am happy this was there, because otherwise > I wouldn't have detected this second, more serious bug: On > Mac OS X, automake 1.12.1 incorrectly thinks the C++ compiler > is named CC (when really it should be clang++, c++ or g++). > This is because (a( OS X by default uses a case in-sensitive > file system, and so "CC" is equivalent to "cc", and (b) the > automake 1.12.1 code for some reason duplicate some autoconf > code for detecting the C++ compiler, but changed this code, > breaking it. > It's not actually broken, it's just that, while Autoconf-generated configure scripts prefer GCC over other compilers, the Automake configure script does the other way round, to try to enhance coverage in its testsuite. Note that this inverted logic is only applied to the configure of Automake itself, and *not* to those of the packages using configure (this is very important!). > To quote automake's configure.ac: > > > # The list of C++ compilers here has been copied, pasted and edited > # from 'lib/autoconf/c.m4:AC_PROG_CXX' in the Autoconf distribution. > # Keep it in sync, or better again, find out a way to avoid this code > # duplication. > _AM_COMPILER_CAN_FAIL([AC_PROG_CXX(dnl > [aCC CC FCC KCC RCC xlC_r xlC c++ cxx cc++ gpp g++])], > [CXX=false; _AM_SKIP_COMP_TESTS([C++])]) > > > But this is what my version of c.m4 contains: > > AC_CHECK_TOOLS(CXX, > [m4_default([$1], > [g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC])], > g++) > > i.e. the order of the compilers has been changed, and this causes the breakage above. > > I wonder whether this different order of compilers is intentional -- > Yes, see above. > and why this is duplicated in automake in the first place? > The comment in configure.ac just says that the list was duplicated, > not *why*. > Because we need to have the entries of the list sorted in a different order than the one they are in Autoconf. > It would be nice if it could be extended to explain just that by somebody > who knows :). > The explanation is already given in the comments above: # Prefer generic compilers to GNU ones when possible. This will ensure # more testsuite coverage "in the wild". # Note that we don't look for the MSVC C/C++ compiler here. This is # deliberate; for more discussion and rationale, see: # Thanks, Stefano --------------070407010202010700060200 Content-Type: text/x-diff; name="0001-tests-don-t-use-C-instead-of-C-compiler-on-case-inse.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-tests-don-t-use-C-instead-of-C-compiler-on-case-inse.pa"; filename*1="tch" >From 66bcbd11febd14e5653482b57e33fb56afe7bbfb Mon Sep 17 00:00:00 2001 Message-Id: <66bcbd11febd14e5653482b57e33fb56afe7bbfb.1342010645.git.stefano.lattarini@gmail.com> From: Stefano Lattarini Date: Wed, 11 Jul 2012 14:36:13 +0200 Subject: [PATCH] tests: don't use C instead of C++ compiler on case-insensitive platforms This change fixes automake bug#11892 and bug#10766. On at least Cygwin and Mac OS X 10.7, the file system where the system compilers are located can be case-insensitive, so that looking for a program named 'CC' might actually find the C compiler in /usr/bin/cc. Now, the Automake configure script looks for a C++ compiler named 'CC' before looking for more obvious names like c++ or g++ (that is done to increase testsuite "coverage in the wild", e.g., preferring, on Solaris, the Sun Studio C++ compiler /usr/bin/CC over the GNU C++ compiler). Since the checks done in AC_PROG_CXX are apparently not strict enough to rule out C compilers like those from GCC or Clang (which are smart enough to recognize if a file has a C++ extension, passing it to the C++ front end) the testsuite might end up using a C compiler where a C++ one is expected, with some subtle bad consequences. * configure.ac: Don't look for a C++ compiler named 'CC' if the "top-level" file system(s) (where /bin and /usr/bin are) are detected to be case-insensitive. Signed-off-by: Stefano Lattarini --- configure.ac | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 49b008d..14e5c1d 100644 --- a/configure.ac +++ b/configure.ac @@ -442,12 +442,24 @@ _AM_COMPILER_CAN_FAIL(dnl AS_IF([test x"$GCC" = x"yes"], [am_CC_is_GNU=yes], [am_CC_is_GNU=no]) +# On case-insensitive file systems (seen e.g. on Cygwin and Mac OS X) +# we must avoid looking for 'CC', because that would be the same as +# 'cc', and could cause $CXX to point to the C compiler, instead of +# to a C++ compiler as expected. See automake bugs #11892 and #10766. +if test -f /bin/RMDIR || test -f /usr/bin/RMDIR || test -f /usr/bin/GCC +then + # Case-insensitive file system, don't look for CC + am_CC= +else + am_CC=CC +fi + # The list of C++ compilers here has been copied, pasted and edited # from 'lib/autoconf/c.m4:AC_PROG_CXX' in the Autoconf distribution. # Keep it in sync, or better again, find out a way to avoid this code # duplication. _AM_COMPILER_CAN_FAIL([AC_PROG_CXX(dnl - [aCC CC FCC KCC RCC xlC_r xlC c++ cxx cc++ gpp g++])], + [aCC $am_CC FCC KCC RCC xlC_r xlC c++ cxx cc++ gpp g++])], [CXX=false; _AM_SKIP_COMP_TESTS([C++])]) AS_IF([test x"$GXX" = x"yes"], [am_CXX_is_GNU=yes], [am_CXX_is_GNU=no]) -- 1.7.9.5 --------------070407010202010700060200-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 11 17:26:11 2012 Received: (at 10766) by debbugs.gnu.org; 11 Jul 2012 21:26:12 +0000 Received: from localhost ([127.0.0.1]:34057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sp4QC-0002TM-PX for submit@debbugs.gnu.org; Wed, 11 Jul 2012 17:26:10 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]:52421) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sp4Q9-0002TB-F3; Wed, 11 Jul 2012 17:26:06 -0400 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 168744000A; Wed, 11 Jul 2012 23:20:36 +0200 (CEST) Received: from [192.168.0.64] (90-227-119-137-no95.business.telia.com [90.227.119.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 5930840003; Wed, 11 Jul 2012 23:20:34 +0200 (CEST) Message-ID: <4FFDEE3E.1070302@lysator.liu.se> Date: Wed, 11 Jul 2012 23:21:02 +0200 From: Peter Rosin User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Stefano Lattarini Subject: Re: bug#11893: Regression in automake 1.12.1 on Mac OS X References: <7D311749-2399-48ED-A3D1-02E34BF936A6@quendi.de> <4FFD753D.7030108@gmail.com> In-Reply-To: <4FFD753D.7030108@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10766 Cc: Max Horn , 11893@debbugs.gnu.org, "automake-patches@gnu.org" , 10766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 2012-07-11 14:44, Stefano Lattarini wrote: > On 07/09/2012 07:04 PM, Max Horn wrote: >> Hi there, >> > Hi Max. > >> I am currently looking into packaging automake 1.12.1 for >> Fink on Mac OS X 10.7. >> Doing that, several test suite failures popped up, which >> I am now working through to resolve. >> > In the meantime, could you please post the 'test-suite.log' file, > for reference? Thanks. > >> The first one is t/silentcxx-gcc.sh failing. >> Note that t/silentcxx.sh incorrectly (!) succeeds. >> >> There are two problems here: >> >> 1) The C++ compiler from Sun Studio is named "CC". This caused >> t/silentcxx.sh to fail, which was fixed with commit ad5d0be02d >> in the autonconf >> > s/autoconf/automake/ I guess. > > BTW, the problem you are reporting is similar to the one reported > in bug#10766 by Peter Rosin (which I'm thus CC:ing): > > >> git repository. The same fix also needs to be applied to >> t/silentcxx-gcc.sh. >> > See if the attached patch solves the issue for you. Ideally, it > should also fix bug#10766; Peter, could you give it a try? Hi Stefano! I updated for the first time in a long time but stumbled on the autoconf 2.69 requirement, it's not available as a package for Cygwin yet. I don't feel like rolling my own autoconf. So, no, I will not test this one until 2.69 is readily available. Sorry. So, reading the patch instead, I think the method for querying case insensitivity seems a bit fragile. /usr/bin/gcc is a symlink on Cygwin and I could easily imagine someone creating a /usr/bin/GCC wrapper script. Not that anybody will die or anything, but still... >From the nit-picking department, I would not specifically mention Cygwin when talking about case insensitivity, I would refer to Windows as a whole instead (since you can make Cygwin case sensitive). BTW, thanks for tackling this! Cheers, Peter From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 12 04:57:14 2012 Received: (at 10766) by debbugs.gnu.org; 12 Jul 2012 08:57:14 +0000 Received: from localhost ([127.0.0.1]:34982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpFCz-0002mr-UG for submit@debbugs.gnu.org; Thu, 12 Jul 2012 04:57:14 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:42052) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpFCx-0002md-3w; Thu, 12 Jul 2012 04:57:12 -0400 Received: by bkty7 with SMTP id y7so1568943bkt.3 for ; Thu, 12 Jul 2012 01:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=i84HIXLGNoUMTe3tLSTZX3Mr7gFmBlh1HOaNaXGmw9I=; b=YL9vONtPW3KulGnDpFQQVFNkNidQy8BZo5UkT7YbkRiSZUfA5ARsAPU7NgWagv0vSc yxFlPYCt2v1WZ1a3zuz+vxbQDvFO2tWTYVTsplr6SCw6BCyOePpQb5e0qU8g/SogUsCC dt7tAJtPB0it993/trJU2Y+tnMiAY4H/GRYrES7gVVuR2IqRamavS9Y6C1a5QrcNbtQR IeNiltTHnVqlC+7TEXK9mJrGBsJi+3VKjyobcIvrjj6fPlYFZwrNBAxWtAntesk/19sE Jg8m50yowwYSsypGAu3E+CqvaAlzrxWnjUsrzFHAB9e4zttcnKM4D9DOrT9G6a3vTKxV cv/A== Received: by 10.205.120.18 with SMTP id fw18mr26057188bkc.64.1342083099232; Thu, 12 Jul 2012 01:51:39 -0700 (PDT) Received: from [79.24.98.66] (host66-98-dynamic.24-79-r.retail.telecomitalia.it. [79.24.98.66]) by mx.google.com with ESMTPS id gq2sm2432727bkc.13.2012.07.12.01.51.36 (version=SSLv3 cipher=OTHER); Thu, 12 Jul 2012 01:51:38 -0700 (PDT) Message-ID: <4FFE9010.2000606@gmail.com> Date: Thu, 12 Jul 2012 10:51:28 +0200 From: Stefano Lattarini MIME-Version: 1.0 To: Peter Rosin Subject: Re: bug#11893: Regression in automake 1.12.1 on Mac OS X References: <7D311749-2399-48ED-A3D1-02E34BF936A6@quendi.de> <4FFD753D.7030108@gmail.com> <4FFDEE3E.1070302@lysator.liu.se> In-Reply-To: <4FFDEE3E.1070302@lysator.liu.se> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 10766 Cc: Max Horn , 11893@debbugs.gnu.org, "automake-patches@gnu.org" , 10766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Hi Peter. On 07/11/2012 11:21 PM, Peter Rosin wrote: > On 2012-07-11 14:44, Stefano Lattarini wrote: >> On 07/09/2012 07:04 PM, Max Horn wrote: >> >>> I am currently looking into packaging automake 1.12.1 for >>> Fink on Mac OS X 10.7. >>> Doing that, several test suite failures popped up, which >>> I am now working through to resolve. >>> >> In the meantime, could you please post the 'test-suite.log' file, >> for reference? Thanks. >> >>> The first one is t/silentcxx-gcc.sh failing. >>> Note that t/silentcxx.sh incorrectly (!) succeeds. >>> >>> There are two problems here: >>> >>> 1) The C++ compiler from Sun Studio is named "CC". This caused >>> t/silentcxx.sh to fail, which was fixed with commit ad5d0be02d >>> in the autonconf >>> >> s/autoconf/automake/ I guess. >> >> BTW, the problem you are reporting is similar to the one reported >> in bug#10766 by Peter Rosin (which I'm thus CC:ing): >> >> >>> git repository. The same fix also needs to be applied to >>> t/silentcxx-gcc.sh. >>> >> See if the attached patch solves the issue for you. Ideally, it >> should also fix bug#10766; Peter, could you give it a try? > > Hi Stefano! > > I updated for the first time in a long time but stumbled on the > autoconf 2.69 requirement, > Since that requirement is only needed for bootstrapping, I could send you a (patched) tarball to test (so that you'll only require an autoconf >= 2.62). Would that be more acceptable? > it's not available as a package for > Cygwin yet. I don't feel like rolling my own autoconf. So, no, > I will not test this one until 2.69 is readily available. Sorry. > > So, reading the patch instead, I think the method for querying case > insensitivity seems a bit fragile > Agreed (albeit it does its dirty work for now). Any suggestion on how to make it more reliable? > /usr/bin/gcc is a symlink on > Cygwin and I could easily imagine someone creating a /usr/bin/GCC > wrapper script. Not that anybody will die or anything, but still... > > From the nit-picking department, I would not specifically mention > Cygwin when talking about case insensitivity, I would refer to > Windows as a whole instead (since you can make Cygwin case > sensitive). > OK, will do. > BTW, thanks for tackling this! > > Cheers, > Peter Thanks, Stefano From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 12 10:05:14 2012 Received: (at 10766) by debbugs.gnu.org; 12 Jul 2012 14:05:14 +0000 Received: from localhost ([127.0.0.1]:36002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpK14-0003x0-0i for submit@debbugs.gnu.org; Thu, 12 Jul 2012 10:05:14 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]:48557) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpK11-0003wp-Fe; Thu, 12 Jul 2012 10:05:12 -0400 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id F239E4000D; Thu, 12 Jul 2012 15:59:37 +0200 (CEST) Received: from [192.168.0.64] (90-227-119-137-no95.business.telia.com [90.227.119.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 8EEF04000A; Thu, 12 Jul 2012 15:59:37 +0200 (CEST) Message-ID: <4FFED86B.4040704@lysator.liu.se> Date: Thu, 12 Jul 2012 16:00:11 +0200 From: Peter Rosin User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Stefano Lattarini Subject: Re: bug#11893: Regression in automake 1.12.1 on Mac OS X References: <7D311749-2399-48ED-A3D1-02E34BF936A6@quendi.de> <4FFD753D.7030108@gmail.com> <4FFDEE3E.1070302@lysator.liu.se> <4FFE9010.2000606@gmail.com> In-Reply-To: <4FFE9010.2000606@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10766 Cc: Max Horn , 11893@debbugs.gnu.org, "automake-patches@gnu.org" , 10766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 2012-07-12 10:51, Stefano Lattarini wrote: > Hi Peter. > > On 07/11/2012 11:21 PM, Peter Rosin wrote: >> On 2012-07-11 14:44, Stefano Lattarini wrote: >>> On 07/09/2012 07:04 PM, Max Horn wrote: >>> >>>> I am currently looking into packaging automake 1.12.1 for >>>> Fink on Mac OS X 10.7. >>>> Doing that, several test suite failures popped up, which >>>> I am now working through to resolve. >>>> >>> In the meantime, could you please post the 'test-suite.log' file, >>> for reference? Thanks. >>> >>>> The first one is t/silentcxx-gcc.sh failing. >>>> Note that t/silentcxx.sh incorrectly (!) succeeds. >>>> >>>> There are two problems here: >>>> >>>> 1) The C++ compiler from Sun Studio is named "CC". This caused >>>> t/silentcxx.sh to fail, which was fixed with commit ad5d0be02d >>>> in the autonconf >>>> >>> s/autoconf/automake/ I guess. >>> >>> BTW, the problem you are reporting is similar to the one reported >>> in bug#10766 by Peter Rosin (which I'm thus CC:ing): >>> >>> >>>> git repository. The same fix also needs to be applied to >>>> t/silentcxx-gcc.sh. >>>> >>> See if the attached patch solves the issue for you. Ideally, it >>> should also fix bug#10766; Peter, could you give it a try? >> >> Hi Stefano! >> >> I updated for the first time in a long time but stumbled on the >> autoconf 2.69 requirement, >> > Since that requirement is only needed for bootstrapping, I could send > you a (patched) tarball to test (so that you'll only require an > autoconf >= 2.62). Would that be more acceptable? Shoot! >> it's not available as a package for >> Cygwin yet. I don't feel like rolling my own autoconf. So, no, >> I will not test this one until 2.69 is readily available. Sorry. >> >> So, reading the patch instead, I think the method for querying case >> insensitivity seems a bit fragile >> > Agreed (albeit it does its dirty work for now). Any suggestion on > how to make it more reliable? Is test /usr/bin/CC -ef /usr/bin/cc portable enough? Does it work at all? Just an idea... Cheers, Peter From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 12 10:43:39 2012 Received: (at 10766) by debbugs.gnu.org; 12 Jul 2012 14:43:39 +0000 Received: from localhost ([127.0.0.1]:36099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpKcE-0004qX-Ds for submit@debbugs.gnu.org; Thu, 12 Jul 2012 10:43:38 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:36071) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpKc3-0004q9-5V; Thu, 12 Jul 2012 10:43:27 -0400 Received: by bkty7 with SMTP id y7so1849168bkt.3 for ; Thu, 12 Jul 2012 07:37:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=E9qnYjgkIrT2v2rXyMqos1jup3Jqmplg7x8gYJfjmyo=; b=dmu3RAc4ax7N8GBrFeu/YgzxxXkJu/uQ1pOBiEWBHziF342kxbRSB6zd3tTtQa9RPo c2//TfHyIdU5bweBQfjzxFwbeTfDVT492qIQ2/uodriaeuHoytsDsgLeqwDPQrtwojEn 1bAF2BSuNzaW8xCKSa5r6Wpmv/0GVUS6y8IY/3L6nGeVaiy+1s9D6SXlTtJ7gFecb+hM qms1MQhUVhlUVlyLM1f3/nIABbtacB49VVGG7GuRsBROg/54jHSNQtubtm7RdGSGpNIt 7xielTTCaArr8LPSpgJVkBVJcoYkYy/OvoYgXCdKD6oINNRNwba5LGHRmLF/grOQ3s9j AA+w== Received: by 10.205.127.131 with SMTP id ha3mr22173601bkc.123.1342103873939; Thu, 12 Jul 2012 07:37:53 -0700 (PDT) Received: from [82.54.101.156] (host156-101-dynamic.54-82-r.retail.telecomitalia.it. [82.54.101.156]) by mx.google.com with ESMTPS id hg13sm3198670bkc.7.2012.07.12.07.37.50 (version=SSLv3 cipher=OTHER); Thu, 12 Jul 2012 07:37:52 -0700 (PDT) Message-ID: <4FFEE139.9000702@gmail.com> Date: Thu, 12 Jul 2012 16:37:45 +0200 From: Stefano Lattarini MIME-Version: 1.0 To: Peter Rosin Subject: Re: bug#11893: Regression in automake 1.12.1 on Mac OS X References: <7D311749-2399-48ED-A3D1-02E34BF936A6@quendi.de> <4FFD753D.7030108@gmail.com> <4FFDEE3E.1070302@lysator.liu.se> <4FFE9010.2000606@gmail.com> <4FFED86B.4040704@lysator.liu.se> In-Reply-To: <4FFED86B.4040704@lysator.liu.se> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 10766 Cc: Max Horn , 11893@debbugs.gnu.org, "automake-patches@gnu.org" , 10766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 07/12/2012 04:00 PM, Peter Rosin wrote: > > Stefano Lattarini wrote: >> >> Since that requirement is only needed for bootstrapping, I could send >> you a (patched) tarball to test (so that you'll only require an >> autoconf >= 2.62). Would that be more acceptable? > > Shoot! > Sent in private. >>> So, reading the patch instead, I think the method for querying case >>> insensitivity seems a bit fragile >>> >> Agreed (albeit it does its dirty work for now). Any suggestion on >> how to make it more reliable? > > Is test /usr/bin/CC -ef /usr/bin/cc portable enough? > I have no idea ... it seems to work on Cygwin 1.5 though. Anyway, I think that testing for "test /bin/RMDIR -ef /bin/rmdir" might even be more portable. That's what I'll do if there is no further objection (and I'll sent you an updated tarball to test, before pushing out the patch). > Does it work at all? Just an idea... > > Cheers, > Peter Regards, Stefano From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 12 11:54:12 2012 Received: (at 10766) by debbugs.gnu.org; 12 Jul 2012 15:54:12 +0000 Received: from localhost ([127.0.0.1]:36219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpLiW-0006Px-Ev for submit@debbugs.gnu.org; Thu, 12 Jul 2012 11:54:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55786) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpLiS-0006Pi-M9; Thu, 12 Jul 2012 11:54:10 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6CFmYBo032744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 Jul 2012 11:48:34 -0400 Received: from [10.3.113.8] ([10.3.113.8]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q6CFmWV3017925; Thu, 12 Jul 2012 11:48:32 -0400 Message-ID: <4FFEF1CF.1090205@redhat.com> Date: Thu, 12 Jul 2012 09:48:31 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Stefano Lattarini Subject: Re: bug#11893: Regression in automake 1.12.1 on Mac OS X References: <7D311749-2399-48ED-A3D1-02E34BF936A6@quendi.de> <4FFD753D.7030108@gmail.com> <4FFDEE3E.1070302@lysator.liu.se> <4FFE9010.2000606@gmail.com> <4FFED86B.4040704@lysator.liu.se> <4FFEE139.9000702@gmail.com> In-Reply-To: <4FFEE139.9000702@gmail.com> X-Enigmail-Version: 1.4.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigF7516F4E7FA80689B72A14EF" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 10766 Cc: Peter Rosin , Max Horn , 11893@debbugs.gnu.org, "automake-patches@gnu.org" , 10766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF7516F4E7FA80689B72A14EF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 07/12/2012 08:37 AM, Stefano Lattarini wrote: >>> Agreed (albeit it does its dirty work for now). Any suggestion on >>> how to make it more reliable? >> >> Is test /usr/bin/CC -ef /usr/bin/cc portable enough? >> > I have no idea ... it seems to work on Cygwin 1.5 though. In general, 'test a -ef b' is not portable - it is not required by POSIX 2008 (although it has been proposed for a future version of POSIX). But on Cygwin, /bin/sh happens to support it. If you can guarantee that you are already on cygwin before using -ef, then this would work; or maybe if you pre-filter with 'test . -ef .' to ensure that -ef is understood, before then trying -ef to check for case insensitivity. Other than that, the only supported method in existing POSIX for checking for equal files is by parsing 'ls -i' output; but I don't know if 'ls -i' is portable to ancient hosts. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enigF7516F4E7FA80689B72A14EF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJP/vHQAAoJEKeha0olJ0NqA2AH+wf2VlUghumKUhQfG4s7L1Lu Y9/c3TigKf6AlCRViZAjP3tSt+i2ntS0wXEpptTuvu5MwXiXtUP1r4klnSHWrQVj trwr6eYuF9HcpXxPyT1yhe31q0iNIs+FPTdiLIToz4ZnrQDrLP2reh6bX3IEg3lU zybySrsFsdqwdz+3ZpM+6gIdYQhwW1Y/DHhQbaMHM2g4TWcDxOZRfNXdUOnXOO0v eQJYnn2rTWP8rNQMi38wl8N1GaOz8a+D7uEfp/LFQuq4Y6nqyi+HDvMDnzjpWHQt KV/1X+I/OGPFHusvEp7wlKseEwGIpKVufN67ApB7YB2zeQJSasBy4uCtuSrcsvk= =Uny+ -----END PGP SIGNATURE----- --------------enigF7516F4E7FA80689B72A14EF-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 12 12:29:04 2012 Received: (at 10766) by debbugs.gnu.org; 12 Jul 2012 16:29:04 +0000 Received: from localhost ([127.0.0.1]:36262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpMGF-0007CP-Vw for submit@debbugs.gnu.org; Thu, 12 Jul 2012 12:29:04 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:57068) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpMGC-0007Bu-VJ; Thu, 12 Jul 2012 12:29:01 -0400 Received: by bkty7 with SMTP id y7so1965918bkt.3 for ; Thu, 12 Jul 2012 09:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=sDfvWlbxU49f6BMD+q0joOTu0+0yXc8ILK20l8HvGC4=; b=bkwfouWe0eZxJfSZijitW1BY7xVGUanCwz+dnqynsKRTgIxZ8pyof0yQ/FGZhxbW+S azE/QY6xYJqTj4yhndc6ImwV2kvvnylqIy6V4O0wXLHFyHo0Z0b/9So8a7qZAi9EB+G2 aSmxjoPgwtWeNI0insbgzMKRu6u7cjFR5LZ1P3gEvyh2k8n+YR8f38w1U+ibg9uRi1DX 5qAPj00QBStcomuD1qotFkPb0NtS0huvoCruKaKRgHC9OiAf5vk3oAH5hXl9QbOv91s/ hUgTNOmQmhe+1RGLe0CkuWMykr0fh4fDF/qEIrwknc4cS1t5QaiSIKfdbjyad2Z6wCgb bb6w== Received: by 10.204.128.214 with SMTP id l22mr8441223bks.86.1342110207261; Thu, 12 Jul 2012 09:23:27 -0700 (PDT) Received: from [82.54.101.156] (host156-101-dynamic.54-82-r.retail.telecomitalia.it. [82.54.101.156]) by mx.google.com with ESMTPS id g6sm3405405bkg.2.2012.07.12.09.23.24 (version=SSLv3 cipher=OTHER); Thu, 12 Jul 2012 09:23:26 -0700 (PDT) Message-ID: <4FFEF9F9.9070004@gmail.com> Date: Thu, 12 Jul 2012 18:23:21 +0200 From: Stefano Lattarini MIME-Version: 1.0 To: Eric Blake Subject: Re: bug#11893: Regression in automake 1.12.1 on Mac OS X References: <7D311749-2399-48ED-A3D1-02E34BF936A6@quendi.de> <4FFD753D.7030108@gmail.com> <4FFDEE3E.1070302@lysator.liu.se> <4FFE9010.2000606@gmail.com> <4FFED86B.4040704@lysator.liu.se> <4FFEE139.9000702@gmail.com> <4FFEF1CF.1090205@redhat.com> In-Reply-To: <4FFEF1CF.1090205@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 10766 Cc: Peter Rosin , Max Horn , 11893@debbugs.gnu.org, "automake-patches@gnu.org" , 10766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Hi Eric. On 07/12/2012 05:48 PM, Eric Blake wrote: > On 07/12/2012 08:37 AM, Stefano Lattarini wrote: > >>>> Agreed (albeit it does its dirty work for now). Any suggestion on >>>> how to make it more reliable? >>> >>> Is test /usr/bin/CC -ef /usr/bin/cc portable enough? >>> >> I have no idea ... it seems to work on Cygwin 1.5 though. > > In general, 'test a -ef b' is not portable - it is not required by POSIX > 2008 (although it has been proposed for a future version of POSIX). But > on Cygwin, /bin/sh happens to support it. If you can guarantee that you > are already on cygwin before using -ef, then this would work; or maybe > if you pre-filter with 'test . -ef .' to ensure that -ef is understood, > before then trying -ef to check for case insensitivity. > > Other than that, the only supported method in existing POSIX for > checking for equal files is by parsing 'ls -i' output; but I don't know > if 'ls -i' is portable to ancient hosts. > I was fearing this would have got quickly complex and messy ... So I think I'll stick to my dumber and safer "test -f /bin/RMDIR" as a way to detect case-insensible filesystems. Thanks, Stefano From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 12 13:11:51 2012 Received: (at 10766) by debbugs.gnu.org; 12 Jul 2012 17:11:51 +0000 Received: from localhost ([127.0.0.1]:36391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpMvf-0000cO-G5 for submit@debbugs.gnu.org; Thu, 12 Jul 2012 13:11:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24888) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpMva-0000c8-My; Thu, 12 Jul 2012 13:11:50 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6CH6C7J008264 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 Jul 2012 13:06:12 -0400 Received: from [10.3.113.8] ([10.3.113.8]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q6CH6AgR009420; Thu, 12 Jul 2012 13:06:10 -0400 Message-ID: <4FFF03FF.1010201@redhat.com> Date: Thu, 12 Jul 2012 11:06:07 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Stefano Lattarini Subject: Re: bug#11893: Regression in automake 1.12.1 on Mac OS X References: <7D311749-2399-48ED-A3D1-02E34BF936A6@quendi.de> <4FFD753D.7030108@gmail.com> <4FFDEE3E.1070302@lysator.liu.se> <4FFE9010.2000606@gmail.com> <4FFED86B.4040704@lysator.liu.se> <4FFEE139.9000702@gmail.com> <4FFEF1CF.1090205@redhat.com> <4FFEF9F9.9070004@gmail.com> In-Reply-To: <4FFEF9F9.9070004@gmail.com> X-Enigmail-Version: 1.4.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig4C7867E374B593A9499FDC75" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 10766 Cc: Peter Rosin , Max Horn , 11893@debbugs.gnu.org, "automake-patches@gnu.org" , 10766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4C7867E374B593A9499FDC75 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 07/12/2012 10:23 AM, Stefano Lattarini wrote: >> Other than that, the only supported method in existing POSIX for >> checking for equal files is by parsing 'ls -i' output; but I don't kno= w >> if 'ls -i' is portable to ancient hosts. >> > I was fearing this would have got quickly complex and messy ... >=20 > So I think I'll stick to my dumber and safer "test -f /bin/RMDIR" as a > way to detect case-insensible filesystems. Assuming it was intentional, I like your re-wording of "case-insensible", as an apt description of the pain case-insensitive systems cause on portability :) That said, /bin/RMDIR is probably completely portable, but seems like it would be reliable in practice. POSIX doesn't reqiure /bin/rmdir to exist (about the only files that you can guarantee with POSIX are /tmp, /dev/null, /dev/tty, and /dev/console). Since /dev/ generally doesn't exist on mingw, that almost limits you to just testing if /tmp and /TMP are the same directory to detect a case-insensitive system. But I don't know of any systems that lack /bin/rmdir on a default installation, nor do I suspect many users intentionally create /bin/RMDIR (or even better, /bIn/rMdIr), so using it as a hueristic seems okay for a first cut at the problem at hand. Or, maybe you should just create a file in /tmp under one spelling and check existence of the file by another spelling. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig4C7867E374B593A9499FDC75 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJP/wP/AAoJEKeha0olJ0NqABgH/jlMhWQbcIXRnNk7qd14SUZT lFHCAxgLBYMP6BXQ+nNch8EV3sJ/ddyfSciZ1eCq24Ftd+jIeqEuwdMZfsg0y2fo dmRmkuD9v9GnvPG2FEDhsQkMH0jvwxbKooBTL/dADA432S6F9tJhNc4rnfiFs8S/ ciWQjvkWq6bqfohnPyb4sk66+9Yc5zwbrNTfZ9lmOb0UL6S4fgVwm5XYh1Zm2hFi Yx1DsGx8lRQCmHqLPtA6DL0U0m6CIKXODN1o1btHPyHr4LhoQq9sasG2Exeage8l M0tdr0lqut3jmRB1A6ahnOvOUW4lmR+hxkcpJWYTXRuT/kFPmcpjNePh8tcSkkE= =Rjq7 -----END PGP SIGNATURE----- --------------enig4C7867E374B593A9499FDC75-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 12 13:17:46 2012 Received: (at 10766) by debbugs.gnu.org; 12 Jul 2012 17:17:46 +0000 Received: from localhost ([127.0.0.1]:36405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpN1N-0000l3-Vq for submit@debbugs.gnu.org; Thu, 12 Jul 2012 13:17:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13715) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpN1K-0000kp-By; Thu, 12 Jul 2012 13:17:43 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6CHC8tg031516 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 Jul 2012 13:12:08 -0400 Received: from [10.3.113.8] ([10.3.113.8]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q6CHC8Ds010384; Thu, 12 Jul 2012 13:12:08 -0400 Message-ID: <4FFF0567.5060007@redhat.com> Date: Thu, 12 Jul 2012 11:12:07 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 Subject: Re: bug#11893: Regression in automake 1.12.1 on Mac OS X References: <7D311749-2399-48ED-A3D1-02E34BF936A6@quendi.de> <4FFD753D.7030108@gmail.com> <4FFDEE3E.1070302@lysator.liu.se> <4FFE9010.2000606@gmail.com> <4FFED86B.4040704@lysator.liu.se> <4FFEE139.9000702@gmail.com> <4FFEF1CF.1090205@redhat.com> <4FFEF9F9.9070004@gmail.com> <4FFF03FF.1010201@redhat.com> In-Reply-To: <4FFF03FF.1010201@redhat.com> X-Enigmail-Version: 1.4.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigB05ADAAC3BC55493869FE319" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: 10766 Cc: 10766@debbugs.gnu.org, Peter Rosin , 11893@debbugs.gnu.org, "automake-patches@gnu.org" , Stefano Lattarini , Max Horn X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB05ADAAC3BC55493869FE319 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 07/12/2012 11:06 AM, Eric Blake wrote: Minor correction: >=20 > That said, /bin/RMDIR is probably completely portable, but seems like i= t ^ not > would be reliable in practice. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enigB05ADAAC3BC55493869FE319 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJP/wVnAAoJEKeha0olJ0Nqxm8H/A/dpBZa346w6nDpg0xt3+1t 9s77Bo4efbRwGaSXmmIPE11tqlAcQfYc0PCSuSFB+JjvYnrGPZiUJeLbK9wuhk7b gtfLoqlAK43YVX1Tz6YzH41HQf7GKWAEDsmuB1gw9wo4Zch1HCgmVthhmBJJ21zo 67xum+ZbjloSoIRRTWoe6vDtY/VseX4Gp68a7KnwLpkIX6elpHeBborK/OKatQoN iSX+Y+7eXni4u0v8bmbfKCD/yRvkJ3GzidTpI6Sg+myf97T6YivEik1k8snIW6YY CDW3P8UwYSnMw1t4MYl2eN5Y7OVUpmFJXcnsOpQLlbuGvTQ3MxuJC5xk00BdR1M= =HFeC -----END PGP SIGNATURE----- --------------enigB05ADAAC3BC55493869FE319-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 12 14:45:50 2012 Received: (at 10766) by debbugs.gnu.org; 12 Jul 2012 18:45:50 +0000 Received: from localhost ([127.0.0.1]:36581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpOOb-0003dw-Rl for submit@debbugs.gnu.org; Thu, 12 Jul 2012 14:45:50 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]:43484) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpOOX-0003dj-TW; Thu, 12 Jul 2012 14:45:47 -0400 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 59F114000A; Thu, 12 Jul 2012 20:40:11 +0200 (CEST) Received: from [192.168.0.64] (90-227-119-137-no95.business.telia.com [90.227.119.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 8015640003; Thu, 12 Jul 2012 20:40:10 +0200 (CEST) Message-ID: <4FFF1A2C.7050102@lysator.liu.se> Date: Thu, 12 Jul 2012 20:40:44 +0200 From: Peter Rosin User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Eric Blake Subject: Re: bug#11893: Regression in automake 1.12.1 on Mac OS X References: <7D311749-2399-48ED-A3D1-02E34BF936A6@quendi.de> <4FFD753D.7030108@gmail.com> <4FFDEE3E.1070302@lysator.liu.se> <4FFE9010.2000606@gmail.com> <4FFED86B.4040704@lysator.liu.se> <4FFEE139.9000702@gmail.com> <4FFEF1CF.1090205@redhat.com> In-Reply-To: <4FFEF1CF.1090205@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10766 Cc: Max Horn , Stefano Lattarini , 11893@debbugs.gnu.org, "automake-patches@gnu.org" , 10766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 2012-07-12 17:48, Eric Blake wrote: > On 07/12/2012 08:37 AM, Stefano Lattarini wrote: > >>>> Agreed (albeit it does its dirty work for now). Any suggestion on >>>> how to make it more reliable? >>> >>> Is test /usr/bin/CC -ef /usr/bin/cc portable enough? >>> >> I have no idea ... it seems to work on Cygwin 1.5 though. > > In general, 'test a -ef b' is not portable - it is not required by POSIX > 2008 (although it has been proposed for a future version of POSIX). But > on Cygwin, /bin/sh happens to support it. If you can guarantee that you > are already on cygwin before using -ef, then this would work; or maybe > if you pre-filter with 'test . -ef .' to ensure that -ef is understood, > before then trying -ef to check for case insensitivity. > Other than that, the only supported method in existing POSIX for > checking for equal files is by parsing 'ls -i' output; but I don't know > if 'ls -i' is portable to ancient hosts. if test -z `ls -i /usr/bin/cc /usr/bin/CC | sed 'N; /^\( *[^ ]* \).*\n\1/!s/.*//; s/..*/same/'`; then echo "sensible aka sensitive" fi But that of course relies on a working ls -i, as well as its formatting... Cheers, Peter From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 12 14:48:34 2012 Received: (at 10766) by debbugs.gnu.org; 12 Jul 2012 18:48:34 +0000 Received: from localhost ([127.0.0.1]:36602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpORF-0003iW-C7 for submit@debbugs.gnu.org; Thu, 12 Jul 2012 14:48:33 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:50241) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpORA-0003iI-KD; Thu, 12 Jul 2012 14:48:31 -0400 Received: by bkty7 with SMTP id y7so2089960bkt.3 for ; Thu, 12 Jul 2012 11:42:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type; bh=VsDFb974qUXxJqLPNcMK8frldQCrZyfHY2IBwWHNDgw=; b=LtG1RkIsiAFNfMuXV+gjOi054R93P9S/e0oSKyq8pxmGTBJf9dnRJK87YrgQbkalLb 5G1DSJsATBYWp8pkUYBIziLjnNOt+hSjZZePO91K2Rs3rkIdFp050r1bpAV6DCkyFwZ7 rv71ectm/IvUjFCcVfFDZWUofrl3B0a40U4kNzuGnRq7lFIEpmSEFj1l7aLX/JheB5O5 BAysHJ5ioL/zcz8/8SmWAAKccdqIsdxGLImRER9Gto0+RwJEnUVhue6aAZ0z9U4o1I6P HsVEaVs8gEnjjTSVulzdVKdcrRoorT9OeJXCFpfu5nXxgX4HGgUGoviPeVWn0suONbHU nxaA== Received: by 10.205.123.134 with SMTP id gk6mr12462218bkc.3.1342118574271; Thu, 12 Jul 2012 11:42:54 -0700 (PDT) Received: from [87.2.97.144] (host144-97-dynamic.2-87-r.retail.telecomitalia.it. [87.2.97.144]) by mx.google.com with ESMTPS id 25sm3596942bkx.9.2012.07.12.11.42.51 (version=SSLv3 cipher=OTHER); Thu, 12 Jul 2012 11:42:53 -0700 (PDT) Message-ID: <4FFF1AA3.3010902@gmail.com> Date: Thu, 12 Jul 2012 20:42:43 +0200 From: Stefano Lattarini MIME-Version: 1.0 To: Eric Blake Subject: Re: bug#10766: bug#11893: Regression in automake 1.12.1 on Mac OS X References: <7D311749-2399-48ED-A3D1-02E34BF936A6@quendi.de> <4FFD753D.7030108@gmail.com> <4FFDEE3E.1070302@lysator.liu.se> <4FFE9010.2000606@gmail.com> <4FFED86B.4040704@lysator.liu.se> <4FFEE139.9000702@gmail.com> <4FFEF1CF.1090205@redhat.com> <4FFEF9F9.9070004@gmail.com> <4FFF03FF.1010201@redhat.com> In-Reply-To: <4FFF03FF.1010201@redhat.com> Content-Type: multipart/mixed; boundary="------------070509030107010803060304" X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 10766 Cc: Peter Rosin , Max Horn , 11893@debbugs.gnu.org, "automake-patches@gnu.org" , 10766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) This is a multi-part message in MIME format. --------------070509030107010803060304 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 07/12/2012 07:06 PM, Eric Blake wrote: > On 07/12/2012 10:23 AM, Stefano Lattarini wrote: > >>> Other than that, the only supported method in existing POSIX for >>> checking for equal files is by parsing 'ls -i' output; but I don't know >>> if 'ls -i' is portable to ancient hosts. >>> >> I was fearing this would have got quickly complex and messy ... >> >> So I think I'll stick to my dumber and safer "test -f /bin/RMDIR" as a >> way to detect case-insensible filesystems. > > Assuming it was intentional, I like your re-wording of > "case-insensible", as an apt description of the pain case-insensitive > systems cause on portability :) > Sorry, no deliberate pun, just a lexical error. But I can keep it if you like it :-) > That said, /bin/RMDIR is probably not completely portable, but seems > like it would be reliable in practice. > That is my impression. And anyway, there aren't too many people running the Automake testsuite on Mac OS X or Cygwin, so if the patch manages to fix Peter's and Max's issue, it is good enough for me (at least until somebody else reports a similar issue). Finally, consider that the result of a botch-up of this new configure check would simple be one or two spurious testsuite failures -- so just a small annoyance, nothing to really worry about. > POSIX doesn't reqiure /bin/rmdir to > exist (about the only files that you can guarantee with POSIX are /tmp, > /dev/null, /dev/tty, and /dev/console). Since /dev/ generally doesn't > exist on mingw, that almost limits you to just testing if /tmp and /TMP > are the same directory to detect a case-insensitive system. But I don't > know of any systems that lack /bin/rmdir on a default installation, nor > do I suspect many users intentionally create /bin/RMDIR (or even better, > /bIn/rMdIr), > Good idea for an improved test; I've implemented it in my patch. > so using it as a hueristic seems okay for a first cut at > the problem at hand. Or, maybe you should just create a file in /tmp > under one spelling and check existence of the file by another spelling. > In the light of our discussion, attached is the patch I'd finally like to push. WDYT? Thanks, Stefano --------------070509030107010803060304 Content-Type: text/x-diff; name="0001-tests-don-t-use-C-instead-of-C-compiler-on-case-inse.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-tests-don-t-use-C-instead-of-C-compiler-on-case-inse.pa"; filename*1="tch" >From 1bc5acb2df2fdf297bc101f36589ab9f932647bf Mon Sep 17 00:00:00 2001 Message-Id: <1bc5acb2df2fdf297bc101f36589ab9f932647bf.1342118547.git.stefano.lattarini@gmail.com> From: Stefano Lattarini Date: Wed, 11 Jul 2012 14:36:13 +0200 Subject: [PATCH] tests: don't use C instead of C++ compiler on case-insensitive platforms This change fixes automake bug#11893 and bug#10766. On at least Cygwin and Mac OS X 10.7, the file system where the system compilers are located can be case-insensitive, so that looking for a program named 'CC' might actually find the C compiler in /usr/bin/cc. Now, the Automake configure script looks for a C++ compiler named 'CC' before looking for more obvious names like c++ or g++ (that is done to increase testsuite "coverage in the wild", e.g., preferring, on Solaris, the Sun Studio C++ compiler /usr/bin/CC over the GNU C++ compiler). Since the checks done in AC_PROG_CXX are apparently not strict enough to rule out C compilers like those from GCC or Clang (which are smart enough to recognize if a file has a C++ extension, passing it to the C++ front end) the testsuite might end up using a C compiler where a C++ one is expected, with some subtle bad consequences. * configure.ac: Don't look for a C++ compiler named 'CC' if the "top-level" file system(s) (where /bin and /usr/bin are) are detected to be case-insensitive. Reported-by: Peter Rosin Reported-by: Max Horn Helped-by: Eric Blake Signed-off-by: Stefano Lattarini --- configure.ac | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 49b008d..d49da6c 100644 --- a/configure.ac +++ b/configure.ac @@ -442,12 +442,23 @@ _AM_COMPILER_CAN_FAIL(dnl AS_IF([test x"$GCC" = x"yes"], [am_CC_is_GNU=yes], [am_CC_is_GNU=no]) +# On case-insensitive file systems (seen e.g. on Cygwin and Mac OS X) +# we must avoid looking for 'CC', because that would be the same as +# 'cc', and could cause $CXX to point to the C compiler, instead of +# to a C++ compiler as expected. See automake bugs #11893 and #10766. +if test -f /bIn/rMdIr || test -f /uSr/bIn/rMdIr; then + # Case-insensitive file system, don't look for CC. + am_CC= +else + am_CC=CC +fi + # The list of C++ compilers here has been copied, pasted and edited # from 'lib/autoconf/c.m4:AC_PROG_CXX' in the Autoconf distribution. # Keep it in sync, or better again, find out a way to avoid this code # duplication. _AM_COMPILER_CAN_FAIL([AC_PROG_CXX(dnl - [aCC CC FCC KCC RCC xlC_r xlC c++ cxx cc++ gpp g++])], + [aCC $am_CC FCC KCC RCC xlC_r xlC c++ cxx cc++ gpp g++])], [CXX=false; _AM_SKIP_COMP_TESTS([C++])]) AS_IF([test x"$GXX" = x"yes"], [am_CXX_is_GNU=yes], [am_CXX_is_GNU=no]) -- 1.7.9.5 --------------070509030107010803060304-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 12 14:52:38 2012 Received: (at 10766) by debbugs.gnu.org; 12 Jul 2012 18:52:39 +0000 Received: from localhost ([127.0.0.1]:36607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpOVC-0003oI-BK for submit@debbugs.gnu.org; Thu, 12 Jul 2012 14:52:38 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]:46685) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpOVA-0003o7-0d; Thu, 12 Jul 2012 14:52:37 -0400 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 35B4B4000A; Thu, 12 Jul 2012 20:47:02 +0200 (CEST) Received: from [192.168.0.64] (90-227-119-137-no95.business.telia.com [90.227.119.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id B67E040003; Thu, 12 Jul 2012 20:47:01 +0200 (CEST) Message-ID: <4FFF1BC8.60905@lysator.liu.se> Date: Thu, 12 Jul 2012 20:47:36 +0200 From: Peter Rosin User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Stefano Lattarini Subject: Re: bug#11893: Regression in automake 1.12.1 on Mac OS X References: <7D311749-2399-48ED-A3D1-02E34BF936A6@quendi.de> <4FFD753D.7030108@gmail.com> <4FFDEE3E.1070302@lysator.liu.se> <4FFE9010.2000606@gmail.com> <4FFED86B.4040704@lysator.liu.se> <4FFEE139.9000702@gmail.com> In-Reply-To: <4FFEE139.9000702@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10766 Cc: Max Horn , 11893@debbugs.gnu.org, "automake-patches@gnu.org" , 10766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 2012-07-12 16:37, Stefano Lattarini wrote: > On 07/12/2012 04:00 PM, Peter Rosin wrote: >> >> Stefano Lattarini wrote: >>> >>> Since that requirement is only needed for bootstrapping, I could send >>> you a (patched) tarball to test (so that you'll only require an >>> autoconf >= 2.62). Would that be more acceptable? >> >> Shoot! >> > Sent in private. >From a fairly recent Cygwin (this May perhaps?) ... PASS: t/silent-many-generic.sh ... PASS: t/suffix3.tap 1 - aclocal PASS: t/suffix3.tap 2 - automake PASS: t/suffix3.tap 3 - intermediate files not mentioned PASS: t/suffix3.tap 4 - final object file figured out PASS: t/suffix3.tap 5 - autoconf PASS: t/suffix3.tap 6 - configure PASS: t/suffix3.tap 7 - make all PASS: t/suffix3.tap 8 - make distcheck PASS: t/suffix3.tap 9 - make distdir PASS: t/suffix3.tap 10 - intermediate file not distributed ... ============================================================================ Testsuite summary for GNU Automake 1.12.2a ============================================================================ # TOTAL: 2906 # PASS: 2782 # SKIP: 83 # XFAIL: 41 # FAIL: 0 # XPASS: 0 # ERROR: 0 ============================================================================ Works, I'd say. Cheers, Peter From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 12 15:41:57 2012 Received: (at 10766) by debbugs.gnu.org; 12 Jul 2012 19:41:57 +0000 Received: from localhost ([127.0.0.1]:36671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpPGv-0004vE-CT for submit@debbugs.gnu.org; Thu, 12 Jul 2012 15:41:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12942) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpPGr-0004v0-MB; Thu, 12 Jul 2012 15:41:55 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6CJaJoq011029 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 Jul 2012 15:36:19 -0400 Received: from [10.3.113.27] (ovpn-113-27.phx2.redhat.com [10.3.113.27]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q6CJa8Zs020842; Thu, 12 Jul 2012 15:36:11 -0400 Message-ID: <4FFF2725.7010606@redhat.com> Date: Thu, 12 Jul 2012 13:36:05 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Stefano Lattarini Subject: Re: bug#10766: bug#11893: Regression in automake 1.12.1 on Mac OS X References: <7D311749-2399-48ED-A3D1-02E34BF936A6@quendi.de> <4FFD753D.7030108@gmail.com> <4FFDEE3E.1070302@lysator.liu.se> <4FFE9010.2000606@gmail.com> <4FFED86B.4040704@lysator.liu.se> <4FFEE139.9000702@gmail.com> <4FFEF1CF.1090205@redhat.com> <4FFEF9F9.9070004@gmail.com> <4FFF03FF.1010201@redhat.com> <4FFF1AA3.3010902@gmail.com> In-Reply-To: <4FFF1AA3.3010902@gmail.com> X-Enigmail-Version: 1.4.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigDE13B3F23E94930DBE17D9C1" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 10766 Cc: Peter Rosin , Max Horn , 11893@debbugs.gnu.org, "automake-patches@gnu.org" , 10766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDE13B3F23E94930DBE17D9C1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 07/12/2012 12:42 PM, Stefano Lattarini wrote: >=20 > In the light of our discussion, attached is the patch I'd finally like > to push. WDYT? Looks fine to me (although I have not actually tested it). --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enigDE13B3F23E94930DBE17D9C1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJP/yclAAoJEKeha0olJ0NqPTgH/iWK1DxiQOrTOinBTgcsfGkM MW3tTomZpkhYhi79GfOgDWyzO2ToLFWzOYwXqN8SSliN4ECKq4UpcZLhihKRPji7 Bupj0TpsnKlvxe2K3DXoWVsy+R4eiFrO3vUvAoF91LkTE8lywNaXR4vEL6aJESLo 4an3oD3cvcjD581uUKtj+n/S/N2Pc44YxAGOK62quvj8VAozmWc9MMKBnyewSK/q C/A4NdN+NAq9Dz17ZN+4KD9MeBLU4JjATVl/duiBWJm30gAKKbyVlUvlLt1Dm2Jl Nuu3aXpt9d9gXd4KFJYTMGryzgY22NJmNejb1/QZmR5P4svDkc3yypUAcE9uShA= =A6lm -----END PGP SIGNATURE----- --------------enigDE13B3F23E94930DBE17D9C1-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 13 08:55:01 2012 Received: (at 10766) by debbugs.gnu.org; 13 Jul 2012 12:55:01 +0000 Received: from localhost ([127.0.0.1]:38861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpfOe-0004vH-SG for submit@debbugs.gnu.org; Fri, 13 Jul 2012 08:55:01 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:50568) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpfOc-0004uX-6u; Fri, 13 Jul 2012 08:54:58 -0400 Received: by mail-bk0-f44.google.com with SMTP id y7so2569170bkt.3 for ; Fri, 13 Jul 2012 05:49:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=E/33POZfEXUsGu3cmJhVwXrCxiS7RrI5tyyx6gA1UEg=; b=MeoT+P1G1ZsrIqKUVK0ggoDRc4EUN9pVw9XbJzZWRIG5Js2aklkIBbmaOQBNj4+Zbr BNrOJw8V3Q6XvKv/n7l5L0j0uC+ZjKEJSAvU9/GWbTfRoiaen0noYCvbL7j4+4h2I1Br Ws3I90fkWOaJAThAYOl/xBu4+T5nJ5mXXOEAJl2g7r03mGE/GmusmmIDFPN1LvxyUW8H o7vg81xobjO4/B0q8ab4G9I1AEh0oDR8sHjIhPsQeEtnlNd/oJK0hnEz0JODwImMtBt5 +MtSK8pEq3fqfiky0OC+cnY4Ynpts7WF6m+FJPx0bAX10R0Xy4q9ClaefYUUjOxYpc6U qePA== Received: by 10.205.127.77 with SMTP id gz13mr826107bkc.17.1342183760281; Fri, 13 Jul 2012 05:49:20 -0700 (PDT) Received: from [82.58.50.14] (host14-50-dynamic.58-82-r.retail.telecomitalia.it. [82.58.50.14]) by mx.google.com with ESMTPS id hg13sm4704050bkc.7.2012.07.13.05.49.17 (version=SSLv3 cipher=OTHER); Fri, 13 Jul 2012 05:49:18 -0700 (PDT) Message-ID: <5000194B.6010008@gmail.com> Date: Fri, 13 Jul 2012 14:49:15 +0200 From: Stefano Lattarini MIME-Version: 1.0 To: Eric Blake Subject: Re: bug#10766: bug#11893: Regression in automake 1.12.1 on Mac OS X References: <7D311749-2399-48ED-A3D1-02E34BF936A6@quendi.de> <4FFD753D.7030108@gmail.com> <4FFDEE3E.1070302@lysator.liu.se> <4FFE9010.2000606@gmail.com> <4FFED86B.4040704@lysator.liu.se> <4FFEE139.9000702@gmail.com> <4FFEF1CF.1090205@redhat.com> <4FFEF9F9.9070004@gmail.com> <4FFF03FF.1010201@redhat.com> <4FFF1AA3.3010902@gmail.com> <4FFF2725.7010606@redhat.com> In-Reply-To: <4FFF2725.7010606@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 10766 Cc: Peter Rosin , Max Horn , 11893@debbugs.gnu.org, "automake-patches@gnu.org" , 10766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 07/12/2012 09:36 PM, Eric Blake wrote: > On 07/12/2012 12:42 PM, Stefano Lattarini wrote: > >> >> In the light of our discussion, attached is the patch I'd finally like >> to push. WDYT? > > Looks fine to me (although I have not actually tested it). > Pushed now. Thanks, Stefano From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 13 08:56:15 2012 Received: (at control) by debbugs.gnu.org; 13 Jul 2012 12:56:16 +0000 Received: from localhost ([127.0.0.1]:38870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpfPr-0004xa-Ea for submit@debbugs.gnu.org; Fri, 13 Jul 2012 08:56:15 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:46471) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpfPp-0004xS-8R for control@debbugs.gnu.org; Fri, 13 Jul 2012 08:56:13 -0400 Received: by bkty7 with SMTP id y7so2570212bkt.3 for ; Fri, 13 Jul 2012 05:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:subject:content-type :content-transfer-encoding; bh=KH6PyGZ6uGJic+NR98YrfMLlrwKEl6jKmudKr3uEZNw=; b=N9GlLYQuaxZp/TsTQMRwPYDfZ6mTfAxbMIbM/IogNbvAJcw5ErWDzavR40BxD51Yiy 8/933eoe/yBWJVcSTkxQqWhkB2ocqABhdkDx6IdI07WwlrCnnVHd60Oa6Apn6WqUep7O JHiHrmey1dlm4iJj534LHC/vRZufYnUH9oOdzJahQYd29lcbJNfNNr/rbwyQKZFR0VaL MqLNwEObiUzvZC/PnrjUN+3aC39BLP85IGxhY6K+F7gMenthuXJRhrY0EbVG6nhE0Hq7 kdVlrxgQ/nF+Sxr++CaTfNvlmwAW3mlJKNr4rsm1ZiyBYdS52ynS8CrjHz78fmmEjKK5 M09g== Received: by 10.204.132.80 with SMTP id a16mr827572bkt.82.1342183835021; Fri, 13 Jul 2012 05:50:35 -0700 (PDT) Received: from [82.58.50.14] (host14-50-dynamic.58-82-r.retail.telecomitalia.it. [82.58.50.14]) by mx.google.com with ESMTPS id n17sm4706660bks.6.2012.07.13.05.50.31 (version=SSLv3 cipher=OTHER); Fri, 13 Jul 2012 05:50:32 -0700 (PDT) Message-ID: <50001995.1090306@gmail.com> Date: Fri, 13 Jul 2012 14:50:29 +0200 From: Stefano Lattarini MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: x Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) tags 10766 + patch tags 11893 + patch severity 10766 minor severity 11893 minor close 11893 close 10766 thanks From unknown Wed Aug 20 06:04:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 11 Aug 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator