From 35b48ed99001ca14d9ee0f6f434182008bdc0c46 Mon Sep 17 00:00:00 2001 From: Joel Winarske Date: Wed, 9 Feb 2022 11:26:23 -0800 Subject: OpenMP Link fix -fixes "version node not found for symbol omp_get_num_places_@@VERSION" Signed-off-by: Joel Winarske --- .../clang/clang/0029-OpenMP-link-fix.patch | 26 ++++++++++++++++++++++ recipes-devtools/clang/openmp_git.bb | 4 ++++ 2 files changed, 30 insertions(+) create mode 100644 recipes-devtools/clang/clang/0029-OpenMP-link-fix.patch diff --git a/recipes-devtools/clang/clang/0029-OpenMP-link-fix.patch b/recipes-devtools/clang/clang/0029-OpenMP-link-fix.patch new file mode 100644 index 0000000..3901268 --- /dev/null +++ b/recipes-devtools/clang/clang/0029-OpenMP-link-fix.patch @@ -0,0 +1,26 @@ +From 11bd98436bd7e99fb1fc2c07c150c71e2250a262 Mon Sep 17 00:00:00 2001 +From: Joel Winarske +Date: Wed, 9 Feb 2022 11:11:55 -0800 +Subject: [PATCH] OpenMP link fix + +Signed-off-by: Joel Winarske +--- + openmp/runtime/src/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt +index 9f46b4bd4..3106e497d 100644 +--- a/openmp/runtime/src/CMakeLists.txt ++++ b/openmp/runtime/src/CMakeLists.txt +@@ -168,7 +168,7 @@ endif() + + # Linking command will include libraries in LIBOMP_CONFIGURED_LIBFLAGS + libomp_get_libflags(LIBOMP_CONFIGURED_LIBFLAGS) +-target_link_libraries(omp ${LIBOMP_CONFIGURED_LIBFLAGS} ${CMAKE_DL_LIBS}) ++target_link_libraries(omp ${LIBOMP_CONFIGURED_LIBFLAGS} ${CMAKE_DL_LIBS} "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exports_so.txt") + + # Create *.inc before compiling any sources + # objects depend on : .inc files +-- +2.31.1 + diff --git a/recipes-devtools/clang/openmp_git.bb b/recipes-devtools/clang/openmp_git.bb index 4c6be98..c8cda45 100644 --- a/recipes-devtools/clang/openmp_git.bb +++ b/recipes-devtools/clang/openmp_git.bb @@ -12,6 +12,10 @@ TOOLCHAIN = "clang" LIC_FILES_CHKSUM = "file://openmp/LICENSE.txt;md5=d75288d1ce0450b28b8d58a284c09c79" +SRC_URI += "\ + file://0029-OpenMP-link-fix.patch \ +" + inherit cmake pkgconfig perlnative DEPENDS += "elfutils libffi" -- cgit v1.2.3-54-g00ecf