Mark Cianfaglione | 25 Oct 14:47 2014

cannot execute binary file: Exec format error

Hi

I'm using MSYS2 and Mingw-w64 on a Windows 7 64 bit system and I've got
a situation where I've compiles a program that uses GTK3 but I get a
"cannot execute binary file: Exec format error" when I try to execute
it.

I thought perhaps that my makefile was borked so I made a simple "hello
world" using gtk3 and compiled it with the makefile and it works.

I have a couple of other libraries that I'm linking to (libxls, xlslib,
mariadb) but the code compiles with no major issues (a few gtk
deprecation warnings) but otherwise it compiles cleanly.

No I do have several large arrays of structs that I've got as global
variables but I've got the exact same code running on a Linux x86_64
system without any issues.

I'm compiling the code base (including the libxls and xlslib) on the
same machine in the same manner. Only the mariadb dll is not. But I
believe it's all in 64 bits. (is there a way of checking this?)

What can cause the above error? 

Any help would be appreciated.

Mark

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

Alexey Pavlov | 25 Oct 11:24 2014
Picon

netioapi.h inconsistence

Hi!

Some users report about inconsistency in netioapi header. They have
issues with using it on WinXP. See:

https://github.com/Alexpux/MINGW-packages/issues/279

Regards,
Alexey.

------------------------------------------------------------------------------
niXman | 24 Oct 22:32 2014

[Project News | New Builds]


Hi,

Builds of MinGW-W64 based on GCC-4.9.1 is updated.
MinGW-w64 is updated to 812faf2cfe636d5855c9418466dfa92e498c95c0

Links:
32-bit:
     posix-sjlj: 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.1/threads-posix/sjlj/i686-4.9.1-release-posix-sjlj-rt_v3-rev2.7z
     posix-dwarf: 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.1/threads-posix/dwarf/i686-4.9.1-release-posix-dwarf-rt_v3-rev2.7z
     win32-sjlj: 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.1/threads-win32/sjlj/i686-4.9.1-release-win32-sjlj-rt_v3-rev2.7z
     win32-dwarf: 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.1/threads-win32/dwarf/i686-4.9.1-release-win32-dwarf-rt_v3-rev2.7z

64-bit:
     posix-sjlj: 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.1/threads-posix/sjlj/x86_64-4.9.1-release-posix-sjlj-rt_v3-rev2.7z
     posix-seh: 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.1/threads-posix/seh/x86_64-4.9.1-release-posix-seh-rt_v3-rev2.7z
     win32-sjlj: 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.1/threads-win32/sjlj/x86_64-4.9.1-release-win32-sjlj-rt_v3-rev2.7z
     win32-seh: 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.1/threads-win32/seh/x86_64-4.9.1-release-win32-seh-rt_v3-rev2.7z

--

-- 
Regards, niXman
___________________________________________________
(Continue reading)

Dongsheng Song | 24 Oct 17:57 2014
Picon

mstcpip.h: Added definitions for RCVALL_IPLEVEL.

When I write raw socket program, I found RCVALL_IPLEVEL missing, so
here is the patch.

Please review.

---
 mingw-w64-headers/include/mstcpip.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/mingw-w64-headers/include/mstcpip.h
b/mingw-w64-headers/include/mstcpip.h
index 99e57ab..b040ba7 100644
--- a/mingw-w64-headers/include/mstcpip.h
+++ b/mingw-w64-headers/include/mstcpip.h
 <at>  <at>  -36,6 +36,7  <at>  <at>  struct tcp_keepalive {
 #define RCVALL_OFF 0
 #define RCVALL_ON 1
 #define RCVALL_SOCKETLEVELONLY 2
+#define RCVALL_IPLEVEL 3

 #if (_WIN32_WINNT >= 0x0502)
 typedef enum _SOCKET_SECURITY_PROTOCOL {
--
1.7.10.4

------------------------------------------------------------------------------
Barnaby Jones | 24 Oct 09:33 2014
Picon

Could you recommend an alternative for the missing unwind library in i686-w64-mingw32-gcc?

Here is a short example program that I try to compile (and it works for 
x86_64)

$ cat thex.c

# ----

#include <stdio.h>
#include <stdlib.h>
#include <unwind.h>

struct myException
{
     int a;
     int b;
     struct _Unwind_Exception unwindHeader;
};

int main() {

     struct myException *myEx = calloc( 1, sizeof(struct myException) );
     myEx->a = 47;
     myEx->b = 11;

     _Unwind_Reason_Code err = _Unwind_RaiseException(&myEx->unwindHeader);

     free(myEx);

   return 0;
}
(Continue reading)

Adrien Nader | 22 Oct 22:33 2014

[ANN] Win-builds 1.5-rc1 - simpler, more packages, GUI package manager

Hi,

I am happy to announce the first release candidate leading to the next
release of win-builds: 1.5.

Win-builds is a fully-free/open-source, fully-bootstrapped and
multi-platform project which provides compilers, libraries and tools for
Windows along with cross-compilers from Linux (or any system with a GNU
userspace).

This version greatly improves setup on both Windows and Linux. On Linux
installation has been simplified down to cloning 4 git repositories and
running make. On Windows, a graphical installer is provided and
installation is completely usecase-agnostic: msys*, cygwin, IDEs, or
bare cmd.exe.

The meta-build-system has been expanded for it to be as simple as "make
WINDOWS_64=<package_name>".

The compatibility for Linux versions has been maintained back to Ubuntu
12.04 and Debian squeeze (oldstable) although with a few restrictions.
On Windows, the compatibility goal is >= Vista (it should still work on
XP but it can't be officially supported anymore).

Documentation has been updated for 1.5 and thanks to the improved
ease-of-use, is noticeably shorter (writing less doc was the actual
motivation behind these changes :) ).

There are several new packages and many updates plus a few GTK+-related
ones before the actual release.
(Continue reading)

André Hentschel | 21 Oct 23:38 2014
Picon

[PATCH] softmath: More error handling

Please review, i'll commit it, just need an OK.
Attachment (email.diff): text/x-patch, 7075 bytes
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
xantares 09 | 10 Oct 20:35 2014
Picon

update source page with arch stack

Hello,


I'like the sources page (http://mingw-w64.sourceforge.net/download.php#source) to be updated to show archlinux mingw stack.

Here are the relevant fields:
- arch=i686, x86_64
- gcc=4.9.1
- crt=3.2.0
- languages = Ada, C, C++, Fortran,Objective-C, Objective-C++
- cxx11: Supported
- package manager: yaourt
- installation: From AUR repository (https://aur.archlinux.org/)
- additional software:
mingw-w64-admesh
mingw-w64-agrum
mingw-w64-allegro
mingw-w64-allegro-static
mingw-w64-alure
mingw-w64-angleproject
mingw-w64-angleproject-git
mingw-w64-apr
mingw-w64-apr-util
mingw-w64-aquila
mingw-w64-asmjit
mingw-w64-assimp
mingw-w64-atk
mingw-w64-atkmm
mingw-w64-bin_i686
mingw-w64-binutils-git
mingw-w64-blas
mingw-w64-boost
mingw-w64-boost-python
mingw-w64-box2d
mingw-w64-bullet
mingw-w64-bzip2
mingw-w64-c-ares
mingw-w64-cairo
mingw-w64-cairomm
mingw-w64-cal3d-svn
mingw-w64-cblas
mingw-w64-celt
mingw-w64-cgal
mingw-w64-chipmunk
mingw-w64-clang
mingw-w64-clanlib
mingw-w64-cmake
mingw-w64-cminpack
mingw-w64-coin-clp
mingw-w64-coin-hg
mingw-w64-coin-osi
mingw-w64-coin-utils
mingw-w64-confuse
mingw-w64-corrade
mingw-w64-cppnanomsg-git
mingw-w64-cppunit
mingw-w64-crt-svn
mingw-w64-csfml
mingw-w64-curl
mingw-w64-d0_blind_id-git
mingw-w64-db
mingw-w64-dbus
mingw-w64-dbus-glib
mingw-w64-dlfcn
mingw-w64-dlib
mingw-w64-dumb
mingw-w64-eigen
mingw-w64-enca
mingw-w64-enet
mingw-w64-expat
mingw-w64-f2c
mingw-w64-fann
mingw-w64-ffmpeg
mingw-w64-fftw
mingw-w64-flac
mingw-w64-flann
mingw-w64-fltk
mingw-w64-fontconfig
mingw-w64-freealut
mingw-w64-freeglut
mingw-w64-freeimage
mingw-w64-freetype
mingw-w64-fribidi
mingw-w64-ftgl
mingw-w64-gc
mingw-w64-gconf
mingw-w64-gdb
mingw-w64-gdbm
mingw-w64-gdc
mingw-w64-gdk-pixbuf2
mingw-w64-gettext
mingw-w64-gf2x
mingw-w64-giflib
mingw-w64-glew
mingw-w64-glfw
mingw-w64-glib-networking
mingw-w64-glib2
mingw-w64-glibmm
mingw-w64-glm
mingw-w64-gmp
mingw-w64-gmqcc-git
mingw-w64-gnome-themes-standard
mingw-w64-gnutls
mingw-w64-goocanvas
mingw-w64-gsl
mingw-w64-gsm
mingw-w64-gst-plugins-base
mingw-w64-gst-plugins-good
mingw-w64-gstreamer
mingw-w64-gtest
mingw-w64-gtk2
mingw-w64-gtk3
mingw-w64-gtkglext
mingw-w64-gtkmm
mingw-w64-gtkmm3
mingw-w64-gtksourceview2
mingw-w64-gtksourceview3
mingw-w64-harfbuzz
mingw-w64-hdf5
mingw-w64-headers-base
mingw-w64-headers-nowinpthreads
mingw-w64-headers-svn
mingw-w64-hidapi
mingw-w64-icu
mingw-w64-id3lib
mingw-w64-iistaskpanel
mingw-w64-ilmbase
mingw-w64-intel-tbb
mingw-w64-irrlicht
mingw-w64-isl
mingw-w64-jasper
mingw-w64-json-c
mingw-w64-json-glib
mingw-w64-jsoncpp
mingw-w64-kissfft
mingw-w64-lame
mingw-w64-lapack
mingw-w64-lapackpp
mingw-w64-lcms
mingw-w64-lcms2
mingw-w64-levmar
mingw-w64-libarchive
mingw-w64-libass
mingw-w64-libassuan
mingw-w64-libbluray
mingw-w64-libconfig
mingw-w64-libcroco
mingw-w64-libcsv
mingw-w64-libdvdcss
mingw-w64-libdxfrw
mingw-w64-libevent
mingw-w64-libexif
mingw-w64-libffi
mingw-w64-libfplll
mingw-w64-libftdi
mingw-w64-libgcrypt
mingw-w64-libgee
mingw-w64-libglade
mingw-w64-libgnurx
mingw-w64-libgpg-error
mingw-w64-libgtksourceviewmm2
mingw-w64-libharu
mingw-w64-libiconv
mingw-w64-libidn
mingw-w64-libjpeg
mingw-w64-libjpeg-turbo
mingw-w64-libltdl
mingw-w64-libmad
mingw-w64-libmariadbclient
mingw-w64-libmikmod
mingw-w64-libmodbus
mingw-w64-libmodplug
mingw-w64-libmpc
mingw-w64-libmspack
mingw-w64-libmysqlclient
mingw-w64-libodbc++
mingw-w64-libogg
mingw-w64-libopencl
mingw-w64-libpng
mingw-w64-libpqxx
mingw-w64-librsvg
mingw-w64-libsigc++
mingw-w64-libsndfile
mingw-w64-libsodium
mingw-w64-libsquish
mingw-w64-libssh2
mingw-w64-libsvm
mingw-w64-libtasn1
mingw-w64-libtheora
mingw-w64-libtiff
mingw-w64-libuecc
mingw-w64-libunicows
mingw-w64-libunistring
mingw-w64-libusb
mingw-w64-libvidstab
mingw-w64-libvorbis
mingw-w64-libvpx
mingw-w64-libwebp
mingw-w64-libxdiff
mingw-w64-libxml++
mingw-w64-libxml2
mingw-w64-libxr
mingw-w64-libxslt
mingw-w64-libyaml
mingw-w64-libzip
mingw-w64-llvm-libs
mingw-w64-log4c
mingw-w64-lua
mingw-w64-lua51
mingw-w64-lzo2
mingw-w64-matio
mingw-w64-microhttpd
mingw-w64-mini18n-svn
mingw-w64-mixmod
mingw-w64-mman-win32-svn
mingw-w64-mpfr
mingw-w64-mruby
mingw-w64-msgpack
mingw-w64-muparser
mingw-w64-nanomsg-git
mingw-w64-nettle
mingw-w64-nlopt
mingw-w64-nsis
mingw-w64-nspr
mingw-w64-nvidia-cg-toolkit
mingw-w64-oclp
mingw-w64-ode
mingw-w64-oglimg
mingw-w64-oglp
mingw-w64-ois
mingw-w64-onig
mingw-w64-openal
mingw-w64-openblas
mingw-w64-openblas-lapack
mingw-w64-opencl-headers
mingw-w64-opencore-amr
mingw-w64-openctm
mingw-w64-opencv
mingw-w64-openexr
mingw-w64-openjpeg
mingw-w64-openjpeg2
mingw-w64-openssl
mingw-w64-optpp
mingw-w64-opus
mingw-w64-orc
mingw-w64-pango
mingw-w64-pangomm
mingw-w64-pcre
mingw-w64-pdcurses
mingw-w64-physfs
mingw-w64-pixman
mingw-w64-pkg-config
mingw-w64-plibc
mingw-w64-polyclipping
mingw-w64-poppler
mingw-w64-portaudio
mingw-w64-postgresql-libs
mingw-w64-ppl
mingw-w64-proj
mingw-w64-protobuf
mingw-w64-pthreads
mingw-w64-python
mingw-w64-python-bin
mingw-w64-python2
mingw-w64-python2-bin
mingw-w64-python26-bin
mingw-w64-qcustomplot-qt5
mingw-w64-qhull
mingw-w64-qrencode
mingw-w64-qscintilla
mingw-w64-qsint
mingw-w64-qt4
mingw-w64-qt4-debug
mingw-w64-qt4-static
mingw-w64-qt4pas
mingw-w64-qt5-3d-git
mingw-w64-qt5-base
mingw-w64-qt5-base-opengl
mingw-w64-qt5-base-static
mingw-w64-qt5-declarative
mingw-w64-qt5-graphicaleffects
mingw-w64-qt5-imageformats
mingw-w64-qt5-location
mingw-w64-qt5-multimedia
mingw-w64-qt5-quick1
mingw-w64-qt5-quickcontrols
mingw-w64-qt5-script
mingw-w64-qt5-sensors
mingw-w64-qt5-serialport
mingw-w64-qt5-svg
mingw-w64-qt5-systems-git
mingw-w64-qt5-tools
mingw-w64-qt5-translations
mingw-w64-qt5-webkit
mingw-w64-qt5-websockets
mingw-w64-quazip-qt4
mingw-w64-quazip-qt5
mingw-w64-qwt
mingw-w64-qwt-qt5
mingw-w64-qwt5
mingw-w64-qxorm
mingw-w64-readline
mingw-w64-recode
mingw-w64-resource
mingw-w64-rtmpdump
mingw-w64-ruby
mingw-w64-schroedinger
mingw-w64-sdl
mingw-w64-sdl2
mingw-w64-sdl2_gfx
mingw-w64-sdl2_image
mingw-w64-sdl2_mixer
mingw-w64-sdl2_net
mingw-w64-sdl2_ttf
mingw-w64-sdl_gfx
mingw-w64-sdl_image
mingw-w64-sdl_mixer
mingw-w64-sdl_net
mingw-w64-sdl_ttf
mingw-w64-serf
mingw-w64-sfgui
mingw-w64-sfml
mingw-w64-smpeg
mingw-w64-smpeg-svn
mingw-w64-smpeg2
mingw-w64-smtpclient-qt5-git
mingw-w64-soil
mingw-w64-sparsehash
mingw-w64-speex
mingw-w64-spheresim-git
mingw-w64-sqlite
mingw-w64-stormlib
mingw-w64-taglib
mingw-w64-tcl
mingw-w64-termcap
mingw-w64-tinyxml
mingw-w64-tk
mingw-w64-tools
mingw-w64-tox-git
mingw-w64-unshield
mingw-w64-uriparser
mingw-w64-utf8-cpp
mingw-w64-vala
mingw-w64-venom-git
mingw-w64-vtk
mingw-w64-wavpack
mingw-w64-win-iconv
mingw-w64-winpthreads-svn
mingw-w64-wxmsw
mingw-w64-wxmsw-static
mingw-w64-wxmsw2.8
mingw-w64-x264
mingw-w64-x265
mingw-w64-xalan-c
mingw-w64-xerces-c
mingw-w64-xvidcore
mingw-w64-xz
mingw-w64-yaml-cpp
mingw-w64-yaml-cpp-hg
mingw-w64-zeromq
mingw-w64-zlib
mingw-w64-zziplib

Regards

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
mingw | 21 Oct 00:20 2014

Windows service built with g++ fails to start, but works when built with gcc

Hello,

I'm having a problem developing a service for Windows using MinGW-W64
g++:  When I start the service with the sc command, I get an error:
"The service did not respond to the start or control request in a
timely fashion.".

I believe the problem is not with my code because when I build with
MinGW-W64 gcc, the service starts and operates as expected. Also, when
I build with Visual Studio 2013 Express, the service starts and operates
as expected.

I've attached testService.cpp, a minimal version of the code that
exhibits this issue, buildAndRun, a bash script to build and run the
service, and errorOutput.log that contains the output from building with
g++, and starting/stopping the service.

I would appreciate any help in building the service in g++, because
I'll be using g++, and wish to avoid using Visual Studio.

Additional info--

The g++ command line is:

  g++ -I. -std=c++11 -Wall -g -O0 -DWIN32 testService.cpp -o testService

The output of "g++ --version" is:

 g++.exe (i686-posix-dwarf-rev1, Built by MinGW-W64 project) 4.9.1
 Copyright (C) 2014 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is
 NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.

My Windows system is Windows 7 Home Premium, Service Pack 1 under
VirtualBox (AMD Phenom II X4 955 processor 3.17 GHz, 2 GB RAM, 64-bit
OS). I'm running MSYS; the output of "uname --all" is:

 MINGW32_NT-6.1 STUMPY 1.0.11(0.46/3/2) 2009-07-11 17:46 i686 Msys

Looking over the documentation of the command-line parameters for gcc
and g++ didn't shed any light on this.  While trying to resolve this, I
have been able to build a service with g++ that did run, but failed
when I modified the service to write to a file using std::ofstream.

I'd appreciate any suggestions, workarounds, etc.

Thanks,
Alban
Attachment (buildAndRun): application/octet-stream, 479 bytes
Attachment (errorOutput.log): text/x-log, 237 bytes
Attachment (testService.cpp): text/x-c++src, 2685 bytes
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Ray Donnelly | 20 Oct 21:58 2014
Picon

[PATCH 2/2] localtime_r guard to _POSIX or _POSIX_THREAD_SAFE_FUNCTIONS

Comments welcome.
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Ray Donnelly | 20 Oct 21:56 2014
Picon

[PATCH 1/2] winpthreads: removed legacy time functions from pthread.h

Thanks to Martell Malone.
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Gmane