성이름 | 23 May 11:52 2016
Picon

The compiler seems it can't recognize "%lld" and warns.

Hi. I always appreciate your contribution.

I use mingw-w64 5.3.0.

In the case of:
printf("%lld", longlongint);

The compiler says:
warning: unknown conversion type character 'l' in format [-Wformat=]|
warning: too many arguments for format [-Wformat-extra-args]|

But there's not a problem in the runtime.

Would you tell me the reason or some links about that issue?
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
Hugo Beauzée-Luyssen | 24 May 11:24 2016
Picon
Gravatar

[PATCH] headers: Fix VirtualFree declaration scope

It is available on desktop apps since XP, and on store apps since
Windows 10
---
 mingw-w64-headers/include/memoryapi.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/mingw-w64-headers/include/memoryapi.h b/mingw-w64-headers/include/memoryapi.h
index 46e18c4..0a2fbd7 100755
--- a/mingw-w64-headers/include/memoryapi.h
+++ b/mingw-w64-headers/include/memoryapi.h
 <at>  <at>  -37,6 +37,10  <at>  <at>  extern "C" {
 #endif
 #endif

+#if (WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP) && _WIN32_WINNT >= 0x0A00) ||
WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
+    WINBASEAPI WINBOOL WINAPI VirtualFree (LPVOID lpAddress, SIZE_T dwSize, DWORD dwFreeType);
+#endif
+
 #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
 #define FILE_MAP_WRITE SECTION_MAP_WRITE
 #define FILE_MAP_READ SECTION_MAP_READ
 <at>  <at>  -51,7 +55,6  <at>  <at>  extern "C" {
   WINBASEAPI PVOID WINAPI MapViewOfFileFromApp (HANDLE hFileMappingObject, ULONG DesiredAccess,
ULONG64 FileOffset, SIZE_T NumberOfBytesToMap);
 #if _WIN32_WINNT >= 0x0A00
   WINBASEAPI PVOID WINAPI VirtualAllocFromApp(PVOID BaseAddress, SIZE_T Size, ULONG AllocationType,
ULONG  Protection);
-  WINBASEAPI WINBOOL WINAPI VirtualFree (LPVOID lpAddress, SIZE_T dwSize, DWORD dwFreeType);
 #endif
(Continue reading)

Mateusz | 24 May 06:56 2016
Picon

Restore deleted VirtualFree declaration

Restore deleted VirtualFree declaration

Without VirtualFree declaration I can't compile mingw-w64/gcc toolchain on Ubuntu.

Please review.

diff --git a/mingw-w64-headers/include/memoryapi.h b/mingw-w64-headers/include/memoryapi.h
index 46e18c4..19aeae4 100755
--- a/mingw-w64-headers/include/memoryapi.h
+++ b/mingw-w64-headers/include/memoryapi.h
 <at>  <at>  -68,6 +68,7  <at>  <at>  extern "C" {
 #define FILE_CACHE_MIN_HARD_DISABLE 0x00000008

   WINBASEAPI LPVOID WINAPI VirtualAlloc (LPVOID lpAddress, SIZE_T dwSize, DWORD flAllocationType,
DWORD flProtect);
+  WINBASEAPI WINBOOL WINAPI VirtualFree (LPVOID lpAddress, SIZE_T dwSize, DWORD dwFreeType);
   WINBASEAPI LPVOID WINAPI VirtualAllocEx (HANDLE hProcess, LPVOID lpAddress, SIZE_T dwSize, DWORD
flAllocationType, DWORD flProtect);
   WINBASEAPI WINBOOL WINAPI VirtualFreeEx (HANDLE hProcess, LPVOID lpAddress, SIZE_T dwSize, DWORD dwFreeType);
   WINBASEAPI WINBOOL WINAPI VirtualProtectEx (HANDLE hProcess, LPVOID lpAddress, SIZE_T dwSize, DWORD
flNewProtect, PDWORD lpflOldProtect);
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
(Continue reading)

Kuldeep Singh Dhaka | 23 May 11:50 2016
Picon
Gravatar

glibc isinf() behaviour

`man isinf`
>In glibc 2.01 and earlier, isinf() returns a nonzero value
> (actually: 1) if x is positive infinity or negative infinity.
> (This is all that C99 requires.)"

whereas: C: return non-zero values for infinite values
 (be it +Infinity or -Infinity)

Can we have similar behaviour for Mingw-w64?
I recompiled libreplot for MS Windows and got a runtime problem due to
code relying specifically on behaviour of glibc > 2.01.

current math.h: `#define isinf(x) (fpclassify(x) == FP_INFINITE)`

--

-- 
Kuldeep Singh Dhaka

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
Hugo Beauzée-Luyssen | 18 May 17:06 2016
Picon
Gravatar

[PATCH 1/7] crt: Add libruntimeobject to arm lib

---
 mingw-w64-crt/Makefile.am                          |  6 ++++++
 .../libarm32/api-ms-win-core-winrt-l1-1-0.def      |  9 ++++++++
 .../api-ms-win-core-winrt-string-l1-1-0.def        | 25 ++++++++++++++++++++++
 mingw-w64-crt/libarm32/runtimeobject.mri           |  5 +++++
 4 files changed, 45 insertions(+)
 create mode 100644 mingw-w64-crt/libarm32/api-ms-win-core-winrt-l1-1-0.def
 create mode 100644 mingw-w64-crt/libarm32/api-ms-win-core-winrt-string-l1-1-0.def
 create mode 100644 mingw-w64-crt/libarm32/runtimeobject.mri

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index daf25b0..aa198bd 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
 <at>  <at>  -1426,9 +1426,15  <at>  <at>  libarm32/libvfw32.a: libarm32/vfw32.mri libarm32/libmsvfw32.a libarm32/libavifil
 	$(AR) -M < $<
 	$(RANLIB) $ <at> 

+libarm32/libruntimeobject.a: libarm32/runtimeobject.mri
libarm32/libapi-ms-win-core-winrt-string-l1-1-0.a libarm32/libapi-ms-win-core-winrt-l1-1-0.a
+	rm -f $ <at> 
+	$(AR) -M < $<
+	$(RANLIB) $ <at> 
+
 dx32_DATA =
 dx32_DATA += libarm32/libxinput.a
 dx32_DATA += libarm32/libd3dcompiler.a
+libarm32_DATA += libarm32/libruntimeobject.a

 libarm32/libxinput.a: libarm32/xinput1_4.def
(Continue reading)

Jim Michaels | 15 May 04:16 2016
Picon
Gravatar

use jedit to replace template source, etc

template<.*?>>totemplate<.*?> >
regressions, because parser folks might have to repeatedly replace parts of code for bug fixes. too bad
there can't be filters or compiler code chunk substitutions. lamba functions using a #include? -------------
 Jim Michaels<jmichae3 <at> yahoo.com> http://www.JesusnJim.com (computer repair info, programming)
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Dennis Lewis | 10 May 14:14 2016
Picon

Re: mingw-w64.sourceforge.net Errors

<div dir="ltr"><p class="MsoNormal"><font face="verdana, sans-serif"><span  
style="color:rgb(0,0,255)">Dear business owner of </span><span  
style="color:rgb(0,0,255)">mingw-w64.sourceforge.net,</span><br></font></p><p  
class="MsoNormal" style="margin-bottom:0.0001pt"><font face="verdana,  
sans-serif" size="2"><span style="color:rgb(0,0,255)"> </span></font></p><p  
class="MsoNormal" style="margin-bottom:0.0001pt"><font face="verdana,  
sans-serif" size="2"><span style="color:rgb(0,0,255)">How is it possible  
that your website is having so many errors? Yes, most of the people share  
their anger and frustration once they get my email.</span></font></p><p  
class="MsoNormal" style="margin-bottom:0.0001pt"><font face="verdana,  
sans-serif" size="2"><span style="color:rgb(0,0,255)"> </span></font></p><p  
class="MsoNormal" style="margin-bottom:0.0001pt"><font face="verdana,  
sans-serif" size="2"><span style="color:rgb(0,0,255)">Now, I will show you  
the number of broken links, pages that returned 4XX status code upon  
request, images with no ALT text, pages with no meta description tag, not  
having an unique meta description, having too long title, etc., found in  
your mingw-w64.sourceforge.net.</span></font></p><p class="MsoNormal"  
style="margin-bottom:0.0001pt"><font face="verdana, sans-serif"  
size="2"><span style="color:rgb(0,0,255)"> </span></font></p><p  
class="MsoNormal" style="margin-bottom:0.0001pt"><font face="verdana,  
sans-serif" size="2"><span style="color:rgb(0,0,255)">I have a large  
professional team who can fix all the above issues immediately at an  
affordable price. I guarantee you will see a drastic change in your Google  
search ranking once these are fixed.</span></font></p><p class="MsoNormal"  
style="margin-bottom:0.0001pt"><font face="verdana, sans-serif"  
size="2"><span style="color:rgb(0,0,255)"> </span></font></p><p  
class="MsoNormal" style="margin-bottom:0.0001pt"><font face="verdana,  
sans-serif" size="2"><span style="color:rgb(0,0,255)">If this is something  
you are interested in, then allow me to send you a no obligation <b>audit  
report</b>.</span></font></p><p class="MsoNormal"  
(Continue reading)

Hugo Beauzée-Luyssen | 13 May 13:58 2016
Picon
Gravatar

[PATCH] math.h: Fix arm build

---
 mingw-w64-headers/crt/math.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mingw-w64-headers/crt/math.h b/mingw-w64-headers/crt/math.h
index 171208f..d855a0f 100644
--- a/mingw-w64-headers/crt/math.h
+++ b/mingw-w64-headers/crt/math.h
 <at>  <at>  -431,7 +431,7  <at>  <at>  typedef long double double_t;
     __mingw_fp_types_t hlp;
     unsigned int l, h;

-    hlp.d = &x;
+    hlp.ld = &x;
     h = hlp.ldt->lh.high;
     l = hlp.ldt->lh.low | (h & 0xfffff);
     h &= 0x7ff00000;
 <at>  <at>  -591,7 +591,7  <at>  <at>  __mingw_choose_expr (                                         \
     __mingw_fp_types_t hlp;
     int l, h;

-    hlp.d = &_x;
+    hlp.ld = &_x;
     l = hlp.dt->lh.low;
     h = hlp.dt->lh.high & 0x7fffffff;
     h |= (unsigned int) (l | -l) >> 31;
 <at>  <at>  -662,7 +662,7  <at>  <at>  __mingw_choose_expr (                                         \
 #elif defined(__arm__) || defined(_ARM_)
     __mingw_fp_types_t hlp;

(Continue reading)

Hugo Beauzée-Luyssen | 11 May 23:40 2016
Picon
Gravatar

[PATCH 1/4] winstorecompat: Provide a few crypto functions

---
 mingw-w64-headers/include/wincrypt.h            |  12 +--
 mingw-w64-libraries/winstorecompat/Makefile.am  |   1 +
 mingw-w64-libraries/winstorecompat/src/Crypto.c | 113 ++++++++++++++++++++++++
 3 files changed, 121 insertions(+), 5 deletions(-)
 create mode 100644 mingw-w64-libraries/winstorecompat/src/Crypto.c

diff --git a/mingw-w64-headers/include/wincrypt.h b/mingw-w64-headers/include/wincrypt.h
index a4d4055..3bd84ce 100644
--- a/mingw-w64-headers/include/wincrypt.h
+++ b/mingw-w64-headers/include/wincrypt.h
 <at>  <at>  -697,6 +697,13  <at>  <at>  extern "C" {
 #endif
 #endif

+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) || defined(WINSTORECOMPAT)
+  WINIMPM WINBOOL WINAPI CryptAcquireContextA (HCRYPTPROV *phProv, LPCSTR szContainer, LPCSTR
szProvider, DWORD dwProvType, DWORD dwFlags);
+  WINIMPM WINBOOL WINAPI CryptAcquireContextW (HCRYPTPROV *phProv, LPCWSTR szContainer, LPCWSTR
szProvider, DWORD dwProvType, DWORD dwFlags);
+#define CryptAcquireContext __MINGW_NAME_AW(CryptAcquireContext)
+  WINIMPM WINBOOL WINAPI CryptReleaseContext (HCRYPTPROV hProv, DWORD dwFlags);
+  WINIMPM WINBOOL WINAPI CryptGenRandom (HCRYPTPROV hProv, DWORD dwLen, BYTE *pbBuffer);
+#endif
 #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
   typedef struct _CMS_DH_KEY_INFO {
     DWORD dwVersion;
 <at>  <at>  -706,7 +713,6  <at>  <at>  extern "C" {
     void *pReserved;
   } CMS_DH_KEY_INFO,*PCMS_DH_KEY_INFO;
(Continue reading)

Tamir Duberstein | 10 May 17:57 2016
Picon
Gravatar

ignoring missing symbols doesn't seem to work

Hello!

I've been attempting to cross-compile CockroachDB to Windows using
mingw-w64. The compilation strategy used for CockroachDB involves
producing static archives with missing symbols (this is due to how
golang's tooling compiles c/c++ code).

In our linux builds, we pass `-Wl,--unresolved-symbols=ignore-all` to
the compiler to silence these unresolved symbols warnings in our
intermediate static archives - however, it seems that mingw-w64's g++
binary (`x86_64-w64-mingw32-g++-posix` is the one I've tested) doesn't
respect this flag.

Does anyone know why this might be, or where to begin investigating?

More detail is here:
https://github.com/karalabe/xgo/issues/26#issuecomment-214521117

Our build output  ends up with:
```
x86_64-w64-mingw32-g++-posix -I . -m64 -mthreads -fmessage-length=0
-Iinternal -Iinternal/include -Iinternal/db -Iinternal/util
-Iinternal/utilities/merge_operators/string_append
-I../../cockroachdb/c-snappy/internal -DNDEBUG -DSNAPPY -DOS_WIN -I
$WORK/github.com/cockroachdb/c-rocksdb/_obj/ -D_WIN32_WINNT=0x0600
-std=c++11 -fno-omit-frame-pointer -momit-leaf-frame-pointer -o
$WORK/github.com/cockroachdb/c-rocksdb/_obj/port_platform.cc.o -c
./port_platform.cc
x86_64-w64-mingw32-g++-posix -I . -m64 -mthreads -fmessage-length=0 -o
$WORK/github.com/cockroachdb/c-rocksdb/_obj/_cgo_.o
(Continue reading)

LI An-Bang | 10 May 08:34 2016

Need a prebuild MinGW-w64 with configuration of "--enable-nls"

Hi, all,

I am a Chinese user of MinGW on Windows. I want GCC to write out compiling messages in Chinese. After some
search and analysis on Internet, I realized that I should enable MinGW's national language
support(NLS). I typed command "gcc -v", and noticed that gcc 5.3.0 in MinGW-w64 was configured with "--disable-nls".

I want to get a prebuild toolchain having this feature enabled, i.e. with configuration of
"--enable-nls". Could any one tell me where to get such a version?

Thanks in advance.

------------------
LI AnBang
 Physics Department, Central China Normal University, China
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j

Gmane