[sword-devel] make error

Daniel Hughes trampster at gmail.com
Mon Jul 4 15:28:15 MST 2016


I commend the lines and after that make completed successfully.

Thanks for the help,
Daniel Hughes

On Tue, Jul 5, 2016 at 10:19 AM, Jaak Ristioja <jaak at ristioja.ee> wrote:
> Afaik, -Wnonnull-compare was added to GCC in version 6 (see
> https://gcc.gnu.org/gcc-6/porting_to.html ). But it seems that the
> source code in include/swobject.h unconditionally evaluates these
> pragmas, regardless of GCC version. This bug was introduced in SVN 3426.
> The most simple workaround is to delete or comment out these 2 #pragma
> lines.
>
> Blessings!
> J
>
> On 05.07.2016 01:10, Daniel Hughes wrote:
>> Hi,
>>
>> I'm trying to build sword from svn by running the following commands:
>> make distclean
>> ./autogen.sh
>> ./usrinst.sh
>> make
>> sudo make install
>>
>> but am getting the following error running make:
>>
>> ../include/swobject.h:31:32: error: unknown option after '#pragma GCC
>> diagnostic' kind [-Werror=pragmas]
>>  #pragma GCC diagnostic warning "-Wnonnull-compare"
>>
>> What am I doing wrong?
>>
>> God bless,
>> Daniel Hughes
>>
>> _______________________________________________
>> sword-devel mailing list: sword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
>>
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page



More information about the sword-devel mailing list