gnucash master: Multiple changes pushed

Sumit Bhardwaj bhardwajs at gmail.com
Sat Jul 5 11:35:52 EDT 2014


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


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

>
>
> On July 5, 2014 at 2:43 AM Sumit Bhardwaj <bhardwajs at gmail.com> wrote:
>
>   Just a quick note on my problems with compiling master today with
> Wno-non-literal-null-conversion.
>
>  Compile kept on failing with the error message "gcc error: unrecognized
> command line option" referring to the Wno-non-literal-null-conversion flag.
> My gcc version is 4.8.3 20140624 (Red Hat 4.8.3-1) (GCC)
>  Commenting out this warning gave me a clean build. For now, I have
> commented this in my local gnucash and in the local github directory.
>    #AX_CHECK_COMPILE_FLAG([-Wno-non-literal-null-conversion],
> #    [AM_CFLAGS="${AM_CFLAGS} -Wno-non-literal-null-conversion"],
> #    [], [-Werror])
>
>  gcc man page doesn't list this warning as an option either. Not sure
> what's going on. Will try to look tomorrow.
>
> Thanks,
> Sumit
>
>  P.S. - maint had same problem.
>
> Sumit,
>
> Did it fail in configure or at the first C compilation? If the latter,
> please find the section in config.log that shows the compile-flag test and
> post it here.
>
> Regards,
>
> John Ralls
>
>


More information about the gnucash-devel mailing list