Issue Details (XML | Word | Printable)

Key: CORE-4393
Type: Task Task
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Alexey Pavlov
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Allow building with mingw-w64 toolchains.

Created: 18/Apr/14 11:12 AM   Updated: 19/Nov/14 04:43 PM
Component/s: Build Issues / Porting
Affects Version/s: 2.5.2 Update 1
Fix Version/s: None

Environment: Windows 7 64-bit, mingw-w64 toolchain gcc-4.8.2


 Description  « Hide
Using mingw-w64 toolchains firebird cannot be builded. There are a lot of issues:
1. Mingw-w64 has winpthreads library and Firebird can be builded with posix threads.
    Need to check
    #if defined(WIN_NT) && !defined(USE_POSIX_THREADS)
    where thread code present because for mingw-w64 USE_POSIX_THREADS defined
2. Fix arguments for printf functions to handle "long long int" because mingw-w64 has both 32 and 64 bit toolchains.
3. Remove "-mno-cygwin" flag because it wrong now.
3. Define -march=x86-64 for 64-bit builds in prefix.mingw

This is first look to port to mingw-w64.

Regards,
Alexey.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Dmitry Yemanov added a comment - 18/Apr/14 03:55 PM
We had a mingw support about 10 years ago and it was intentionaly dropped as unmaintainable. It was just too much effort for a couple of users who then migrated to MS tools anyway. So the major question is why do we need it at all?

Alexey Pavlov added a comment - 18/Apr/14 04:42 PM
Why not to support mingw? This is open source project and why it only use commercial tools for build it (MSVC)? Most software has support mingw include MariaDB, PostgreSQL, Blender, GIMP and many other big projects. I think many users use Firebird (I use it about 7 years). I usually use it with Qt framework that I build with all dependencies from source. It will be good to have Firebird working too. I'm developer of MSYS2 project (https://sourceforge.net/projects/msys2/?source=navbar) and provide about 200 open source programs via package manager for windows.

Alexey Pavlov added a comment - 19/Nov/14 04:42 PM - edited
I'm start working on building Firebird with mingw-w64 compiler.
Changes can be found there:
https://github.com/Alexpux/firebird/tree/mingw-w64-2_5