MinGW w64

Mojca Miklavec mojca at macports.org
Wed Jun 25 03:46:58 PDT 2014


On Wed, Jun 25, 2014 at 11:20 AM, Ryan Schmidt wrote:
>
>> mojca/x86_64-w64-mingw32-crt: initial port
>
> This commit message doesn't appear to be correct.
>
>> Modified Paths
>>
>>       • users/mojca/ports/cross/x86_64-w64-mingw32-gcc/Portfile
>>       • users/mojca/ports/cross/x86_64-w64-mingw32-headers/Portfile

OK, it could be "x86_64-w64-mingw32-crt: initial suport + other
patches needed to make it work".

Despite the commit modifying files other than the one mentioned in the
commit message, it's not entirely off.

Did you want to suggest to actually try to modify the commit message?


Other than that, if anyone else is interested in MinGW, I currently
fight with the following problems:

(1) /opt/local/x86_64-w64-mingw32/bin/ld: this linker was not
configured to use sysroots

in response to

/path/to/x86_64-w64-mingw32-libgcc/work/build/./gcc/xgcc
-B/path/to/x86_64-w64-mingw32-libgcc/work/build/./gcc/
-L/opt/local/x86_64-w64-mingw32/lib -L/opt/local/mingw/lib -isystem
/opt/local/x86_64-w64-mingw32/include -isystem
/opt/local/mingw/include -B/opt/local/x86_64-w64-mingw32/bin/
-B/opt/local/x86_64-w64-mingw32/lib/ -isystem
/opt/local/x86_64-w64-mingw32/include -isystem
/opt/local/x86_64-w64-mingw32/sys-include    -O2  -g -O2 -pipe -Os
-DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include   -g -DIN_LIBGCC2
-fbuilding-libgcc -fno-stack-protector   -shared -nodefaultlibs
libgcc.map.def -Wl,--out-implib,32/shlib/libgcc_s.a.tmp -o
32/shlib/libgcc_s_sjlj-1.dll.tmp -g -O2 -pipe -Os -m32 -B./
_chkstk_s.o _chkstk_ms_s.o /.../ emutls_s.o libgcc.a  -lmingwthrd
-lmingw32 -lmingwex -lmoldname -lmsvcrt -ladvapi32 -lshell32 -luser32
-lkernel32

(2) When calling the cross-compiler:

 fatal error: vector: No such file or directory
 #include <vector>
                  ^
compilation terminated.

(or iostream or alike).

(3) Instructions on
https://github.com/mirror/mingw-w64/blob/master/mingw-w64-doc/howto-build/mingw-w64-howto-build-adv.txt
suggest to:
(a) compile gcc and install it with "make all-gcc && make install-gcc"
(b) then compile CRT
(c) then go back to gcc and run "make all-target-libgcc && make
install-target-libgcc"
(d) then compile pthreads
(e) then go back to gcc and run "make && make install"

Is there any sane way to do (c) and (e) without the need to recompile
the whole gcc three times?

Mojca


More information about the macports-dev mailing list