Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

MinGW support

gianpatt
Beginner
141 Views
Hello,
is MinGW compiler support planned for next TBB release?

I download a patch for MinGW for TBBtbb21_20080605 but on last release i don't see any MinGW related file.

Thanks!
Gian
0 Kudos
4 Replies
RafSchietekat
Black Belt
141 Views
RafSchietekat
Black Belt
141 Views
And now there's also "[windup] TBB for MinGW"... but if you want to learn only one thing from TBB, it should be that the goal is to create parallel slack by dividing the work into more tasks, not to create more threads.

Anyway, for my best advice follow the last reference in my previous posting.
Vladimir_P_Intel2
141 Views

MinGW support was added to the 20090511 development release. Try it!)
Alexey_K_Intel3
Employee
141 Views
The basic support for MinGW has been added (see the announcement right above). It is only available in source code form; for the moment there isno plans to provide binaries.

To compile TBB, make sure you properly set up the MinGW environment and tool chain, and run the following:
gmake compiler=gcc

Be aware however that it does not work reliably, which I think isdue to MinGW weakness in supporting exception propagation across thread and DLL boundaries (the corresponding support was added just recently as far as I can judge, and seems for more complex cases like in TBB it might not work correctly). Some exception related checks in TBB unit tests have been switched off (see __TBB_EXCEPTION_HANDLING_BROKEN macro; I have to set it on for MinGW); despite that, some tests might fail in ugly ways. Of course there might be some issues in our code, e.g. some implicit assumptions about compiler that I overlooked, so if you find anything that can be improved for better MinGW support please tell us.

Also, building TBB examples with MinGW is not supported yet; it will follow later.
Reply