I'm a newbie to MinGW. How Can I build MinGW from source?

classic Classic list List threaded Threaded
21 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

I'm a newbie to MinGW. How Can I build MinGW from source?

firebird
Hello!

I want to build MinGW form source. I have digged the mail-list and find no more details about the building process. Please give me some clues or hints. I,m working on linux and want to build MinGW used on Windows. Thanks!

Regards!
Wang LingJun
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

firebird
Is there anything wrong with follow building steps:

Linux native build or build for windows?
1) make & make install GMP
2) make & make install MPFR
3) make & make install MPC

build for windows?
4) make & make install BinUtils(build for windows?)
5) prepare gcc directory
6) build gcc
7) build crt(MinGW-runtime, w32api)
8) build libgcc

These questions confuse me? Any help? Please!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

firebird
Hello all:

I compiled as follow and has a compile error:cannot compute suffix of object files: cannot compile.

Steps:
1) build GMP
download GMP (5.1.2) source
untar to /home/gmp-5.1.2
cd /home/gmp-5.1.2
mkdir build
cd build
../configure
make
make install  (default: /usr/local/)
2) build mpfr
same as 1)
3) build mpc
same as 1)

4) download gcc-5.3.0 source
untar to /home/www/mingw32-src/src
mkdir /home/www/mingw32-src/build
cd build
mingw-pkg SRCDIR=../src/gcc-5.3.0 patch
mingw-pkg SRCDIR=../src/gcc-5.3.0 configure     Here has problem with GNAT, so I configure manually:
../src/gcc-5.3.0/configure --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++ --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls

make        Here has error:
checking for suffix of object files... configure: error: in `/home/www/www/mingw32-src/build/mingw32/libgcc':
configure: error: cannot compute suffix of object files: cannot compile

I export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib  and make clean & make, the problem still exists.

How can I solve this? Please help!



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

Earnie Boyd
On 2/16/2017 10:44 PM, firebird wrote:
> Hello all:
>
> I compiled as follow and has a compile error:cannot compute suffix of object
> files: cannot compile.
>
>8---------8<

> mingw-pkg SRCDIR=../src/gcc-5.3.0 configure     Here has problem with GNAT,
> so I configure manually:
> ../src/gcc-5.3.0/configure --prefix=/mingw --disable-win32-registry
> --target=mingw32 --with-arch=i586 --enable-languages=c,c++ --enable-static
> --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions
> --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw
> --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic
> --enable-libgomp --disable-libvtv --enable-nls
>
> make        Here has error:
> checking for suffix of object files... configure: error: in
> `/home/www/www/mingw32-src/build/mingw32/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
>
> I export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib  and make clean &
> make, the problem still exists.

Why is it configuring GNAT, you didn't specify it with --enable-languages.

>
> How can I solve this? Please help!
>

The last time I tried I gave up on GNAT.  Maybe remove the GNAT
directory from the source would help.  Or maybe a specific parameter to
specify to not configure GNAT.  Maybe ./configure --help=recursive may
help.  Be sure to redirect to a file or pipe to a pager.

--
Earnie

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

Keith Marshall
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 17/02/17 17:25, Earnie wrote:
> On 2/16/2017 10:44 PM, firebird wrote:
>> I compiled as follow and has a compile error:cannot compute suffix
>> of object files: cannot compile.

This suggests some problem with the compiler you are using to perform
the build.  More than that, I cannot say, because you don't describe
the build environment adequately.

>> mingw-pkg SRCDIR=../src/gcc-5.3.0 configure     Here has problem with GNAT,
>> so I configure manually:
>> ../src/gcc-5.3.0/configure --prefix=/mingw --disable-win32-registry
>> --target=mingw32 --with-arch=i586 --enable-languages=c,c++ --enable-static
>> --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions
>> --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw
>> --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic
>> --enable-libgomp --disable-libvtv --enable-nls
>>
>> make
>>
>> Here has error:
>> checking for suffix of object files... configure: error: in
>> `/home/www/www/mingw32-src/build/mingw32/libgcc':
>> configure: error: cannot compute suffix of object files: cannot
>> compile

So, the same build system compiler failure as before.

>> I export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib and make
>> clean & make, the problem still exists.

Am I missing something?  What exactly are you trying to build?  The
above points to Linux platform libraries, which are not what you want
for a Windows cross-native compiler, (nor indeed, for deployment with
a Windows targetting cross-compiler).

> Why is it configuring GNAT, you didn't specify it with
> --enable-languages.

OP's original attempt was using mingw-pkg, presumably with the package
specification file I provided in the gcc-5.3.0-mingw32-src tarball;
that specifies --enable-languages=ada (among others), and I'm guessing
that the OP's build compiler isn't ada-aware; it's not even clear if
it is Windows target-aware, (since the build environment hasn't been
adequately described).

> The last time I tried I gave up on GNAT.

Yes.  GNAT is a swine to build.  I've no idea how the ada folks ever
bootstrap it, because the GCC sources demand a working ada compiler
up-front, at configuration time.  I had to begin by bootstrapping a
native Linux build, starting out with an older ada-aware GCC version,
(which was not the default host compiler); that old version was okay
for bootstrapping an updated build, but wasn't good enough to build
the ada libraries, to accompany the Windows-target cross-compiler I
I needed to build next, before I could even begin to configure the
cross-native compiler we now distribute.

> Maybe remove the GNAT directory from the source would help.  Or maybe
> a specific parameter to specify to not configure GNAT.  Maybe
> ./configure --help=recursive may help.  Be sure to redirect to a file
> or pipe to a pager.

Omitting ada from the list specified with --enable-languages should be
all that is required.  The OP did that, but it looks like there are
more fundamental problems -- like, the build compiler isn't working!

- --
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJYp0HTAAoJEMCtNsY0flo/E9QP+wa/yQ0VH2CQ3k8cit2RG1h8
D+qJSwaiZJ9dsTrg9B+y/MAD+yy+tXQF8J73BnxXiz1WWG9KOYxm8af1hZnICyEg
TUHYFwJZ3W1Ai5iH+Buem/iOS2UyMTWwNi57DH0pT6jsgcE4pRDitkt1iolOPDoE
jZvKtySKfB8AY8Y0pX6JC7c7HkJKIANLGA2eircrlfixGBoFAu11RloxJ2j7D8Nx
2b7dbrzByYvDsZVWOnOYQYr/WZons7r8ap9QTf1ghoUIHmncq/l7B1cL6MLw/V0m
Rw3oknnHW7dnObRg7SFhvEFMUOoe3HXlStAzaCef6TRg88NZ5UNFXgDTQ8gsg5gB
vskGfre6jhLuGjjrm5Kx91cBARWymdRW5vRTpfZFPYAd1YSQ4bUj/hnmDkiIdHB6
7F029Ur/jnpyNbM+zYAZ7XHTUbh6cMIPTAXASkq/5Sn1eexxbR+ZHpoKRJFSndIw
KzlpOgNYn9CmG54kbG/a5f/s1KFz1OLY1JlVX44zYYsERdC1lqqGenID3UAUbSAF
yhkslnd84rwXU9KFW/7It8NBtRfqC537MSvg+EBdhRwlNmZlVzRmN2rTrNMGPGuT
nqWgvQtlE2m2IjltuFeW7eW6NxJgMDQIK8I6Jy6CE/z+VPhgDx7664AQ5RmrGOzw
ZG0fX62ig7QiN1imfMCo
=PMjv
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

firebird
Thanks all!

Apologize for my obscure description!
Firstly,I wanna build *.exe files (just c,c++ needed) used for windows.
Secondly,I'm building MinGW source under Linux Ubuntu 16.

So:
1) I configured with --enable-languages=c,c++  (Ada is not my option) and
removed GNAT error.

And I wonder:
1) To produce *.exe files,should I build using MSYS under windows? Is I
doing something wrong?
2) If building under Linux, how can I configure --host , --build, --target ?


Best regards!
Wang LingJun




--
View this message in context: http://mingw.5.n7.nabble.com/SPAM-I-m-a-newbie-to-MinGW-How-Can-I-build-MinGW-from-source-tp35651p35661.html
Sent from the MinGW - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

firebird
terminal output:

make[2]: Leaving directory '/home/www/MinGW-src/build/libcc1'
Checking multilib configuration for libgcc...
mkdir -p -- mingw32/libgcc
Configuring in mingw32/libgcc
configure: creating cache ./config.cache
checking build system type... x86_64-unknown-linux-gnu
checking host system type... i686-pc-mingw32
checking for --enable-version-specific-runtime-libs... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... mawk
checking for mingw32-ar... mingw32-ar
checking for mingw32-lipo... mingw32-lipo
checking for mingw32-nm... /home/www/MinGW-src/build/./gcc/nm
checking for mingw32-ranlib... mingw32-ranlib
checking for mingw32-strip... mingw32-strip
checking whether ln -s works... yes
checking for mingw32-gcc... /home/www/MinGW-src/build/./gcc/xgcc
-B/home/www/MinGW-src/build/./gcc/
-L/home/www/MinGW-src/build/mingw32/winsup/mingw
-L/home/www/MinGW-src/build/mingw32/winsup/w32api/lib -isystem
/home/www/MinGW-src/src/gcc-5.3.0/winsup/mingw/include -isystem
/home/www/MinGW-src/src/gcc-5.3.0/winsup/w32api/include
-B/mingw/mingw32/bin/ -B/mingw/mingw32/lib/ -isystem /mingw/mingw32/include
-isystem /mingw/mingw32/sys-include  
checking for suffix of object files... configure: error: in
`/home/www/MinGW-src/build/mingw32/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Makefile:12855: recipe for target 'configure-target-libgcc' failed
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory '/home/www/MinGW-src/build'
Makefile:878: recipe for target 'all' failed
make: *** [all] Error 2
www@www-virtual-machine:~/MinGW-src/build$

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

It was created by configure, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  $ ../src/gcc-5.3.0/configure --prefix=/mingw --disable-win32-registry
--target=mingw32 --with-arch=i586 --enable-languages=c,c++ --enable-static
--enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions
--enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw
--with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic
--enable-libgomp --disable-libvtv --enable-nls

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

hostname = www-virtual-machine
uname -m = x86_64
uname -r = 4.4.0-31-generic
uname -s = Linux
uname -v = #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016

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

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

PATH: /home/www/bin
PATH: /home/www/.local/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
PATH: /snap/bin


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

configure:2292: checking build system type
configure:2306: result: x86_64-unknown-linux-gnu
configure:2353: checking host system type
configure:2366: result: x86_64-unknown-linux-gnu
configure:2386: checking target system type
configure:2399: result: i686-pc-mingw32
configure:2453: checking for a BSD-compatible install
configure:2521: result: /usr/bin/install -c
configure:2532: checking whether ln works
configure:2554: result: yes
configure:2558: checking whether ln -s works
configure:2562: result: yes
configure:2569: checking for a sed that does not truncate output
configure:2633: result: /bin/sed
configure:2642: checking for gawk
configure:2672: result: no
configure:2642: checking for mawk
configure:2658: found /usr/bin/mawk
configure:2669: result: mawk
configure:3183: checking for libatomic support
configure:3193: result: yes
configure:3202: checking for libcilkrts support
configure:3208: result: no
configure:3240: checking for libitm support
configure:3246: result: no
configure:3259: checking for libsanitizer support
configure:3265: result: no
configure:4074: checking for gcc
configure:4090: found /usr/bin/gcc
configure:4101: result: gcc
configure:4330: checking for C compiler version
configure:4339: gcc --version >&5
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609
Copyright (C) 2015 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:4350: $? = 0
configure:4339: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
5.4.0-6ubuntu1~16.04.1'
--with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-5 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.1)
configure:4350: $? = 0
configure:4339: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4350: $? = 1
configure:4339: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:4350: $? = 1
configure:4370: checking for C compiler default output file name
configure:4392: gcc    conftest.c  >&5
configure:4396: $? = 0
configure:4433: result: a.out
configure:4449: checking whether the C compiler works
configure:4458: ./a.out
configure:4462: $? = 0
configure:4477: result: yes
configure:4484: checking whether we are cross compiling
configure:4486: result: no
configure:4489: checking for suffix of executables
configure:4496: gcc -o conftest    conftest.c  >&5
configure:4500: $? = 0
configure:4522: result:
configure:4528: checking for suffix of object files
configure:4550: gcc -c   conftest.c >&5
configure:4554: $? = 0
configure:4575: result: o
configure:4579: checking whether we are using the GNU C compiler
configure:4598: gcc -c   conftest.c >&5
configure:4598: $? = 0
configure:4607: result: yes
configure:4616: checking whether gcc accepts -g
configure:4636: gcc -c -g  conftest.c >&5
configure:4636: $? = 0
configure:4677: result: yes
configure:4694: checking for gcc option to accept ISO C89
configure:4758: gcc  -c -g -O2  conftest.c >&5
configure:4758: $? = 0
configure:4771: result: none needed
configure:4849: checking for g++
configure:4865: found /usr/bin/g++
configure:4876: result: g++
configure:4903: checking for C++ compiler version
configure:4912: g++ --version >&5
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609
Copyright (C) 2015 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:4923: $? = 0
configure:4912: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
5.4.0-6ubuntu1~16.04.1'
--with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-5 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.1)
configure:4923: $? = 0
configure:4912: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:4923: $? = 1
configure:4912: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:4923: $? = 1
configure:4927: checking whether we are using the GNU C++ compiler
configure:4946: g++ -c   conftest.cpp >&5
configure:4946: $? = 0
configure:4955: result: yes
configure:4964: checking whether g++ accepts -g
configure:4984: g++ -c -g  conftest.cpp >&5
configure:4984: $? = 0
configure:5025: result: yes
configure:5074: checking whether g++ accepts -static-libstdc++
-static-libgcc
configure:5091: g++ -o conftest -g -O2   -static-libstdc++ -static-libgcc
conftest.cpp  >&5
configure:5091: $? = 0
configure:5092: result: yes
configure:5156: checking for gnatbind
configure:5186: result: no
configure:5248: checking for gnatmake
configure:5278: result: no
configure:5297: checking whether compiler driver understands Ada
configure:5320: result: no
configure:5329: checking how to compare bootstrapped objects
configure:5354: result: cmp --ignore-initial=16 $$f1 $$f2
configure:5408: checking for objdir
configure:5423: result: .libs
configure:5972: WARNING: using in-tree ISL, disabling version check
configure:6990: checking for default BUILD_CONFIG
configure:7022: result:
configure:7027: checking for --enable-vtable-verify
configure:7040: result: no
configure:7636: checking for bison
configure:7666: result: no
configure:7636: checking for byacc
configure:7666: result: no
configure:7636: checking for yacc
configure:7666: result: no
configure:7683: checking for bison
configure:7713: result: no
configure:7730: checking for gm4
configure:7760: result: no
configure:7730: checking for gnum4
configure:7760: result: no
configure:7730: checking for m4
configure:7746: found /usr/bin/m4
configure:7757: result: m4
configure:7777: checking for flex
configure:7807: result: no
configure:7777: checking for lex
configure:7807: result: no
configure:7825: checking for flex
configure:7855: result: no
configure:7872: checking for makeinfo
configure:7902: result: no
configure:7933: checking for expect
configure:7963: result: no
configure:7982: checking for runtest
configure:8012: result: no
configure:8127: checking for ar
configure:8143: found /usr/bin/ar
configure:8154: result: ar
configure:8268: checking for as
configure:8284: found /usr/bin/as
configure:8295: result: as
configure:8409: checking for dlltool
configure:8439: result: no
configure:8550: checking for ld
configure:8566: found /usr/bin/ld
configure:8577: result: ld
configure:8691: checking for lipo
configure:8721: result: no
configure:8832: checking for nm
configure:8848: found /usr/bin/nm
configure:8859: result: nm
configure:8973: checking for ranlib
configure:8989: found /usr/bin/ranlib
configure:9000: result: ranlib
configure:9109: checking for strip
configure:9125: found /usr/bin/strip
configure:9136: result: strip
configure:9245: checking for windres
configure:9275: result: no
configure:9386: checking for windmc
configure:9416: result: no
configure:9527: checking for objcopy
configure:9543: found /usr/bin/objcopy
configure:9554: result: objcopy
configure:9668: checking for objdump
configure:9684: found /usr/bin/objdump
configure:9695: result: objdump
configure:9809: checking for readelf
configure:9825: found /usr/bin/readelf
configure:9836: result: readelf
configure:9950: checking for mingw32-cc
configure:9980: result: no
configure:9950: checking for mingw32-gcc
configure:9980: result: no
configure:10111: checking for mingw32-c++
configure:10141: result: no
configure:10111: checking for mingw32-g++
configure:10141: result: no
configure:10111: checking for mingw32-cxx
configure:10141: result: no
configure:10111: checking for mingw32-gxx
configure:10141: result: no
configure:10272: checking for mingw32-gcc
configure:10302: result: no
configure:10428: checking for mingw32-gcj
configure:10458: result: no
configure:10589: checking for mingw32-gfortran
configure:10619: result: no
configure:10750: checking for mingw32-gccgo
configure:10780: result: no
configure:10880: checking for ar
configure:10913: result: no
configure:10991: checking for mingw32-ar
configure:11021: result: no
configure:11110: checking for as
configure:11143: result: no
configure:11221: checking for mingw32-as
configure:11251: result: no
configure:11340: checking for dlltool
configure:11373: result: no
configure:11451: checking for mingw32-dlltool
configure:11481: result: no
configure:11570: checking for ld
configure:11603: result: no
configure:11681: checking for mingw32-ld
configure:11711: result: no
configure:11800: checking for lipo
configure:11833: result: no
configure:11911: checking for mingw32-lipo
configure:11941: result: no
configure:12030: checking for nm
configure:12063: result: no
configure:12141: checking for mingw32-nm
configure:12171: result: no
configure:12260: checking for objcopy
configure:12293: result: no
configure:12371: checking for mingw32-objcopy
configure:12401: result: no
configure:12490: checking for objdump
configure:12523: result: no
configure:12601: checking for mingw32-objdump
configure:12631: result: no
configure:12720: checking for ranlib
configure:12753: result: no
configure:12831: checking for mingw32-ranlib
configure:12861: result: no
configure:12950: checking for readelf
configure:12983: result: no
configure:13061: checking for mingw32-readelf
configure:13091: result: no
configure:13180: checking for strip
configure:13213: result: no
configure:13291: checking for mingw32-strip
configure:13321: result: no
configure:13410: checking for windres
configure:13443: result: no
configure:13521: checking for mingw32-windres
configure:13551: result: no
configure:13640: checking for windmc
configure:13673: result: no
configure:13751: checking for mingw32-windmc
configure:13781: result: no
configure:13848: checking where to find the target ar
configure:13885: result: pre-installed
configure:13890: checking where to find the target as
configure:13927: result: pre-installed
configure:13932: checking where to find the target cc
configure:13955: result: just compiled
configure:13974: checking where to find the target c++
configure:14000: result: just compiled
configure:14019: checking where to find the target c++ for libstdc++
configure:14045: result: just compiled
configure:14064: checking where to find the target dlltool
configure:14101: result: pre-installed
configure:14106: checking where to find the target gcc
configure:14129: result: just compiled
configure:14148: checking where to find the target gcj
configure:14188: result: pre-installed
configure:14193: checking where to find the target gfortran
configure:14233: result: pre-installed
configure:14238: checking where to find the target gccgo
configure:14278: result: pre-installed
configure:14283: checking where to find the target ld
configure:14320: result: pre-installed
configure:14325: checking where to find the target lipo
configure:14351: result: pre-installed
configure:14356: checking where to find the target nm
configure:14393: result: pre-installed
configure:14398: checking where to find the target objcopy
configure:14435: result: pre-installed
configure:14440: checking where to find the target objdump
configure:14477: result: pre-installed
configure:14482: checking where to find the target ranlib
configure:14519: result: pre-installed
configure:14524: checking where to find the target readelf
configure:14561: result: pre-installed
configure:14566: checking where to find the target strip
configure:14603: result: pre-installed
configure:14608: checking where to find the target windres
configure:14645: result: pre-installed
configure:14650: checking where to find the target windmc
configure:14687: result: pre-installed
configure:14720: checking whether to enable maintainer-specific portions of
Makefiles
configure:14729: result: no
configure:14986: creating ./config.status

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

