Building GNU Cobol on a Cygwin X86_64 platform fails

2014-05-08
2014-10-04
  • Francis ANDRE
    Francis ANDRE
    2014-05-08

    Hi

    Building GNU Cobol on a Cygwin X86_64 platform
    $ uname -a
    CYGWIN_NT-6.1 idefix 1.7.29(0.272/5/3) 2014-04-07 13:46 x86_64 Cygwin
    fails as shows below.

    Any idea what the problem could be?

    Thanks in advance.

    $ make
    make  all-recursive
    make[1]: Entering directory '/cygdrive/z/dev/llvm/x64/GNU Cobol/gnu-cobol'
    Making all in lib
    make[2]: Entering directory '/cygdrive/z/dev/llvm/x64/GNU Cobol/gnu-cobol/lib'
    if gcc -DHAVE_CONFIG_H -I. -I. -I..     -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT dummymac.o -MD -MP -MF ".deps/dummymac.Tpo" -c -o dummymac.o dummymac.c; \
    then mv -f ".deps/dummymac.Tpo" ".deps/dummymac.Po"; else rm -f ".deps/dummymac.Tpo"; exit 1; fi
    rm -f libsupport.a
    ar cru libsupport.a dummymac.o
    ranlib libsupport.a
    make[2]: Leaving directory '/cygdrive/z/dev/llvm/x64/GNU Cobol/gnu-cobol/lib'
    Making all in libcob
    make[2]: Entering directory '/cygdrive/z/dev/llvm/x64/GNU Cobol/gnu-cobol/libcob'
    if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..      -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-common.lo -MD -MP -MF ".deps/libcob_la-common.Tpo" -c -o libcob_la-common.lo `test -f 'common.c' || echo './'`common.c; \
    then mv -f ".deps/libcob_la-common.Tpo" ".deps/libcob_la-common.Plo"; else rm -f ".deps/libcob_la-common.Tpo"; exit 1; fi
    mkdir .libs
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-common.lo -MD -MP -MF .deps/libcob_la-common.Tpo -c common.c  -DDLL_EXPORT -DPIC -o .libs/libcob_la-common.o
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-common.lo -MD -MP -MF .deps/libcob_la-common.Tpo -c common.c -o libcob_la-common.o >/dev/null 2>&1
    if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..      -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-call.lo -MD -MP -MF ".deps/libcob_la-call.Tpo" -c -o libcob_la-call.lo `test -f 'call.c' || echo './'`call.c; \
    then mv -f ".deps/libcob_la-call.Tpo" ".deps/libcob_la-call.Plo"; else rm -f ".deps/libcob_la-call.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-call.lo -MD -MP -MF .deps/libcob_la-call.Tpo -c call.c  -DDLL_EXPORT -DPIC -o .libs/libcob_la-call.o
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-call.lo -MD -MP -MF .deps/libcob_la-call.Tpo -c call.c -o libcob_la-call.o >/dev/null 2>&1
    if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..      -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-strings.lo -MD -MP -MF ".deps/libcob_la-strings.Tpo" -c -o libcob_la-strings.lo `test -f 'strings.c' || echo './'`strings.c; \
    then mv -f ".deps/libcob_la-strings.Tpo" ".deps/libcob_la-strings.Plo"; else rm -f ".deps/libcob_la-strings.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-strings.lo -MD -MP -MF .deps/libcob_la-strings.Tpo -c strings.c  -DDLL_EXPORT -DPIC -o .libs/libcob_la-strings.o
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-strings.lo -MD -MP -MF .deps/libcob_la-strings.Tpo -c strings.c -o libcob_la-strings.o >/dev/null 2>&1
    if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..      -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-move.lo -MD -MP -MF ".deps/libcob_la-move.Tpo" -c -o libcob_la-move.lo `test -f 'move.c' || echo './'`move.c; \
    then mv -f ".deps/libcob_la-move.Tpo" ".deps/libcob_la-move.Plo"; else rm -f ".deps/libcob_la-move.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-move.lo -MD -MP -MF .deps/libcob_la-move.Tpo -c move.c  -DDLL_EXPORT -DPIC -o .libs/libcob_la-move.o
    move.c: In function 'cob_move_fp_to_display':
    move.c:490:10: warning: variable 'frac' set but not used [-Wunused-but-set-variable]
      double  frac;
              ^
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-move.lo -MD -MP -MF .deps/libcob_la-move.Tpo -c move.c -o libcob_la-move.o >/dev/null 2>&1
    if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..      -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-numeric.lo -MD -MP -MF ".deps/libcob_la-numeric.Tpo" -c -o libcob_la-numeric.lo `test -f 'numeric.c' || echo './'`numeric.c; \
    then mv -f ".deps/libcob_la-numeric.Tpo" ".deps/libcob_la-numeric.Plo"; else rm -f ".deps/libcob_la-numeric.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-numeric.lo -MD -MP -MF .deps/libcob_la-numeric.Tpo -c numeric.c  -DDLL_EXPORT -DPIC -o .libs/libcob_la-numeric.o
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-numeric.lo -MD -MP -MF .deps/libcob_la-numeric.Tpo -c numeric.c -o libcob_la-numeric.o >/dev/null 2>&1
    if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..      -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-intrinsic.lo -MD -MP -MF ".deps/libcob_la-intrinsic.Tpo" -c -o libcob_la-intrinsic.lo `test -f 'intrinsic.c' || echo './'`intrinsic.c; \
    then mv -f ".deps/libcob_la-intrinsic.Tpo" ".deps/libcob_la-intrinsic.Plo"; else rm -f ".deps/libcob_la-intrinsic.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-intrinsic.lo -MD -MP -MF .deps/libcob_la-intrinsic.Tpo -c intrinsic.c  -DDLL_EXPORT -DPIC -o .libs/libcob_la-intrinsic.o
    intrinsic.c: In function 'cob_intr_locale_date':
    intrinsic.c:2908:5: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
       p = srcfield->data;
         ^
    intrinsic.c:2911:4: warning: array subscript has type 'char' [-Wchar-subscripts]
        if (isdigit (*p)) {
        ^
    intrinsic.c:2979:4: warning: array subscript has type 'char' [-Wchar-subscripts]
        if (isalnum(*p) || *p == '_') {
        ^
    intrinsic.c: In function 'cob_intr_locale_time':
    intrinsic.c:3054:5: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
       p = srcfield->data;
         ^
    intrinsic.c:3057:4: warning: array subscript has type 'char' [-Wchar-subscripts]
        if (isdigit (*p)) {
        ^
    intrinsic.c:3115:4: warning: array subscript has type 'char' [-Wchar-subscripts]
        if (isalnum(*p) || *p == '_') {
        ^
    intrinsic.c: In function 'cob_intr_lcl_time_from_secs':
    intrinsic.c:3233:4: warning: array subscript has type 'char' [-Wchar-subscripts]
        if (isalnum(*p) || *p == '_') {
        ^
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-intrinsic.lo -MD -MP -MF .deps/libcob_la-intrinsic.Tpo -c intrinsic.c -o libcob_la-intrinsic.o >/dev/null 2>&1
    if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..      -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-fileio.lo -MD -MP -MF ".deps/libcob_la-fileio.Tpo" -c -o libcob_la-fileio.lo `test -f 'fileio.c' || echo './'`fileio.c; \
    then mv -f ".deps/libcob_la-fileio.Tpo" ".deps/libcob_la-fileio.Plo"; else rm -f ".deps/libcob_la-fileio.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-fileio.lo -MD -MP -MF .deps/libcob_la-fileio.Tpo -c fileio.c  -DDLL_EXPORT -DPIC -o .libs/libcob_la-fileio.o
    fileio.c: In function 'cob_open':
    fileio.c:3867:4: warning: array subscript has type 'char' [-Wchar-subscripts]
        if (!isalnum (*src) && *src != '_' && *src != '-') {
        ^
    fileio.c:3872:6: warning: array subscript has type 'char' [-Wchar-subscripts]
          if (!isalnum (src[i]) && src[i] != '_' && *src != '-') {
          ^
    fileio.c: In function 'indexed_read':
    fileio.c:2305:33: warning: 'dupno' may be used uninitialized in this function [-Wmaybe-uninitialized]
         p->last_dupno[p->key_index] = dupno;
                                     ^
    fileio.c:2157:16: note: 'dupno' was declared here
      unsigned int  dupno;
                    ^
    fileio.c: In function 'indexed_start':
    fileio.c:2305:33: warning: 'dupno' may be used uninitialized in this function [-Wmaybe-uninitialized]
         p->last_dupno[p->key_index] = dupno;
                                     ^
    fileio.c:2157:16: note: 'dupno' was declared here
      unsigned int  dupno;
                    ^
    fileio.c: In function 'indexed_read_next':
    fileio.c:3076:33: warning: 'dupno' may be used uninitialized in this function [-Wmaybe-uninitialized]
         p->last_dupno[p->key_index] = dupno;
                                     ^
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-fileio.lo -MD -MP -MF .deps/libcob_la-fileio.Tpo -c fileio.c -o libcob_la-fileio.o >/dev/null 2>&1
    if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..      -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-termio.lo -MD -MP -MF ".deps/libcob_la-termio.Tpo" -c -o libcob_la-termio.lo `test -f 'termio.c' || echo './'`termio.c; \
    then mv -f ".deps/libcob_la-termio.Tpo" ".deps/libcob_la-termio.Plo"; else rm -f ".deps/libcob_la-termio.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-termio.lo -MD -MP -MF .deps/libcob_la-termio.Tpo -c termio.c  -DDLL_EXPORT -DPIC -o .libs/libcob_la-termio.o
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-termio.lo -MD -MP -MF .deps/libcob_la-termio.Tpo -c termio.c -o libcob_la-termio.o >/dev/null 2>&1
    if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..      -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-screenio.lo -MD -MP -MF ".deps/libcob_la-screenio.Tpo" -c -o libcob_la-screenio.lo `test -f 'screenio.c' || echo './'`screenio.c; \
    then mv -f ".deps/libcob_la-screenio.Tpo" ".deps/libcob_la-screenio.Plo"; else rm -f ".deps/libcob_la-screenio.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-screenio.lo -MD -MP -MF .deps/libcob_la-screenio.Tpo -c screenio.c  -DDLL_EXPORT -DPIC -o .libs/libcob_la-screenio.o
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT libcob_la-screenio.lo -MD -MP -MF .deps/libcob_la-screenio.Tpo -c screenio.c -o libcob_la-screenio.o >/dev/null 2>&1
    /bin/sh ../libtool --tag=CC --mode=link gcc  -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -Wl,--export-all-symbols -Wl,--enable-auto-import  -o libcob.la -rpath /usr/local/lib -version-info 1:0:0 -no-undefined libcob_la-common.lo libcob_la-call.lo libcob_la-strings.lo libcob_la-move.lo libcob_la-numeric.lo libcob_la-intrinsic.lo libcob_la-fileio.lo libcob_la-termio.lo libcob_la-screenio.lo -lm -lgmp -ldb
    
    *** Warning: linker path does not have real file for library -lgmp.
    *** I have the capability to make that library automatically link in when
    *** you link to this library.  But I can only do this if you have a
    *** shared version of the library, which you do not appear to have
    *** because I did check the linker path looking for a file starting
    *** with libgmp and none of the candidates passed a file format test
    *** using a file magic. Last file checked: /lib/libgmp.dll.a
    
    *** Warning: linker path does not have real file for library -ldb.
    *** I have the capability to make that library automatically link in when
    *** you link to this library.  But I can only do this if you have a
    *** shared version of the library, which you do not appear to have
    *** because I did check the linker path looking for a file starting
    *** with libdb and none of the candidates passed a file format test
    *** using a file magic. Last file checked: /lib/libdb-5.3.dll.a
    *** The inter-library dependencies that have been dropped here will be
    *** automatically added whenever a program is linked with this library
    *** or is declared to -dlopen it.
    
    *** Since this library must not contain undefined symbols,
    *** because either the platform does not support them or
    *** it was explicitly requested with -no-undefined,
    *** libtool will only create a static version of it.
    ar cru .libs/libcob.a  libcob_la-common.o libcob_la-call.o libcob_la-strings.o libcob_la-move.o libcob_la-numeric.o libcob_la-intrinsic.o libcob_la-fileio.o libcob_la-termio.o libcob_la-screenio.o
    ranlib .libs/libcob.a
    creating libcob.la
    (cd .libs && rm -f libcob.la && ln -s ../libcob.la libcob.la)
    make[2]: Leaving directory '/cygdrive/z/dev/llvm/x64/GNU Cobol/gnu-cobol/libcob'
    Making all in cobc
    make[2]: Entering directory '/cygdrive/z/dev/llvm/x64/GNU Cobol/gnu-cobol/cobc'
    make  all-am
    make[3]: Entering directory '/cygdrive/z/dev/llvm/x64/GNU Cobol/gnu-cobol/cobc'
    if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobc-cobc.o -MD -MP -MF ".deps/cobc-cobc.Tpo" -c -o cobc-cobc.o `test -f 'cobc.c' || echo './'`cobc.c; \
    then mv -f ".deps/cobc-cobc.Tpo" ".deps/cobc-cobc.Po"; else rm -f ".deps/cobc-cobc.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobc-config.o -MD -MP -MF ".deps/cobc-config.Tpo" -c -o cobc-config.o `test -f 'config.c' || echo './'`config.c; \
    then mv -f ".deps/cobc-config.Tpo" ".deps/cobc-config.Po"; else rm -f ".deps/cobc-config.Tpo"; exit 1; fi
    config.c: In function 'cb_load_conf':
    config.c:165:4: warning: array subscript has type 'char' [-Wchar-subscripts]
        if (isgraph (*s)) {
        ^
    config.c:256:5: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (!isdigit (val[j])) {
         ^
    if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobc-tree.o -MD -MP -MF ".deps/cobc-tree.Tpo" -c -o cobc-tree.o `test -f 'tree.c' || echo './'`tree.c; \
    then mv -f ".deps/cobc-tree.Tpo" ".deps/cobc-tree.Po"; else rm -f ".deps/cobc-tree.Tpo"; exit 1; fi
    tree.c: In function 'cb_build_picture':
    tree.c:1142:5: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (!isdigit (*p)) {
         ^
    if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobc-reserved.o -MD -MP -MF ".deps/cobc-reserved.Tpo" -c -o cobc-reserved.o `test -f 'reserved.c' || echo './'`reserved.c; \
    then mv -f ".deps/cobc-reserved.Tpo" ".deps/cobc-reserved.Po"; else rm -f ".deps/cobc-reserved.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobc-error.o -MD -MP -MF ".deps/cobc-error.Tpo" -c -o cobc-error.o `test -f 'error.c' || echo './'`error.c; \
    then mv -f ".deps/cobc-error.Tpo" ".deps/cobc-error.Po"; else rm -f ".deps/cobc-error.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobc-parser.o -MD -MP -MF ".deps/cobc-parser.Tpo" -c -o cobc-parser.o `test -f 'parser.c' || echo './'`parser.c; \
    then mv -f ".deps/cobc-parser.Tpo" ".deps/cobc-parser.Po"; else rm -f ".deps/cobc-parser.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobc-scanner.o -MD -MP -MF ".deps/cobc-scanner.Tpo" -c -o cobc-scanner.o `test -f 'scanner.c' || echo './'`scanner.c; \
    then mv -f ".deps/cobc-scanner.Tpo" ".deps/cobc-scanner.Po"; else rm -f ".deps/cobc-scanner.Tpo"; exit 1; fi
    scanner.l: In function 'yylex':
    scanner.l:98:2: warning: array subscript has type 'char' [-Wchar-subscripts]
      /* line directive */
      ^
    if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobc-field.o -MD -MP -MF ".deps/cobc-field.Tpo" -c -o cobc-field.o `test -f 'field.c' || echo './'`field.c; \
    then mv -f ".deps/cobc-field.Tpo" ".deps/cobc-field.Po"; else rm -f ".deps/cobc-field.Tpo"; exit 1; fi
    field.c: In function 'cb_get_level':
    field.c:54:3: warning: array subscript has type 'char' [-Wchar-subscripts]
       if (!isdigit (*p)) {
       ^
    if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobc-typeck.o -MD -MP -MF ".deps/cobc-typeck.Tpo" -c -o cobc-typeck.o `test -f 'typeck.c' || echo './'`typeck.c; \
    then mv -f ".deps/cobc-typeck.Tpo" ".deps/cobc-typeck.Po"; else rm -f ".deps/cobc-typeck.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobc-codegen.o -MD -MP -MF ".deps/cobc-codegen.Tpo" -c -o cobc-codegen.o `test -f 'codegen.c' || echo './'`codegen.c; \
    then mv -f ".deps/cobc-codegen.Tpo" ".deps/cobc-codegen.Po"; else rm -f ".deps/cobc-codegen.Tpo"; exit 1; fi
    codegen.c: In function 'output_param':
    codegen.c:991:8: warning: variable 'extrefs' set but not used [-Wunused-but-set-variable]
      int   extrefs;
            ^
    if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobc-ppparse.o -MD -MP -MF ".deps/cobc-ppparse.Tpo" -c -o cobc-ppparse.o `test -f 'ppparse.c' || echo './'`ppparse.c; \
    then mv -f ".deps/cobc-ppparse.Tpo" ".deps/cobc-ppparse.Po"; else rm -f ".deps/cobc-ppparse.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobc-pplex.o -MD -MP -MF ".deps/cobc-pplex.Tpo" -c -o cobc-pplex.o `test -f 'pplex.c' || echo './'`pplex.c; \
    then mv -f ".deps/cobc-pplex.Tpo" ".deps/cobc-pplex.Po"; else rm -f ".deps/cobc-pplex.Tpo"; exit 1; fi
    /bin/sh ../libtool --tag=CC --mode=link gcc  -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k   -o cobc.exe  cobc-cobc.o cobc-config.o cobc-tree.o cobc-reserved.o cobc-error.o cobc-parser.o cobc-scanner.o cobc-field.o cobc-typeck.o cobc-codegen.o cobc-ppparse.o cobc-pplex.o  ../lib/libsupport.a
    mkdir .libs
    gcc -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -o cobc.exe cobc-cobc.o cobc-config.o cobc-tree.o cobc-reserved.o cobc-error.o cobc-parser.o cobc-scanner.o cobc-field.o cobc-typeck.o cobc-codegen.o cobc-ppparse.o cobc-pplex.o  ../lib/libsupport.a
    make[3]: Leaving directory '/cygdrive/z/dev/llvm/x64/GNU Cobol/gnu-cobol/cobc'
    make[2]: Leaving directory '/cygdrive/z/dev/llvm/x64/GNU Cobol/gnu-cobol/cobc'
    Making all in bin
    make[2]: Entering directory '/cygdrive/z/dev/llvm/x64/GNU Cobol/gnu-cobol/bin'
    if gcc -DHAVE_CONFIG_H -I. -I. -I..     -I.. -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobcrun-cobcrun.o -MD -MP -MF ".deps/cobcrun-cobcrun.Tpo" -c -o cobcrun-cobcrun.o `test -f 'cobcrun.c' || echo './'`cobcrun.c; \
    then mv -f ".deps/cobcrun-cobcrun.Tpo" ".deps/cobcrun-cobcrun.Po"; else rm -f ".deps/cobcrun-cobcrun.Tpo"; exit 1; fi
    /bin/sh ../libtool --tag=CC --mode=link gcc  -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -Wl,--export-all-symbols -Wl,--enable-auto-import  -o cobcrun.exe  cobcrun-cobcrun.o ../libcob/libcob.la
    mkdir .libs
    gcc -O2 -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -Wl,--export-all-symbols -Wl,--enable-auto-import -o cobcrun.exe cobcrun-cobcrun.o  ../libcob/.libs/libcob.a -lgmp -ldb
    cobcrun-cobcrun.o:cobcrun.c:(.text.startup+0x5d): undefined reference to `__imp_cob_init'
    cobcrun-cobcrun.o:cobcrun.c:(.text.startup+0x5d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_cob_init'
    cobcrun-cobcrun.o:cobcrun.c:(.text.startup+0xfffffffffffff447): undefined reference to `__imp_cob_resolve'
    /usr/bin/ld: cobcrun-cobcrun.o: bad reloc address 0x67 in section `.text.startup'
    collect2: error: ld returned 1 exit status
    Makefile:300: recipe for target 'cobcrun.exe' failed
    make[2]: *** [cobcrun.exe] Error 1
    make[2]: Leaving directory '/cygdrive/z/dev/llvm/x64/GNU Cobol/gnu-cobol/bin'
    Makefile:360: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/cygdrive/z/dev/llvm/x64/GNU Cobol/gnu-cobol'
    Makefile:253: recipe for target 'all' failed
    make: *** [all] Error 2
    
     
    Last edit: Simon Sobisch 2014-05-08
  • Simon Sobisch
    Simon Sobisch
    2014-05-08

    Depends... I guess you've tried to compile latest release (GNU Cobol 1.1), correct?

    If I remember correctly you'll need 2.x to compile on cygwin_x64 (currently only available via svn, if you don't have the client then install via cygwin setup).

    svn checkout https://svn.code.sf.net/p/open-cobol/code/branches/gnu-cobol-2.0
    

    Simon

     

  • Anonymous
    2014-09-30

    Neither 2.0 nor trunk compile with Cygwin. Do I have to use a VM?

     
  • Brian
    Brian
    2014-10-02

    1.1, 2.0 etc. compile fine with Cygwin 32bit & 64bit

    fix your dependencies

     
  • Simon Sobisch
    Simon Sobisch
    2014-10-02

    Please post config.log and the output from

    make clean
    make 2>&1 | tee mymake.out
    

    using gnucobol 2.0 branch. We'll surely fix this. If there are compiler errors we miss something in configure, if configure outputs an error it should be quite clear what to do.

    Simon

     

  • Anonymous
    2014-10-02

    Thanks Simon,

    ./configure is fine. make for GnuCobol 2.0 results in the attached output. I followed the installation description of B.Klein/2009. May be it should be updated.

    Marc

     
    Attachments
  • Simon Sobisch
    Simon Sobisch
    2014-10-02

    Hi Marc,

    the posted mymake.out cannot be from ./configure of GnuCOBOL 2.0 - the line nubmers are completely different. Please recheck, repost and add config.log, too.

    Simon

    BTW: And log in, if possible.

     
  • Simon Sobisch
    Simon Sobisch
    2014-10-02

    config.log reports 1.1, too. Get 2.0 from svn found in branches (!) or, if not possible, a slightly older version from the downloads area.

    Simon

     

  • Anonymous
    2014-10-03

    sorry, here are the gnu-cobol-2.0 results where make failed too:

     
    Attachments
  • Marc Dzaebel
    Marc Dzaebel
    2014-10-03

    And this is, what I did:
    cobol=gnu-cobol-2.0
    cd /cygdrive/c/oc
    rm -fr $cobol
    svn checkout https://svn.code.sf.net/p/open-cobol/code/branches/$cobol $cobol
    cd $cobol
    ./configure
    make 2>&1 | tee mymake.out

     
    Last edit: Marc Dzaebel 2014-10-03
    • Simon Sobisch
      Simon Sobisch
      2014-10-03

      It's a little bit weird as the error occurs in building gnucobol.info (not sure why it doesn't find the includefiles on your machine). Temporary workaround:

      cd doc
      touch gnucobol.info gnucobol.pdf
      

      and afterwards doing make again.

      Simon

       
  • Simon Sobisch
    Simon Sobisch
    2014-10-03

    OK, so your svn download didn't keep the timestamps and you don't have everything installed that is needed for rebuilding everything.

    Another touch...

    touch /cygdrive/c/oc/gnu-cobol-2.0/tests/testsuite
    

    and you get further

    Simon

     
  • Marc Dzaebel
    Marc Dzaebel
    2014-10-04

    after touching testsuite make check now result in:
    472 tests were run,
    21 failed (1 expected failure).
    17 tests were skipped.

    So I decided to rebuild with mentioned timestamps (use-commit-times=yes) but got no difference (see attachment). Are 21 failed tests ok?

     
    Attachments
  • Simon Sobisch
    Simon Sobisch
    2014-10-04

    Failed tests should not occur at all, skipped are fine. Please see tests/testsuite.log for yourself if you can see the reason for the failed tests. If not, post the file here.

    Simon

     
  • Marc Dzaebel
    Marc Dzaebel
    2014-10-04

    doesn't look like a log file but here is tests/testsuite.log

     
    Attachments
    • Simon Sobisch
      Simon Sobisch
      2014-10-04

      Summarizing the topic so far:

      • building GnuCOBOL on a Cygwin X86_64 platform works fine if either
        a) all developer tools are installed or
        b) use-commit-times=yes is used during svn checkout or
        c) a tarball (prepared with make dist) is used]
      • most works but there are some issues (I don't see a common problem in them) - some of the issues (for example test case 114) disappear if one does exactly the same as the testsuite does - but only manual [=not possible to debug]. I've reinstalled Cygwin X86_64 and can reproduce the issues.

      Conclusion: don't rely on your build but it's fine for testing purposes as most stuff works. If you find out what's special in these (or most) test cases we can dig in deeper. I may do so on my own but this won't be a big priority in my free time (as cygwin is the most exotic environment on Windows systems [OK, SUA would be more exotic but I've didn't seen someone trying to use this for GnuCOBOL]). Cygwin was the easiest setup "in the old times" but as 2.0 branch includes build_windows, download area includes win-prerequisites and VS Express is at least free to use (like in "free beer", not GnuFree like in "free speech") it's not the easiest way any more.

      Simon

       
      Last edit: Simon Sobisch 2014-10-05


Anonymous


Cancel   Add attachments