Unable to run configure correctly

ritesh
2013-02-25
2013-06-06
  • ritesh
    ritesh
    2013-02-25

    Hi, I've downloaded the file mingw-w64-v2.0.7.tar.gz in an attempt to build a cross compiler running on Red Hat to produce Win64 executables. I've attempted to follow the how-to build document here https://sourceforge.net/apps/trac/mingw-w64/wiki/Cross%20Win32%20and%20Win64%20compiler, however after running the configure command (in a separate directory).. "../mingw-w64-v2.0.7/configure -host=x86_64-w64-ming32 -disable-multilib" I get this error "Please check if the mingw-w64 header set and the build/host option are set correctly". As far as I can tell I'm meeting the pre-reqs so I'm unsure what I'm doing wrong…any help greatly appreciated.

     
  • Jonathan Yong
    Jonathan Yong
    2013-02-25

    Post your config.log file. Also, your -host has a typo.

     
  • ritesh
    ritesh
    2013-02-25

    Sorry for the delay…I've noted the typo, thanks! The output from the config.log is below:

    =====================================================

    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.

    It was created by mingw-w64 configure 2.0, which was
    generated by GNU Autoconf 2.68.  Invocation command line was

      $ ../mingw-w64-v2.0.7/configure -host=x86_64-w64-mingw32 -disable-multilib

    ## ------ ##
    ## Platform. ##
    ## ------ ##

    hostname = x3hdpmvlrhel3.buddy.fox
    uname -m = x86_64
    uname -r = 2.6.32-279.el6.x86_64
    uname -s = Linux
    uname -v = #1 SMP Wed Jun 13 18:24:36 EDT 2012

    /usr/bin/uname -p = unknown
    /bin/uname -X     = unknown

    /bin/arch              = x86_64
    /usr/bin/arch -k       = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo      = unknown
    /bin/machine           = unknown
    /usr/bin/oslevel       = unknown
    /bin/universe          = unknown

    PATH: /opt/gcc-4.5.2/bin
    PATH: /usr/local/sbin
    PATH: /sbin
    PATH: /bin
    PATH: /usr/sbin
    PATH: /usr/bin
    PATH: /root/bin

    ## ------- ##
    ## Core tests. ##
    ## ------- ##

    configure:1768: checking whether to enable maintainer-specific portions of Makefiles
    configure:1777: result: no
    configure:1806: checking for a BSD-compatible install
    configure:1874: result: /usr/bin/install -c
    configure:1885: checking whether build environment is sane
    configure:1935: result: yes
    configure:1984: checking for x86_64-w64-mingw32-strip
    configure:2014: result: no
    configure:2024: checking for strip
    configure:2040: found /usr/bin/strip
    configure:2051: result: strip
    configure:2076: checking for a thread-safe mkdir -p
    configure:2115: result: /bin/mkdir -p
    configure:2128: checking for gawk
    configure:2144: found /bin/gawk
    configure:2155: result: gawk
    configure:2166: checking whether make sets $(MAKE)
    configure:2188: result: yes
    configure:2273: checking build system type
    configure:2287: result: x86_64-unknown-linux-gnu
    configure:2307: checking host system type
    configure:2320: result: x86_64-w64-mingw32
    configure:2353: checking whether to build the headers
    configure:2382: result: yes
    configure:2385: checking whether to build the crt
    configure:2412: result: yes
    configure:2415: checking whether to build the optional libraries
    configure:2472: result: no
    configure:2475: checking whether to build the optional tools
    configure:2532: result: no
    configure:2680: creating ./config.status

    ## --------------- ##
    ## Running config.status. ##
    ## --------------- ##

    This file was extended by mingw-w64 config.status 2.0, which was
    generated by GNU Autoconf 2.68.  Invocation command line was

      CONFIG_FILES    =
      CONFIG_HEADERS  =
      CONFIG_LINKS    =
      CONFIG_COMMANDS =
      $ ./config.status

    on x3hdpmvlrhel3.buddy.fox

    config.status:841: creating Makefile
    config.status:841: creating config.h
    configure:3964: === configuring in mingw-w64-headers (/home/BUDDY/singhrk/scratch/ming64/build/mingw-w64-headers)
    configure:4027: running /bin/sh ../../mingw-w64-v2.0.7/mingw-w64-headers/configure -disable-option-checking '-prefix=/usr/local'  '-host=x86_64-w64-mingw32' '-disable-multilib' 'host_alias=x86_64-w64-min
    gw32' -cache-file=/dev/null -srcdir=../../mingw-w64-v2.0.7/mingw-w64-headers
    configure:3964: === configuring in mingw-w64-crt (/home/BUDDY/singhrk/scratch/ming64/build/mingw-w64-crt)
    configure:4027: running /bin/sh ../../mingw-w64-v2.0.7/mingw-w64-crt/configure -disable-option-checking '-prefix=/usr/local'  '-host=x86_64-w64-mingw32' '-disable-multilib' 'host_alias=x86_64-w64-mingw32
    ' -cache-file=/dev/null -srcdir=../../mingw-w64-v2.0.7/mingw-w64-crt
    configure:4032: error: ../../mingw-w64-v2.0.7/mingw-w64-crt/configure failed for mingw-w64-crt

    ## ----------- ##
    ## Cache variables. ##
    ## ----------- ##

    ac_cv_build=x86_64-unknown-linux-gnu
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=set
    ac_cv_env_host_alias_value=x86_64-w64-mingw32
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    ac_cv_host=x86_64-w64-mingw32
    ac_cv_path_install='/usr/bin/install -c'
    ac_cv_path_mkdir=/bin/mkdir
    ac_cv_prog_AWK=gawk
    ac_cv_prog_ac_ct_STRIP=strip
    ac_cv_prog_make_make_set=yes

    ## ----------- ##
    ## Output variables. ##
    ## ----------- ##

    ACLOCAL='${SHELL} /home/BUDDY/singhrk/scratch/ming64/mingw-w64-v2.0.7/build-aux/missing -run aclocal-1.11'
    AMTAR='${SHELL} /home/BUDDY/singhrk/scratch/ming64/mingw-w64-v2.0.7/build-aux/missing -run tar'
    AUTOCONF='${SHELL} /home/BUDDY/singhrk/scratch/ming64/mingw-w64-v2.0.7/build-aux/missing -run autoconf'
    AUTOHEADER='${SHELL} /home/BUDDY/singhrk/scratch/ming64/mingw-w64-v2.0.7/build-aux/missing -run autoheader'
    AUTOMAKE='${SHELL} /home/BUDDY/singhrk/scratch/ming64/mingw-w64-v2.0.7/build-aux/missing -run automake-1.11'
    AWK='gawk'
    CRT_FALSE='#'
    CRT_TRUE=''
    CYGPATH_W='echo'
    DEFS='-DHAVE_CONFIG_H'
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    HEADER_FALSE='#'
    HEADER_TRUE=''
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_PROGRAM='${INSTALL}'
    INSTALL_SCRIPT='${INSTALL}'
    INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
    LIBOBJS=''
    LIBRARIES_MANGLE_FALSE=''
    LIBRARIES_MANGLE_TRUE='#'
    LIBRARIES_PSEH_FALSE=''
    LIBRARIES_PSEH_TRUE='#'
    LIBS=''
    LTLIBOBJS=''
    MAINT='#'
    MAINTAINER_MODE_FALSE=''
    MAINTAINER_MODE_TRUE='#'
    MAKEINFO='${SHELL} /home/BUDDY/singhrk/scratch/ming64/mingw-w64-v2.0.7/build-aux/missing -run makeinfo'
    MKDIR_P='/bin/mkdir -p'
    PACKAGE='mingw-w64'
    PACKAGE_BUGREPORT='mingw-w64-public@lists.sourceforge.net'
    PACKAGE_NAME='mingw-w64'
    PACKAGE_STRING='mingw-w64 2.0'
    PACKAGE_TARNAME='mingw-w64'
    PACKAGE_URL=''
    PACKAGE_VERSION='2.0'
    PATH_SEPARATOR=':'
    SET_MAKE=''
    SHELL='/bin/sh'
    STRIP='strip'
    TOOLS_GENDEF_FALSE=''
    TOOLS_GENDEF_TRUE='#'
    TOOLS_GENIDL_FALSE=''
    TOOLS_GENIDL_TRUE='#'
    VERSION='2.0'
    am__isrc=' -I$(srcdir)'
    am__leading_dot='.'
    am__tar='${AMTAR} chof - "$$tardir"'
    am__untar='${AMTAR} xf -'
    bindir='${exec_prefix}/bin'
    build='x86_64-unknown-linux-gnu'
    build_alias=''
    build_cpu='x86_64'
    build_os='linux-gnu'
    build_vendor='unknown'
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    dvidir='${docdir}'
    exec_prefix='${prefix}'
    host='x86_64-w64-mingw32'
    host_alias='x86_64-w64-mingw32'
    host_cpu='x86_64'
    host_os='mingw32'
    host_vendor='w64'
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    install_sh='${SHELL} /home/BUDDY/singhrk/scratch/ming64/mingw-w64-v2.0.7/build-aux/install-sh'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    mkdir_p='/bin/mkdir -p'
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    prefix='/usr/local'
    program_transform_name='s,x,x,'
    psdir='${docdir}'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    subdirs=' mingw-w64-headers mingw-w64-crt'
    sysconfdir='${prefix}/etc'
    target_alias=''

    configure: exit 1
    #

    =================================================

    Thanks
    Ritesh

     
  • Jonathan Yong
    Jonathan Yong
    2013-02-25

    You ran the wrong configure, run the one in mingw-w64-crt.

     
  • ritesh
    ritesh
    2013-02-26

    Hi, thanks for the reply, I've done what you've suggested (having cleared out my build directory first), unfortunately it's giving me the same error. I've used the following command "../mingw-w64-v2.0.7/mingw-w64-crt/configure -host=x86_64-w64-mingw32".

     
  • Jonathan Yong
    Jonathan Yong
    2013-02-26

    Post the new config.log from mingw-w64-crt.

     
  • ritesh
    ritesh
    2013-02-26

    Hi, the new log is below:

     
  • ritesh
    ritesh
    2013-02-26

    Try that again!

    =======================================================

    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.

    It was created by mingw-w64-runtime configure 2.0, which was
    generated by GNU Autoconf 2.68.  Invocation command line was

      $ ../mingw-w64-v2.0.7/mingw-w64-crt/configure -host=x86_64-w64-mingw32

    ## ------ ##
    ## Platform. ##
    ## ------ ##

    hostname = x3hdpmvlrhel3.buddy.fox
    uname -m = x86_64
    uname -r = 2.6.32-279.el6.x86_64
    uname -s = Linux
    uname -v = #1 SMP Wed Jun 13 18:24:36 EDT 2012

    /usr/bin/uname -p = unknown
    /bin/uname -X     = unknown

    /bin/arch              = x86_64
    /usr/bin/arch -k       = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo      = unknown
    /bin/machine           = unknown
    /usr/bin/oslevel       = unknown
    /bin/universe          = unknown

    PATH: /opt/gcc-4.5.2/bin
    PATH: /usr/local/sbin
    PATH: /sbin
    PATH: /bin
    PATH: /usr/sbin
    PATH: /usr/bin
    PATH: /root/bin

    ## ------- ##
    ## Core tests. ##
    ## ------- ##

    configure:2185: checking for a BSD-compatible install
    configure:2253: result: /usr/bin/install -c
    configure:2264: checking whether build environment is sane
    configure:2314: result: yes
    configure:2363: checking for x86_64-w64-mingw32-strip
    configure:2393: result: no
    configure:2403: checking for strip
    configure:2419: found /usr/bin/strip
    configure:2430: result: strip
    configure:2455: checking for a thread-safe mkdir -p
    configure:2494: result: /bin/mkdir -p
    configure:2507: checking for gawk
    configure:2523: found /bin/gawk
    configure:2534: result: gawk
    configure:2545: checking whether make sets $(MAKE)
    configure:2567: result: yes
    configure:2648: checking whether to enable maintainer-specific portions of Makefiles
    configure:2657: result: no
    configure:2675: checking build system type
    configure:2689: result: x86_64-unknown-linux-gnu
    configure:2709: checking host system type
    configure:2722: result: x86_64-w64-mingw32
    configure:2743: checking for sysroot
    configure:2780: result: no
    configure:2800: checking for a sed that does not truncate output
    configure:2864: result: /bin/sed
    configure:2877: checking for x86_64-w64-mingw32-gcc
    configure:2907: result: no
    configure:2917: checking for gcc
    configure:2933: found /opt/gcc-4.5.2/bin/gcc
    configure:2944: result: gcc
    configure:3173: checking for C compiler version
    configure:3182: gcc -version >&5
    gcc (GCC) 4.5.2
    Copyright (C) 2010 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    configure:3193: $? = 0
    configure:3182: gcc -v >&5
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/opt/gcc-4.5.2/libexec/gcc/x86_64-unknown-linux-gnu/4.5.2/lto-wrapper
    Target: x86_64-unknown-linux-gnu
    Configured with: ../gcc-4.5.2/configure -prefix=/opt/gcc-4.5.2 -without-gcj : (reconfigured) ../gcc-4.5.2/configure -prefix=/opt/gcc-4.5.2 -enable-languages=c,c++ : (reconfigured) ../gcc-4.5.2/configure -prefix=/opt/gcc-4.5.2 -enable-languages=c,c++ -without-libjava -without-gcj : (reconfigured) ../gcc-4.5.2/configure -prefix=/opt/gcc-4.5.2 -enable-languages=c,c++,fortran -without-libjava -without-gcj
    Thread model: posix
    gcc version 4.5.2 (GCC)
    configure:3193: $? = 0
    configure:3182: gcc -V >&5
    gcc: '-V' option must have argument
    configure:3193: $? = 1
    configure:3182: gcc -qversion >&5
    gcc: unrecognized option '-qversion'
    gcc: no input files
    configure:3193: $? = 1
    configure:3213: gcc -o conftest    conftest.c  >&5
    configure:3217: $? = 0
    configure:3236: checking whether the C compiler works
    configure:3258: gcc    conftest.c  >&5
    configure:3262: $? = 0
    configure:3310: result: yes
    configure:3313: checking for C compiler default output file name
    configure:3315: result: a.out
    configure:3321: checking for suffix of executables
    configure:3328: gcc -o conftest    conftest.c  >&5
    configure:3332: $? = 0
    configure:3354: result:
    configure:3376: checking whether we are cross compiling
    configure:3384: gcc -o conftest    conftest.c  >&5
    configure:3388: $? = 0
    configure:3395: ./conftest
    configure:3399: $? = 0
    configure:3414: result: no
    configure:3472: checking for suffix of object files
    configure:3494: gcc -c   conftest.c >&5
    configure:3498: $? = 0
    configure:3519: result: o
    configure:3523: checking whether we are using the GNU C compiler
    configure:3542: gcc -c   conftest.c >&5
    configure:3542: $? = 0
    configure:3551: result: yes
    configure:3560: checking whether gcc accepts -g
    configure:3580: gcc -c -g  conftest.c >&5
    configure:3580: $? = 0
    configure:3621: result: yes
    configure:3638: checking for gcc option to accept ISO C89
    configure:3702: gcc  -c -g -O2  conftest.c >&5
    configure:3702: $? = 0
    configure:3715: result: none needed
    configure:3746: checking for style of include used by make
    configure:3774: result: GNU
    configure:3799: checking dependency style of gcc
    configure:3909: result: gcc3
    configure:3938: checking for x86_64-w64-mingw32-g++
    configure:3968: result: no
    configure:3938: checking for x86_64-w64-mingw32-c++
    configure:3968: result: no
    configure:3938: checking for x86_64-w64-mingw32-gpp
    configure:3968: result: no
    configure:3938: checking for x86_64-w64-mingw32-aCC
    configure:3968: result: no
    configure:3938: checking for x86_64-w64-mingw32-CC
    configure:3968: result: no
    configure:3938: checking for x86_64-w64-mingw32-cxx
    configure:3968: result: no
    configure:3938: checking for x86_64-w64-mingw32-cc++
    configure:3968: result: no
    configure:3938: checking for x86_64-w64-mingw32-cl.exe
    configure:3968: result: no
    configure:3938: checking for x86_64-w64-mingw32-FCC
    configure:3968: result: no
    configure:3938: checking for x86_64-w64-mingw32-KCC
    configure:3968: result: no
    configure:3938: checking for x86_64-w64-mingw32-RCC
    configure:3968: result: no
    configure:3938: checking for x86_64-w64-mingw32-xlC_r
    configure:3968: result: no
    configure:3938: checking for x86_64-w64-mingw32-xlC
    configure:3968: result: no
    configure:3982: checking for g++
    configure:3998: found /opt/gcc-4.5.2/bin/g++
    configure:4009: result: g++
    configure:4036: checking for C++ compiler version
    configure:4045: g++ -version >&5
    g++ (GCC) 4.5.2
    Copyright (C) 2010 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    configure:4056: $? = 0
    configure:4045: g++ -v >&5
    Using built-in specs.
    COLLECT_GCC=g++
    COLLECT_LTO_WRAPPER=/opt/gcc-4.5.2/libexec/gcc/x86_64-unknown-linux-gnu/4.5.2/lto-wrapper
    Target: x86_64-unknown-linux-gnu
    Configured with: ../gcc-4.5.2/configure -prefix=/opt/gcc-4.5.2 -without-gcj : (reconfigured) ../gcc-4.5.2/configure -prefix=/opt/gcc-4.5.2 -enable-languages=c,c++ : (reconfigured) ../gcc-4.5.2/configure -prefix=/opt/gcc-4.5.2 -enable-languages=c,c++ -without-libjava -without-gcj : (reconfigured) ../gcc-4.5.2/configure -prefix=/opt/gcc-4.5.2 -enable-languages=c,c++,fortran -without-libjava -without-gcj
    Thread model: posix
    gcc version 4.5.2 (GCC)
    configure:4056: $? = 0
    configure:4045: g++ -V >&5
    g++: '-V' option must have argument
    configure:4056: $? = 1
    configure:4045: g++ -qversion >&5
    g++: unrecognized option '-qversion'
    g++: no input files
    configure:4056: $? = 1
    configure:4060: checking whether we are using the GNU C++ compiler
    configure:4079: g++ -c   conftest.cpp >&5
    configure:4079: $? = 0
    configure:4088: result: yes
    configure:4097: checking whether g++ accepts -g
    configure:4117: g++ -c -g  conftest.cpp >&5
    configure:4117: $? = 0
    configure:4158: result: yes
    configure:4183: checking dependency style of g++
    configure:4293: result: gcc3
    configure:4312: checking for x86_64-w64-mingw32-ranlib
    configure:4342: result: no
    configure:4352: checking for ranlib
    configure:4368: found /usr/bin/ranlib
    configure:4379: result: ranlib
    configure:4404: checking for x86_64-w64-mingw32-dlltool
    configure:4434: result: no
    configure:4444: checking for dlltool
    configure:4474: result: no
    configure:4502: checking dependency style of gcc
    configure:4610: result: gcc3
    configure:4628: checking for x86_64-w64-mingw32-ar
    configure:4658: result: no
    configure:4668: checking for ar
    configure:4684: found /usr/bin/ar
    configure:4695: result: ar
    configure:4720: checking for x86_64-w64-mingw32-as
    configure:4750: result: no
    configure:4760: checking for as
    configure:4776: found /usr/bin/as
    configure:4787: result: as
    configure:4810: checking whether gcc and cc understand -c and -o together
    configure:4841: gcc -c conftest.c -o conftest2.o >&5
    configure:4845: $? = 0
    configure:4851: gcc -c conftest.c -o conftest2.o >&5
    configure:4855: $? = 0
    configure:4866: cc -c conftest.c >&5
    configure:4870: $? = 0
    configure:4878: cc -c conftest.c -o conftest2.o >&5
    configure:4882: $? = 0
    configure:4888: cc -c conftest.c -o conftest2.o >&5
    configure:4892: $? = 0
    configure:4910: result: yes
    configure:4941: checking whether to build the Win32 runtime
    configure:4957: gcc -c -g -O2 -m32  conftest.c >&5
    configure:4957: $? = 0
    configure:4963: result: yes
    configure:4982: checking whether to build the Win64 runtime
    configure:4998: gcc -c -g -O2 -m64  conftest.c >&5
    configure:4998: $? = 0
    configure:5004: result: yes
    configure:5076: checking whether to enable globbing
    configure:5098: result: no
    configure:5101: checking whether to enable leading underscores
    configure:5126: result: yes
    configure:5129: checking whether to enable private exports
    configure:5154: result: no
    configure:5157: checking whether to enable delay import libs
    configure:5182: result: no
    configure:5185: checking whether the compiler supports -municode
    configure:5202: gcc -c -g -O2 -municode  conftest.c >&5
    cc1: error: unrecognized command line option "-municode"
    configure:5202: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "mingw-w64-runtime"
    | #define PACKAGE_TARNAME "mingw-w64-runtime"
    | #define PACKAGE_VERSION "2.0"
    | #define PACKAGE_STRING "mingw-w64-runtime 2.0"
    | #define PACKAGE_BUGREPORT "mingw-w64-public@lists.sourceforge.net"
    | #define PACKAGE_URL ""
    | #define PACKAGE "mingw-w64-runtime"
    | #define VERSION "2.0"
    | #define __ENABLE_GLOBBING 0
    | /* end confdefs.h.  */
    |
    | #ifndef UNICODE
    | # error UNICODE not defined with -municode
    | #endif
    |
    configure:5219: result: no
    configure:5248: checking how to run the C preprocessor
    configure:5279: gcc -E  conftest.c
    configure:5279: $? = 0
    configure:5293: gcc -E  conftest.c
    conftest.c:12:28: fatal error: ac_nonexistent.h: No such file or directory
    compilation terminated.
    configure:5293: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "mingw-w64-runtime"
    | #define PACKAGE_TARNAME "mingw-w64-runtime"
    | #define PACKAGE_VERSION "2.0"
    | #define PACKAGE_STRING "mingw-w64-runtime 2.0"
    | #define PACKAGE_BUGREPORT "mingw-w64-public@lists.sourceforge.net"
    | #define PACKAGE_URL ""
    | #define PACKAGE "mingw-w64-runtime"
    | #define VERSION "2.0"
    | #define __ENABLE_GLOBBING 0
    | /* end confdefs.h.  */
    | #include <ac_nonexistent.h>
    configure:5318: result: gcc -E
    configure:5338: gcc -E  conftest.c
    configure:5338: $? = 0
    configure:5352: gcc -E  conftest.c
    conftest.c:12:28: fatal error: ac_nonexistent.h: No such file or directory
    compilation terminated.
    configure:5352: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "mingw-w64-runtime"
    | #define PACKAGE_TARNAME "mingw-w64-runtime"
    | #define PACKAGE_VERSION "2.0"
    | #define PACKAGE_STRING "mingw-w64-runtime 2.0"
    | #define PACKAGE_BUGREPORT "mingw-w64-public@lists.sourceforge.net"
    | #define PACKAGE_URL ""
    | #define PACKAGE "mingw-w64-runtime"
    | #define VERSION "2.0"
    | #define __ENABLE_GLOBBING 0
    | /* end confdefs.h.  */
    | #include <ac_nonexistent.h>
    configure:5381: checking for grep that handles long lines and -e
    configure:5439: result: /bin/grep
    configure:5444: checking for egrep
    configure:5506: result: /bin/grep -E
    configure:5511: checking for ANSI C header files
    configure:5531: gcc -c -g -O2  conftest.c >&5
    configure:5531: $? = 0
    configure:5604: gcc -o conftest -g -O2   conftest.c  >&5
    configure:5604: $? = 0
    configure:5604: ./conftest
    configure:5604: $? = 0
    configure:5615: result: yes
    configure:5628: checking for sys/types.h
    configure:5628: gcc -c -g -O2  conftest.c >&5
    configure:5628: $? = 0
    configure:5628: result: yes
    configure:5628: checking for sys/stat.h
    configure:5628: gcc -c -g -O2  conftest.c >&5
    configure:5628: $? = 0
    configure:5628: result: yes
    configure:5628: checking for stdlib.h
    configure:5628: gcc -c -g -O2  conftest.c >&5
    configure:5628: $? = 0
    configure:5628: result: yes
    configure:5628: checking for string.h
    configure:5628: gcc -c -g -O2  conftest.c >&5
    configure:5628: $? = 0
    configure:5628: result: yes
    configure:5628: checking for memory.h
    configure:5628: gcc -c -g -O2  conftest.c >&5
    configure:5628: $? = 0
    configure:5628: result: yes
    configure:5628: checking for strings.h
    configure:5628: gcc -c -g -O2  conftest.c >&5
    configure:5628: $? = 0
    configure:5628: result: yes
    configure:5628: checking for inttypes.h
    configure:5628: gcc -c -g -O2  conftest.c >&5
    configure:5628: $? = 0
    configure:5628: result: yes
    configure:5628: checking for stdint.h
    configure:5628: gcc -c -g -O2  conftest.c >&5
    configure:5628: $? = 0
    configure:5628: result: yes
    configure:5628: checking for unistd.h
    configure:5628: gcc -c -g -O2  conftest.c >&5
    configure:5628: $? = 0
    configure:5628: result: yes
    configure:5640: checking _mingw_mac.h usability
    configure:5640: gcc -c -g -O2  conftest.c >&5
    conftest.c:55:24: fatal error: _mingw_mac.h: No such file or directory
    compilation terminated.
    configure:5640: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "mingw-w64-runtime"
    | #define PACKAGE_TARNAME "mingw-w64-runtime"
    | #define PACKAGE_VERSION "2.0"
    | #define PACKAGE_STRING "mingw-w64-runtime 2.0"
    | #define PACKAGE_BUGREPORT "mingw-w64-public@lists.sourceforge.net"
    | #define PACKAGE_URL ""
    | #define PACKAGE "mingw-w64-runtime"
    | #define VERSION "2.0"
    | #define __ENABLE_GLOBBING 0
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define HAVE_UNISTD_H 1
    | /* end confdefs.h.  */
    | #include <stdio.h>
    | #ifdef HAVE_SYS_TYPES_H
    | # include <sys/types.h>
    | #endif
    | #ifdef HAVE_SYS_STAT_H
    | # include <sys/stat.h>
    | #endif
    | #ifdef STDC_HEADERS
    | # include <stdlib.h>
    | # include <stddef.h>
    | #else
    | # ifdef HAVE_STDLIB_H
    | #  include <stdlib.h>
    | # endif
    | #endif
    | #ifdef HAVE_STRING_H
    | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    | #  include <memory.h>
    | # endif
    | # include <string.h>
    | #endif
    | #ifdef HAVE_STRINGS_H
    | # include <strings.h>
    | #endif
    | #ifdef HAVE_INTTYPES_H
    | # include <inttypes.h>
    | #endif
    | #ifdef HAVE_STDINT_H
    | # include <stdint.h>
    | #endif
    | #ifdef HAVE_UNISTD_H
    | # include <unistd.h>
    | #endif
    | #include <_mingw_mac.h>
    configure:5640: result: no
    configure:5640: checking _mingw_mac.h presence
    configure:5640: gcc -E  conftest.c
    conftest.c:22:24: fatal error: _mingw_mac.h: No such file or directory
    compilation terminated.
    configure:5640: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "mingw-w64-runtime"
    | #define PACKAGE_TARNAME "mingw-w64-runtime"
    | #define PACKAGE_VERSION "2.0"
    | #define PACKAGE_STRING "mingw-w64-runtime 2.0"
    | #define PACKAGE_BUGREPORT "mingw-w64-public@lists.sourceforge.net"
    | #define PACKAGE_URL ""
    | #define PACKAGE "mingw-w64-runtime"
    | #define VERSION "2.0"
    | #define __ENABLE_GLOBBING 0
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define HAVE_UNISTD_H 1
    | /* end confdefs.h.  */
    | #include <_mingw_mac.h>
    configure:5640: result: no
    configure:5640: checking for _mingw_mac.h
    configure:5640: result: no
    configure:5644: error: Please check if the mingw-w64 header set and the build/host option are set properly.

    ## ----------- ##
    ## Cache variables. ##
    ## ----------- ##

    ac_cv_build=x86_64-unknown-linux-gnu
    ac_cv_c_compiler_gnu=yes
    ac_cv_cxx_compiler_gnu=yes
    ac_cv_env_CCASFLAGS_set=
    ac_cv_env_CCASFLAGS_value=
    ac_cv_env_CCAS_set=
    ac_cv_env_CCAS_value=
    ac_cv_env_CCC_set=
    ac_cv_env_CCC_value=
    ac_cv_env_CC_set=
    ac_cv_env_CC_value=
    ac_cv_env_CFLAGS_set=
    ac_cv_env_CFLAGS_value=
    ac_cv_env_CPPFLAGS_set=
    ac_cv_env_CPPFLAGS_value=
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_CXXFLAGS_set=
    ac_cv_env_CXXFLAGS_value=
    ac_cv_env_CXX_set=
    ac_cv_env_CXX_value=
    ac_cv_env_LDFLAGS_set=
    ac_cv_env_LDFLAGS_value=
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=set
    ac_cv_env_host_alias_value=x86_64-w64-mingw32
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    ac_cv_header__mingw_mac_h=no
    ac_cv_header_inttypes_h=yes
    ac_cv_header_memory_h=yes
    ac_cv_header_stdc=yes
    ac_cv_header_stdint_h=yes
    ac_cv_header_stdlib_h=yes
    ac_cv_header_string_h=yes
    ac_cv_header_strings_h=yes
    ac_cv_header_sys_stat_h=yes
    ac_cv_header_sys_types_h=yes
    ac_cv_header_unistd_h=yes
    ac_cv_host=x86_64-w64-mingw32
    ac_cv_objext=o
    ac_cv_path_EGREP='/bin/grep -E'
    ac_cv_path_GREP=/bin/grep
    ac_cv_path_SED=/bin/sed
    ac_cv_path_install='/usr/bin/install -c'
    ac_cv_path_mkdir=/bin/mkdir
    ac_cv_prog_AWK=gawk
    ac_cv_prog_CPP='gcc -E'
    ac_cv_prog_ac_ct_AR=ar
    ac_cv_prog_ac_ct_AS=as
    ac_cv_prog_ac_ct_CC=gcc
    ac_cv_prog_ac_ct_CXX=g++
    ac_cv_prog_ac_ct_RANLIB=ranlib
    ac_cv_prog_ac_ct_STRIP=strip
    ac_cv_prog_cc_c89=
    ac_cv_prog_cc_g=yes
    ac_cv_prog_cc_gcc_c_o=yes
    ac_cv_prog_cxx_g=yes
    ac_cv_prog_make_make_set=yes
    am_cv_CCAS_dependencies_compiler_type=gcc3
    am_cv_CC_dependencies_compiler_type=gcc3
    am_cv_CXX_dependencies_compiler_type=gcc3

    ## ----------- ##
    ## Output variables. ##
    ## ----------- ##

    ACLOCAL='${SHELL} /home/BUDDY/singhrk/scratch/ming64/mingw-w64-v2.0.7/mingw-w64-crt/build-aux/missing -run aclocal-1.11'
    ADD_CXX_ONLY_WARNING_FLAGS=''
    ADD_C_CXX_WARNING_FLAGS=''
    ADD_C_ONLY_WARNING_FLAGS=''
    AMDEPBACKSLASH='\'
    AMDEP_FALSE='#'
    AMDEP_TRUE=''
    AMTAR='${SHELL} /home/BUDDY/singhrk/scratch/ming64/mingw-w64-v2.0.7/mingw-w64-crt/build-aux/missing -run tar'
    AR='ar'
    AS='as'
    AUTOCONF='${SHELL} /home/BUDDY/singhrk/scratch/ming64/mingw-w64-v2.0.7/mingw-w64-crt/build-aux/missing -run autoconf'
    AUTOHEADER='${SHELL} /home/BUDDY/singhrk/scratch/ming64/mingw-w64-v2.0.7/mingw-w64-crt/build-aux/missing -run autoheader'
    AUTOMAKE='${SHELL} /home/BUDDY/singhrk/scratch/ming64/mingw-w64-v2.0.7/mingw-w64-crt/build-aux/missing -run automake-1.11'
    AWK='gawk'
    CC='gcc'
    CCAS='gcc'
    CCASDEPMODE='depmode=gcc3'
    CCASFLAGS='-g -O2'
    CCDEPMODE='depmode=gcc3'
    CFLAGS='-g -O2'
    CPP='gcc -E'
    CPPFLAGS=''
    CXX='g++'
    CXXDEPMODE='depmode=gcc3'
    CXXFLAGS='-g -O2'
    CYGPATH_W='echo'
    DEFS=''
    DELAY_IMPORT_LIBS_FALSE=''
    DELAY_IMPORT_LIBS_TRUE='#'
    DEPDIR='.deps'
    DLLTOOL=':'
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP='/bin/grep -E'
    ENABLE_TESTS_UNICODE_FALSE=''
    ENABLE_TESTS_UNICODE_TRUE='#'
    EXEEXT=''
    GREP='/bin/grep'
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_PROGRAM='${INSTALL}'
    INSTALL_SCRIPT='${INSTALL}'
    INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
    LDFLAGS=''
    LIB32SUFFIXDIR='lib32'
    LIB32_FALSE='#'
    LIB32_TRUE=''
    LIB64SUFFIXDIR='lib'
    LIB64_FALSE='#'
    LIB64_TRUE=''
    LIBCE_FALSE=''
    LIBCE_TRUE='#'
    LIBOBJS=''
    LIBS=''
    LTLIBOBJS=''
    MAINT='#'
    MAINTAINER_MODE_FALSE=''
    MAINTAINER_MODE_TRUE='#'
    MAKEINFO='${SHELL} /home/BUDDY/singhrk/scratch/ming64/mingw-w64-v2.0.7/mingw-w64-crt/build-aux/missing -run makeinfo'
    MKDIR_P='/bin/mkdir -p'
    OBJEXT='o'
    PACKAGE='mingw-w64-runtime'
    PACKAGE_BUGREPORT='mingw-w64-public@lists.sourceforge.net'
    PACKAGE_NAME='mingw-w64-runtime'
    PACKAGE_STRING='mingw-w64-runtime 2.0'
    PACKAGE_TARNAME='mingw-w64-runtime'
    PACKAGE_URL=''
    PACKAGE_VERSION='2.0'
    PATH_SEPARATOR=':'
    PRIVATE_EXPORTS_FALSE=''
    PRIVATE_EXPORTS_TRUE='#'
    RANLIB='ranlib'
    SED='/bin/sed'
    SET_MAKE=''
    SHELL='/bin/sh'
    STRIP='strip'
    TARGET_SYSTEM_ROOT=''
    UNDERSCORES_FALSE='#'
    UNDERSCORES_TRUE=''
    VERSION='2.0'
    WITHSYSROOT_FALSE=''
    WITHSYSROOT_TRUE='#'
    ac_ct_CC='gcc'
    ac_ct_CXX='g++'
    am__EXEEXT_FALSE=''
    am__EXEEXT_TRUE=''
    am__fastdepCCAS_FALSE='#'
    am__fastdepCCAS_TRUE=''
    am__fastdepCC_FALSE='#'
    am__fastdepCC_TRUE=''
    am__fastdepCXX_FALSE='#'
    am__fastdepCXX_TRUE=''
    am__include='include'
    am__isrc=' -I$(srcdir)'
    am__leading_dot='.'
    am__quote=''
    am__tar='${AMTAR} chof - "$$tardir"'
    am__untar='${AMTAR} xf -'
    bindir='${exec_prefix}/bin'
    build='x86_64-unknown-linux-gnu'
    build_alias=''
    build_cpu='x86_64'
    build_os='linux-gnu'
    build_vendor='unknown'
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    dvidir='${docdir}'
    exec_prefix='NONE'
    host='x86_64-w64-mingw32'
    host_alias='x86_64-w64-mingw32'
    host_cpu='x86_64'
    host_os='mingw32'
    host_vendor='w64'
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    install_sh='${SHELL} /home/BUDDY/singhrk/scratch/ming64/mingw-w64-v2.0.7/mingw-w64-crt/build-aux/install-sh'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    mkdir_p='/bin/mkdir -p'
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    prefix='NONE'
    program_transform_name='s,x,x,'
    psdir='${docdir}'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    sysconfdir='${prefix}/etc'
    target_alias=''

    ## ------- ##
    ## confdefs.h. ##
    ## ------- ##

    /* confdefs.h */
    #define PACKAGE_NAME "mingw-w64-runtime"
    #define PACKAGE_TARNAME "mingw-w64-runtime"
    #define PACKAGE_VERSION "2.0"
    #define PACKAGE_STRING "mingw-w64-runtime 2.0"
    #define PACKAGE_BUGREPORT "mingw-w64-public@lists.sourceforge.net"
    #define PACKAGE_URL ""
    #define PACKAGE "mingw-w64-runtime"
    #define VERSION "2.0"
    #define __ENABLE_GLOBBING 0
    #define STDC_HEADERS 1
    #define HAVE_SYS_TYPES_H 1
    #define HAVE_SYS_STAT_H 1
    #define HAVE_STDLIB_H 1
    #define HAVE_STRING_H 1
    #define HAVE_MEMORY_H 1
    #define HAVE_STRINGS_H 1
    #define HAVE_INTTYPES_H 1
    #define HAVE_STDINT_H 1
    #define HAVE_UNISTD_H 1

    configure: exit 1

    ====================================================

    Thanks
    Ritesh

     
  • Jonathan Yong
    Jonathan Yong
    2013-02-26

    You have no cross compiler installed, build a bootstrap GCC before building the CRT. Also, you should really set your -prefix if you don't want to accidentally install mingw headers into your linux areas. Read the guide again.

     
  • ritesh
    ritesh
    2013-02-26

    Ok, will do, thanks for your help.

    Ritesh

     
  • NightStrike
    NightStrike
    2013-03-28

    Ritesh, you might be interested in either 1) the mingw-w64 packages that are available direct from RedHat for Fedora, or 2) our makefile that builds everything for you in one step.  The latter is in our svn under experimental/buildsystem/makebuildroot.mk