Menu

#1 smake doesn't work with mingw-w64 (mingw-builds)

1.0
open
nobody
None
2014-12-15
2014-06-16
No

Discussion

  • Jim Michaels

    Jim Michaels - 2014-06-16

    BTW, you can detect mingw-w64 with MINGW32
    this is the 64-bit+32-bit compiler, you can change type of binary produced by -m32 or -m64

     
  • Jörg Schilling

    Jörg Schilling - 2014-06-16

    Please exit include/schily/unistd.h and change:

    ifndef _MSC_VER

    to

    if !defined(_MSC_VER) && !defined(MINGW32)

    just before the protoype block that contains the read() prototype.

    This should be aprox. line 138.

     
  • Jim Michaels

    Jim Michaels - 2014-12-10

    during make:

    checking whether make sets ${MAKE}... ./configure: eval: line 1775: unexpected E
    OF while looking for matching `"'
    ./configure: eval: line 1776: syntax error: unexpected end of file
    no
    ...
                     from include/schily/fcntl.h:31,
                     from schilyio.h:25,
                     from flag.c:17:
    d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-mingw32\include\io.h:32
    9:15: error: conflicting types for 'write'
       int __cdecl write(int _Filehandle,const void *_Buf,unsigned int _MaxCharCount
    ) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
                   ^
    In file included from schilyio.h:24:0,
                     from flag.c:17:
    include/schily/unistd.h:151:12: note: previous declaration of 'write' was here
     extern int write __PR((int, const void *, size_t));
                ^
    flag.c: In function '_more_flags':
    flag.c:53:3: warning: implicit declaration of function 'fillbytes' [-Wimplicit-f
    unction-declaration]
       fillbytes(np, n * sizeof (*np), '\0');
       ^
    flag.c:54:3: warning: implicit declaration of function 'movebytes' [-Wimplicit-f
    unction-declaration]
       movebytes(_io_smyfl, np, sizeof (_io_smyfl)/sizeof (*np));
       ^
    
    + d:/gcc-5.0-win64_5.0.0-20141105/gcc-5.0-win64/bin/gcc.exe -c -Iinclude -I. -DS
    CHILY_BUILD -DNO_FLOATINGPOINT -DNO_FPRFORMAT -DNO_NL_ARGS -DNO_SCANSTACK -DNO_U
    SG_STDIO flush.c
    In file included from d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-m
    ingw32\include\sys\stat.h:14:0,
                     from include/schily/stat.h:30,
                     from include/schily/fcntl.h:31,
                     from schilyio.h:25,
                     from flush.c:17:
    d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-mingw32\include\io.h:32
    4:15: error: conflicting types for 'read'
       int __cdecl read(int _FileHandle,void *_DstBuf,unsigned int _MaxCharCount)  _
    _MINGW_ATTRIB_DEPRECATED_MSVC2005;
                   ^
    In file included from schilyio.h:24:0,
                     from flush.c:17:
    include/schily/unistd.h:149:12: note: previous declaration of 'read' was here
     extern int read __PR((int, void *, size_t));
                ^
    In file included from d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-m
    ingw32\include\sys\stat.h:14:0,
                     from include/schily/stat.h:30,
                     from include/schily/fcntl.h:31,
                     from schilyio.h:25,
                     from flush.c:17:
    d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-mingw32\include\io.h:32
    9:15: error: conflicting types for 'write'
       int __cdecl write(int _Filehandle,const void *_Buf,unsigned int _MaxCharCount
    ) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
                   ^
    In file included from schilyio.h:24:0,
                     from flush.c:17:
    include/schily/unistd.h:151:12: note: previous declaration of 'write' was here
     extern int write __PR((int, const void *, size_t));
                ^
    + d:/gcc-5.0-win64_5.0.0-20141105/gcc-5.0-win64/bin/gcc.exe -c -Iinclude -I. -DS
    CHILY_BUILD -DNO_FLOATINGPOINT -DNO_FPRFORMAT -DNO_NL_ARGS -DNO_SCANSTACK -DNO_U
    SG_STDIO dat.c
    + d:/gcc-5.0-win64_5.0.0-20141105/gcc-5.0-win64/bin/gcc.exe -c -Iinclude -I. -DS
    CHILY_BUILD -DNO_FLOATINGPOINT -DNO_FPRFORMAT -DNO_NL_ARGS -DNO_SCANSTACK -DNO_U
    SG_STDIO filewrite.c
    In file included from d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-m
    ingw32\include\sys\stat.h:14:0,
                     from include/schily/stat.h:30,
                     from include/schily/fcntl.h:31,
                     from schilyio.h:25,
                     from filewrite.c:17:
    d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-mingw32\include\io.h:32
    CHILY_BUILD -DNO_FLOATINGPOINT -DNO_FPRFORMAT -DNO_NL_ARGS -DNO_SCANSTACK -DNO_U
    SG_STDIO filewrite.c
    In file included from d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-m
    ingw32\include\sys\stat.h:14:0,
                     from include/schily/stat.h:30,
                     from include/schily/fcntl.h:31,
                     from schilyio.h:25,
                     from filewrite.c:17:
    d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-mingw32\include\io.h:32
    4:15: error: conflicting types for 'read'
       int __cdecl read(int _FileHandle,void *_DstBuf,unsigned int _MaxCharCount)  _
    _MINGW_ATTRIB_DEPRECATED_MSVC2005;
                   ^
    In file included from schilyio.h:24:0,
                     from filewrite.c:17:
    include/schily/unistd.h:149:12: note: previous declaration of 'read' was here
     extern int read __PR((int, void *, size_t));
                ^
    In file included from d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-m
    ingw32\include\sys\stat.h:14:0,
                     from include/schily/stat.h:30,
                     from include/schily/fcntl.h:31,
                     from schilyio.h:25,
                     from filewrite.c:17:
    d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-mingw32\include\io.h:32
    9:15: error: conflicting types for 'write'
       int __cdecl write(int _Filehandle,const void *_Buf,unsigned int _MaxCharCount
    ) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
                   ^
    In file included from schilyio.h:24:0,
                     from filewrite.c:17:
    include/schily/unistd.h:151:12: note: previous declaration of 'write' was here
     extern int write __PR((int, const void *, size_t));
                ^
    filewrite.c: In function 'filewrite':
    filewrite.c:82:11: warning: implicit declaration of function '_niwrite' [-Wimpli
    cit-function-declaration]
       return (_niwrite(fileno(f), buf, len));
               ^
    + d:/gcc-5.0-win64_5.0.0-20141105/gcc-5.0-win64/bin/gcc.exe -c -Iinclude -I. -DS
    CHILY_BUILD -DNO_FLOATINGPOINT -DNO_FPRFORMAT -DNO_NL_ARGS -DNO_SCANSTACK -DNO_U
    SG_STDIO fileread.c
    In file included from d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-m
    ingw32\include\sys\stat.h:14:0,
                     from include/schily/stat.h:30,
                     from include/schily/fcntl.h:31,
                     from schilyio.h:25,
                     from fileread.c:17:
    d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-mingw32\include\io.h:32
    4:15: error: conflicting types for 'read'
       int __cdecl read(int _FileHandle,void *_DstBuf,unsigned int _MaxCharCount)  _
    _MINGW_ATTRIB_DEPRECATED_MSVC2005;
                   ^
    In file included from schilyio.h:24:0,
                     from fileread.c:17:
    include/schily/unistd.h:149:12: note: previous declaration of 'read' was here
     extern int read __PR((int, void *, size_t));
                ^
    In file included from d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-m
    ingw32\include\sys\stat.h:14:0,
                     from include/schily/stat.h:30,
                     from include/schily/fcntl.h:31,
                     from schilyio.h:25,
                     from fileread.c:17:
    d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-mingw32\include\io.h:32
    9:15: error: conflicting types for 'write'
       int __cdecl write(int _Filehandle,const void *_Buf,unsigned int _MaxCharCount
    ) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
                   ^
    In file included from schilyio.h:24:0,
    In file included from schilyio.h:24:0,
                     from fileread.c:17:
    include/schily/unistd.h:151:12: note: previous declaration of 'write' was here
     extern int write __PR((int, const void *, size_t));
                ^
    fileread.c: In function 'fileread':
    fileread.c:80:11: warning: implicit declaration of function '_niread' [-Wimplici
    t-function-declaration]
       return (_niread(fileno(f), buf, len));
               ^
    + d:/gcc-5.0-win64_5.0.0-20141105/gcc-5.0-win64/bin/gcc.exe -c -Iinclude -I. -DS
    CHILY_BUILD -DNO_FLOATINGPOINT -DNO_FPRFORMAT -DNO_NL_ARGS -DNO_SCANSTACK -DNO_U
    SG_STDIO fileseek.c
    In file included from d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-m
    ingw32\include\sys\stat.h:14:0,
                     from include/schily/stat.h:30,
                     from include/schily/fcntl.h:31,
                     from schilyio.h:25,
                     from fileseek.c:17:
    d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-mingw32\include\io.h:32
    4:15: error: conflicting types for 'read'
       int __cdecl read(int _FileHandle,void *_DstBuf,unsigned int _MaxCharCount)  _
    _MINGW_ATTRIB_DEPRECATED_MSVC2005;
                   ^
    In file included from schilyio.h:24:0,
                     from fileseek.c:17:
    include/schily/unistd.h:149:12: note: previous declaration of 'read' was here
     extern int read __PR((int, void *, size_t));
                ^
    In file included from d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-m
    ingw32\include\sys\stat.h:14:0,
                     from include/schily/stat.h:30,
                     from include/schily/fcntl.h:31,
                     from schilyio.h:25,
                     from fileseek.c:17:
    d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-mingw32\include\io.h:32
    9:15: error: conflicting types for 'write'
       int __cdecl write(int _Filehandle,const void *_Buf,unsigned int _MaxCharCount
    ) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
                   ^
    In file included from schilyio.h:24:0,
                     from fileseek.c:17:
    include/schily/unistd.h:151:12: note: previous declaration of 'write' was here
     extern int write __PR((int, const void *, size_t));
                ^
    + d:/gcc-5.0-win64_5.0.0-20141105/gcc-5.0-win64/bin/gcc.exe -c -Iinclude -I. -DS
    CHILY_BUILD -DNO_FLOATINGPOINT -DNO_FPRFORMAT -DNO_NL_ARGS -DNO_SCANSTACK -DNO_U
    SG_STDIO niread.c
    In file included from d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-m
    ingw32\include\sys\stat.h:14:0,
                     from include/schily/stat.h:30,
                     from include/schily/fcntl.h:31,
                     from schilyio.h:25,
                     from niread.c:19:
    d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-mingw32\include\io.h:32
    4:15: error: conflicting types for 'read'
       int __cdecl read(int _FileHandle,void *_DstBuf,unsigned int _MaxCharCount)  _
    _MINGW_ATTRIB_DEPRECATED_MSVC2005;
                   ^
    In file included from schilyio.h:24:0,
                     from niread.c:19:
    include/schily/unistd.h:149:12: note: previous declaration of 'read' was here
     extern int read __PR((int, void *, size_t));
                ^
    In file included from d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-m
    ingw32\include\sys\stat.h:14:0,
                     from include/schily/stat.h:30,
                     from include/schily/fcntl.h:31,
                     from schilyio.h:25,
                     from niread.c:19:
    d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-mingw32\include\io.h:32
    9:15: error: conflicting types for 'write'
       int __cdecl write(int _Filehandle,const void *_Buf,unsigned int _MaxCharCount
    ) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
                   ^
    In file included from schilyio.h:24:0,
                     from niread.c:19:
    include/schily/unistd.h:151:12: note: previous declaration of 'write' was here
     extern int write __PR((int, const void *, size_t));
                ^
    + d:/gcc-5.0-win64_5.0.0-20141105/gcc-5.0-win64/bin/gcc.exe -c -Iinclude -I. -DS
    CHILY_BUILD -DNO_FLOATINGPOINT -DNO_FPRFORMAT -DNO_NL_ARGS -DNO_SCANSTACK -DNO_U
    SG_STDIO niwrite.c
    In file included from d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-m
    ingw32\include\sys\stat.h:14:0,
                     from include/schily/stat.h:30,
                     from include/schily/fcntl.h:31,
                     from schilyio.h:25,
                     from niwrite.c:19:
    d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-mingw32\include\io.h:32
    4:15: error: conflicting types for 'read'
       int __cdecl read(int _FileHandle,void *_DstBuf,unsigned int _MaxCharCount)  _
    _MINGW_ATTRIB_DEPRECATED_MSVC2005;
                   ^
    In file included from schilyio.h:24:0,
                     from niwrite.c:19:
    include/schily/unistd.h:149:12: note: previous declaration of 'read' was here
     extern int read __PR((int, void *, size_t));
                ^
    In file included from d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-m
    ingw32\include\sys\stat.h:14:0,
                     from include/schily/stat.h:30,
                     from include/schily/fcntl.h:31,
                     from schilyio.h:25,
                     from niwrite.c:19:
    d:\gcc-5.0-win64_5.0.0-20141105\gcc-5.0-win64\x86_64-w64-mingw32\include\io.h:32
    9:15: error: conflicting types for 'write'
       int __cdecl write(int _Filehandle,const void *_Buf,unsigned int _MaxCharCount
    ) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
                   ^
    In file included from schilyio.h:24:0,
                     from niwrite.c:19:
    include/schily/unistd.h:151:12: note: previous declaration of 'write' was here
     extern int write __PR((int, const void *, size_t));
                ^
    + d:/gcc-5.0-win64_5.0.0-20141105/gcc-5.0-win64/bin/gcc.exe '-Ld:\gcc-5.0-win64_
    5.0.0-20141105\gcc-5.0-win64\x86_64-w64-mingw32\lib;d:\gcc-5.0-win64_5.0.0-20141
    105\gcc-5.0-win64\lib\gcc\x86_64-w64-mingw32\5.0.0' -o smake make.o readfile.o p
    arse.o update.o rules.o archconf.o job.o memory.o astoi.o astoll.o comerr.o erro
    r.o eaccess.o format.o getexecpath.o jsprintf.o jssnprintf.o saveargs.o seterrno
    .o strcatl.o strlcpy.o strncpy.o streql.o getargs.o geterrno.o movebytes.o fillb
    ytes.o raisecond.o rename.o searchinpath.o uname.o file_raise.o fileopen.o fcons
    .o cvmod.o flag.o flush.o dat.o filewrite.o fileread.o fileseek.o niread.o niwri
    te.o
    gcc.exe: error: make.o: No such file or directory
    gcc.exe: error: readfile.o: No such file or directory
    gcc.exe: error: parse.o: No such file or directory
    gcc.exe: error: update.o: No such file or directory
    gcc.exe: error: archconf.o: No such file or directory
    gcc.exe: error: job.o: No such file or directory
    gcc.exe: error: memory.o: No such file or directory
    gcc.exe: error: astoi.o: No such file or directory
    gcc.exe: error: astoll.o: No such file or directory
    gcc.exe: error: comerr.o: No such file or directory
    gcc.exe: error: error.o: No such file or directory
    gcc.exe: error: eaccess.o: No such file or directory
    gcc.exe: error: format.o: No such file or directory
    gcc.exe: error: getexecpath.o: No such file or directory
    gcc.exe: error: jsprintf.o: No such file or directory
    gcc.exe: error: jssnprintf.o: No such file or directory
    gcc.exe: error: saveargs.o: No such file or directory
    gcc.exe: error: seterrno.o: No such file or directory
    gcc.exe: error: strcatl.o: No such file or directory
    gcc.exe: error: strlcpy.o: No such file or directory
    gcc.exe: error: strncpy.o: No such file or directory
    gcc.exe: error: streql.o: No such file or directory
    gcc.exe: error: getargs.o: No such file or directory
    gcc.exe: error: geterrno.o: No such file or directory
    gcc.exe: error: movebytes.o: No such file or directory
    gcc.exe: error: fillbytes.o: No such file or directory
    gcc.exe: error: raisecond.o: No such file or directory
    gcc.exe: error: searchinpath.o: No such file or directory
    gcc.exe: error: uname.o: No such file or directory
    gcc.exe: error: file_raise.o: No such file or directory
    gcc.exe: error: fileopen.o: No such file or directory
    gcc.exe: error: fcons.o: No such file or directory
    gcc.exe: error: cvmod.o: No such file or directory
    gcc.exe: error: flag.o: No such file or directory
    gcc.exe: error: flush.o: No such file or directory
    gcc.exe: error: filewrite.o: No such file or directory
    gcc.exe: error: fileread.o: No such file or directory
    gcc.exe: error: fileseek.o: No such file or directory
    gcc.exe: error: niread.o: No such file or directory
    gcc.exe: error: niwrite.o: No such file or directory
    Makefile:11: recipe for target 'all' failed
    make: *** [all] Error 1
    

    just a mass of errors trying to compile with mingw-w64.
    during the detection, it did not correctly detect windows.h and failed when it should have succeeded. I am using mingw-w64 dongsheld personal build 5.0.0 20141105.

     

    Last edit: Jim Michaels 2014-12-10
  • Jörg Schilling

    Jörg Schilling - 2014-12-10

    Are you testing version 2014-09-17?

    The code that seems to fail is:

    GNU make sometimes prints "make[1]: Entering...", which would confuse us.

    eval ${MAKE-make} -f conftestmake 2>/dev/null | grep temp= # line 1775
    if test -n "$ac_maketemp"; then # line 1776
    eval ac_cv_prog_make_${ac_make}set=yes
    else
    eval ac_cv_prog_make
    ${ac_make}_set=no
    fi

    Are you sure that your shell works correctly?

    So what version of schilytools are you using and which shell with what version?

     
  • Jim Michaels

    Jim Michaels - 2014-12-12

    I found out that MSYS-20111123 I am using should instead be MSYS2-packages on github. But I have to build it (not sure I am going to be able to do it).

     
  • Jörg Schilling

    Jörg Schilling - 2014-12-15

    If you do another test, please include the schily-tools version in your report.

     

Log in to post a comment.

MongoDB Logo MongoDB