gnucash master: Multiple changes pushed

Sumit Bhardwaj bhardwajs at gmail.com
Sat Jul 5 17:34:15 EDT 2014


Sure, John. Here you go. Interestingly, I didn't find conftest.c in the
directory tree.

'tree | grep conftest.c' gave no output.

Thanks,
Sumit

configure:25408: checking whether C++ compiler accepts
-Wno-deprecated-register
configure:25427: g++ -c -g -O2 -std=gnu++11 -Werror
-Wno-deprecated-register  conftest.cpp >&5
configure:25427: $? = 0
configure:25435: result: yes
configure:25449: checking whether C compiler accepts
-Wno-non-literal-null-conversion
configure:25468: gcc -c -g -O2 -Werror -Wno-non-literal-null-conversion
conftest.c >&5
configure:25468: $? = 0
configure:25476: result: yes
configure:25484: checking what extra warning flags to pass to the C compiler
configure:25547: gcc -c  -Wall -Wunused -Wmissing-prototypes
-Wmissing-declarations  -Wno-non-literal-null-conversion -Wno-unused -g -O2
-Werror -D_FORTIFY_SOURCE=2  conftest.c >&5
configure:25547: $? = 0
configure:25560: result:  -Werror -Wdeclaration-after-statement
-Wno-pointer-sign -D_FORTIFY_SOURCE=2
configure:25697: checking that generated files are newer than configure
configure:25703: result: done
configure:25835: creating ./config.status

On Sat, Jul 5, 2014 at 12:17 PM, jralls at ceridwen.us <jralls at ceridwen.us>
wrote:

>
>
> On July 5, 2014 at 11:35 AM Sumit Bhardwaj <bhardwajs at gmail.com> wrote:
>
>   Hi John,
>
>  It fails in first C compilation. I do have to do a "make disclean" to get
> the error. Rebuilding with just uncommenting in configure doesn't throw
> error which is why I didn't see it earlier. I have pasted the error stack
> below.
>
> Do let me know if you want me to do any more experiments. For now, I will
> comment that line in configure.ac and rebuild the master.
>
>  Thanks,
> Sumit
>
> /bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I../..  -Wno-error=deprecated-declarations -I../../lib/libc -I../../src
> -I../../src -I../../src/gnc-module -I../../src/app-utils/calculation
> -I../../src/core-utils -I../../src/engine -I../../src/libqof/qof
> -I../../src/backend/xml -pthread -I/usr/include/guile/2.0   -pthread
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -pthread
> -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
> -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo
> -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng16
> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16
> -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/libxml2
> -DG_LOG_DOMAIN=\"gnc.app-utils\"  -Werror -Wdeclaration-after-statement
> -Wno-pointer-sign -D_FORTIFY_SOURCE=2  -Wall -Wunused -Wmissing-prototypes
> -Wmissing-declarations  -Wno-non-literal-null-conversion -Wno-unused -g -O2
> -MT gfec.lo -MD -MP -MF .deps/gfec.Tpo -c -o gfec.lo gfec.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../..
> -Wno-error=deprecated-declarations -I../../lib/libc -I../../src -I../../src
> -I../../src/gnc-module -I../../src/app-utils/calculation
> -I../../src/core-utils -I../../src/engine -I../../src/libqof/qof
> -I../../src/backend/xml -pthread -I/usr/include/guile/2.0 -pthread
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread
> -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
> -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo
> -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng16
> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16
> -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/libxml2
> -DG_LOG_DOMAIN=\"gnc.app-utils\" -Werror -Wdeclaration-after-statement
> -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -Wall -Wunused -Wmissing-prototypes
> -Wmissing-declarations -Wno-non-literal-null-conversion -Wno-unused -g -O2
> -MT gfec.lo -MD -MP -MF .deps/gfec.Tpo -c gfec.c  -fPIC -DPIC -o
> .libs/gfec.o
> gfec.c: In function 'gfec_catcher':
> gfec.c:79:13: warning: 'scm_internal_stack_catch' is deprecated (declared
> at /usr/include/guile/2.0/libguile/deprecated.h:648)
> [-Wdeprecated-declarations]
>              scm_internal_stack_catch(SCM_BOOL_T,
>              ^
> gfec.c: In function 'gfec_eval_file':
> gfec.c:135:5: warning: 'scm_internal_stack_catch' is deprecated (declared
> at /usr/include/guile/2.0/libguile/deprecated.h:648)
> [-Wdeprecated-declarations]
>      result = scm_internal_stack_catch(SCM_BOOL_T,
>      ^
> gfec.c: In function 'gfec_eval_string':
> gfec.c:173:5: warning: 'scm_internal_stack_catch' is deprecated (declared
> at /usr/include/guile/2.0/libguile/deprecated.h:648)
> [-Wdeprecated-declarations]
>      result = scm_internal_stack_catch(SCM_BOOL_T,
>      ^
> gfec.c: In function 'gfec_apply':
> gfec.c:216:5: warning: 'scm_internal_stack_catch' is deprecated (declared
> at /usr/include/guile/2.0/libguile/deprecated.h:648)
> [-Wdeprecated-declarations]
>      result = scm_internal_stack_catch(SCM_BOOL_T,
>      ^
> gfec.c: At top level:
> cc1: error: unrecognized command line option
> "-Wno-non-literal-null-conversion" [-Werror]
> cc1: all warnings being treated as errors
> make[4]: *** [gfec.lo] Error 1
> make[4]: Leaving directory
> `/home/bhardwajs/ac/devel/gnucash/src/app-utils'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/home/bhardwajs/ac/devel/gnucash/src/app-utils'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/bhardwajs/ac/devel/gnucash/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/bhardwajs/ac/devel/gnucash'
> make: *** [all] Error 2
>
>
>  Sumit,
>
>  That's kind of interesting. It should error out on the deprecated
> declarations, since -Werror is in the options. That aside, the fact that
> it's getting past the check for -Wno-non-literal-null-conversion in
> configure and then barfing during build is what we're really interested in.
>
>  Can you find the part of config.log with the
> -Wno-non-literal-null-conversion check and post it here?
>
>  Regards,
>  John Ralls
>
>


More information about the gnucash-devel mailing list