This file was extended by config.status, which was
generated by GNU Autoconf 2.64.  Invocation command line was

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

on www-virtual-machine

config.status:1004: creating Makefile

## ---------------- ##
## 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_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_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_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GCJ_FOR_TARGET_set=
ac_cv_env_GCJ_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_GOC_FOR_TARGET_set=
ac_cv_env_GOC_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_FOR_TARGET_set=
ac_cv_env_OBJCOPY_FOR_TARGET_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_READELF_FOR_TARGET_set=
ac_cv_env_READELF_FOR_TARGET_value=
ac_cv_env_READELF_set=
ac_cv_env_READELF_value=
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_build_configargs_set=
ac_cv_env_build_configargs_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_host_configargs_set=
ac_cv_env_host_configargs_value=
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=mingw32
ac_cv_env_target_configargs_set=
ac_cv_env_target_configargs_value=
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_objext=o
ac_cv_path_SED=/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AR=ar
ac_cv_prog_AS=as
ac_cv_prog_AWK=mawk
ac_cv_prog_LD=ld
ac_cv_prog_M4=m4
ac_cv_prog_NM=nm
ac_cv_prog_OBJCOPY=objcopy
ac_cv_prog_OBJDUMP=objdump
ac_cv_prog_RANLIB=ranlib
ac_cv_prog_READELF=readelf
ac_cv_prog_STRIP=strip
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_target=i686-pc-mingw32
acx_cv_cc_gcc_supports_ada=no
acx_cv_prog_LN=ln
gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
gcc_cv_tool_dirs=/mingw/libexec/gcc/mingw32/5.3.0:/mingw/libexec/gcc/mingw32:/usr/lib/gcc/mingw32/5.3.0:/usr/lib/gcc/mingw32:/mingw/mingw32/bin/mingw32/5.3.0:/mingw/mingw32/bin:
gcc_cv_tool_prefix=/mingw
lt_cv_objdir=.libs

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

AR='ar'
AR_FOR_BUILD='$(AR)'
AR_FOR_TARGET='mingw32-ar'
AS='as'
AS_FOR_BUILD='$(AS)'
AS_FOR_TARGET='mingw32-as'
AWK='mawk'
BISON='/home/www/MinGW-src/src/gcc-5.3.0/missing bison'
BUILD_CONFIG=''
CC='gcc'
CC_FOR_BUILD='$(CC)'
CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
CFLAGS='-g -O2'
CFLAGS_FOR_BUILD='-g -O2'
CFLAGS_FOR_TARGET='-g -O2'
COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX='g++'
CXXFLAGS='-g -O2'
CXXFLAGS_FOR_BUILD='-g -O2'
CXXFLAGS_FOR_TARGET='-g -O2'
CXX_FOR_BUILD='$(CXX)'
CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/
-nostdinc++ `if test -f
$$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL)
$$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes;
else echo -funconfigured-libstdc++-v3 ; fi`
-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src
-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs
-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\"
-DLT_OBJDIR=\".libs/\"'
DLLTOOL='dlltool'
DLLTOOL_FOR_BUILD='$(DLLTOOL)'
DLLTOOL_FOR_TARGET='mingw32-dlltool'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT='expect'
EXTRA_CONFIGARGS_LIBJAVA='--disable-static'
FLAGS_FOR_TARGET=' -L$$r/$(TARGET_SUBDIR)/winsup/mingw
-L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include
-isystem $$s/winsup/w32api/include -B$(build_tooldir)/bin/
-B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem
$(build_tooldir)/sys-include'
FLEX='/home/www/MinGW-src/src/gcc-5.3.0/missing flex'
GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
GCC_SHLIB_SUBDIR=''
GCJ_FOR_BUILD='$(GCJ)'
GCJ_FOR_TARGET='mingw32-gcj'
GDB_TK=''
GFORTRAN_FOR_BUILD='$(GFORTRAN)'
GFORTRAN_FOR_TARGET='mingw32-gfortran'
GNATBIND='no'
GNATMAKE='no'
GOC_FOR_BUILD='$(GOC)'
GOC_FOR_TARGET='mingw32-gccgo'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD='ld'
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LDFLAGS_FOR_TARGET=''
LD_FOR_BUILD='$(LD)'
LD_FOR_TARGET='mingw32-ld'
LEX='/home/www/MinGW-src/src/gcc-5.3.0/missing flex'
LIBOBJS=''
LIBS=''
LIPO='lipo'
LIPO_FOR_TARGET='mingw32-lipo'
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4='m4'
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='/home/www/MinGW-src/src/gcc-5.3.0/missing makeinfo'
NM='nm'
NM_FOR_BUILD='$(NM)'
NM_FOR_TARGET='mingw32-nm'
OBJCOPY='objcopy'
OBJCOPY_FOR_TARGET='mingw32-objcopy'
OBJDUMP='objdump'
OBJDUMP_FOR_TARGET='mingw32-objdump'
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB='ranlib'
RANLIB_FOR_BUILD='$(RANLIB)'
RANLIB_FOR_TARGET='mingw32-ranlib'
RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc
-B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src
-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs
-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
READELF='readelf'
READELF_FOR_TARGET='mingw32-readelf'
RPATH_ENVVAR='LD_LIBRARY_PATH'
RUNTEST='runtest'
SED='/bin/sed'
SHELL='/bin/bash'
STRIP='strip'
STRIP_FOR_TARGET='mingw32-strip'
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='../src/gcc-5.3.0/configure --prefix=/mingw
--disable-win32-registry --target=mingw32 --with-arch=i586
--enable-languages=c,c++ --enable-static --enable-shared --enable-threads
--with-dwarf2 --disable-sjlj-exceptions
--enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw
--with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic
--enable-libgomp --disable-libvtv --enable-nls'
WINDMC='windmc'
WINDMC_FOR_BUILD='$(WINDMC)'
WINDMC_FOR_TARGET='mingw32-windmc'
WINDRES='windres'
WINDRES_FOR_BUILD='$(WINDRES)'
WINDRES_FOR_TARGET='mingw32-windres'
YACC='/home/www/MinGW-src/src/gcc-5.3.0/missing bison -y'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_configargs=' --cache-file=./config.cache '\''--prefix=/mingw'\''
'\''--disable-win32-registry'\'' '\''--with-arch=i586'\''
'\''--enable-static'\'' '\''--enable-shared'\'' '\''--enable-threads'\''
'\''--with-dwarf2'\'' '\''--disable-sjlj-exceptions'\''
'\''--enable-version-specific-runtime-libs'\''
'\''--with-libiconv-prefix=/mingw'\'' '\''--with-libintl-prefix=/mingw'\''
'\''--enable-libstdcxx-debug'\'' '\''--with-tune=generic'\''
'\''--enable-libgomp'\'' '\''--disable-libvtv'\'' '\''--enable-nls'\''
'\''--enable-languages=c,c++,lto'\''
--program-transform-name='\''s&^&mingw32-&'\'' --disable-option-checking'
build_configdirs=' libiberty libcpp fixincludes'
build_cpu='x86_64'
build_libsubdir='build-x86_64-unknown-linux-gnu'
build_noncanonical='x86_64-unknown-linux-gnu'
build_os='linux-gnu'
build_subdir='build-x86_64-unknown-linux-gnu'
build_tooldir='${exec_prefix}/mingw32'
build_vendor='unknown'
compare_exclusions='gcc/cc*-checksum$(objext) | gcc/ada/*tools/*'
configdirs=' intl libiberty zlib libbacktrace libcpp libdecnumber gmp mpfr
mpc isl fixincludes gcc libcc1 lto-plugin'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
do_compare='cmp --ignore-initial=16 $$f1 $$f2'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='${prefix}'
extra_host_libiberty_configure_flags='--enable-shared'
extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
extra_liboffloadmic_configure_flags=''
extra_linker_plugin_configure_flags=''
extra_linker_plugin_flags=''
extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp
--with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/.libs'
extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr
--with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/.libs'
extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp
--with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/.libs'
gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I$$r/$(HOST_SUBDIR)/mpfr
-I$$s/mpfr -I$$s/mpc/src '
gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/mpfr/.libs
-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -lmpc -lmpfr -lgmp'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_configargs=' --cache-file=./config.cache  '\''--prefix=/mingw'\''
'\''--disable-win32-registry'\'' '\''--with-arch=i586'\''
'\''--enable-static'\'' '\''--enable-shared'\'' '\''--enable-threads'\''
'\''--with-dwarf2'\'' '\''--disable-sjlj-exceptions'\''
'\''--enable-version-specific-runtime-libs'\''
'\''--with-libiconv-prefix=/mingw'\'' '\''--with-libintl-prefix=/mingw'\''
'\''--enable-libstdcxx-debug'\'' '\''--with-tune=generic'\''
'\''--enable-libgomp'\'' '\''--disable-libvtv'\'' '\''--enable-nls'\''
'\''--enable-languages=c,c++,lto'\''
--program-transform-name='\''s&^&mingw32-&'\'' --disable-option-checking'
host_cpu='x86_64'
host_noncanonical='x86_64-unknown-linux-gnu'
host_os='linux-gnu'
host_shared='no'
host_subdir='.'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
isllibs='-L$$r/$(HOST_SUBDIR)/isl/.libs  -lisl'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
poststage1_ldflags='-static-libstdc++ -static-libgcc'
poststage1_libs=''
prefix='/mingw'
program_transform_name='s&^&mingw32-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags='-g'
stage1_checking='--enable-checking=yes,types'
stage1_languages='c,c++,lto'
stage1_ldflags='-static-libstdc++ -static-libgcc'
stage1_libs=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='i686-pc-mingw32'
target_alias='mingw32'
target_configargs='--cache-file=./config.cache --enable-multilib
--with-cross-host=x86_64-unknown-linux-gnu   '\''--prefix=/mingw'\''
'\''--disable-win32-registry'\'' '\''--with-arch=i586'\''
'\''--enable-static'\'' '\''--enable-shared'\'' '\''--enable-threads'\''
'\''--with-dwarf2'\'' '\''--disable-sjlj-exceptions'\''
'\''--enable-version-specific-runtime-libs'\''
'\''--with-libiconv-prefix=/mingw'\'' '\''--with-libintl-prefix=/mingw'\''
'\''--enable-libstdcxx-debug'\'' '\''--with-tune=generic'\''
'\''--enable-libgomp'\'' '\''--disable-libvtv'\'' '\''--enable-nls'\''
'\''--enable-languages=c,c++,lto'\''
--program-transform-name='\''s&^&mingw32-&'\'' --disable-option-checking'
target_configdirs=' libgcc libgomp libatomic libstdc++-v3 libssp
libquadmath'
target_cpu='i686'
target_noncanonical='mingw32'
target_os='mingw32'
target_subdir='mingw32'
target_vendor='pc'
tooldir='${exec_prefix}/mingw32'

## ------------------- ##
## File substitutions. ##
## ------------------- ##

alphaieee_frag='/dev/null'
host_makefile_frag='/dev/null'
ospace_frag='/dev/null'
serialization_dependencies='serdep.tmp'
target_makefile_frag='/dev/null'

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

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define LT_OBJDIR ".libs/"

configure: exit 0





--
View this message in context: http://mingw.5.n7.nabble.com/SPAM-I-m-a-newbie-to-MinGW-How-Can-I-build-MinGW-from-source-tp35651p35662.html
Sent from the MinGW - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

Cesar Strauss
In reply to this post by firebird
Em 18-02-2017 00:24, firebird escreveu:
> Firstly,I wanna build *.exe files (just c,c++ needed) used for windows.
> Secondly,I'm building MinGW source under Linux Ubuntu 16.

Nowadays, many Linux distributions have a packaged version of a Windows
cross-compiler. Is there any reason you want to compile it yourself? On
Ubuntu, I believe you can type "apt search mingw". You could also ask,
on an Ubuntu forum, how to install a Windows cross-compiler. If you do
that, then ask further usage questions firstly on that Ubuntu forum, please.

Regards,

Cesar


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

Cesar Strauss
In reply to this post by firebird
On 02-18-2017 05:54, firebird wrote:
> checking for suffix of object files... configure: error: in
> `/home/www/MinGW-src/build/mingw32/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details.

We need to see the config.log which is in the directory
/home/www/MinGW-src/build/mingw32/libgcc.

Thanks,
Cesar


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

firebird
In reply to this post by Cesar Strauss
Cesar Strauss-2 wrote

> Nowadays, many Linux distributions have a packaged version of a Windows
> cross-compiler. Is there any reason you want to compile it yourself? On
> Ubuntu, I believe you can type "apt search mingw". You could also ask,
> on an Ubuntu forum, how to install a Windows cross-compiler. If you do
> that, then ask further usage questions firstly on that Ubuntu forum,
> please.
>
> Regards,
>
> Cesar

Thanks!

I need to build  MinGW from ground up. I do not need a out-of-box tool set.

Best Regards!
Wang LingJun



--
View this message in context: http://mingw.5.n7.nabble.com/SPAM-I-m-a-newbie-to-MinGW-How-Can-I-build-MinGW-from-source-tp35651p35665.html
Sent from the MinGW - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

Keith Marshall
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 18/02/17 15:01, firebird wrote:
> I need to build  MinGW from ground up. I do not need a out-of-box
> tool set.

In that case, you need to build a cross-compiler with --target=mingw32;
(you cannot use the native GCC, on your linux box, to build Windows
binaries).

At the end of Dec-2016, I summarized the procedure I use to build such
a cross-compiler; search the MinGW-Dvlpr list archives, for the post.
After you've read that, if you need further clarification, feel free
to come back here, and ask.

- --
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJYqKy5AAoJEMCtNsY0flo/KtsP+wZoOipWoQN5ZLS+jfP08BQb
AmXFhhKc+E/64AmR5DJ8/kh7E6m3HiuSnBRP+nhXk+nkvXOgz477fmQ1WRbHT5Gv
QSNEFkdzjK1eNlv1EwMfGRN2yYqZ3OYzE7EA/mtaGNuJ7+sB8p6crZk2ECt+cLSP
HpiT+sHbKplRcRZwu6SxMcf6NKhFzYzVt3GDAeRhc61u9qw4StvOlXLazjIV+yJp
TxCcd4obMyUZodrADnJ/Ft1XBVswjPkVp8/L7CtmiYAztsU7TXyNNudw/EAr6BvX
XZ0MKEIbWDhFnxc7OuRpqzlcQaHgXjmEWmKNCAx5EPpK+l5BvknIaen6ychZGVL4
UaduBVHaCaSaFL6vaYOZffGisZb5tp6rFCskoq6ZKEPaL/MKtFYeEycDfdmSQTDh
PXsClpsw2YoFekrRQgedi4TzL45cB8krHX3YvC/1jXiorqcPos4ynItaMDzaRNSA
9nPlrrRKDw7JQx27thSzcMi5tacCn3BYc3IQP1WHnNQrsm/GMSGjc5epMMszO9gW
58jodd0Qoc8AopGsb/fr/vcQhFDabRTB6fOQPIQrLlx9U7V3h+QkDiwvEnb7bHL3
Jy/z5eQiPqgNvHNMvNa+EjniQjA9Q/+Bn78pffzHs0U+0640/+QJ4BV7FUM+lgZP
OHGv7/I9KkOt/brPFLu3
=kK1D
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

firebird
Keith Marshall-3 wrote

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 18/02/17 15:01, firebird wrote:
>> I need to build  MinGW from ground up. I do not need a out-of-box
>> tool set.
>
> In that case, you need to build a cross-compiler with --target=mingw32;
> (you cannot use the native GCC, on your linux box, to build Windows
> binaries).
>
> At the end of Dec-2016, I summarized the procedure I use to build such
> a cross-compiler; search the MinGW-Dvlpr list archives, for the post.
> After you've read that, if you need further clarification, feel free
> to come back here, and ask.
>
> - --
> Regards,
> Keith.

Thanks!
I will read it carefully and come back If I need further clarification.

Best regards!
Wang LingJun




--
View this message in context: http://mingw.5.n7.nabble.com/SPAM-I-m-a-newbie-to-MinGW-How-Can-I-build-MinGW-from-source-tp35651p35667.html
Sent from the MinGW - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

firebird
My building enviroment is Ubuntu 16.04.
I wanna build MinGW used for windows  (such gcc.exe ) from source, should I
take two steps as follow ?
Firstly, build a cross compiler A.
Secondly,use A to build comilper B.

At this time, the comipler B is  windows .exe file that I want.

Sorry for my ignorance about the building process!



--
View this message in context: http://mingw.5.n7.nabble.com/SPAM-I-m-a-newbie-to-MinGW-How-Can-I-build-MinGW-from-source-tp35651p35668.html
Sent from the MinGW - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

firebird
In reply to this post by Cesar Strauss
Cesar Strauss-2 wrote

> On 02-18-2017 05:54, firebird wrote:
>> checking for suffix of object files... configure: error: in
>> `/home/www/MinGW-src/build/mingw32/libgcc':
>> configure: error: cannot compute suffix of object files: cannot compile
>> See `config.log' for more details.
>
> We need to see the config.log which is in the directory
> /home/www/MinGW-src/build/mingw32/libgcc.
>
> Thanks,
> Cesar

Thanks! and I'm reading it.



--
View this message in context: http://mingw.5.n7.nabble.com/SPAM-I-m-a-newbie-to-MinGW-How-Can-I-build-MinGW-from-source-tp35651p35669.html
Sent from the MinGW - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

Ranger
My build OS: ubuntu 14
gcc version: 4.9
Note: my login account: www
How do fix the error in gcc rebuild?

I follow steps in Keith Marshall-3's reply for "Problem with configure when
trying to build gcc 5.3":
1.downloaded source code
binutils-2.25.1-1-mingw32-src.tar.xz
mingwrt-3.22.4-mingw32-src.tar.xz
w32api-3.18.2-mingw32-src.tar.xz
gcc-5.3.0-3-mingw32-src.tar.xz

2.mkdir /home/www/mingw32-src
  mkdir /home/www/mingw32
  cd /home/www/mingw32-src

3.mingwrt:
untar mingwrt-3.22.4-mingw32-src.tar.xz in /home/www/mingw32-src and get
mingwrt-3.22.4 folder
cd /home/www/mingw32-src/mingwrt3.22.4
./configure --prefix=/home/www/mingw32
make install-headers

4.w32api:
untar w32api-3.18.2-mingw32-src.tar.xz in  /home/www/mingw32-src and get
w32api-3.18.2 folder
cd /home/www/mingw32-src/w32api-3.18.2
./configure --prefix=/home/www/mingw32
make install-headers

5.GNU binutils:
untar binutils-2.25.1-1-mingw32-src.tar.xz in  /home/www/mingw32-src and get
binutils-2.25.1 folder
cd /homw/www/mingw32-src/binutils-2.25.1
mkdir build
cd build  (pwd is /home/www/mingw32-src/binutils-2.25.1/build)
../configure --prefix=/home/www/mingw32 --with-sysroot=/home/www/mingw32
--target=mingw32
make
make install

6.Symbolically link:
cd /home/www/mingw32
ln -s /home/www/mingw32 mingw

7.Prepare GCC source:
untar gcc-5.3.0-3-mingw32-src.tar.xz in /home/www/mingw32-src and get
gcc-5.3.0 folder
cd /home/www/mingw32-src
mkdir src
mv gcc-5.3.0 src
cd src/gcc-5.3.0 (pwd is /home/www/mingw32-src/src/gcc-5.3.0 )
./contrib/download_prerequisites

8.Build GCC:
cd /home/www/mingw32-src
mkdir build
cd build     (pwd is /home/www/mingw32-src/build)
../src/gcc-5.3.0/configure --prefix=/home/www/mingw32
--with-sysroot=/home/www/mingw32
make all-gcc (here has a error: can't find /home/www/mingw32/usr/include. I
mkdir this path and rebuild successfully)
make install-gcc

At present, I finish building cross compiler.
Next,I'll start to build second pass.
9. Prepare GCC source again:
untar gcc-5.3.0-3-mingw32-src.tar.xz in /home/www/mingw32-src and get
gcc-5.3.0 folder again
cd /home/www/mingw32-src
mkdir srcx
mv gcc-5.3.0 srcx
cd srcx/gcc-5.3.0 (pwd is /home/www/mingw32-src/srcx/gcc-5.3.0 )
./contrib/download_prerequisites

10.Build GCC again:
cd /home/ww/mingw32-src
mkdir buildx
cd buildx        (pwd is /home/www/mingw32-src/buildx)
mingw-pkg SRCDIR=../srcx/gcc-5.3.0 patch
../srcx/gcc-5.3.0/configure --prefix=/mingw --disable-win32-registry
--target=mingw32 --with-arch=i586 --enable-languages=c,c++ --enable-static
--enable-

shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions
--enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw
--with-libintl-

prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp
--disable-libvtv --enable-nls
make

------There is a error:
make[2]: Leaving directory `/home/www/mingw32-src/buildx/libcc1'
Checking multilib configuration for libgcc...
Configuring in mingw32/libgcc
configure: loading cache ./config.cache
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-mingw32
checking for --enable-version-specific-runtime-libs... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... mawk
checking for mingw32-ar... mingw32-ar
checking for mingw32-lipo... mingw32-lipo
checking for mingw32-nm... /home/www/mingw32-src/buildx/./gcc/nm
checking for mingw32-ranlib... mingw32-ranlib
checking for mingw32-strip... mingw32-strip
checking whether ln -s works... yes
checking for mingw32-gcc... /home/www/mingw32-src/buildx/./gcc/xgcc
-B/home/www/mingw32-src/buildx/./gcc/ -L/home/www/mingw32-

src/buildx/mingw32/winsup/mingw
-L/home/www/mingw32-src/buildx/mingw32/winsup/w32api/lib -isystem
/home/www/mingw32-src/srcx/gcc-5.3.0/winsup/mingw/include

-isystem /home/www/mingw32-src/srcx/gcc-5.3.0/winsup/w32api/include
-B/mingw/mingw32/bin/ -B/mingw/mingw32/lib/ -isystem /mingw/mingw32/include
-isystem

/mingw/mingw32/sys-include  
checking for suffix of object files... configure: error: in
`/home/www/mingw32-src/buildx/mingw32/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/home/www/mingw32-src/buildx'
make: *** [all] Error 2


------My config.log file in /home/www/mingw32-src/buildx/mingw32/libgcc:
 $ /home/www/mingw32-src/srcx/gcc-5.3.0/libgcc/configure
--srcdir=../../../srcx/gcc-5.3.0/libgcc --cache-file=./config.cache
--enable-multilib --with-

cross-host=i686-pc-linux-gnu --prefix=/mingw --disable-win32-registry
--with-arch=i586 --enable-static --enable-shared --enable-threads
--with-dwarf2 --

disable-sjlj-exceptions --enable-version-specific-runtime-libs
--with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw
--enable-libstdcxx-debug --with-

tune=generic --enable-libgomp --disable-libvtv --enable-nls
--enable-languages=c,c++,lto --program-transform-name=s&^&mingw32-&
--disable-option-checking

--with-target-subdir=mingw32 --build=i686-pc-linux-gnu --host=mingw32
--target=mingw32

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

hostname = ubuntu
uname -m = i686
uname -r = 3.13.0-32-generic
uname -s = Linux
uname -v = #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014

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

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

PATH: /usr/java/jre/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
PATH: /usr/java/jre/bin


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

configure:2018: loading cache ./config.cache
configure:2232: checking build system type
configure:2246: result: i686-pc-linux-gnu
configure:2266: checking host system type
configure:2279: result: i686-pc-mingw32
configure:2382: checking for --enable-version-specific-runtime-libs
configure:2395: result: yes
configure:2443: checking for a BSD-compatible install
configure:2511: result: /usr/bin/install -c
configure:2527: checking for gawk
configure:2554: result: mawk
configure:2654: checking for mingw32-ar
configure:2681: result: mingw32-ar
configure:2746: checking for mingw32-lipo
configure:2773: result: mingw32-lipo
configure:2838: checking for mingw32-nm
configure:2865: result: /home/www/mingw32-src/buildx/./gcc/nm
configure:2930: checking for mingw32-ranlib
configure:2957: result: mingw32-ranlib
configure:3022: checking for mingw32-strip
configure:3049: result: mingw32-strip
configure:3111: checking whether ln -s works
configure:3115: result: yes
configure:3132: checking for mingw32-gcc
configure:3159: result: /home/www/mingw32-src/buildx/./gcc/xgcc
-B/home/www/mingw32-src/buildx/./gcc/
-L/home/www/mingw32-src/buildx/mingw32/winsup/mingw

-L/home/www/mingw32-src/buildx/mingw32/winsup/w32api/lib -isystem
/home/www/mingw32-src/srcx/gcc-5.3.0/winsup/mingw/include -isystem
/home/www/mingw32-

src/srcx/gcc-5.3.0/winsup/w32api/include -B/mingw/mingw32/bin/
-B/mingw/mingw32/lib/ -isystem /mingw/mingw32/include -isystem
/mingw/mingw32/sys-include  
configure:3428: checking for C compiler version
configure:3437: /home/www/mingw32-src/buildx/./gcc/xgcc
-B/home/www/mingw32-src/buildx/./gcc/
-L/home/www/mingw32-src/buildx/mingw32/winsup/mingw -

L/home/www/mingw32-src/buildx/mingw32/winsup/w32api/lib -isystem
/home/www/mingw32-src/srcx/gcc-5.3.0/winsup/mingw/include -isystem
/home/www/mingw32-

src/srcx/gcc-5.3.0/winsup/w32api/include -B/mingw/mingw32/bin/
-B/mingw/mingw32/lib/ -isystem /mingw/mingw32/include -isystem
/mingw/mingw32/sys-include    

--version >&5
xgcc (GCC) 5.3.0
Copyright (C) 2015 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:3448: $? = 0
configure:3437: /home/www/mingw32-src/buildx/./gcc/xgcc
-B/home/www/mingw32-src/buildx/./gcc/
-L/home/www/mingw32-src/buildx/mingw32/winsup/mingw -

L/home/www/mingw32-src/buildx/mingw32/winsup/w32api/lib -isystem
/home/www/mingw32-src/srcx/gcc-5.3.0/winsup/mingw/include -isystem
/home/www/mingw32-

src/srcx/gcc-5.3.0/winsup/w32api/include -B/mingw/mingw32/bin/
-B/mingw/mingw32/lib/ -isystem /mingw/mingw32/include -isystem
/mingw/mingw32/sys-include    

-v >&5
Reading specs from /home/www/mingw32-src/buildx/./gcc/specs
COLLECT_GCC=/home/www/mingw32-src/buildx/./gcc/xgcc
COLLECT_LTO_WRAPPER=/home/www/mingw32-src/buildx/./gcc/lto-wrapper
Target: mingw32
Configured with: ../srcx/gcc-5.3.0/configure --prefix=/mingw
--disable-win32-registry --target=mingw32 --with-arch=i586
--enable-languages=c,c++ --enable-

static --enable-shared --enable-threads --with-dwarf2
--disable-sjlj-exceptions --enable-version-specific-runtime-libs
--with-libiconv-prefix=/mingw --

with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic
--enable-libgomp --disable-libvtv --enable-nls : (reconfigured) ../srcx/gcc-

5.3.0/configure --prefix=/mingw --disable-win32-registry --target=mingw32
--with-arch=i586 --enable-languages=c,c++ --enable-static --enable-shared --

enable-threads --with-dwarf2 --disable-sjlj-exceptions
--enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw
--with-libintl-prefix=/mingw

--enable-libstdcxx-debug --with-tune=generic --enable-libgomp
--disable-libvtv --enable-nls
Thread model: win32
gcc version 5.3.0 (GCC)
configure:3448: $? = 0
configure:3437: /home/www/mingw32-src/buildx/./gcc/xgcc
-B/home/www/mingw32-src/buildx/./gcc/
-L/home/www/mingw32-src/buildx/mingw32/winsup/mingw -

L/home/www/mingw32-src/buildx/mingw32/winsup/w32api/lib -isystem
/home/www/mingw32-src/srcx/gcc-5.3.0/winsup/mingw/include -isystem
/home/www/mingw32-

src/srcx/gcc-5.3.0/winsup/w32api/include -B/mingw/mingw32/bin/
-B/mingw/mingw32/lib/ -isystem /mingw/mingw32/include -isystem
/mingw/mingw32/sys-include    

-V >&5
xgcc: error: unrecognized command line option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3448: $? = 1
configure:3437: /home/www/mingw32-src/buildx/./gcc/xgcc
-B/home/www/mingw32-src/buildx/./gcc/
-L/home/www/mingw32-src/buildx/mingw32/winsup/mingw -

L/home/www/mingw32-src/buildx/mingw32/winsup/w32api/lib -isystem
/home/www/mingw32-src/srcx/gcc-5.3.0/winsup/mingw/include -isystem
/home/www/mingw32-

src/srcx/gcc-5.3.0/winsup/w32api/include -B/mingw/mingw32/bin/
-B/mingw/mingw32/lib/ -isystem /mingw/mingw32/include -isystem
/mingw/mingw32/sys-include    

-qversion >&5
xgcc: error: unrecognized command line option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
configure:3448: $? = 1
configure:3464: /home/www/mingw32-src/buildx/./gcc/xgcc
-B/home/www/mingw32-src/buildx/./gcc/
-L/home/www/mingw32-src/buildx/mingw32/winsup/mingw -

L/home/www/mingw32-src/buildx/mingw32/winsup/w32api/lib -isystem
/home/www/mingw32-src/srcx/gcc-5.3.0/winsup/mingw/include -isystem
/home/www/mingw32-

src/srcx/gcc-5.3.0/winsup/w32api/include -B/mingw/mingw32/bin/
-B/mingw/mingw32/lib/ -isystem /mingw/mingw32/include -isystem
/mingw/mingw32/sys-include    

-o conftest -g -O2   conftest.c  >&5
/home/www/mingw32-src/buildx/./gcc/as: 106: exec: -o: not found
configure:3467: $? = 1
configure:3655: checking for suffix of object files
configure:3677: /home/www/mingw32-src/buildx/./gcc/xgcc
-B/home/www/mingw32-src/buildx/./gcc/
-L/home/www/mingw32-src/buildx/mingw32/winsup/mingw -

L/home/www/mingw32-src/buildx/mingw32/winsup/w32api/lib -isystem
/home/www/mingw32-src/srcx/gcc-5.3.0/winsup/mingw/include -isystem
/home/www/mingw32-

src/srcx/gcc-5.3.0/winsup/w32api/include -B/mingw/mingw32/bin/
-B/mingw/mingw32/lib/ -isystem /mingw/mingw32/include -isystem
/mingw/mingw32/sys-include    

-c -g -O2  conftest.c >&5
/home/www/mingw32-src/buildx/./gcc/as: 106: exec: -o: not found
configure:3681: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3695: error: in `/home/www/mingw32-src/buildx/mingw32/libgcc':
configure:3698: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value='/home/www/mingw32-src/buildx/./gcc/xgcc
-B/home/www/mingw32-src/buildx/./gcc/
-L/home/www/mingw32-src/buildx/mingw32/winsup/mingw -

L/home/www/mingw32-src/buildx/mingw32/winsup/w32api/lib -isystem
/home/www/mingw32-src/srcx/gcc-5.3.0/winsup/mingw/include -isystem
/home/www/mingw32-

src/srcx/gcc-5.3.0/winsup/w32api/include -B/mingw/mingw32/bin/
-B/mingw/mingw32/lib/ -isystem /mingw/mingw32/include -isystem
/mingw/mingw32/sys-include  

'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=mingw32
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=mingw32
ac_cv_host=i686-pc-mingw32
ac_cv_prog_AR=mingw32-ar
ac_cv_prog_AWK=mawk
ac_cv_prog_CC='/home/www/mingw32-src/buildx/./gcc/xgcc
-B/home/www/mingw32-src/buildx/./gcc/
-L/home/www/mingw32-src/buildx/mingw32/winsup/mingw -

L/home/www/mingw32-src/buildx/mingw32/winsup/w32api/lib -isystem
/home/www/mingw32-src/srcx/gcc-5.3.0/winsup/mingw/include -isystem
/home/www/mingw32-

src/srcx/gcc-5.3.0/winsup/w32api/include -B/mingw/mingw32/bin/
-B/mingw/mingw32/lib/ -isystem /mingw/mingw32/include -isystem
/mingw/mingw32/sys-include  

'
ac_cv_prog_LIPO=mingw32-lipo
ac_cv_prog_NM=/home/www/mingw32-src/buildx/./gcc/nm
ac_cv_prog_RANLIB=mingw32-ranlib
ac_cv_prog_STRIP=mingw32-strip

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

AR='mingw32-ar'
AWK='mawk'
CC='/home/www/mingw32-src/buildx/./gcc/xgcc
-B/home/www/mingw32-src/buildx/./gcc/
-L/home/www/mingw32-src/buildx/mingw32/winsup/mingw -L/home/www/mingw32-

src/buildx/mingw32/winsup/w32api/lib -isystem
/home/www/mingw32-src/srcx/gcc-5.3.0/winsup/mingw/include -isystem
/home/www/mingw32-src/srcx/gcc-

5.3.0/winsup/w32api/include -B/mingw/mingw32/bin/ -B/mingw/mingw32/lib/
-isystem /mingw/mingw32/include -isystem /mingw/mingw32/sys-include   '
CFLAGS='-g -O2'
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIPO='mingw32-lipo'
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
NM='/home/www/mingw32-src/buildx/./gcc/nm'
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='GNU C Runtime Library'
PACKAGE_STRING='GNU C Runtime Library 1.0'
PACKAGE_TARNAME='libgcc'
PACKAGE_URL='http://www.gnu.org/software/libgcc/'
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
PICFLAG=''
RANLIB='mingw32-ranlib'
SHELL='/bin/bash'
STRIP='mingw32-strip'
ac_ct_CC=''
accel_dir_suffix=''
asm_hidden_op=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_libsubdir='build-i686-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-i686-pc-linux-gnu'
build_vendor='pc'
cpu_type=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
decimal_float=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
double_type_size=''
dvidir='${docdir}'
enable_decimal_float=''
enable_shared='yes'
enable_vtable_verify='no'
exec_prefix='NONE'
extra_parts=''
fixed_point=''
force_explicit_eh_registry=''
host='i686-pc-mingw32'
host_alias='mingw32'
host_cpu='i686'
host_noncanonical='mingw32'
host_os='mingw32'
host_subdir='.'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libgcc_topdir='../../../srcx/gcc-5.3.0/libgcc/..'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
long_double_type_size=''
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/mingw'
program_transform_name='s&^&mingw32-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
set_have_cc_tls=''
set_use_emutls=''
sfp_machine_header=''
sharedstatedir='${prefix}/com'
slibdir='$(libsubdir)'
sysconfdir='${prefix}/etc'
target_alias='mingw32'
target_noncanonical='mingw32'
target_subdir='mingw32'
thread_header=''
tm_defines=''
tm_file=''
tmake_file=''
toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
vis_hide=''
with_aix_soname='aix'

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

/* confdefs.h */
#define PACKAGE_NAME "GNU C Runtime Library"
#define PACKAGE_TARNAME "libgcc"
#define PACKAGE_VERSION "1.0"
#define PACKAGE_STRING "GNU C Runtime Library 1.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL "http://www.gnu.org/software/libgcc/"

configure: exit 1



--
View this message in context: http://mingw.5.n7.nabble.com/SPAM-I-m-a-newbie-to-MinGW-How-Can-I-build-MinGW-from-source-tp35651p35672.html
Sent from the MinGW - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

Keith Marshall
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 23/02/17 02:23, Ranger wrote:
> My build OS: ubuntu 14
> gcc version: 4.9

FWIW, I'm on LinuxMint Debian Edition, with gcc-4.8.2 as host compiler;
a bit older than yours, but that shouldn't matter.

> Note: my login account: www

If you always refer to your home directory as $HOME, that's irrelevant.

> How do fix the error in gcc rebuild?
>
> I follow steps in Keith Marshall-3's reply for "Problem with
> configure when trying to build gcc 5.3":

Well, you didn't follow them religiously :-)

> 1.downloaded source code
> binutils-2.25.1-1-mingw32-src.tar.xz
> mingwrt-3.22.4-mingw32-src.tar.xz
> w32api-3.18.2-mingw32-src.tar.xz
> gcc-5.3.0-3-mingw32-src.tar.xz

Okay, I reviewed (and repeated) my build procedure, (to remind myself
what I did, and to check that I hadn't overlooked anything).  I used:

- - binutils-2.26 (from a GNU distribution mirror)
- - gcc-5.3.0 (as distributed by MinGW.org, with our patches applied)
- - mingwrt-5.0 preview snapshot, as posted 2017-02-12
- - w32api-5.0 preview snapshot (likewise)

> 2.mkdir /home/www/mingw32-src
>   mkdir /home/www/mingw32
>   cd /home/www/mingw32-src

I used a slight modification of this:

  $ mkdir -p $HOME/mingw32-src/build/{binutils,gcc,mingwrt,w32api}
  $ cd mingw32-src

then unpacked the mingwrt and w32api tarballs; (for gcc and binutils,
I created symbolic links to previously unpacked working copies, which
I happened to have elsewhere within my file system).

> 3.mingwrt:
> untar mingwrt-3.22.4-mingw32-src.tar.xz in /home/www/mingw32-src and
> get mingwrt-3.22.4 folder
> cd /home/www/mingw32-src/mingwrt3.22.4
> ./configure --prefix=/home/www/mingw32

You don't say how you established the $HOME/mingw32 directory, into
which this will install; rather than leaving this...

> make install-headers

...to establish it by default, (and overwrite anything which may be
there already), I prefer to do something like, (with knowledge that
$HOME/mingw32-gcc-sandbox definitely doesn't exist beforehand):

  $ mkdir $HOME/mingw32-gcc-sandbox
  $ (cd $HOME && ln -fs mingw32-gcc-sandbox mingw32)
  $ (cd $HOME/mingw32 && ln -s . mingw)

and ensure that $HOME/mingw32/bin is included at or near the end of
$PATH; (I have this set in $HOME/.profile):

  test -d $HOME/mingw32/bin && PATH=$PATH:$HOME/mingw32/bin

This allows me to have multiple side-by-side installations, (different
versions, or alternative experimental builds), and switch between them
by the simple expedient of remapping one symbolic link.

With that all set up, then you should configure fully:

  $ cd build/mingwrt
  $ ../../mingwrt-5.0/configure --build=unknown --host=mingw32 \
     --prefix=$HOME/mingw32
  $ make install-headers

> 4.w32api:
> untar w32api-3.18.2-mingw32-src.tar.xz in  /home/www/mingw32-src and
> get w32api-3.18.2 folder
> cd /home/www/mingw32-src/w32api-3.18.2
> ./configure --prefix=/home/www/mingw32
> make install-headers

Likewise, you should configure fully:

  $ cd ../w32api
  $ ../../w32api-5.0/configure --build=unknown --host=mingw32 \
     --prefix=$HOME/mingw32
  $ make install-headers

> 5.GNU binutils:
> untar binutils-2.25.1-1-mingw32-src.tar.xz in /home/www/mingw32-src
> and get binutils-2.25.1 folder
> cd /homw/www/mingw32-src/binutils-2.25.1
> mkdir build
> cd build  (pwd is /home/www/mingw32-src/binutils-2.25.1/build)
> ../configure --prefix=/home/www/mingw32 \
>  --with-sysroot=/home/www/mingw32 --target=mingw32
> make
> make install

That looks okay; I did it mostly the same:

  $ cd ../binutils
  $ ../../binutils-2.26/configure --target=mingw32 \
     --{prefix,with-sysroot}=$HOME/mingw32 --disable-nls
  $ make && make install

> 6.Symbolically link:
> cd /home/www/mingw32
> ln -s /home/www/mingw32 mingw

Again, looks okay, (although I prefer the 'ln -s . mingw' format).

> 7.Prepare GCC source:
> untar gcc-5.3.0-3-mingw32-src.tar.xz in /home/www/mingw32-src and get
> gcc-5.3.0 folder

Okay, but your next step seems kind of pointless:

> cd /home/www/mingw32-src
> mkdir src
> mv gcc-5.3.0 src
> cd src/gcc-5.3.0 (pwd is /home/www/mingw32-src/src/gcc-5.3.0 )

(You can just as well leave the source at $HOME/mingw32-src/gcc-5.3.0).

> ./contrib/download_prerequisites

I didn't use this; I manually downloaded gmp, mpfr, and mpc, unpacked
all of them in $HOME/mingw32-src, then:

  $ cd $HOME/mingw32-src/gcc-5.3.0
  $ ln -s ../gmp-6.1.0 gmp
  $ ln -s ../mpfr-3.1.3 mpfr
  $ ln -s ../mpc-1.0.2 mpc

Then, while you're here, and before you proceed any further, you should
apply the MinGW.org patches, (which are delivered in the MinGW source
tarball, along with *unpatched* original GCC source); if you installed
mingw-pkg, then the easiest way to do this is:

  $ mingw-pkg patch

otherwise, you could do it like this:

  $ (for p in arch/mingw32/*.patch; do patch -p1 < $p; done)

> 8.Build GCC:
> cd /home/www/mingw32-src
> mkdir build
> cd build     (pwd is /home/www/mingw32-src/build)
> ../src/gcc-5.3.0/configure --prefix=/home/www/mingw32 \
>  --with-sysroot=/home/www/mingw32

Once again, you should configure it fully:

  $ cd $HOME/mingw32-src/build/gcc
  $ ../../gcc-5.3.0/configure --{prefix,with-sysroot}=$HOME/mingw32 \
     --target=mingw32 --with-arch=i586 --with-tune=generic \
     --enable-shared --enable-threads --disable-win32-registry \
     --disable-sjlj-exceptions --disable-multilib --disable-nls \
     --disable-libvtv --with-dwarf2 --enable-languages=c,c++
  $ make all-gcc && make install-gcc

> make all-gcc (here has a error: can't find
> /home/www/mingw32/usr/include.

Likely a consequence of your incomplete configuration; when configured
as I've indicated, I see no such problem...

> I mkdir this path and rebuild successfully)

...and here, rather than eliminating the cause of the problem, you've
kludged around a symptom of it, likely leaving further consequences to
surface later.

> make install-gcc

Yes, but what is it installing, and where?  Since it wasn't properly
configured, it's likely as useful as a chocolate teapot.

At this point, I would like to throw in a caveat, of which I have been
reminded on working through the procedure again: even if you ultimately
aim to create an OpenMP enabled cross-compiler, you should *not* add
the '--enable-libgomp' configuration option at this stage.  If you do,
you will not be able to complete the stage-2 gcc build, without having
installed pthreads support, and you will not be able to compile that
pthreads support until after you have completed the stage-2 gcc build.

> At present, I finish building cross compiler.

No, you haven't; you've merely completed the stage-1 gcc build and
installed it into $HOME/mingw32.  Before you go any further, you
should confirm that it is accessible via $PATH, and is working:

  $ which mingw32-gcc
  /home/keith/mingw32/bin/mingw32-gcc

  $ mingw32-gcc --version
  mingw32-gcc (GCC) 5.3.0
  Copyright (C) 2015 Free Software Foundation, Inc.
  ...

> Next,I'll start to build second pass.

You're not ready to do that yet!  Your next step *must* be to go back
to mingwrt, and to w32api, to build and install the runtime libraries;
without them, the stage-2 gcc build will fail; (indeed, it's to give
you an opportunity to install these, that the gcc build is segregated
into two separate stages):

  $ cd ../mingwrt
  $ ./config.status --recheck
  $ ./config.status
  $ make
  $ make install

  $ cd ../w32api
  $ ./config.status --recheck
  $ ./config.status
  $ make
  $ make install

Now, you're ready to proceed with the stage-2 gcc build; however...

> 9. Prepare GCC source again:
> untar gcc-5.3.0-3-mingw32-src.tar.xz in /home/www/mingw32-src and get
> gcc-5.3.0 folder again
> cd /home/www/mingw32-src
> mkdir srcx
> mv gcc-5.3.0 srcx
> cd srcx/gcc-5.3.0 (pwd is /home/www/mingw32-src/srcx/gcc-5.3.0 )
> ./contrib/download_prerequisites

...this is utterly futile, and together with this...

> 10.Build GCC again:
> cd /home/ww/mingw32-src
> mkdir buildx
> cd buildx        (pwd is /home/www/mingw32-src/buildx)
> mingw-pkg SRCDIR=../srcx/gcc-5.3.0 patch
> ../srcx/gcc-5.3.0/configure --prefix=/mingw --disable-win32-registry \
>   --target=mingw32 --with-arch=i586 --enable-languages=c,c++ \
>   --enable-static --enable-shared --enable-threads --with-dwarf2 \
>   --disable-sjlj-exceptions --enable-version-specific-runtime-libs \
>   --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw \
>   --enable-libstdcxx-debug --with-tune=generic --enable-libgomp \
>   --disable-libvtv --enable-nls

...is entirely wrong!  (I don't mean because you've chosen different
options to those that I did; for you, your choice may be appropriate.  
However, your --prefix is definitely wrong -- should be the same as
you used in the stage-1 build -- and --with-sysroot is required, but
conspicuously absent.  Also, I'd question your references to /mingw;
does your Ubuntu box have any such directory?)

What you *should do*, at this point, is:

  $ cd ../gcc
  $ make all
  $ make install

to complete the stage-2 build, and final installation of the *cross*
compiler; (note that it will *not* be OpenMP enabled -- if you want to
pursue that aspect, we can follow up in a future post).  Also, if you
still want to pursue the use of the cross-compiler to create a native
Windows gcc build, (and please explain why you think you need to do
this, because it isn't at all clear why you think you might need it),
we can follow up on that, later.

- --
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJYr18pAAoJEMCtNsY0flo/9YgP/0mkgbaNCD8TuW8cCpwI46mG
SqXbEX1MNCL6TAalXSwtyOJbfwWRnO39JCtxokr/SbYxVwnnvSyMFok3rztld/H2
nwjA7gJmY0iEZE2dx6PrHf9x1BgklChLTgCt+C0zZokFou0qVznEr1uvrlGQt4Jj
EwePzbwDX6mBH1pjD4QIdPwC6a0Jweu/K1tsrGnULSbtYSl/rRgXTW8/JXCZ49aW
Q5aqLPq8hsarKxB88oOHQf4+qI91LyNPiula5/J4JyOXKgBCbhV6iBoMBXrkLAhs
sMB5Lpcd7DRLKtOski44WwYuc8/HwckhZsEAUMR4yKN9uaLT7TS4nsQwOTcI6Q8L
UEODQOz1YDKiVdvVXMGmFsQLCLScnXYnVqbb3TGmOu0W2bjtVOot8sMThNLG8mRz
4GVDWKjp79Du05A1Qufqmbx14LBkOgD814+9kXDXOWziE/19BzONK8hQxKyIMp7B
ni7Dg+6e3fN5ZwGT4R0NrwK2juPRUuxJ7JE/nR3YMr9w0fsbox9MC7ZxEecLgtEX
1zA9MBkypDpPmSCN2sxvImqiKM8jUFyMUojC9dzLRwQKKm+RU5IhdPt8QFoZcvoH
Jr5Ci0nPS+CwdNABwmkoWmW0NyvZj5zT4Xjt3HF7JQkzZ5NuUZH5XRqrFpQBwp3I
b8Y6XBpvkSp2d0yzjbYP
=NNlX
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

Ranger
Thanks for Keith Marshall-3's patience!
As Keith Marshall-3 said, I done things wrong before!

Now I'm following steps and instructions above described by Keith
Marshall-3:
At the last step:

>Feb 24, 2017; 6:16am — by  Keith Marshall-3 Keith Marshall-3

>What you *should do*, at this point, is:

>  $ cd ../gcc
>  $ make all
>  $ make install

>to complete the stage-2 build, and final installation of the *cross*
>compiler; (note that it will *not* be OpenMP enabled -- if you want to
>pursue that aspect, we can follow up in a future post).  Also, if you
>still want to pursue the use of the cross-compiler to create a native
Windows gcc build, (and please explain why you think you need to do
this, because it isn't at all clear why you think you might need it),
we can follow up on that, later.


The compiling process display a error and exit. The error message is:

make[4]: Entering directory
`/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/include'
mkdir -p ./mingw32/bits/stdc++.h.gch
/home/www/mingw32-src/build/gcc/./gcc/xgcc -shared-libgcc
-B/home/www/mingw32-src/build/gcc/./gcc -nostdinc++
-L/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/src
-L/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/src/.libs
-L/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/libsupc++/.libs
-L/home/www/mingw32-src/build/gcc/mingw32/winsup/mingw
-L/home/www/mingw32-src/build/gcc/mingw32/winsup/w32api/lib -isystem
/home/www/mingw32-src/gcc-5.3.0/winsup/mingw/include -isystem
/home/www/mingw32-src/gcc-5.3.0/winsup/w32api/include
-B/home/www/mingw32/mingw32/bin/ -B/home/www/mingw32/mingw32/lib/ -isystem
/home/www/mingw32/mingw32/include -isystem
/home/www/mingw32/mingw32/sys-include    -x c++-header -nostdinc++ -g -O2
-I/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/include/mingw32
-I/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/include
-I/home/www/mingw32-src/gcc-5.3.0/libstdc++-v3/libsupc++ -O2 -g -std=gnu++0x
/home/www/mingw32-src/gcc-5.3.0/libstdc++-v3/include/precompiled/stdc++.h \
        -o mingw32/bits/stdc++.h.gch/O2ggnu++0x.gch
In file included from
/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/include/string:52:0,
                 from
/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/include/bits/locale_classes.h:40,
                 from
/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/include/bits/ios_base.h:41,
                 from
/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/include/ios:42,
                 from
/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/include/istream:38,
                 from
/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/include/sstream:38,
                 from
/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/include/complex:45,
                 from
/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/include/ccomplex:38,
                 from
/home/www/mingw32-src/gcc-5.3.0/libstdc++-v3/include/precompiled/stdc++.h:52:
/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/include/bits/basic_string.h:
In function 'float std::__cxx11::stof(const wstring&, std::size_t*)':
/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/include/bits/basic_string.h:5390:31:
error: 'wcstof' is not a member of 'std'
   { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
                               ^
/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/include/bits/basic_string.h:5390:31:
note: suggested alternative:
In file included from
/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/include/cstdlib:72:0,
                 from
/home/www/mingw32-src/gcc-5.3.0/libstdc++-v3/include/precompiled/stdc++.h:47:
/home/www/mingw32/mingw/include/stdlib.h:407:7: note:   'wcstof'
 float wcstof (const wchar_t *__restrict__, wchar_t **__restrict__);
       ^
make[4]: *** [mingw32/bits/stdc++.h.gch/O2ggnu++0x.gch] Error 1
make[4]: Leaving directory
`/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3/include'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/www/mingw32-src/build/gcc/mingw32/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/home/www/mingw32-src/build/gcc'
make: *** [all] Error 2


I tried to add CFLAGS="-g -O2 -std=gnu99" to the end of configure but the
error still exist:
../../gcc-5.3.0/configure --prefix=/home/www/mingw32
--with-sysroot=/home/www/mingw32 --target=mingw32 --with-arch=i586
--with-tune=generic --enable-shared --enable-threads
--disable-win32-registry -disable-sjlj-exceptions --disable-multilib
--disable-nls --disable-libvtv --with-dwarf2 target_alias=mingw32
--enable-languages=c,c++,lto --no-create --no-recursion CFLAGS="-g -O2
-std=gnu99"

How do I fix this problem?

Best Regards!
Wang LingJun



--
View this message in context: http://mingw.5.n7.nabble.com/SPAM-I-m-a-newbie-to-MinGW-How-Can-I-build-MinGW-from-source-tp35651p35680.html
Sent from the MinGW - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

Keith Marshall
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 25/02/17 04:31, Ranger wrote:
> Thanks for Keith Marshall-3's patience!

You will exhaust it, if you keep calling me Keith Marshall-3.  Where
are you getting this from anyway?  It is not my name, and I find your
persistent use of it to be rather impolite.  My given name is Keith;
my family name is Marshall, and "-3" has no business to be there at
all; please, just call me Keith.

> ...

> error: 'wcstof' is not a member of 'std'

Are you still building against mingwrt-2.22.4?  Or did you switch to
the mingwrt-5.0 preview?  I didn't fall foul of it myself, but this is
a recently identified (upstream) GCC bug, and some other condition had
already prompted me to apply the workaround:

https://sourceforge.net/p/mingw/mingw-org-wsl/ci/617f15b16863cb5d542d1134e44e8fbd72739ad4/

If you are using the mingwrt-5.0 snapshot, either apply that patch,
remake, and reinstall mingwrt, (or simply replace your installed copy
of $HOME/mingw32/include/_mingw.h with the attached update [*]), then
retry the stage-2 gcc build.

[*]: note that, if you simply replace the installed copy, that will
cease to match your local source tree; applying the patch, and then
rebuilding, is the more robust way to proceed).

- --
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJYsaepAAoJEMCtNsY0flo/J+AP/38ToYoeg8wqzTu49cRJsGXr
Emr9+VYKqKBbuHttpY7kmvAtFk/1dUn7Mlrzca8WxEj3//l6HeHdKpWkZxYogeYp
7gF8Zf2xRRiU+i/VJmIO2u969SmZ4aKF2G8E8D3DPu9JeUQzOBq6CNolxOg2zEzS
MvEe7/Ey7J6lB9X5PU23mPSYzESZkRPNZ7UjLa+Re3RxLq9EMSQcIY5v/7cDRRTF
+Y6P8ubte3ffiH66UOMzWuUbTYk3RSMk2Ip6a0jWd0WPg5rUlWFvf3/B7qtOiUAb
lG9aBTPlqcO6TS/e1mLyKZFC5kesDYZRwhTVpriiFjKJHtfi+ALUlrX7/I/kKdrV
AqsZSLNyW959mflzz0WrjPWmGLCSmMWw1YFdTBRZtW4DNx8HU11g9SZF7gNRY65+
jB5XTELHVKJOB0tmFQwt8TdMI9V/YMGIo0D7sGifI9xfLLnNrfVhtIHeT13tCz32
Bo7OHvjFBA0sB4+98P38DVRGTRnlTC/7uN7ODhRnhWhACG73obTTRp0BgAwH5JFM
DPpu4DLdcoqeXIiTErJPuAD/7a0tVZne7fcjRKtF+B8Xo32a87WSmZf2k5f+1aKW
+ZMBIQF22B0ebVR1hNjaK/WM28528VQEQGQCIQ5DYgs3UwK5RP9KSnM+W7M6tQbC
kdIEJp2f4dPng4Vjkz6/
=l/xS
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe

_mingw.h (18K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

firebird
On Feb 25, 2017 11:50pm: Keith wrote:
>You will exhaust it, if you keep calling me Keith Marshall-3.  Where
>are you getting this from anyway?  It is not my name, and I find your
>persistent use of it to be rather impolite.  My given name is Keith;
>my family name is Marshall, and "-3" has no business to be there at
>all; please, just call me Keith.

Sorry,sorry,sorry!
Firstly, I don't mean to offend you! :)
Secondly,thanks for your forgiveness and patience.

>Are you still building against mingwrt-2.22.4?  Or did you switch to
>the mingwrt-5.0 preview?  I didn't fall foul of it myself, but this is
>a recently identified (upstream) GCC bug, and some other condition had
>already prompted me to apply the workaround:

I'm building against mingwrt-5.0 preview.  I take the workaround and build
the gcc compiler successfully.
I have learned a lot from the building and your instructions. I mean it, not
just polite!

I wanna DIY gcc compiler. I want to use MinGW to build window-hosted ARM
toolchains. There are some known out-of-box tools  or windows installer, but
I think DIY at source level maybe more useful to me. At first, I need to
learn how to build the compiler from scratch. Am I take a hard way? Any
suggestions?

Best Regards!
Wang LingJun



--
View this message in context: http://mingw.5.n7.nabble.com/SPAM-I-m-a-newbie-to-MinGW-How-Can-I-build-MinGW-from-source-tp35651p35688.html
Sent from the MinGW - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I'm a newbie to MinGW. How Can I build MinGW from source?

Keith Marshall
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 26/02/17 10:40, firebird wrote:
> I'm building against mingwrt-5.0 preview.  I take the workaround and
> build the gcc compiler successfully.
>
> I wanna DIY gcc compiler.

Well, you have that now; it's GNU/Linux hosted, and it builds binaries
for deployment on 32-bit MS-Windows, (or 64-bit in 32-bit mode).

> I want to use MinGW to build window-hosted ARM toolchains.

Do they need to be Windows hosted?  Since your host is GNU/Linux, would
Linux hosted ARM tools not be more useful to you?

> There are some known out-of-box tools or windows installer,

For which you would need a Windows host.  In your case, you could run
a virtual machine, but that could turn out to be an order of magnitude
slower than tools running natively on the GNU/Linux host.

> I think DIY at source level maybe more useful to me. At first, I need
> to learn how to build the compiler from scratch.

You've already done that.  Now you can use it to build applications
which will run on Windows; invoke it as "mingw32-gcc" or "mingw32-g++",
just as you would invoke "gcc" or "g++" to build applications to run on
the GNU/Linux host.  If the source uses a GNU standard configure script,
you configure as you would for a native Linux build, but you must add
the "--build=unknown --host=mingw32" configuration options; if you
are building tools to run on Windows, but generate ARM code, you
probably also need "--target=arm", (or appropriate identifier).

In your position, I would be seeking to adapt the technique I've just
used to build a Linux hosted compiler for the mingw32 target, to build
Linux hosted tools for the ARM target.

- --
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJYssyhAAoJEMCtNsY0flo/tSkQAKufRXwSXksL0lf1jYTFAIgN
h+9eiifWTiQOUVrJThP/iMbAIOupKIOAIHtGsfqQXAVzgg4MyY3e4DfSPS2NKwAv
PQg1Wo0QKOGaDtOAVrmcvaHW/UbJGCSHyNryPYmjEp4P4zsXrBdPeGK/eqNxdA0j
XNHQ4f+O+c7rwFOBeqarBnKp7uglJlGNHrpSti8QIBwJWFFXxLgU2TRNkUGMPav9
RcM2mRWXwHLRRVAy6ZZb78pEgtXbCe6cKGhqd8DGbCM5NHGkiLvhymkw5F4iajjP
B4ZR2ucPPwSGuuSb9bc/E5qi9dF0NZqSJqDVPihVdeD22twVEqxRWx9d6X2PPQrc
3FuhJrVernY+7oLXiHysOS709H9WCPzuN+P0XZQKCYLIXoGs8MS7RksLAKNqRxYc
M4WNS9PpmQiuRf9rz01TBonLbP5YCQ8zbHEoOh+Vz9nk9jTf9NIot3A0inCKg7PV
VMcaDqX+BGdh2anh+TyCP0kyo8Oecr7lbkW6bG2L53msrEyvco55/HNeRMfOvJO9
40uLnQgJHfYn1CtVXx+6zRAFk0sinwRBkYXVKLjMVw0d72J26sSLR/c37xsiAxnH
DjrSLJx8lrUhS7ma+K7dYkTdp14tU5DacdBgBQ3j5jdEKaktnvQGohgnZ3CryIz7
qLdcbYvrJZibWENEfj4R
=GQrM
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
12
Loading...