Web lists-archives.com

Re: [Mingw-users] I'm a newbie to MinGW. How Can I build MinGW from source?




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
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

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:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe