Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow building with mingw-w64 toolchains. [CORE4393] #4715

Open
firebird-automations opened this issue Apr 18, 2014 · 4 comments
Open

Allow building with mingw-w64 toolchains. [CORE4393] #4715

firebird-automations opened this issue Apr 18, 2014 · 4 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Alexey Pavlov (alexx83)

Votes: 1

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.

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

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?

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

security: Developers [ 10012 ] =>

@firebird-automations
Copy link
Collaborator Author

Commented by: Alexey Pavlov (alexx83)

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.

@firebird-automations
Copy link
Collaborator Author

Commented by: Alexey Pavlov (alexx83)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant