Erik de Castro Lopo | 27 Nov 00:16 2014

Build MinGW-w64 from Git on Linux

Hi all,

I'm having a bit of trouble building MinGW-w64 from source.

I asked on IRC and was told something along the lines of:

    export MYPREFIX=$HOME/MinGW/64
    (cd mingw-w64-headers && ./configure --prefix=$MYPREFIX && make install)
    ./configure --prefix=$MYPREFIX && make

When I run that I get:

    configure: error: Please check if the mingw-w64 header set and the
    build/host option are set properly.
    configure: error: ./configure failed for mingw-w64-crt

but the configure --help output doesn't really help me very much.

Clues?

Cheers,
Erik

PS : I need to build from source because I have abug fix and a test to go
     with it that I'd like to test before submission.
--

-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/

(Continue reading)

Erik de Castro Lopo | 25 Nov 10:47 2014

i686-w64-mingw32-gcc-4.9 and -static-libgcc not working as advertise

Hi all,

I'm using i686-w64-mingw32-gcc-4.9 installed from the Debian unstable
package (gcc-mingw-w64-i686 4.9.1-7+14.2) to build libsndfile. My aim
is to get a libsndfile-1.dll which depends on nothing more than
KERNEL32.dll, msvcrt.dll and USER32.dll.

Unfortunately, it ends up depending on .. After some
googling  came across the suggestion to use -static-libgcc as follows
(from my Makefile,.am):

    libsndfile_la_LDFLAGS = -static-libgcc -no-undefined $(SHARED_VERSION_INFO)
    libsndfile_la_SOURCES = $(FILESPECIFIC) $(noinst_HEADERS)
    nodist_libsndfile_la_SOURCES = $(nodist_include_HEADERS)
    libsndfile_la_LIBADD = GSM610/libgsm.la G72x/libg72x.la ALAC/libalac.la \
		libcommon.la $(EXTERNAL_LIBS) -lm

but I still can't get rid of the libgcc_s_sjlj-1.dll dependency.

I tried a number of things suggested by user  <at> GhostlyDeath on the IRC channel
but we couldn't get to the bottom of it.

Related information:

* All C code, no C++.
* The libsndfile DLL is built with some static autotool helper libraries
  but otherwise should only depend on KERNEL32.dll/msvcrt.dll/USER32.dll.
* Simple 'hello world' binary does not depend on libgcc_s_sjlj-1.dll.
* The library uses a couple of WinAPI functions like OpenFile/CloseFile/
  ReadFile etc
(Continue reading)

niXman | 25 Nov 10:55 2014

Re: [Wt-interest] Building Wt with mingw-w64 -- prefer Mingw-builds or Win-builds?

K. Frank 2014-11-24 04:32:
> No, no proxy.  I use a wireless router that provides local, internal
> ip addresses through dhcp, but is seen by the outside world as
> a single ip address (dynamically) assigned by my isp.

Hmm...

Please create the bug-ticket:
http://sourceforge.net/p/mingw-w64/bugs/

But I need you help for fix it.

--

-- 
Regards, niXman
___________________________________________________
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
http://sourceforge.net/projects/mingw-w64/
___________________________________________________
Another online IDE: http://liveworkspace.org/

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
Kai Tietz | 24 Nov 18:58 2014

Add missing dmemmgr.h header, and rework dmkcrtl.h header.

Hi,

as subject-line says ...

Regards,
Kai
From b287205bd846dc386a6cd89276c40e23b439136d Mon Sep 17 00:00:00 2001
From: Kai Tietz <ktietz70 <at> googlemail.com>
Date: Mon, 24 Nov 2014 18:55:14 +0100
Subject: =?UTF-8?q?Add=20new=20dmemmgr.h=20header=20for=20Video-memory=20m?=
 =?UTF-8?q?emory-API.=0AModify=20dmksctrl.h=20so=20that=20missing=20define?=
 =?UTF-8?q?s=20are=20present,=20and=20the=20interface=0Aworks=20well=20in?=
 =?UTF-8?q?=20C++-mode,=20too.?=

---
 mingw-w64-headers/include/dmemmgr.h  | 134 +++++++++++++++++++++++++++++++++++
 mingw-w64-headers/include/dmksctrl.h | 134 +++++++++++++++++++++++------------
 2 files changed, 224 insertions(+), 44 deletions(-)
 create mode 100644 mingw-w64-headers/include/dmemmgr.h

diff --git a/mingw-w64-headers/include/dmemmgr.h b/mingw-w64-headers/include/dmemmgr.h
new file mode 100644
index 0000000..ea473a7
--- /dev/null
+++ b/mingw-w64-headers/include/dmemmgr.h
 <at>  <at>  -0,0 +1,134  <at>  <at> 
+/**
+ * This file is part of the mingw-w64 runtime package.
(Continue reading)

Kai Tietz | 24 Nov 14:36 2014

Update WBEM-interfaces and describe headers via IDL

Hi,

this patch moves headers being defined via IDL-files.  Additionally I
rewrote wbemcli.idl to use IDL-syntax instead of encapsulating header
in IDL-comments.

Ok for apply?

Kai

PS: I noticed that widl seems not to accept restricted attribute for
coclass, which looks like a missed feature.
From 5ba7e06cb01beabd9e3fa294e31bb9c81bfd1f5a Mon Sep 17 00:00:00 2001
From: Kai Tietz <ktietz70 <at> googlemail.com>
Date: Mon, 24 Nov 2014 14:29:27 +0100
Subject: =?UTF-8?q?Make=20dispex.h=20generated=20by=20IDL-file.=0AMake=20w?=
 =?UTF-8?q?bemads.h=20generated=20by=20IDL-file.=0AMake=20wbemdisp.h=20gen?=
 =?UTF-8?q?erated=20by=20IDL-file.=0AMake=20wbemprov.h=20generated=20by=20?=
 =?UTF-8?q?IDL-file.=0AMake=20wbemtran.h=20generated=20by=20IDL-file.=0ARe?=
 =?UTF-8?q?work=20wbemcli.idl=20using=20IDL-syntax.?=

---
 mingw-w64-headers/include/dispex.idl   |  124 ++
 mingw-w64-headers/include/wbemads.idl  |   34 +
 mingw-w64-headers/include/wbemcli.idl  | 2257 ++++++++++----------------------
 mingw-w64-headers/include/wbemdisp.idl |  754 +++++++++++
 mingw-w64-headers/include/wbemprov.idl |  161 +++
 mingw-w64-headers/include/wbemtran.idl |  102 ++
(Continue reading)

Alexey Pavlov | 24 Nov 10:40 2014
Picon

[patch] Add qsort_s declaration.

Use qsort_s from msvcrt according to:
From 4eb3c7dffd4f27bcec3a0141de2a2b8448079cac Mon Sep 17 00:00:00 2001
From: Alexpux <alexey.pawlow <at> gmail.com>
Date: Mon, 24 Nov 2014 12:38:17 +0300
Subject: [PATCH] Add qsort_s  declarations. Use msvcrt version.

---
 mingw-w64-crt/lib32/msvcr80.def.in | 1 +
 mingw-w64-crt/lib64/msvcr80.def.in | 1 +
 mingw-w64-headers/crt/search.h     | 1 +
 mingw-w64-headers/crt/stdlib.h     | 1 +
 4 files changed, 4 insertions(+)

diff --git a/mingw-w64-crt/lib32/msvcr80.def.in b/mingw-w64-crt/lib32/msvcr80.def.in
index 0d009e2..f3408b9 100644
--- a/mingw-w64-crt/lib32/msvcr80.def.in
+++ b/mingw-w64-crt/lib32/msvcr80.def.in
 <at>  <at>  -653,6 +653,7  <at>  <at>  puts
 putwc
 putwchar
 qsort
+qsort_s
 raise
 rand
 rand_s
diff --git a/mingw-w64-crt/lib64/msvcr80.def.in b/mingw-w64-crt/lib64/msvcr80.def.in
index d20cb82..18b8d2d 100644
--- a/mingw-w64-crt/lib64/msvcr80.def.in
+++ b/mingw-w64-crt/lib64/msvcr80.def.in
 <at>  <at>  -780,6 +780,7  <at>  <at>  puts
 putwc
 putwchar
 qsort
+qsort_s
 raise
 rand
 rand_s
diff --git a/mingw-w64-headers/crt/search.h b/mingw-w64-headers/crt/search.h
index 144b0f4..dd5f83e 100644
--- a/mingw-w64-headers/crt/search.h
+++ b/mingw-w64-headers/crt/search.h
 <at>  <at>  -17,6 +17,7  <at>  <at>  extern "C" {
 #define _CRT_ALGO_DEFINED
   void *__cdecl bsearch(const void *_Key,const void *_Base,size_t _NumOfElements,size_t
_SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));
   void __cdecl qsort(void *_Base,size_t _NumOfElements,size_t _SizeOfElements,int (__cdecl
*_PtFuncCompare)(const void *,const void *));
+  void __cdecl qsort_s(void *_Base,size_t _NumOfElements,size_t _SizeOfElements,int (__cdecl
*_PtFuncCompare)(void *,const void *,const void *),void *_Context);
 #endif
   _CRTIMP void *__cdecl _lfind(const void *_Key,const void *_Base,unsigned int
*_NumOfElements,unsigned int _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const
void *));
   _CRTIMP void *__cdecl _lsearch(const void *_Key,void *_Base,unsigned int *_NumOfElements,unsigned
int _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));
diff --git a/mingw-w64-headers/crt/stdlib.h b/mingw-w64-headers/crt/stdlib.h
index 7743452..8118304 100644
--- a/mingw-w64-headers/crt/stdlib.h
+++ b/mingw-w64-headers/crt/stdlib.h
 <at>  <at>  -351,6 +351,7  <at>  <at>  extern "C" {
 #define _CRT_ALGO_DEFINED
   void *__cdecl bsearch(const void *_Key,const void *_Base,size_t _NumOfElements,size_t
_SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));
   void __cdecl qsort(void *_Base,size_t _NumOfElements,size_t _SizeOfElements,int (__cdecl
*_PtFuncCompare)(const void *,const void *));
+  void __cdecl qsort_s(void *_Base,size_t _NumOfElements,size_t _SizeOfElements,int (__cdecl
*_PtFuncCompare)(void *,const void *,const void *),void *_Context);
 #endif
   unsigned short __cdecl _byteswap_ushort(unsigned short _Short);
   unsigned long __cdecl _byteswap_ulong (unsigned long _Long);
--

-- 
2.1.3

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Jim Michaels | 24 Nov 06:16 2014
Picon

Fw: (GMP) gcc 4.9.2 build from source

thought this would be of interest... ?
 
-------------
Jim Michaels
Jmichae3-/E1597aS9LQAvxtiuMwx3w@public.gmane.org
JimM-dExGzSK/FjWKhL9zcARy50K8FDhVFA20QQ4Iyu8u01E@public.gmane.org
http:&#x2F;&#x2F;RenewalComputerServices.com
http:&#x2F;&#x2F;JesusnJim.com (computer repair info, programming)


----- Forwarded Message -----
Sent: Sunday, November 23, 2014 2:02 PM
Subject: Re: gcc 4.9.2 build from source


> We're sadly aware of GCC's loud recommendation of severely obsolete
> software.
>
> The right approach for GCC is to use a modern GMP, compile it with
> --disable-assembly, and link to it statically.

I just extract the tarball into the gcc source tree and everything
builds fine without any issues. This rev seems to work well :

node000 $ grep "__GNU_MP_VERSION" /usr/local/include/gmp.h
#define __GNU_MP_VERSION            6
#define __GNU_MP_VERSION_MINOR      0
#define __GNU_MP_VERSION_PATCHLEVEL 0
#define __GNU_MP_RELEASE (__GNU_MP_VERSION * 10000 +
__GNU_MP_VERSION_MINOR * 100 + __GNU_MP_VERSION_PATCHLEVEL)


Not bad results at all :

  https://gcc.gnu.org/ml/gcc-testresults/2014-10/msg01022.html


So I don't know what the issue is over at ye old GCC project but I have
seen no issues with gmp in a long while.  However, just for the sake of
giving the optimization levels a try I want to see if gmp can build on
Solaris 10 with the latest release of Oracle Studio 12.4.

I'll let you know.

Dennis



_______________________________________________
gmp-bugs mailing list
gmp-bugs <at> gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Suresh Govindachar | 23 Nov 04:20 2014
Picon

Example of COM server and client in C++


Hello,

Please point me to a simple but complete, 64 bit, C++, non-gui example 
of a COM server and client.  I know nothing about COM but hope to have 
access to the book "Essential COM" by Don Box within a week or so.  Via 
google, I found this thread from six years ago (Sep 2008) "COM and ATL 
supporT in minGW" 
http://mingw.5.n7.nabble.com/COM-and-ATL-supporT-in-minGW-td15733.html .

Thanks,

--Suresh

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
Matteo Pacini | 20 Nov 17:45 2014
Picon

Post Canadian Cross

Hi everyone, 

I've succeeded in building a working Canadian Cross compiler, but I have a few questions.

Build system is: x86_64-apple-darwin14.0.0
Host system is: x86_64-w64-mingw32
Target system is:  x86_64-w64-mingw32

$PREFIX/include and $PREFIX/x86_64-w64-mingw32/sys-root/mingw/include are the same folder.
I didn't use symlinks because target is Windows.
Same goes for folders $PREFIX/lib and $PREFIX/x86_64-w64-mingw32/sys-root/mingw/lib.

Question is:

Can I delete $PREFIX/include and $PREFIX/lib?
Isn't the compiler going to look for headers and libraries in the sysroot only?

Thanks.

Matteo
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Benjamin Dobell | 20 Nov 00:15 2014
Picon

Linker issues?

Hi everyone,

I'm having an issue using MinGW-w64 g++ - specifically linking.

It's complaining WinMain is undefined for a simple Qt project using a Qt static library (libqtmaind.a) that definitely defines WinMain. As can be seen (link below) libqtmaind.a is clearly passed to g++ and should be getting linked in:


Results of running nm on libqtmaind.a shows the WinMain symbol is defined:


$ g++ --version
g++.exe (i686-posix-dwarf-rev3, Built by MinGW-W64 project) 4.8.2

Are there any known symbol resolution issues in the linker? If not, any suggestions as to how I could further debug this issue would be immensely appreciated.

Thanks,
Ben

--
Benjamin Dobell
Director
benjamin.dobell <at> glassechidna.com.au

Glass Echidna Pty Ltd
http://www.glassechidna.com.au
ABN 31 165 212 359
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Alexey Pavlov | 19 Nov 08:53 2014
Picon

[patch] Missing defines for ws2tcpip

According to 
we need some missing defines.

Regards,
Alexey.
From 3bb52c1d4e691265a95e228fa4091e51d8229795 Mon Sep 17 00:00:00 2001
From: Alexpux <alexey.pawlow <at> gmail.com>
Date: Wed, 19 Nov 2014 10:43:48 +0300
Subject: [PATCH] Add missing defines to ws2tcpip.h

---
 mingw-w64-headers/include/ws2tcpip.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/mingw-w64-headers/include/ws2tcpip.h b/mingw-w64-headers/include/ws2tcpip.h
index 5d6afb9..65a8d70 100644
--- a/mingw-w64-headers/include/ws2tcpip.h
+++ b/mingw-w64-headers/include/ws2tcpip.h
 <at>  <at>  -213,11 +213,18  <at>  <at>  typedef ADDRINFOA ADDRINFO,*LPADDRINFO;
 #define AI_CANONNAME 0x2
 #define AI_NUMERICHOST 0x4
 #if (_WIN32_WINNT >= 0x0600)
+#define AI_NUMERICSERV            0x0008
+#define ALL                       0x0100
 #define AI_ADDRCONFIG             0x0400
+#define AI_V4MAPPED               0x0800
 #define AI_NON_AUTHORITATIVE      0x04000
 #define AI_SECURE                 0x08000
 #define AI_RETURN_PREFERRED_NAMES 0x010000
 #endif
+#if (_WIN32_WINNT >= 0x0601)
+#define AI_FQDN                   0x020000
+#define AI_FILESERVER             0x040000
+#endif

 #ifdef __cplusplus
 extern "C" {
--

-- 
2.1.3

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Gmane