Re: make error : CC fccache.lo on MinGW32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



That is a known issue in 2.11.0 and already fixed in git.

http://cgit.freedesktop.org/fontconfig/commit/?id=5406919c5e186f74ccdade1a65344ce7b5c56a64

On Thu, Mar 13, 2014 at 2:05 PM, Tatsuro MATSUOKA <tmacchant@xxxxxxxxxxx> wrote:
> --- 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@xxxxxxxxxxx> 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



-- 
Akira TAGOH
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig





[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux