Page 1 of 1

How to install mingW32

Posted: 24. Apr 2015, 00:35
by ciremay
hello,
I'd like to install mingW32. I have downloaded the mingW32 tarbal from sourceforge.net and try to install it but seems I didn't have some dependency files.
Is there any automatic way to install it?
for example on fedora Linux it can be installed by typing: yum install mingw32*
how do I do that on SalixOS ?
thanks

Re: How to install mingW32

Posted: 24. Apr 2015, 07:59
by gapan
A search reveals that nothing by that name is available as a package or a SlackBuild, so no, there is no "easy" way to install it. You'll have to compile and install it manually. Other than that is unclear what tarball you're referring to, what dependency files are missing, what you tried or what errors you got...

Re: How to install mingW32

Posted: 27. Apr 2015, 00:55
by ciremay
gapan wrote:A search reveals that nothing by that name is available as a package or a SlackBuild, so no, there is no "easy" way to install it. You'll have to compile and install it manually. Other than that is unclear what tarball you're referring to, what dependency files are missing, what you tried or what errors you got...
tarball = x86-mingw32-build-1.0-sh.tar.bz2
it contains script: x86-mingw32-build.sh
I have downloaded related packages on: /home/r831/packages/mingw-3.4.5
[
gcc-core-3.4.5-20060117-2-src.tar.gz
binutils-2.19.1-src.tar.gz
mingwrt-3.15.2-mingw32-src.tar.gz
w32api-3.13-mingw32-src.tar.gz
gcc-ada-3.4.5-20060117-2-src.tar.gz
gcc-g++-3.4.5-20060117-2-src.tar.gz
gcc-g77-3.4.5-20060117-2-src.tar.gz
gcc-java-3.4.5-20060117-2-src.tar.gz
gcc-objc-3.4.5-20060117-2-src.tar.gz
]
I run the script and here's the output:

Code: Select all

r831[x86-mingw32-build-1.0]$ sh x86-mingw32-build.sh

 This script will build and install a locally hosted cross-compiler for the
 i386-mingw32 target.  This comprises the following components:--

    binutils    assembler, linker and library management tools; these
                must be built for the i386-mingw32 target, and should be
                installed prior to building GCC itself.

    headers     the header files for the mingw-runtime and the w32api
                libraries; these too, are best installed before GCC
                is built.

    gcc         the GCC compiler itself, complete with all supported
                source language packages.

    w32api      the runtime libraries supporting the Win32 API.

    mingwrt (a.k.a. mingw-runtime)
                additional libraries specific to the i386-mingw32 target.

 For a first time installation, you should build all of the above.  On the
 other hand, if you are upgrading an existing installation, you may wish to
 select components individually, to reduce the build time.

 Do you wish to select components individually? (Default: NO)? YES

 Would you like to build the `headers' component? (Default: YES) YES
 Would you like to build the `binutils' component? (Default: YES) YES
 Would you like to build the `gcc' component? (Default: YES) YES
 Would you like to build the `w32api' component? (Default: YES) YES
 Would you like to build the `mingw-runtime' component? (Default: YES) YES

 Before proceeding to build the cross-compiler, the following packages must
 be downloaded to a local package directory of your choice:--

    gcc-core-3.4.5-20060117-2-src.tar.gz
    binutils-2.19.1-src.tar.gz
    mingwrt-3.15.2-mingw32-src.tar.gz
    w32api-3.13-mingw32-src.tar.gz

 Each of these packages is obtainable from the MinGW project download page,
 found at https://sourceforge.net/project/showfiles.php?group_id=2435.  I can
 automatically download each of the versions specified above; alternatively
 you may choose to manually download these, or any alternative versions of
 your choice; you are advised to choose the most recent versions published
 under the `Current' package designation.

 Should I select the source packages for building the cross compiler by:--
   1) Using exactly the above versions, downloading if necessary, or...
   2) Selecting from existing versions in your package directory?

 Please enter your preferred option: (Default: 1): 2

 You have chosen not to download any new packages at this time;
 to continue, you must already have the necessary packages available, in
 some suitable package repository.  If these have not yet been downloaded,
 please do that now; you may get them from:--

    https://sourceforge.net/project/showfiles.php?group_id=2435

 For reference, here is the list of mandatory packages again;
 (remember, you may substitute alternative versions, if preferred):--

    gcc-core-3.4.5-20060117-2-src.tar.gz
    binutils-2.19.1-src.tar.gz
    mingwrt-3.15.2-mingw32-src.tar.gz
    w32api-3.13-mingw32-src.tar.gz

 In addition to these, you may also require any of these optional extra
 packages, if you want your cross-compiler to support other languages,
 in addition to `C'; (if you chose an alternative `gcc-core' version,
 then you must use the same version of these supplementary packages):--

    gcc-ada-3.4.5-20060117-2-src.tar.gz      (ada)
    gcc-g++-3.4.5-20060117-2-src.tar.gz      (C++)
    gcc-g77-3.4.5-20060117-2-src.tar.gz      (f77, i.e. FORTRAN-77)
    gcc-java-3.4.5-20060117-2-src.tar.gz     (java)
    gcc-objc-3.4.5-20060117-2-src.tar.gz     (objc, i.e. Objective-C)

 In which directory will I find these compiler source packages?
 (Default: /home/r831/packages/mingw-3.4.5)? /home/r831/packages/mingw-3.4.5

 Do you wish to quit this script, while you download packages for me?
 (Default: NO)? NO

 I can automatically select the language components to build, based
 on the packages you have downloaded, or, if you prefer, I can let you
 select languages individually.

 Would you prefer to select languages individually? (Default: NO)? NO

 The standard binary distribution of MinGW does not offer diagnostic
 messages in any language but US English; if this is not your native
 language, then you may prefer to enable National Language Support.

 Would you like to enable NLS for your cross compiler?
 (Default: NO)? NO

 Additionally, the standard binary distribution of the MinGW compiler
 does not take advantage of any shared libraries which may be installed
 on its Win32 host; (this is to avoid problems, should it be installed
 on a host where an expected library is missing).  If you are building
 this cross compiler on the host where it will run, you may prefer to
 take advantage of shared libraries.

 Would you like to use shared libraries available on this host?
 (Default: YES)? YES

 Currently, the standard MinGW compiler uses the setjmp/longjmp model
 for exception handling.  For compatibility, it is recommended that you
 should build your cross compiler to use this same model; however, you
 may, if you wish, use the experimental dwarf-2 model instead.

 Do you wish to retain the standard setjmp/longjmp exception handler?
 (Default: YES)? YES

 There is only one `binutils' package in /home/r831/packages/mingw-3.4.5;
 I will use the following package, to complete this build:--

  *)    binutils-2.19.1-src.tar.gz

 There is only one `gcc-core' package in /home/r831/packages/mingw-3.4.5;
 I will use the following package, to complete this build:--

  *)    gcc-core-3.4.5-20060117-2-src.tar.gz

 There is only one `w32api' package in /home/r831/packages/mingw-3.4.5;
 I will use the following package, to complete this build:--

  *)    w32api-3.13-src.tar.gz

 There is only one `mingw-runtime' package in /home/r831/packages/mingw-3.4.5;
 I will use the following package, to complete this build:--

  *)    mingw-runtime-3.15.2-src.tar.gz

 Where should I install the cross-compiler, and its support tools?
 (This directory will be created, if necessary, to allow the
  installation to be completed).
 (Default: /home/r831/mingw32)? /home/r831/mingw32
                                                                                                        
 Which directory should I use to create the build tree?                                                 
 (This is required during the build process; it should be a directory                                   
  which will be used exclusively for building the cross-compiler, and                                   
  will be created, if necessary; it may be optionally removed after                                     
  successful completion of the build and installation process).                                         
 (Default: /home/r831/tmp/mingw-3.4.5)? /home/r831/tmp/mingw-3.4.5                                      
                                                                                                        
 There are existing files in the nominated build tree.                                                  
                                                                                                        
 When starting a new build, it is recommended that the build tree                                       
 should be completely erased first.  On the other hand, if you are                                      
 resuming a partially completed build, you should NOT accept this                                       
 offer to clear the build tree.

 Should I clear the build tree, to start with a clean slate?
 (Default: YES)? YES

 You may choose whether you would like me to leave a clean slate,
 after I have successfully completed the build and installation, or
 if you would like to keep the build files for future reference.

 Would you like me to delete all build files, when I'm done?
 (Default: YES)? YES

 Interactive setup for i386-mingw32 cross compiler build completed.

 Selected components: headers binutils gcc w32api mingw-runtime
 Selected languages:  c,ada,c++,f77,java,objc

 Ok to commence building? (Default: YES)? YES

x86-mingw32-build.sh: checking package availability ...
 binutils-2.19.1-src.tar.gz ... ok
 gcc-core-3.4.5-20060117-2-src.tar.gz ... ok
 gcc-ada-3.4.5-20060117-2-src.tar.gz ... ok
 gcc-g++-3.4.5-20060117-2-src.tar.gz ... ok
 gcc-g77-3.4.5-20060117-2-src.tar.gz ... ok
 gcc-java-3.4.5-20060117-2-src.tar.gz ... ok
 gcc-objc-3.4.5-20060117-2-src.tar.gz ... ok
 w32api-3.13-mingw32-src.tar.gz ... ok
 mingwrt-3.15.2-mingw32-src.tar.gz ... ok

x86-mingw32-build.sh: preparing the build tree... done.

x86-mingw32-build.sh: stage 1: build headers ...
x86-mingw32-build.sh: unpacking /home/r831/packages/mingw-3.4.5/mingwrt-3.15.2-mingw32-src.tar.gz ... done.
x86-mingw32-build.sh: unpacking /home/r831/packages/mingw-3.4.5/w32api-3.13-mingw32-src.tar.gz ... done.

x86-mingw32-build.sh: stage 1: build binutils ...
x86-mingw32-build.sh: unpacking /home/r831/packages/mingw-3.4.5/binutils-2.19.1-src.tar.gz ... done.
checking build system type... i686-pc-linux-gnu                                                                                                                         
checking host system type... i686-pc-linux-gnu                                                                                                                          
checking target system type... i386-pc-mingw32                                                                                                                          
checking for a BSD-compatible install... /usr/bin/ginstall -c                                                                                                           
checking whether ln works... yes                                                                                                                                        
checking whether ln -s works... yes                                                                                                                                     
checking for gcc... gcc                                                                                                                                                 
checking for C compiler default output file name... a.out                                                                                                               
----------[snip]------------
----------[snip]------------
----------[snip]------------
checking where to find the target windres... just compiled
checking where to find the target windmc... just compiled
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile
make[1]: Entering directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build'
mkdir -p -- ./libiberty
Configuring in ./libiberty
configure: creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo --split-size=5000000
checking for perl... perl
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-ar... ar
checking for i686-pc-linux-gnu-ranlib... ranlib
checking for i686-pc-linux-gnu-gcc... gcc
----------[snip]------------
----------[snip]------------
----------[snip]------------
checking for aclocal... aclocal
checking for autoconf... autoconf
checking for autoheader... autoheader
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.intl
config.status: creating config.h
config.status: executing default-1 commands
mkdir -p -- ./bfd
Configuring in ./bfd
configure: creating cache ./config.cache
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i386-pc-mingw32
checking for i686-pc-linux-gnu-gcc... gcc
----------[snip]------------
----------[snip]------------
----------[snip]------------
checking file_ptr type... BFD_HOST_64_BIT
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... yes
checking for madvise... yes
checking for mprotect... yes
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating bfd-in3.h
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing bfd_stdint.h commands
config.status: executing default commands
make[2]: Entering directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/libiberty'
if [ x"" != x ] && [ ! -d pic ]; then \
  mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/regex.c -o pic/regex.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/regex.c -o regex.o
In file included from ../../libiberty/regex.c:638:0:
../../libiberty/regex.c: In function ‘byte_re_match_2_internal’:
../../libiberty/regex.c:7141:27: warning: variable ‘sdummy’ set but not used [-Wunused-but-set-variable]
../../libiberty/regex.c:7140:22: warning: variable ‘pdummy’ set but not used [-Wunused-but-set-variable]
../../libiberty/regex.c:7476:5: warning: jump skips variable initialization [-Wjump-misses-init]
../../libiberty/regex.c:5952:12: note: label ‘restore_best_regs’ defined here
../../libiberty/regex.c:5913:16: note: ‘same_str_p’ declared here
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/cplus-dem.c -o cplus-dem.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/cp-demangle.c -o pic/cp-demangle.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/cp-demangle.c -o cp-demangle.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/md5.c -o pic/md5.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/md5.c -o md5.o
../../libiberty/md5.c: In function ‘md5_finish_ctx’:
../../libiberty/md5.c:113:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
../../libiberty/md5.c:114:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/sha1.c -o pic/sha1.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/sha1.c -o sha1.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/alloca.c -o pic/alloca.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/alloca.c -o alloca.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/argv.c -o pic/argv.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/argv.c -o argv.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/choose-temp.c -o pic/choose-temp.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/choose-temp.c -o choose-temp.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/concat.c -o pic/concat.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/concat.c -o concat.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/cp-demint.c -o pic/cp-demint.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/cp-demint.c -o cp-demint.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/dyn-string.c -o pic/dyn-string.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/dyn-string.c -o dyn-string.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/fdmatch.c -o pic/fdmatch.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/fdmatch.c -o fdmatch.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/fibheap.c -o pic/fibheap.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/fibheap.c -o fibheap.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/filename_cmp.c -o pic/filename_cmp.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/filename_cmp.c -o filename_cmp.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/floatformat.c -o pic/floatformat.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/floatformat.c -o floatformat.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/fnmatch.c -o pic/fnmatch.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/fnmatch.c -o fnmatch.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/fopen_unlocked.c -o pic/fopen_unlocked.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/fopen_unlocked.c -o fopen_unlocked.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/getopt.c -o pic/getopt.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/getopt.c -o getopt.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/getopt1.c -o pic/getopt1.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/getopt1.c -o getopt1.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/getpwd.c -o pic/getpwd.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/getpwd.c -o getpwd.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/getruntime.c -o pic/getruntime.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/getruntime.c -o getruntime.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/hashtab.c -o pic/hashtab.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/hashtab.c -o hashtab.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/hex.c -o pic/hex.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/hex.c -o hex.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/lbasename.c -o pic/lbasename.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/lbasename.c -o lbasename.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/lrealpath.c -o pic/lrealpath.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/lrealpath.c -o lrealpath.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/make-relative-prefix.c -o pic/make-relative-prefix.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/make-relative-prefix.c -o make-relative-prefix.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/make-temp-file.c -o pic/make-temp-file.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/make-temp-file.c -o make-temp-file.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/objalloc.c -o pic/objalloc.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/objalloc.c -o objalloc.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/obstack.c -o pic/obstack.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/obstack.c -o obstack.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/partition.c -o pic/partition.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/partition.c -o partition.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/pexecute.c -o pic/pexecute.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/pexecute.c -o pexecute.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/physmem.c -o pic/physmem.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/physmem.c -o physmem.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/pex-common.c -o pic/pex-common.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/pex-common.c -o pex-common.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/pex-one.c -o pic/pex-one.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/pex-one.c -o pex-one.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/pex-unix.c -o pic/pex-unix.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/pex-unix.c -o pex-unix.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/safe-ctype.c -o pic/safe-ctype.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/safe-ctype.c -o safe-ctype.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/sort.c -o pic/sort.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/sort.c -o sort.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/spaces.c -o pic/spaces.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/spaces.c -o spaces.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/splay-tree.c -o pic/splay-tree.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/splay-tree.c -o splay-tree.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/strerror.c -o pic/strerror.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/strerror.c -o strerror.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/strsignal.c -o pic/strsignal.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/strsignal.c -o strsignal.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/unlink-if-ordinary.c -o pic/unlink-if-ordinary.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/unlink-if-ordinary.c -o unlink-if-ordinary.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/xatexit.c -o pic/xatexit.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/xatexit.c -o xatexit.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/xexit.c -o pic/xexit.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/xexit.c -o xexit.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/xmalloc.c -o pic/xmalloc.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/xmalloc.c -o xmalloc.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/xmemdup.c -o pic/xmemdup.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/xmemdup.c -o xmemdup.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/xstrdup.c -o pic/xstrdup.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/xstrdup.c -o xstrdup.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/xstrerror.c -o pic/xstrerror.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/xstrerror.c -o xstrerror.o
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ../../libiberty/xstrndup.c -o pic/xstrndup.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -fno-exceptions -I. -I../../libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../libiberty/xstrndup.c -o xstrndup.o
rm -f ./libiberty.a pic/./libiberty.a
ar rc ./libiberty.a \
  ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o  
ranlib ./libiberty.a
if [ x"" != x ]; then \
  cd pic; \
  ar rc ./libiberty.a \
    ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o  ; \
  ranlib ./libiberty.a; \
  cd ..; \
else true; fi
rm -f needed-list; touch needed-list; \
for f in atexit calloc memchr memcmp memcpy memmove memset rename strchr strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf vfork waitpid bcmp bcopy bzero; do \
  for g in  ; do \
    case "$g" in \
      *$f*) echo $g >> needed-list ;; \
    esac; \
  done; \
done
echo ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o > required-list
make[3]: Entering directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/libiberty/testsuite'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/libiberty/testsuite'
make[2]: Leaving directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/libiberty'
make[2]: Entering directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/intl'
make[2]: Entering directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd'
Making info in doc
make[3]: Entering directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd/doc'
make[3]: Nothing to be done for `info'.
make[3]: Leaving directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd/doc'
Making info in po
make[3]: Entering directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd/po'
( if test 'x../../../bfd/po' != 'x.'; then \
    posrcprefix='../../../bfd/'; \
  else \
    posrcprefix="../"; \
  fi; \
  rm -f SRC-POTFILES-t SRC-POTFILES \
    && (sed -e '/^#/d' \
            -e '/^[     ]*$/d' \
            -e "s@.*@   $posrcprefix& \\\\@" < ../../../bfd/po/SRC-POTFILES.in \
        | sed -e '$s/\\$//') > SRC-POTFILES-t \
    && chmod a-w SRC-POTFILES-t \
    && mv SRC-POTFILES-t SRC-POTFILES )
( rm -f BLD-POTFILES-t BLD-POTFILES \
    && (sed -e '/^#/d' \
            -e '/^[     ]*$/d' \
            -e "s@.*@   ../& \\\\@" < ../../../bfd/po/BLD-POTFILES.in \
        | sed -e '$s/\\$//') > BLD-POTFILES-t \
    && chmod a-w BLD-POTFILES-t \
    && mv BLD-POTFILES-t BLD-POTFILES )
cd .. \
  && CONFIG_FILES=po/Makefile.in:po/Make-in \
     CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating po/Makefile.in
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing bfd_stdint.h commands
config.status: executing default commands
make[3]: Leaving directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd/po'
make[3]: Entering directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd/po'
make[3]: Nothing to be done for `info'.
make[3]: Leaving directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd/po'
make[3]: Entering directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd'
make[3]: Nothing to be done for `info-am'.
make[3]: Leaving directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd'
make  all-recursive
make[3]: Entering directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd'
Making all in doc
make[4]: Entering directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd/doc'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd/doc'
Making all in po
make[4]: Entering directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd/po'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd/po'
make[4]: Entering directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd'
rm -f bfd-tmp.h
cp bfd-in3.h bfd-tmp.h
/bin/sh ../../bfd/../move-if-change bfd-tmp.h bfd.h
rm -f bfd-tmp.h
touch stmp-bfd-h
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o archive.lo ../../bfd/archive.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/archive.c -o archive.o
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -DDEFAULT_VECTOR=i386pe_vec -DSELECT_VECS='&i386pe_vec,&i386pei_vec,&bfd_elf32_i386_vec,&bfd_elf32_little_generic_vec,&bfd_elf32_big_generic_vec' -DSELECT_ARCHITECTURES='&bfd_i386_arch' -DHAVE_i386pe_vec -DHAVE_i386pei_vec -DHAVE_bfd_elf32_i386_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec ../../bfd/archures.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -DDEFAULT_VECTOR=i386pe_vec "-DSELECT_VECS=&i386pe_vec,&i386pei_vec,&bfd_elf32_i386_vec,&bfd_elf32_little_generic_vec,&bfd_elf32_big_generic_vec" "-DSELECT_ARCHITECTURES=&bfd_i386_arch" -DHAVE_i386pe_vec -DHAVE_i386pei_vec -DHAVE_bfd_elf32_i386_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec ../../bfd/archures.c -o archures.o
creating bfdver.h
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o bfd.lo ../../bfd/bfd.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/bfd.c -o bfd.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o bfdio.lo ../../bfd/bfdio.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/bfdio.c -o bfdio.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o bfdwin.lo ../../bfd/bfdwin.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/bfdwin.c -o bfdwin.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o cache.lo ../../bfd/cache.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/cache.c -o cache.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o coffgen.lo ../../bfd/coffgen.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/coffgen.c -o coffgen.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o corefile.lo ../../bfd/corefile.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/corefile.c -o corefile.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o format.lo ../../bfd/format.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/format.c -o format.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o init.lo ../../bfd/init.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/init.c -o init.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o libbfd.lo ../../bfd/libbfd.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/libbfd.c -o libbfd.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o opncls.lo ../../bfd/opncls.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/opncls.c -o opncls.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o reloc.lo ../../bfd/reloc.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/reloc.c -o reloc.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o section.lo ../../bfd/section.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/section.c -o section.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o syms.lo ../../bfd/syms.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/syms.c -o syms.o
rm -f targmatch.h
sed -f ../../bfd/targmatch.sed < ../../bfd/config.bfd > targmatch.new
mv -f targmatch.new targmatch.h
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -DDEFAULT_VECTOR=i386pe_vec -DSELECT_VECS='&i386pe_vec,&i386pei_vec,&bfd_elf32_i386_vec,&bfd_elf32_little_generic_vec,&bfd_elf32_big_generic_vec' -DSELECT_ARCHITECTURES='&bfd_i386_arch' -DHAVE_i386pe_vec -DHAVE_i386pei_vec -DHAVE_bfd_elf32_i386_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec ../../bfd/targets.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -DDEFAULT_VECTOR=i386pe_vec "-DSELECT_VECS=&i386pe_vec,&i386pei_vec,&bfd_elf32_i386_vec,&bfd_elf32_little_generic_vec,&bfd_elf32_big_generic_vec" "-DSELECT_ARCHITECTURES=&bfd_i386_arch" -DHAVE_i386pe_vec -DHAVE_i386pei_vec -DHAVE_bfd_elf32_i386_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec ../../bfd/targets.c -o targets.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o hash.lo ../../bfd/hash.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/hash.c -o hash.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o linker.lo ../../bfd/linker.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/linker.c -o linker.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o srec.lo ../../bfd/srec.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/srec.c -o srec.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o binary.lo ../../bfd/binary.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/binary.c -o binary.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o tekhex.lo ../../bfd/tekhex.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/tekhex.c -o tekhex.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o ihex.lo ../../bfd/ihex.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/ihex.c -o ihex.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o stabs.lo ../../bfd/stabs.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/stabs.c -o stabs.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o stab-syms.lo ../../bfd/stab-syms.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/stab-syms.c -o stab-syms.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o merge.lo ../../bfd/merge.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/merge.c -o merge.o
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -DDEBUGDIR=\"/home/r831/mingw32/lib/debug\" ../../bfd/dwarf2.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -DDEBUGDIR=\"/home/r831/mingw32/lib/debug\" ../../bfd/dwarf2.c -o dwarf2.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o simple.lo ../../bfd/simple.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/simple.c -o simple.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o compress.lo ../../bfd/compress.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/compress.c -o compress.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c -o pe-i386.lo ../../bfd/pe-i386.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -fno-exceptions -c ../../bfd/pe-i386.c -o pe-i386.o
In file included from ../../bfd/coff-i386.c:628:0,
                 from ../../bfd/pe-i386.c:44:
../../bfd/coffcode.h: In function 'coff_write_object_contents':
../../bfd/coffcode.h:3384:15: error: variable 'hasdebug' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[4]: *** [pe-i386.lo] Error 1
make[4]: Leaving directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build/bfd'
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory `/home/r831/tmp/mingw-3.4.5/binutils-2.19.1/build'
make: *** [all] Error 2
x86-mingw32-build.sh: unrecoverable error building binutils
r831[x86-mingw32-build-1.0]$ 
the error>>../../bfd/coffcode.h:3384:15: error: variable 'hasdebug' set but not used [-Werror=unused-but-set-variable]

Re: How to install mingW32

Posted: 27. Apr 2015, 16:18
by gapan
To solve the specific error, you'll either have to:
1. Remove the offending line that declares the 'hasdebug' variable in coffcode.h (not a really good idea)
2. Don't use the -Wall compile switch. This is a switch that tells the compiler that all warnings should be treated as errors (and unless you're 100% sure of the compiler's compatibility that might be a bad idea). You should find that in a Makefile somewhere...

But, what I would try first would be to try to use a newer version of all of these source packages. It seems you went for a rather old version of binutils. That might have such incompatibilities with current compilers. I see the mingw project provides binutils-2.24. Why not try that?