[llvm-bugs] [Bug 46932] New: Crosscompiling llvm with openmp enabled from x86_64-linux-gnu to i686-linux-gnu fails
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jul 31 05:26:46 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46932
Bug ID: 46932
Summary: Crosscompiling llvm with openmp enabled from
x86_64-linux-gnu to i686-linux-gnu fails
Product: new-bugs
Version: 11.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: bero at lindev.ch
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
Trying to crosscompile LLVM 11.0-rc1 from x86_64-linux-gnu to i686-linux-gnu
fails if libomp is enabled.
Native x86_64 and aarch64 builds work fine.
(In the output below, "xc" is a script that says exec /usr/bin/clang -target
i686-openmandriva-linux-gnu "\$@")
So far, not sure if this is a problem in OpenMP, Compiler-RT or the build
system (the -static-libgcc flag on the command line looks a bit odd given
compiler-rt is supposed to be used instead of libgcc)
[1817/5759] Linking C shared library lib/libomp.so.1.11.0.0
FAILED: lib/libomp.so.1.11.0.0
: && /home/bero/temp/abf/llvm/BUILD/llvm-project-release-11.x/xc -fPIC -Os
-fomit-frame-pointer -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2
-fstack-protector-all --param=ssp-buffer-size=4 -O3 -march=znver1 -mtune=znver1
-mmmx -msse -msse2 -mssse3 -msse4a -msse4.1 -msse4.2 -mavx -mavx2 -msha -maes
-mclflushopt -mfsgsbase -mrdrnd -mfma -mrdseed -mpopcnt -madx -mbmi -mbmi2
-mfxsr -mxsave -mxsaveopt -mxsavec -mxsaves -mmwaitx -mclzero -mfpmath=sse -O3
-fpic -m32 -fPIC -Werror=date-time -Werror=unguarded-availability-new -Wall
-Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers
-pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default
-Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color
-ffunction-sections -fdata-sections -Wall -Wcast-qual -Wformat-pedantic
-Wimplicit-fallthrough -Wsign-compare -Wno-extra -Wno-pedantic -Os
-fomit-frame-pointer -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2
-fstack-protector-all --param=ssp-buffer-size=4 -O3 -march=znver1 -mtune=znver1
-mmmx -msse -msse2 -mssse3 -msse4a -msse4.1 -msse4.2 -mavx -mavx2 -msha -maes
-mclflushopt -mfsgsbase -mrdrnd -mfma -mrdseed -mpopcnt -madx -mbmi -mbmi2
-mfxsr -mxsave -mxsaveopt -mxsavec -mxsaves -mmwaitx -mclzero -mfpmath=sse -O3
-fpic -m32
-L/home/bero/temp/abf/llvm/BUILD/llvm-project-release-11.x/build32/lib
-Wl,-z,defs -Wl,-z,nodelete -Wl,--warn-shared-textrel -Wl,--as-needed
-Wl,--version-script=/home/bero/temp/abf/llvm/BUILD/llvm-project-release-11.x/openmp/runtime/src/exports_so.txt
-static-libgcc -Wl,-z,noexecstack -msse2 -shared -Wl,-soname,libomp.so.1 -o
lib/libomp.so.1.11.0.0
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_alloc.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_atomic.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_csupport.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_debug.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_itt.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_environment.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_error.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_global.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_i18n.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_io.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_runtime.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_settings.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_str.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_tasking.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_threadprivate.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_utility.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_barrier.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_wait_release.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_affinity.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_dispatch.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_lock.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_sched.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/z_Linux_util.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/thirdparty/ittnotify/ittnotify_static.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_taskdeps.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_cancel.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_ftn_cdecl.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_ftn_extra.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_version.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/ompt-general.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/z_Linux_asm.S.o -lm -lpthread
-ldl && :
/usr/bin/i686-openmandriva-linux-gnu-ld:
/usr/lib64/clang/10.0.1/lib/linux/libclang_rt.builtins-i386.a(divxc3.c.o): in
function `__divxc3':
divxc3.c:(.text+0x60): undefined reference to `fmaxl'
/usr/bin/i686-openmandriva-linux-gnu-ld: divxc3.c:(.text+0x68): undefined
reference to `logbl'
clang-10: error: linker command failed with exit code 1 (use -v to see
invocation)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200731/c130cb6c/attachment-0001.html>
More information about the llvm-bugs
mailing list