[Fontconfig] Unable to build on MinGW-w64

Josh joshf87 at live.com
Thu Oct 15 09:17:56 PDT 2015


On 10/15/2015 02:56, Akira TAGOH wrote:
> That works for me. or can you try the latest git?
>
> On Thu, Oct 15, 2015 at 1:30 PM, Josh <joshf87 at live.com> wrote:
>> It is but the commit before that (a44cc450b) introduced a new issue:
>>
>>     CC       ftglue.lo
>> echo Generating fontconfig.def
>> Generating fontconfig.def
>> (echo EXPORTS; \
>> (cat ../fontconfig/fontconfig.h ../src/fcdeprecate.h
>> ../fontconfig/fcprivate.h ../fontconfig/fcfreetype.h || echo 'FcERROR
>> ()' ) | \
>> /usr/bin/grep '^Fc[^ ]* *(' | /usr/bin/sed -e 's/ *(.*$//' -e 's/^/ /' | \
>> sort; \
>> echo LIBRARY libfontconfig-1.dll; \
>> echo VERSION 10.0) >fontconfig.def
>>     CCLD     libfontconfig.la
>>     CC       fcarch.o
>> In file included from fcarch.c:24:0:
>> fcint.h:92:54: error: size of array '_static_assert_on_line_51_failed'
>> is negative
>>    #define _FC_ASSERT_STATIC1(_line, _cond) typedef int
>> _static_assert_on_line_##_line##_failed[(_cond)?1:-1] FC_UNUSED
>>                                                         ^
>> fcint.h:93:42: note: in expansion of macro '_FC_ASSERT_STATIC1'
>>    #define _FC_ASSERT_STATIC0(_line, _cond) _FC_ASSERT_STATIC1 (_line,
>> (_cond))
>>                                             ^
>> fcint.h:94:33: note: in expansion of macro '_FC_ASSERT_STATIC0'
>>    #define FC_ASSERT_STATIC(_cond) _FC_ASSERT_STATIC0 (__LINE__, (_cond))
>>                                    ^
>> fcarch.c:51:1: note: in expansion of macro 'FC_ASSERT_STATIC'
>>    FC_ASSERT_STATIC (0x08 + 7*SIZEOF_VOID_P == sizeof (FcCache));
>>    ^
>> Makefile:618: recipe for target 'fcarch.o' failed
>> make[2]: *** [fcarch.o] Error 1
>> make[2]: Leaving directory '/sources/fontconfig-git/src'
>> Makefile:735: recipe for target 'install' failed
>> make[1]: *** [install] Error 2
>> make[1]: Leaving directory '/sources/fontconfig-git/src'
>> Makefile:578: recipe for target 'install-recursive' failed
>> make: *** [install-recursive] Error 1
>>
>> _______________________________________________
>> Fontconfig mailing list
>> Fontconfig at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/fontconfig
>
>
>

Same error, it occurs on the 32-bit gcc only. I tried 64-bit gcc and the 
error doesn't occur. At that point the library is already compiled and 
that's all I really need.


More information about the Fontconfig mailing list