Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 517226 Details for
Bug 571228
sys-libs/libomp on ABI=x32 - runtime/src/z_Linux_util.c:154:6: error: #error Wrong code for setaffinity system call
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for sys-libs/libomp-5.0.1 for building on x32
libomp-5.0.1-x32.patch (text/plain), 1.25 KB, created by
Martin 'The Bishop' Scheffler
on 2018-01-31 10:40:50 UTC
(
hide
)
Description:
patch for sys-libs/libomp-5.0.1 for building on x32
Filename:
MIME Type:
Creator:
Martin 'The Bishop' Scheffler
Created:
2018-01-31 10:40:50 UTC
Size:
1.25 KB
patch
obsolete
>diff -ur openmp-5.0.1.src.orig/runtime/src/kmp_affinity.h openmp-5.0.1.src/runtime/src/kmp_affinity.h >--- openmp-5.0.1.src.orig/runtime/src/kmp_affinity.h 2017-07-18 08:30:03.000000000 -0000 >+++ openmp-5.0.1.src/runtime/src/kmp_affinity.h 2018-01-31 10:06:34.391880020 -0000 >@@ -195,6 +195,19 @@ > #error Wrong code for getaffinity system call. > #endif /* __NR_sched_getaffinity */ > #elif KMP_ARCH_X86_64 >+#if __ILP32__ >+#define __X32_SYSCALL_BIT 0x40000000 >+#ifndef __NR_sched_setaffinity >+#define __NR_sched_setaffinity (__X32_SYSCALL_BIT + 203) >+#elif __NR_sched_setaffinity != (__X32_SYSCALL_BIT + 203) >+#error Wrong code for setaffinity system call. >+#endif /* __NR_sched_setaffinity */ >+#ifndef __NR_sched_getaffinity >+#define __NR_sched_getaffinity (__X32_SYSCALL_BIT + 204) >+#elif __NR_sched_getaffinity != (__X32_SYSCALL_BIT + 204) >+#error Wrong code for getaffinity system call. >+#endif /* __NR_sched_getaffinity */ >+#else > #ifndef __NR_sched_setaffinity > #define __NR_sched_setaffinity 203 > #elif __NR_sched_setaffinity != 203 >@@ -205,6 +218,7 @@ > #elif __NR_sched_getaffinity != 204 > #error Wrong code for getaffinity system call. > #endif /* __NR_sched_getaffinity */ >+#endif > #elif KMP_ARCH_PPC64 > #ifndef __NR_sched_setaffinity > #define __NR_sched_setaffinity 222
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 571228
:
422258
|
422260
|
464760
|
517226
|
517358
|
517494
|
517502
|
794255