-
Notifications
You must be signed in to change notification settings - Fork 1k
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
__TBB_machine_fetchadd4 undefined on s390x and aarch64 #186
Comments
It appears that |
|
Fedora package uses such patch for this issue:
|
Have you tried to disable the tools api with |
No, I don't have aarch64 or s390. From the spec file:
|
But if the 2nd comment is correct, why not to fix it correctly, instead of undefining |
I am afraid that nobody really tests tools api for non Intel architectures. Overall, it makes sense to apply the fix. Does the issue present in the current version (oneTBB 2021)? As for the fix, I think it is better to improve the conditions near lines 330-332. The main concern is whether all compilers support |
Yes, and patch applies cleanly. |
Same issue happens on ppc:
|
@pkubaj , - return __TBB_machine_fetchadd4(ptr, 1) + 1L;
+ return __atomic_fetch_add(ptr, 1L, __ATOMIC_SEQ_CST) + 1L; |
Yes. Can you commit that patch? |
/wrkdirs/usr/ports/devel/onetbb/work/oneTBB-2021.2.0/src/tbb/tools_api/ittnotify_config.h:338:12: error: use of undeclared identifier '__TBB_machine_fetchadd4' return __TBB_machine_fetchadd4(ptr, 1) + 1L; Patch taken from uxlfoundation/oneTBB#186.
I have opened #550 to fix the define checks so the old The right fix seems to be defining |
closing as #550 landed |
I attempted to build 2019 update 9 for Fedora. The build failed on s390x and aarch64, both with this error message:
This is a regression over update 8; both architectures built successfully in that version.
The text was updated successfully, but these errors were encountered: