--debug-configure doesn't quite work

David Holmes david.holmes at oracle.com
Thu Nov 22 20:47:14 PST 2012


Okay some weird happened with piping the output into tee. But I got past 
that and then hit this :)

++ files_present='confdefs.h
config.log
debug-configure.log'
+++ /bin/echo 'confdefs.h
config.log
debug-configure.log'
+++ /bin/sed -e s/config.log//g -e s/confdefs.h//g -e 's/ //g'
+++ /usr/bin/tr -d '\n'
++ filtered_files=debug-configure.log
++ test xdebug-configure.log '!=' x
++ printf '%s\n' 'configure:7991: Current directory is 
/java/embedded/users/dh198349/build-infra/builds/b00/se-linux
t-ea.'
++ printf '%s\n' 'configure: Current directory is 
/java/embedded/users/dh198349/build-infra/builds/b00/se-linux.
'
configure: Current directory is 
/java/embedded/users/dh198349/build-infra/builds/b00/se-linux.
configure: Since this is not the source root, configure will output the 
configuration here
configure: (as opposed to creating a configuration in 
<src_root>/build/<conf-name>).
configure: However, this directory is not empty. This is not allowed, 
since it could
configure: seriously mess up just about everything.
configure: Try 'cd /java/embedded/users/dh198349/build-infra' and 
restart configure
configure: (or create a new empty directory and cd to it).

----

Oops! The debug log causes configure to stop configuring. Simple patch 
below:

David
-----


diff -r 811b3b283175 common/autoconf/basics.m4
--- a/common/autoconf/basics.m4
+++ b/common/autoconf/basics.m4
@@ -385,7 +385,7 @@
        files_present=`$LS $OUTPUT_ROOT`
        # Configure has already touched config.log and confdefs.h in the 
current dir when this check
        # is performed.
-      filtered_files=`$ECHO "$files_present" | $SED -e 
's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
+      filtered_files=`$ECHO "$files_present" | $SED -e 
's/config.log//g' -e 's/confdefs.h//g' -e 's/debug-configure.log//g' -e 
's/ //g' \
                                               | $TR -d '\n'`
        if test "x$filtered_files" != x; then
          AC_MSG_NOTICE([Current directory is $CURDIR.])



On 23/11/2012 2:23 PM, David Holmes wrote:
> I used --debug-configure to try and debug configure but the resulting
> debug log just stops abruptly:
>
> ++ WC=/usr/bin/wc
> ++ test -n /usr/bin/wc
> ++ printf '%s\n' 'configure:5726: result: /usr/bin/wc'
> ++ printf '%s\n' /usr/bin/wc
> ++ test -n /usr/bin/wc
> ++ break
> ++ test x/usr/bin/wc = x
> ++ for ac_prog in which
> ++ set dummy which
> ++ ac_word=which
> ++ printf '%s\n' 'configure:5755: checking for which'
> ++ printf %s 'checking for which... '
> ++ false
> ++ case $WHICH in
> ++ as_save_IFS='
> '
> ++ IFS=
>
> ???
>
> David



More information about the build-infra-dev mailing list