[Fontconfig] make error : CC fccache.lo on MinGW32

Tatsuro MATSUOKA tmacchant at yahoo.co.jp
Tue Mar 11 19:50:30 PDT 2014


Hello

I have tried to build fontconfig-2.11.0 on MinGW32 (GCC-4.6.1).

In the make process the following error appeared :

********************************************************************
make[3]: Entering directory `/e/usr/Tatsu/mingw32work/gplibs32/fontconfig/fontconfig-2.11.0/src'
  CC       fcatomic.lo
  CC       fcblanks.lo
  CC       fccache.lo
In file included from fcint.h:50:0,
                 from fccache.c:23:
fccache.c: In function 'FcCacheIsMmapSafe':
fcatomic.h:66:49: error: expected expression before ')' token
 #define fc_atomic_ptr_get(P)  (HBMemoryBarrier (), (void *) *(P))
                                                 ^
fccache.c:66:25: note: in expansion of macro 'fc_atomic_ptr_get'
     status = (intptr_t) fc_atomic_ptr_get (&static_status);
                         ^
fcatomic.h:66:50: warning: left-hand operand of comma expression has no effect [-Wunused-value]
 #define fc_atomic_ptr_get(P)  (HBMemoryBarrier (), (void *) *(P))
                                                  ^
fccache.c:66:25: note: in expansion of macro 'fc_atomic_ptr_get'
     status = (intptr_t) fc_atomic_ptr_get (&static_status);
                         ^
fccache.c: In function 'lock_cache':
fcatomic.h:66:49: error: expected expression before ')' token
 #define fc_atomic_ptr_get(P)  (HBMemoryBarrier (), (void *) *(P))
                                                 ^
fccache.c:269:10: note: in expansion of macro 'fc_atomic_ptr_get'
   lock = fc_atomic_ptr_get (&cache_lock);
          ^
fcatomic.h:66:50: warning: left-hand operand of comma expression has no effect [-Wunused-value]
 #define fc_atomic_ptr_get(P)  (HBMemoryBarrier (), (void *) *(P))
                                                  ^
fccache.c:269:10: note: in expansion of macro 'fc_atomic_ptr_get'
   lock = fc_atomic_ptr_get (&cache_lock);
          ^
fccache.c: In function 'free_lock':
fcatomic.h:66:49: error: expected expression before ')' token
 #define fc_atomic_ptr_get(P)  (HBMemoryBarrier (), (void *) *(P))
                                                 ^
fccache.c:296:10: note: in expansion of macro 'fc_atomic_ptr_get'
   lock = fc_atomic_ptr_get (&cache_lock);
          ^
fcatomic.h:66:50: warning: left-hand operand of comma expression has no effect [-Wunused-value]
 #define fc_atomic_ptr_get(P)  (HBMemoryBarrier (), (void *) *(P))
                                                  ^
fccache.c:296:10: note: in expansion of macro 'fc_atomic_ptr_get'
   lock = fc_atomic_ptr_get (&cache_lock);
          ^
make[3]: *** [fccache.lo] Error 1
make[3]: Leaving directory `/e/usr/Tatsu/mingw32work/gplibs32/fontconfig/fontconfig-2.11.0/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/e/usr/Tatsu/mingw32work/gplibs32/fontconfig/fontconfig-2.11.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/e/usr/Tatsu/mingw32work/gplibs32/fontconfig/fontconfig-2.11.0'
make: *** [all] Error 2
********************************************************************
Any suggestions ?

Regards

Tatsuro


More information about the Fontconfig mailing list