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

How to compile oneTBB with Emscritpen? #460

Closed
dpar39 opened this issue Jun 26, 2021 · 5 comments · May be fixed by #695
Closed

How to compile oneTBB with Emscritpen? #460

dpar39 opened this issue Jun 26, 2021 · 5 comments · May be fixed by #695

Comments

@dpar39
Copy link

dpar39 commented Jun 26, 2021

Is it possible to compile oneTBB with Emscripten? There are third party libraries using oneTBB and it would be nice to get them to compile without changing the source code.

@alexey-katranov
Copy link
Contributor

I do not know if someone using oneTBB with Emscripten. Have you tried to build as is?

@vlserov
Copy link

vlserov commented Oct 13, 2021

Issues related to assembling oneTBB with Emscripten can be divided into 2 category:

  1. Build issue, related to undefined reference to `__TBB_machine_fetchadd4', has been fixed with Define ITT_ARCH_IA64 when undefined #550.
  2. Compiler warnings.
    Emscripten compliler doesn't familiar with some flags used by oneTBB for x86/AMD64 processors. Those flags are ignored and marked as 'unused'. As a work-around, compile oneTBB with cmake flag 'TBB_STRICT' to 'OFF'
    emcmake cmake -DTBB_STRICT=OFF ..

@omalyshe
Copy link
Contributor

@dpar39 Please, check if #1006 resolves your question.

@nofuturre
Copy link

@dpar39 is this issue still relevant?

@nofuturre
Copy link

If anyone encounter this issue in the future please open new issue with a link to this one

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

Successfully merging a pull request may close this issue.

6 participants