[daala] [Daala] Compilation failed with MinGW

Tristan Matthews le.businessman at gmail.com
Wed Oct 1 08:39:03 PDT 2014


Hi,

On Sun, Sep 28, 2014 at 6:06 AM, Kurtnoise <kurtnoise at free.fr> wrote:

> Hi,
>
> I'm trying to compile the daala project 0.0-676-gb035e4a on minGW
> platform but I've got this error during the "make tools" :
>
> In file included from Q:/dev/MSYS/include/ogg/os_types.h:38:0,
>                   from Q:/dev/MSYS/include/ogg/ogg.h:25,
>                   from src/../include/daala/codec.h:51,
>                   from src/internal.h:28,
>                   from src/entcode.h:29,
>                   from src/entcode.c:29:
> Q:/dev/MSYS/include/sys/types.h:137:14: error: conflicting types for
> 'ssize_t'
>   typedef long ssize_t;
>                ^
> In file included from Q:/dev/MSYS/include/ogg/os_types.h:38:0,
>                   from Q:/dev/MSYS/include/ogg/ogg.h:25,
>                   from src/../include/daala/codec.h:51,
>                   from src/odintrin.h:29,
>                   from src/block_size.h:28,
>                   from src/block_size.c:29:
> Q:/dev/MSYS/include/sys/types.h:137:14: error: conflicting types for
> 'ssize_t'
>   typedef long ssize_t;
>                ^
> In file included from Q:/dev/MSYS/include/ogg/os_types.h:38:0,
>                   from Q:/dev/MSYS/include/ogg/ogg.h:25,
>                   from src/../include/daala/codec.h:51,
>                   from src/internal.h:28,
>                   from src/adapt.c:31:
> Q:/dev/MSYS/include/sys/types.h:137:14: error: conflicting types for
> 'ssize_t'
>   typedef long ssize_t;
>                ^
> In file included from Q:/dev/MSYS/include/ogg/os_types.h:38:0,
>                   from Q:/dev/MSYS/include/ogg/ogg.h:25,
>                   from src/../include/daala/codec.h:51,
>                   from src/internal.h:28,
>                   from src/entcode.h:29,
>                   from src/entdec.h:28,
>                   from src/entdec.c:29:
> Q:/dev/MSYS/include/sys/types.h:137:14: error: conflicting types for
> 'ssize_t'
>   typedef long ssize_t;
>                ^
> In file included from
> q:\dev\msys\mingw\i686-w64-mingw32\include\crtdefs.h:10:0,
>
>                   from
> q:\dev\msys\mingw\i686-w64-mingw32\include\stddef.h:7,
>                   from
> q:\dev\msys\mingw\lib\gcc\i686-w64-mingw32\4.9.1\include\s
> tddef.h:1,
>                   from src/entcode.h:28,
>                   from src/entcode.c:29:
> q:\dev\msys\mingw\i686-w64-mingw32\include\_mingw.h:389:13: note:
> previous decla
> ration of 'ssize_t' was here
>   typedef int ssize_t;
>               ^
> In file included from
> q:\dev\msys\mingw\i686-w64-mingw32\include\crtdefs.h:10:0,
>
>                   from
> q:\dev\msys\mingw\i686-w64-mingw32\include\stddef.h:7,
>                   from
> q:\dev\msys\mingw\lib\gcc\i686-w64-mingw32\4.9.1\include\s
> tddef.h:1,
>                   from Q:/dev/MSYS/include/string.h:18,
>                   from src/odintrin.h:28,
>                   from src/block_size.h:28,
>                   from src/block_size.c:29:
> q:\dev\msys\mingw\i686-w64-mingw32\include\_mingw.h:389:13: note:
> previous decla
> ration of 'ssize_t' was here
>   typedef int ssize_t;
>               ^
> In file included from
> q:\dev\msys\mingw\i686-w64-mingw32\include\crtdefs.h:10:0,
>
>                   from
> q:\dev\msys\mingw\i686-w64-mingw32\include\stddef.h:7,
>                   from
> q:\dev\msys\mingw\lib\gcc\i686-w64-mingw32\4.9.1\include\s
> tddef.h:1,
>                   from Q:/dev/MSYS/include/stdlib.h:17,
>                   from src/adapt.c:29:
> q:\dev\msys\mingw\i686-w64-mingw32\include\_mingw.h:389:13: note:
> previous decla
> ration of 'ssize_t' was here
>   typedef int ssize_t;
>               ^
> In file included from
> q:\dev\msys\mingw\i686-w64-mingw32\include\crtdefs.h:10:0,
>
>                   from
> q:\dev\msys\mingw\i686-w64-mingw32\include\stddef.h:7,
>                   from
> q:\dev\msys\mingw\lib\gcc\i686-w64-mingw32\4.9.1\include\s
> tddef.h:1,
>                   from src/entcode.h:28,
>                   from src/entdec.h:28,
>                   from src/entdec.c:29:
> q:\dev\msys\mingw\i686-w64-mingw32\include\_mingw.h:389:13: note:
> previous decla
> ration of 'ssize_t' was here
>   typedef int ssize_t;
>               ^
> make[2]: *** [src/src_libdaalabase_la-entcode.lo] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: *** [src/src_libdaalabase_la-entdec.lo] Error 1
> make[2]: *** [src/src_libdaalabase_la-block_size.lo] Error 1
> make[2]: *** [src/src_libdaalabase_la-adapt.lo] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> What's wrong ?
>

My guess is that your mingw setup is the issue since the conflicting
typedefs are in i686-w64-mingw32/include/_minwg.h and
MSYS/include/sys/types.h

Best,
Tristan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/daala/attachments/20141001/eb8d11ab/attachment.htm 


More information about the daala mailing list