# -*- compilation -*- 62. help.at:97: testing debug tracing ... ++ cat ++ cat ++ cat +++ pwd ++ inst=/home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst ++ libdir=/home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib ++ bindir=/home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/bin ++ mkdir /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/bin ++ set +x ../../libtool-msvc/tests/help.at:120: case "$LIBTOOL $CC $CPPFLAGS $CFLAGS $LDFLAGS " in *\ --debug\ *) exit 77;; *) :;; esac ++ case "$LIBTOOL $CC $CPPFLAGS $CFLAGS $LDFLAGS " in ++ : ++ orig_LIBTOOL=/home/peda/libtool/git/cygwin/libtool ++ for trace in ''\'''\''' --debug ++ LIBTOOL='/home/peda/libtool/git/cygwin/libtool ' ++ set +x ../../libtool-msvc/tests/help.at:140: $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c ++ /home/peda/libtool/git/cygwin/libtool --mode=compile gcc -g -O2 -c a.c stderr: stdout: libtool: compile: gcc -g -O2 -c a.c -DDLL_EXPORT -DPIC -o .libs/a.o libtool: compile: gcc -g -O2 -c a.c -o a.o >/dev/null 2>&1 ++ check_trace ++ test X--debug = X ++ set +x ../../libtool-msvc/tests/help.at:129: grep 'enabling shell trace mode' stdout stderr ++ grep 'enabling shell trace mode' stdout stderr ++ set +x ../../libtool-msvc/tests/help.at:130: grep ' --mode' stderr ++ grep ' --mode' stderr ++ set +x ../../libtool-msvc/tests/help.at:143: $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c b.c ++ /home/peda/libtool/git/cygwin/libtool --mode=compile gcc -g -O2 -c b.c stderr: stdout: libtool: compile: gcc -g -O2 -c b.c -DDLL_EXPORT -DPIC -o .libs/b.o libtool: compile: gcc -g -O2 -c b.c -o b.o >/dev/null 2>&1 ++ check_trace ++ test X--debug = X ++ set +x ../../libtool-msvc/tests/help.at:129: grep 'enabling shell trace mode' stdout stderr ++ grep 'enabling shell trace mode' stdout stderr ++ set +x ../../libtool-msvc/tests/help.at:130: grep ' --mode' stderr ++ grep ' --mode' stderr ++ set +x ../../libtool-msvc/tests/help.at:146: $CC $CPPFLAGS $CFLAGS -c main.c ++ gcc -g -O2 -c main.c stderr: stdout: ++ set +x ../../libtool-msvc/tests/help.at:147: $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -no-undefined -rpath $libdir ++ /home/peda/libtool/git/cygwin/libtool --mode=link gcc -g -O2 -o liba.la a.lo -no-undefined -rpath /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib stderr: stdout: libtool: link: gcc -shared .libs/a.o -g -O2 -o .libs/cyga-0.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/liba.dll.a Creating library file: .libs/liba.dll.a libtool: link: ar cru .libs/liba.a a.o libtool: link: ranlib .libs/liba.a libtool: link: ( cd ".libs" && rm -f "liba.la" && ln -s "../liba.la" "liba.la" ) ++ check_trace ++ test X--debug = X ++ set +x ../../libtool-msvc/tests/help.at:129: grep 'enabling shell trace mode' stdout stderr ++ grep 'enabling shell trace mode' stdout stderr ++ set +x ../../libtool-msvc/tests/help.at:130: grep ' --mode' stderr ++ grep ' --mode' stderr ++ set +x ../../libtool-msvc/tests/help.at:150: $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libb.la b.lo -no-undefined -rpath $libdir liba.la ++ /home/peda/libtool/git/cygwin/libtool --mode=link gcc -g -O2 -o libb.la b.lo -no-undefined -rpath /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib liba.la stderr: stdout: libtool: link: gcc -shared .libs/b.o ./.libs/liba.dll.a -g -O2 -o .libs/cygb-0.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libb.dll.a Creating library file: .libs/libb.dll.a libtool: link: ar cru .libs/libb.a b.o libtool: link: ranlib .libs/libb.a libtool: link: ( cd ".libs" && rm -f "libb.la" && ln -s "../libb.la" "libb.la" ) ++ check_trace ++ test X--debug = X ++ set +x ../../libtool-msvc/tests/help.at:129: grep 'enabling shell trace mode' stdout stderr ++ grep 'enabling shell trace mode' stdout stderr ++ set +x ../../libtool-msvc/tests/help.at:130: grep ' --mode' stderr ++ grep ' --mode' stderr ++ set +x ../../libtool-msvc/tests/help.at:153: $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT libb.la ++ /home/peda/libtool/git/cygwin/libtool --mode=link gcc -g -O2 -o main.exe main.o libb.la stderr: stdout: libtool: link: gcc -g -O2 -o .libs/main.exe main.o ./.libs/libb.dll.a /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/.libs/liba.dll.a -L/home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib ++ check_trace ++ test X--debug = X ++ set +x ../../libtool-msvc/tests/help.at:129: grep 'enabling shell trace mode' stdout stderr ++ grep 'enabling shell trace mode' stdout stderr ++ set +x ../../libtool-msvc/tests/help.at:130: grep ' --mode' stderr ++ grep ' --mode' stderr ++ lt_exe=./main ++ test -f ./main.exe ++ lt_exe=./main.exe ++ set +x ../../libtool-msvc/tests/help.at:156: if $LIBTOOL --mode=execute "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi ++ /home/peda/libtool/git/cygwin/libtool --mode=execute ./main.exe ++ : stderr: stdout: ++ check_trace ++ test X--debug = X ++ set +x ../../libtool-msvc/tests/help.at:129: grep 'enabling shell trace mode' stdout stderr ++ grep 'enabling shell trace mode' stdout stderr ++ set +x ../../libtool-msvc/tests/help.at:130: grep ' --mode' stderr ++ grep ' --mode' stderr ++ set +x ../../libtool-msvc/tests/help.at:159: $LIBTOOL --mode=install cp liba.la libb.la $libdir ++ /home/peda/libtool/git/cygwin/libtool --mode=install cp liba.la libb.la /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib stderr: stdout: libtool: install: cp .libs/liba.dll.a /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/liba.dll.a libtool: install: base_file=`basename liba.la` libtool: install: dlpath=`/bin/sh 2>&1 -c '. .libs/'liba.la'i; echo cyga-0.dll'` libtool: install: dldir=/home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/`dirname ../bin/cyga-0.dll` libtool: install: test -d /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin || mkdir -p /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin libtool: install: cp .libs/cyga-0.dll /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin/cyga-0.dll libtool: install: chmod a+x /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin/cyga-0.dll libtool: install: if test -n '' && test -n 'strip --strip-unneeded'; then eval 'strip --strip-unneeded /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin/cyga-0.dll' || exit 0; fi libtool: install: cp .libs/liba.lai /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/liba.la libtool: install: cp .libs/libb.dll.a /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/libb.dll.a libtool: install: base_file=`basename libb.la` libtool: install: dlpath=`/bin/sh 2>&1 -c '. .libs/'libb.la'i; echo cygb-0.dll'` libtool: install: dldir=/home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/`dirname ../bin/cygb-0.dll` libtool: install: test -d /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin || mkdir -p /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin libtool: install: cp .libs/cygb-0.dll /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin/cygb-0.dll libtool: install: chmod a+x /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin/cygb-0.dll libtool: install: if test -n '' && test -n 'strip --strip-unneeded'; then eval 'strip --strip-unneeded /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin/cygb-0.dll' || exit 0; fi libtool: install: cp .libs/libb.lai /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/libb.la libtool: install: cp .libs/liba.a /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/liba.a libtool: install: chmod 644 /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/liba.a libtool: install: ranlib /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/liba.a libtool: install: cp .libs/libb.a /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/libb.a libtool: install: chmod 644 /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/libb.a libtool: install: ranlib /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/libb.a ++ check_trace ++ test X--debug = X ++ set +x ../../libtool-msvc/tests/help.at:129: grep 'enabling shell trace mode' stdout stderr ++ grep 'enabling shell trace mode' stdout stderr ++ set +x ../../libtool-msvc/tests/help.at:130: grep ' --mode' stderr ++ grep ' --mode' stderr ++ set +x ../../libtool-msvc/tests/help.at:165: $orig_LIBTOOL --mode=install $lt_INSTALL liba.la libb.la $libdir ++ /home/peda/libtool/git/cygwin/libtool --mode=install /usr/bin/install -c liba.la libb.la /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib stderr: stdout: libtool: install: /usr/bin/install -c .libs/liba.dll.a /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/liba.dll.a libtool: install: base_file=`basename liba.la` libtool: install: dlpath=`/bin/sh 2>&1 -c '. .libs/'liba.la'i; echo cyga-0.dll'` libtool: install: dldir=/home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/`dirname ../bin/cyga-0.dll` libtool: install: test -d /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin || mkdir -p /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin libtool: install: /usr/bin/install -c .libs/cyga-0.dll /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin/cyga-0.dll libtool: install: chmod a+x /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin/cyga-0.dll libtool: install: if test -n '' && test -n 'strip --strip-unneeded'; then eval 'strip --strip-unneeded /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin/cyga-0.dll' || exit 0; fi libtool: install: /usr/bin/install -c .libs/liba.lai /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/liba.la libtool: install: /usr/bin/install -c .libs/libb.dll.a /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/libb.dll.a libtool: install: base_file=`basename libb.la` libtool: install: dlpath=`/bin/sh 2>&1 -c '. .libs/'libb.la'i; echo cygb-0.dll'` libtool: install: dldir=/home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/`dirname ../bin/cygb-0.dll` libtool: install: test -d /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin || mkdir -p /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin libtool: install: /usr/bin/install -c .libs/cygb-0.dll /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin/cygb-0.dll libtool: install: chmod a+x /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin/cygb-0.dll libtool: install: if test -n '' && test -n 'strip --strip-unneeded'; then eval 'strip --strip-unneeded /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin/cygb-0.dll' || exit 0; fi libtool: install: /usr/bin/install -c .libs/libb.lai /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/libb.la libtool: install: /usr/bin/install -c .libs/liba.a /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/liba.a libtool: install: chmod 644 /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/liba.a libtool: install: ranlib /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/liba.a libtool: install: /usr/bin/install -c .libs/libb.a /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/libb.a libtool: install: chmod 644 /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/libb.a libtool: install: ranlib /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/libb.a ++ grep ': relinking ' stdout stderr ++ set +x ../../libtool-msvc/tests/help.at:177: $LIBTOOL --mode=install cp main$EXEEXT $bindir ++ /home/peda/libtool/git/cygwin/libtool --mode=install cp main.exe /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/bin stderr: stdout: libtool: install: cp .libs/main.exe /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/bin/main.exe ++ check_trace ++ test X--debug = X ++ set +x ../../libtool-msvc/tests/help.at:129: grep 'enabling shell trace mode' stdout stderr ++ grep 'enabling shell trace mode' stdout stderr ++ set +x ../../libtool-msvc/tests/help.at:130: grep ' --mode' stderr ++ grep ' --mode' stderr ++ set +x ../../libtool-msvc/tests/help.at:180: $LIBTOOL --mode=finish $bindir ++ /home/peda/libtool/git/cygwin/libtool --mode=finish /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/bin stderr: stdout: ++ check_trace ++ test X--debug = X ++ set +x ../../libtool-msvc/tests/help.at:129: grep 'enabling shell trace mode' stdout stderr ++ grep 'enabling shell trace mode' stdout stderr ++ set +x ../../libtool-msvc/tests/help.at:130: grep ' --mode' stderr ++ grep ' --mode' stderr ++ set +x ../../libtool-msvc/tests/help.at:183: $LIBTOOL --mode=uninstall rm -f $bindir/main$EXEEXT $libdir/libb.la $libdir/liba.la ++ /home/peda/libtool/git/cygwin/libtool --mode=uninstall rm -f /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/bin/main.exe /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/libb.la /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/liba.la stderr: stdout: libtool: uninstall: rm -f /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/bin/main.exe libtool: uninstall: dldll=`/bin/sh 2>&1 -c '. /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/libb.la; echo ../bin/cygb-0.dll'` libtool: uninstall: dlpath=/home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin/cygb-0.dll libtool: uninstall: rm -f /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin/cygb-0.dll libtool: uninstall: rm -f /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/libb.la /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/libb.dll.a /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/libb.a libtool: uninstall: dldll=`/bin/sh 2>&1 -c '. /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/liba.la; echo ../bin/cyga-0.dll'` libtool: uninstall: dlpath=/home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin/cyga-0.dll libtool: uninstall: rm -f /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/../bin/cyga-0.dll libtool: uninstall: rm -f /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/liba.la /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/liba.dll.a /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/liba.a ++ check_trace ++ test X--debug = X ++ set +x ../../libtool-msvc/tests/help.at:129: grep 'enabling shell trace mode' stdout stderr ++ grep 'enabling shell trace mode' stdout stderr ++ set +x ../../libtool-msvc/tests/help.at:130: grep ' --mode' stderr ++ grep ' --mode' stderr ++ set +x ../../libtool-msvc/tests/help.at:186: $LIBTOOL --mode=clean rm -f $bindir/main$EXEEXT $libdir/libb.la $libdir/liba.la ++ /home/peda/libtool/git/cygwin/libtool --mode=clean rm -f /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/bin/main.exe /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/libb.la /home/peda/libtool/git/cygwin/tests/testsuite.dir/062/inst/lib/liba.la stderr: stdout: ++ check_trace ++ test X--debug = X ++ set +x ../../libtool-msvc/tests/help.at:129: grep 'enabling shell trace mode' stdout stderr ++ grep 'enabling shell trace mode' stdout stderr ++ set +x ../../libtool-msvc/tests/help.at:130: grep ' --mode' stderr ++ grep ' --mode' stderr ++ for trace in ''\'''\''' --debug ++ LIBTOOL='/home/peda/libtool/git/cygwin/libtool --debug' ++ set +x ../../libtool-msvc/tests/help.at:140: $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c ++ /home/peda/libtool/git/cygwin/libtool --debug --mode=compile gcc -g -O2 -c a.c + test 6 -gt 0 + opt=--mode=compile + shift + case $opt in + func_split_long_opt --mode=compile + func_split_long_opt_name=--mode + func_split_long_opt_arg=compile + set dummy --mode compile gcc -g -O2 -c a.c + shift + test 7 -gt 0 + opt=--mode + shift + case $opt in + test 6 = 0 + optarg=compile + opt_mode=compile + case $optarg in + shift + test 5 -gt 0 + opt=gcc + shift + case $opt in + set dummy gcc -g -O2 -c a.c + shift + break + test 5 -gt 0 + nonopt=gcc + shift + test : = 'set -x' + func_append preserve_args ' --debug' + eval 'preserve_args+=$2' ++ preserve_args+=' --debug' + case $host in + opt_duplicate_compiler_generated_deps=: + false + func_check_version_match + test 2.4.2.282 '!=' 2.4.2.282 + test yes '!=' yes + eval 'std_shrext=".dll"' ++ std_shrext=.dll + test -n '' + generic_help='Try `libtool --help'\'' for more information.' + help='Try `libtool --help --mode=compile'\'' for more information.' + : 1 + to_host_path_cmd= + false + test compile = compile + func_mode_compile -g -O2 -c a.c + set -x + base_compile= + srcfile=gcc + suppress_opt=yes + suppress_output= + arg_mode=normal + libobj= + later= + pie_flag= + for arg in '"$@"' + case $arg_mode in + case $arg in + lastarg=gcc + srcfile=-g + func_append_quoted base_compile gcc + func_quote_for_eval gcc + case $1 in + func_quote_for_eval_unquoted_result=gcc + case $func_quote_for_eval_unquoted_result in + func_quote_for_eval_result=gcc + eval 'base_compile+=\ $func_quote_for_eval_result' ++ base_compile+=' gcc' + for arg in '"$@"' + case $arg_mode in + case $arg in + lastarg=-g + srcfile=-O2 + func_append_quoted base_compile -g + func_quote_for_eval -g + case $1 in + func_quote_for_eval_unquoted_result=-g + case $func_quote_for_eval_unquoted_result in + func_quote_for_eval_result=-g + eval 'base_compile+=\ $func_quote_for_eval_result' ++ base_compile+=' -g' + for arg in '"$@"' + case $arg_mode in + case $arg in + lastarg=-O2 + srcfile=-c + func_append_quoted base_compile -O2 + func_quote_for_eval -O2 + case $1 in + func_quote_for_eval_unquoted_result=-O2 + case $func_quote_for_eval_unquoted_result in + func_quote_for_eval_result=-O2 + eval 'base_compile+=\ $func_quote_for_eval_result' ++ base_compile+=' -O2' + for arg in '"$@"' + case $arg_mode in + case $arg in + lastarg=-c + srcfile=a.c + func_append_quoted base_compile -c + func_quote_for_eval -c + case $1 in + func_quote_for_eval_unquoted_result=-c + case $func_quote_for_eval_unquoted_result in + func_quote_for_eval_result=-c + eval 'base_compile+=\ $func_quote_for_eval_result' ++ base_compile+=' -c' + case $arg_mode in + test -z '' + func_basename a.c + set -x + func_basename_result=a.c + libobj=a.c + case $libobj in + func_xform a.c + func_xform_result=a.lo + libobj=a.lo + case $libobj in + func_lo2o a.lo + case $1 in + func_lo2o_result=a.o + obj=a.o + func_infer_tag gcc -g -O2 -c + set -x + test -n 'CXX F77 FC GO GCJ RC ' + test -z '' + CC_quoted= + for arg in '$CC' + func_append_quoted CC_quoted gcc + func_quote_for_eval gcc + case $1 in + func_quote_for_eval_unquoted_result=gcc + case $func_quote_for_eval_unquoted_result in + func_quote_for_eval_result=gcc + eval 'CC_quoted+=\ $func_quote_for_eval_result' ++ CC_quoted+=' gcc' ++ func_echo_all gcc ++ printf '%s\n' gcc + CC_expanded=gcc ++ func_echo_all gcc ++ printf '%s\n' gcc + CC_quoted_expanded=gcc + case $@ in + func_quote_for_eval a.lo + case $1 in + func_quote_for_eval_unquoted_result=a.lo + case $func_quote_for_eval_unquoted_result in + func_quote_for_eval_result=a.lo + test Xa.lo '!=' Xa.lo + func_dirname_and_basename a.o / '' + set -x + func_basename_result=a.o + case $1 in + func_dirname_result= + objname=a.o + xdir= + lobj=.libs/a.o + test -z ' gcc -g -O2 -c' + test yes = yes + removelist='a.o .libs/a.o a.lo a.loT' + case $host_os in + pic_mode=default + test no = default + test no = yes + output_obj= + need_locks=no + lockfile= + test yes = no + test warn = no + false + rm -f a.o .libs/a.o a.lo a.loT + func_append removelist ' ' + eval 'removelist+=$2' ++ removelist+=' ' + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 + func_to_tool_file a.c func_convert_file_msys_to_w32 + set -x + case ,$2, in + func_convert_file_noop a.c + func_to_host_file_result=a.c + func_to_tool_file_result=a.c + srcfile=a.c + func_quote_for_eval a.c + case $1 in + func_quote_for_eval_unquoted_result=a.c + case $func_quote_for_eval_unquoted_result in + func_quote_for_eval_result=a.c + qsrcfile=a.c + test yes = yes + fbsd_hideous_sh_bug=' gcc -g -O2 -c' + test no '!=' default + command=' gcc -g -O2 -c a.c -DDLL_EXPORT -DPIC' + func_mkdir_p .libs + my_directory_path=.libs + my_dir_list= + test -n .libs + test : '!=' false + case $my_directory_path in + test '!' -d .libs ++ printf '%s\n' '' ++ /usr/bin/sed 's|:*$||' + my_dir_list= + save_mkdir_p_IFS=' + IFS=: + IFS=' + test -d .libs + test -z '' + func_append command ' -o .libs/a.o' + eval 'command+=$2' ++ command+=' -o .libs/a.o' + func_show_eval_locale ' gcc -g -O2 -c a.c -DDLL_EXPORT -DPIC -o .libs/a.o' 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' + my_cmd=' gcc -g -O2 -c a.c -DDLL_EXPORT -DPIC -o .libs/a.o' + my_fail_exp='test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' + false + func_quote_for_expand ' gcc -g -O2 -c a.c -DDLL_EXPORT -DPIC -o .libs/a.o' + case $1 in + my_arg=' gcc -g -O2 -c a.c -DDLL_EXPORT -DPIC -o .libs/a.o' + case $my_arg in + my_arg='" gcc -g -O2 -c a.c -DDLL_EXPORT -DPIC -o .libs/a.o"' + func_quote_for_expand_result='" gcc -g -O2 -c a.c -DDLL_EXPORT -DPIC -o .libs/a.o"' + eval 'func_echo " gcc -g -O2 -c a.c -DDLL_EXPORT -DPIC -o .libs/a.o"' ++ func_echo ' gcc -g -O2 -c a.c -DDLL_EXPORT -DPIC -o .libs/a.o' ++ printf '%s\n' 'libtool: compile: gcc -g -O2 -c a.c -DDLL_EXPORT -DPIC -o .libs/a.o' + false + eval 'LC_ALL=$save_LC_ALL; LANGUAGE=$save_LANGUAGE; LANG=$save_LANG; ++ LC_ALL=C ++ LANGUAGE=C ++ LANG=en_US.UTF-8 ++ gcc -g -O2 -c a.c -DDLL_EXPORT -DPIC -o .libs/a.o + my_status=0 + eval 'LC_ALL=C; LANGUAGE=C; LANG=C; ' ++ LC_ALL=C ++ LANGUAGE=C ++ LANG=C + test 0 -eq 0 + : + test warn = no + test -n '' + test yes = yes + suppress_output=' >/dev/null 2>&1' + test yes = yes + test yes '!=' default + command=' gcc -g -O2 -c a.c' + test yes = yes + func_append command ' -o a.o' + eval 'command+=$2' ++ command+=' -o a.o' + func_append command ' >/dev/null 2>&1' + eval 'command+=$2' ++ command+=' >/dev/null 2>&1' + func_show_eval_locale ' gcc -g -O2 -c a.c -o a.o >/dev/null 2>&1' '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' + my_cmd=' gcc -g -O2 -c a.c -o a.o >/dev/null 2>&1' + my_fail_exp='$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' + false + func_quote_for_expand ' gcc -g -O2 -c a.c -o a.o >/dev/null 2>&1' + case $1 in + my_arg=' gcc -g -O2 -c a.c -o a.o >/dev/null 2>&1' + case $my_arg in + my_arg='" gcc -g -O2 -c a.c -o a.o >/dev/null 2>&1"' + func_quote_for_expand_result='" gcc -g -O2 -c a.c -o a.o >/dev/null 2>&1"' + eval 'func_echo " gcc -g -O2 -c a.c -o a.o >/dev/null 2>&1"' ++ func_echo ' gcc -g -O2 -c a.c -o a.o >/dev/null 2>&1' ++ printf '%s\n' 'libtool: compile: gcc -g -O2 -c a.c -o a.o >/dev/null 2>&1' + false + eval 'LC_ALL=$save_LC_ALL; LANGUAGE=$save_LANGUAGE; LANG=$save_LANG; ++ LC_ALL=C ++ LANGUAGE=C ++ LANG=en_US.UTF-8 ++ gcc -g -O2 -c a.c -o a.o + my_status=0 + eval 'LC_ALL=C; LANGUAGE=C; LANG=C; ' ++ LC_ALL=C ++ LANGUAGE=C ++ LANG=C + test 0 -eq 0 + : + test warn = no + test -n '' + false + func_write_libtool_object a.lo .libs/a.o a.o + write_libobj=a.lo + test yes = yes + write_lobj=''\''.libs/a.o'\''' + test yes = yes + write_oldobj=''\''a.o'\''' + false + cat + mv -f a.loT a.lo + test no '!=' no + exit 0 stderr: ' ' gcc -g -O2 -c a.c -DDLL_EXPORT -DPIC -o .libs/a.o' gcc -g -O2 -c a.c -o a.o >/dev/null 2>&1' stdout: libtool: enabling shell trace mode libtool: compile: gcc -g -O2 -c a.c -DDLL_EXPORT -DPIC -o .libs/a.o libtool: compile: gcc -g -O2 -c a.c -o a.o >/dev/null 2>&1 ++ check_trace ++ test X--debug = X--debug ++ set +x ../../libtool-msvc/tests/help.at:126: grep 'enabling shell trace mode' stdout stderr ++ grep 'enabling shell trace mode' stdout stderr stdout: stdout:libtool: enabling shell trace mode ++ set +x ../../libtool-msvc/tests/help.at:127: grep ' --mode' stderr ++ grep ' --mode' stderr stdout: ../../libtool-msvc/tests/help.at:127: exit code was 1, expected 0 62. help.at:97: 62. debug tracing (help.at:97): FAILED (help.at:127)