./install.sh error
John Ralls
jralls at ceridwen.us
Tue Jan 10 10:33:44 EST 2017
> On Jan 10, 2017, at 6:35 AM, Stephen Brown <StephenBrown165 at outlook.com> wrote:
>
> Hi All,
> In a msys shell I get the following
> ---------------------------------------------------------------------------------------------
> In file included from c:/gcdev/gnucash.git/src/libqof/qof/gnc-timezone.cpp:36:0:
> c:/gcdev/gnucash.git/src/libqof/qof/gnc-timezone.cpp: In function 'TZ_Ptr zone_from_regtzi(const RegTZI&, time_zone_names)':
> c:/gcdev/gnucash.git/src/libqof/qof/qoflog.h:247:51: error: format '%d' expects argument of type 'int', but argument 5 has type 'LONG {aka long int}' [-Werror=format=]
> "[%s()] " format, PRETTY_FUNC_NAME , ## args); \
> ^
> c:/gcdev/gnucash.git/src/libqof/qof/gnc-timezone.cpp:176:6: note: in expansion of macro 'PWARN'
> PWARN("Caught Bad Month Exception. Daylight Bias: %d "
> ^
> At global scope:
> cc1plus.exe: error: unrecognized command line option "-Wno-deprecated-register" [-Werror]
> cc1plus.exe: all warnings being treated as errors
> make[5]: *** [gnc-timezone.lo] Error 1
> make[5]: Leaving directory `/c/gcdev/gnucash/build/src/libqof/qof'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory `/c/gcdev/gnucash/build/src/libqof/qof'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/c/gcdev/gnucash/build/src/libqof'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/c/gcdev/gnucash/build/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/c/gcdev/gnucash/build'
> make: *** [all] Error 2
>
> Stephen Brown_2 at Ace /c/gcdev/gnucash-on-windows.git
> $
> --------------------------------------------------------------------------------------
> What is the correct error?
> Is it “error: format '%d' expects argument of type 'int', but argument 5 has type 'LONG {aka long int}'”?
> Or is it “cc1plus.exe: error: unrecognized command line option "-Wno-deprecated-register" [-Werror]”
It's int vs. long. The unrecognized option error is an artifact that gcc adds when it hits a code error.
Regards,
John Ralls
More information about the gnucash-devel
mailing list