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

Tatsuro MATSUOKA tmacchant at yahoo.co.jp
Wed Mar 12 22:05:50 PDT 2014


--- On Wed, 2014/3/12, Tatsuro MATSUOKA  wrote:
> --- On Wed, 2014/3/12, Akira TAGOH wrote:
> 
> > I can't reproduce this on my box wit gcc-4.8.2 on mingw so not sure
> > but that looks like a gcc bug to me. does it work with -O0 or
> > -fno-inline?
> > 
> > On Wed, Mar 12, 2014 at 11:50 AM, Tatsuro MATSUOKA
> > <tmacchant at yahoo.co.jp> wrote:
> > > 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))
>   :
> 
> Thank you for your reply.
> 
> -O0 or -fno-inline did not improve the situation. Gcc-4.8.1 causes some troubles for building other libraries.  I will try gcc-4.8.2 from MinGW-w64 site.
> 
I have retried to build fontconfig-2.11.0 on MinGW32 (4.8.2 from MinGW-w64 project).

I have met the following erros in CC of test-migration.o

  CC       test-migration.o
test-migration.c: In function 'mkdir_p':
test-migration.c:21:2: error: too many arguments to function 'mkdir'
  ret = mkdir (dir, 0755) == 0 && chmod (dir, 0755) == 0;
  ^
In file included from c:/mingw/i686-w64-mingw32/include/unistd.h:10:0,
                 from test-migration.c:4:
c:/mingw/i686-w64-mingw32/include/io.h:267:15: note: declared here
   int __cdecl mkdir (const char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
               ^
test-migration.c:23:2: error: too many arguments to function 'mkdir'
  ret = mkdir_p (parent) && (mkdir (dir, 0755) == 0) && chmod (dir, 0755) == 0;
  ^
In file included from c:/mingw/i686-w64-mingw32/include/unistd.h:10:0,
                 from test-migration.c:4:
c:/mingw/i686-w64-mingw32/include/io.h:267:15: note: declared here
   int __cdecl mkdir (const char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
               ^
test-migration.c: In function 'unlink_dirs':
test-migration.c:56:7: error: 'struct dirent' has no member named 'd_type'
  if (e->d_type == DT_DIR)
       ^
test-migration.c:56:19: error: 'DT_DIR' undeclared (first use in this function)
  if (e->d_type == DT_DIR)
                   ^
test-migration.c:56:19: note: each undeclared identifier is reported only once for each function it appears in
test-migration.c: In function 'main':
test-migration.c:92:17: warning: initialization makes pointer from integer without a cast [enabled by default]
     char *tmp = mkdtemp (template);
                 ^
make[2]: *** [test-migration.o] Error 1
make[2]: Leaving directory `/e/usr/Tatsu/mingw32work/gplibs32/fontconfig/fontconfig-2.11.0/test'
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