Roger Pack | 28 Jun 22:03 2016
Picon

march=native empty/blank cross compiing?

As a note, when I tried compiling gnutls today using "-march=native"

It failed, like

$ i686-w64-mingw32-gcc test.c  -march=native
/var/folders/_s/c0kwjqxn2txglx5kdpcvmj0jb5h2bk/T//ccoQWGPg.o:test.c:(.text+0x1b):
undefined reference to `__sync_val_compare_and_swap_4'
collect2: error: ld returned 1 exit status
$
i686-w64-mingw32-gcc -march=native -Q --help=target | grep march
  -march=
$cat test.c
long cmpxchg( long* value, long comp_val, long new_val )
{
    return __sync_val_compare_and_swap( value, comp_val, new_val );
}

int main()
{
    return 0;
}

Though manually specifying seemingly "any" march works fine:

$./sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc
test.c  -march=ivybridge
$

$ i686-w64-mingw32-gcc --version
i686-w64-mingw32-gcc (GCC) 5.3.0
(Continue reading)

Jim Michaels | 23 Jun 07:11 2016
Picon
Gravatar

gcc bugs, gnu folk won't acknowledge

http://www.cpp.sh/4lycn
bugs in gcc, won't compile 
-------------
 Jim Michaels<jmichae3@...> http://www.JesusnJim.com
(computer repair info, programming)
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
Hugo Beauzée-Luyssen | 21 Jun 15:37 2016
Picon
Gravatar

[PATCH] iptypes.h: Fix header guards

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

diff --git a/mingw-w64-headers/include/iptypes.h b/mingw-w64-headers/include/iptypes.h
index 745d3f9..d044a83 100644
--- a/mingw-w64-headers/include/iptypes.h
+++ b/mingw-w64-headers/include/iptypes.h
 <at>  <at>  -6,6 +6,9  <at>  <at> 
 #ifndef IP_TYPES_INCLUDED
 #define IP_TYPES_INCLUDED

+#include <winapifamily.h>
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) || _WIN32_WINNT >= 0x0A00
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 <at>  <at>  -369,5 +372,7  <at>  <at>  extern "C" {
 }
 #endif

+#endif /* #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) || _WIN32_WINNT >= 0x0A00 */
+
 #endif /* IP_TYPES_INCLUDED */

--

-- 
2.8.1

------------------------------------------------------------------------------
(Continue reading)

lh mouse | 18 Jun 21:10 2016
Gravatar

Proposal for a C11 header and announcement of mcfgthread, a library that implements efficient C11 and C++11 thread support without using winpthread

Hello everyone,

It is with great honor that I bring you the C11-conforming header for thread support of mcfgthread, c11thread.h:
https://github.com/lhmouse/mcfgthread/blob/master/src/env/c11thread.h
All headers in the mcfgthread project have been put into the public domain.

As JonY suggested a few days ago, it would be nice for mingw-w64 to have C11 thread support.
This announcement is not only a call for testers, but also a proposal for a C11 header for mingw-w64. We can
have both C11 and C++11 threads from today.

The following code illustrates how to use C11 threads:
```
E:\Desktop>expand -t4 test.c
#include <mcfgthread/c11thread.h>
#include <stdio.h>
#include <stdlib.h>

int thread_proc(void *param){
    printf("thread running: tid = %u, param = %p\n", (unsigned)thrd_current(), param);
    for(int i = 0; i < 5; ++i){
        printf("thread going to sleep for one second...\n");
        struct timespec ts;
        ts.tv_sec = 1;
        ts.tv_nsec = 0;
        thrd_sleep(&ts, 0);
    }
    int exit_code = 67890;
    printf("thread exiting: exit_code = %d\n", exit_code);
    return exit_code;
}
(Continue reading)

Hugo Beauzée-Luyssen | 17 Jun 12:27 2016
Picon
Gravatar

[PATCH] headers: Adjust header guards for Windows 10

---
 mingw-w64-headers/include/iphlpapi.h | 6 +++++-
 mingw-w64-headers/include/iprtrmib.h | 5 +++++
 mingw-w64-headers/include/mprapi.h   | 6 ++++++
 mingw-w64-headers/include/nldef.h    | 2 +-
 4 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-headers/include/iphlpapi.h b/mingw-w64-headers/include/iphlpapi.h
index 03aed33..b28df42 100644
--- a/mingw-w64-headers/include/iphlpapi.h
+++ b/mingw-w64-headers/include/iphlpapi.h
 <at>  <at>  -8,7 +8,7  <at>  <at> 

 #include <winapifamily.h>

-#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) || _WIN32_WINNT >= 0x0A00

 #ifdef __cplusplus
 extern "C" {
 <at>  <at>  -19,6 +19,8  <at>  <at>  extern "C" {
 #include <iptypes.h>
 #include <tcpestats.h>

+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
+
   DWORD WINAPI GetNumberOfInterfaces (PDWORD pdwNumIf);
   DWORD WINAPI GetIfEntry (PMIB_IFROW pIfRow);
   DWORD WINAPI GetIfTable (PMIB_IFTABLE pIfTable, PULONG pdwSize, WINBOOL bOrder);
 <at>  <at>  -94,6 +96,8  <at>  <at>  extern "C" {
(Continue reading)

Jim Michaels | 16 Jun 13:50 2016
Picon
Gravatar

basic problems with make and mingw-w64

- make does not make the windows/dos commands COPY, MOVE, IF, FOR etc available. equivalents need to be made
available with the compiler, like cp, mv- most expected basic things like automake, autoconf, m4, grep,
egrep, fgrep, sed, tr, cut, paste
- grep -r -l "" * doesn't always work for file trees, and why can't I specify file filters like *.cpp *.h *.hpp
*.cc *.cxx *.hxx *.c? it's just a sequence of globs. but it would not match directories.
- make should not depend on tabs alone for indentation and command handling. how about spaces? -------------
 Jim Michaels<jmichae3 <at> yahoo.com> http://www.JesusnJim.com (computer repair info, programming)
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Kai Koehne | 15 Jun 12:42 2016

Do not define __has_builtin in intrin.h

Hi,

Currently intrin.h defines __has_builtin macro for compilers that do not define it on their own. This can
lead to problems for applications
checking for the macro (see e.g. https://bugreports.qt.io/browse/QTBUG-54068). I also reported this
as  https://sourceforge.net/p/mingw-w64/bugs/542/ .

Attached is a patch that should mitigate the issue.

Regards

Kai


-- 
Kai Köhne, Senior Manager R&D | The Qt Company

The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho. Sitz der Gesellschaft: Berlin,
Registergericht: Amtsgericht Charlottenburg, HRB 144331 B

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
(Continue reading)

Jim Michaels | 15 Jun 17:54 2016
Picon
Gravatar

dongsheng daily lacking 64-bit target, has host swapped with target

win64 g++ only runs on x64 windows.
win32 g++ only runs on both types of windows.
apparently they generate a 32-bit binary. I need to target 64-bit binaries and 32-bit.target is the
machine the built program is intended are going to run it on, host is what the compiler runs on.
I would also like to see support for PAE (for 32-bit and 64-bit processors) sometime, and support for
LARGE_ADDRESS_AWARE for 64-bit in the now.
 -------------
 Jim Michaels<jmichae3 <at> yahoo.com> http://www.JesusnJim.com (computer repair info, programming)
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Jim Michaels | 15 Jun 05:18 2016
Picon
Gravatar

problem with templated functions, namespaced find() and compare(), and std::

I have my own compare and find functions I use in a strings library. though they are in their own namespace,
they conflict with the ones in <string>. this is 4 screens long.

Tue 06/14/2016 20:05:25.24|C:\Users\Kristina\Desktop\prj\egrepsed\egrepsed-1.0\win|+>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/gcc-7-win32/bin/../libexec/gcc/i686-w64-mingw32/7.0.0/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: /home/cauchy/vcs/svn/gcc/trunk/configure
--prefix=/home/cauchy/native/gcc-7-win32 --with-sysroot=/home/cauchy/native/gcc-7-win32 --build=x
86_64-unknown-linux-gnu --host=i686-w64-mingw32 --target=i686-w64-mingw32 --disable-multilib
--disable-nls --disable-win32-registry --disable-gcov-tool --e
nable-checking=release --enable-languages=c,c++,fortran --enable-fully-dynamic-string
--with-arch=core2 --with-tune=generic
Thread model: win32
gcc version 7.0.0 20160609 (experimental) (GCC)

Tue 06/14/2016 20:15:36.84|C:\Users\Kristina\Desktop\prj\egrepsed\egrepsed-1.0\win|+>
if you want to know, my prompt is an environment variable: 
Tue 06/14/2016 20:16:46.74|C:\Users\Kristina\Desktop\prj\egrepsed\egrepsed-1.0\win|+>echo %PROMPT%
$d$s$t$b$p$b$m$+$g
if you prefer $ instead of > use $$

problem with gcc and c++ ENBF?: there are about 4000 lines worth of errors like this and others. do you need a
log file? the functions are templated. do you have an idea how long before the EBNF for C++ gets fixed?

egrepsed.cpp:2208:33: error: expected primary-expression before '>' token
             0==str::<std::string>compare(argv[0],"/sri",true,0)||
                                 ^

(Continue reading)

Ruben Van Boxem | 13 Jun 19:21 2016
Picon
Gravatar

GCC 4.9+ unable to catch exceptions when built with my admittedly ancient scripts

Hi guys,

When I read the email asking for GCC 6.1, I took a look at MinGW-builds and
MSYS2's MinGW-packages and saw both were stuck somewhere in 5.x.

I decided to see if I could blow the dust off my aeons-old build scripts
that are still gathering some stars on github, but were otherwise unused.

I ran into some unexpected trouble though: C++ exceptions are broken. A
simple test app of the form:

#include <iostream>

int main()
try
{
  throw 42;
}
catch(int i)
{
  std::cout << "caught int: " << i << '\n';
}

crashes with this backtrace:

Starting program: C:\Users\Ruben\Desktop\mingw64\test.exe
[New Thread 3836.0x68c]
[New Thread 3836.0x15dc]
[New Thread 3836.0x15e0]

(Continue reading)

Yongwei Wu | 7 Jun 10:54 2016
Picon

Multi-Byte Character Issue with MSVCRT.DLL

Hi all,

I am not sure whether it has been raised before here. I have a blog
that summarizes a big problem with MSVCRT.DLL:

https://yongweiwu.wordpress.com/2016/05/27/msvcrt-dll-console-io-bug/

Whether intentional or not, I think Microsoft has screwed up the
multi-byte character support in MSVCRT.DLL for console I/O.

I would like to ask whether anyone has a good idea about how to fix it.

Best regards,

Yongwei

--

-- 
Wu Yongwei
URL: http://wyw.dcweb.cn/

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e

Gmane