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

Haiku support #64

Closed
wants to merge 11 commits into from
Closed

Haiku support #64

wants to merge 11 commits into from

Conversation

extrowerk
Copy link

No description provided.

@extrowerk
Copy link
Author

Any news here?

@ntfshard
Copy link
Member

ntfshard commented Jul 5, 2018

Does tests work well?

@extrowerk
Copy link
Author

extrowerk commented Jul 5, 2018

Yep, and we use tbb since long for the Blender and for other ports.
https://github.com/haikuports/haikuports/tree/master/dev-cpp/tbb

@alexey-katranov
Copy link
Contributor

@extrowerk, thank you for the contribution. We will consider its integration and notify you about the decision.

Copy link
Contributor

@alexey-katranov alexey-katranov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, the patch is good. However, there is a concern about a lot of unrelated stuff like Intel Compiler, Itanium (ia64) architecture and so on. Could you clean up the haiku.gcc.inc and haiku.inc to contain only currently supported stuff, please? (Unfortunately, we cannot do it ourselves because we do not have any experience with Haiku. However, we are thinking about some refactroing to move out some common parts of different platform so this clean up will help us to determine the common parts better).

@extrowerk
Copy link
Author

@alexey-katranov : Thanks, you have right, i try my best to clean those files up.

@extrowerk
Copy link
Author

Any news here?

Copy link
Contributor

@alexey-katranov alexey-katranov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The patch looks good. Consider small remarks, please.

ifeq (ia64,$(arch))
ASM_FLAGS += -xexplicit
TBB_ASM.OBJ += atomic_support.o lock_byte.o log2.o pause.o ia64_misc.o
MALLOC_ASM.OBJ += atomic_support.o lock_byte.o pause.o log2.o
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be removed as well?

/* Futex definitions */
#include <sys/syscall.h>
#endif

#if defined(SYS_futex)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like that SYS_futex can be defined on Haiku. If not, move #endif on line 33 to the end of the file.

@extrowerk
Copy link
Author

Some tests failing, do not merge yet.

@extrowerk
Copy link
Author

Haiku's tls and pthread implementation have some shortcomings/bugs, so some test fails, more info here:

__tls_get_addr: https://dev.haiku-os.org/ticket/14304
pthread_join: https://dev.haiku-os.org/ticket/14305

@extrowerk
Copy link
Author

Fixed on Haiku side: https://git.haiku-os.org/haiku/commit/?id=df3de4792e9b20d073d16acccc20c37f1114ea37
Will re-test and rebase it ontop of master.

@extrowerk
Copy link
Author

Hmm... rebasing went wrong somewhere?

@extrowerk
Copy link
Author

Let's close it, i think i targeted a wrong branch here.

@extrowerk extrowerk closed this Dec 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants