[LLVMbugs] [Bug 24038] New: undefined "___atomic_compare_exchange and ___atomic_load emitted at -m32 on x86_64-apple-darwin12
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jul 6 05:19:30 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24038
Bug ID: 24038
Summary: undefined "___atomic_compare_exchange and
___atomic_load emitted at -m32 on
x86_64-apple-darwin12
Product: clang
Version: trunk
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: howarth.mailing.lists at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
When current llvm/clang/compiler-rt/openmp trunk svn is built on
x86_64-apple-darwin12 (OS X 10.8), the resulting compiler produces failures in
the test_omp_atomic and orph_test_omp_atomic tests of the OpenMP3.1_Validation
test suite when it is built at -m32 (but not -m64). The failures are due to
failed linkages of the form...
Testing for "omp_atomic":
Generating sources .............. success
Compiling soures ............Undefined symbols for architecture i386:
"___atomic_compare_exchange", referenced from:
_.omp_outlined..4 in test_omp_atomic-a95352.o
_.omp_outlined..6 in test_omp_atomic-a95352.o
_.omp_outlined..12 in test_omp_atomic-a95352.o
"___atomic_load", referenced from:
_.omp_outlined..4 in test_omp_atomic-a95352.o
_.omp_outlined..6 in test_omp_atomic-a95352.o
_.omp_outlined..12 in test_omp_atomic-a95352.o
ld: symbol(s) not found for architecture i386
clang-3.7: error: linker command failed with exit code 1 (use -v to see
invocation)
make[1]: *** [bin/c/test_omp_atomic] Error 1
ERROR: Compilation of the test failed.
.... failed
+ orphaned mode:
Generating sources .............. success
Compiling soures ............Undefined symbols for architecture i386:
"___atomic_compare_exchange", referenced from:
_.omp_outlined..12 in orph_test_omp_atomic-f659ef.o
"___atomic_load", referenced from:
_.omp_outlined..12 in orph_test_omp_atomic-f659ef.o
ld: symbol(s) not found for architecture i386
clang-3.7: error: linker command failed with exit code 1 (use -v to see
invocation)
make[1]: *** [bin/c/orph_test_omp_atomic] Error 1
ERROR: Compilation of the test failed.
These failures don't occur on 10.9 or later due to their support for the calls
as seem in compiler-rt-3.7.0.src/lib/builtins/apple_versioning.c...
NOT_HERE_IN_10_8_AND_EARLIER(__atomic_compare_exchange)
NOT_HERE_IN_10_8_AND_EARLIER(__atomic_compare_exchange_1)
NOT_HERE_IN_10_8_AND_EARLIER(__atomic_compare_exchange_2)
NOT_HERE_IN_10_8_AND_EARLIER(__atomic_compare_exchange_4)
NOT_HERE_IN_10_8_AND_EARLIER(__atomic_compare_exchange_8)
NOT_HERE_IN_10_8_AND_EARLIER(__atomic_load)
NOT_HERE_IN_10_8_AND_EARLIER(__atomic_load_1)
NOT_HERE_IN_10_8_AND_EARLIER(__atomic_load_2)
NOT_HERE_IN_10_8_AND_EARLIER(__atomic_load_4)
NOT_HERE_IN_10_8_AND_EARLIER(__atomic_load_8)
--
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/20150706/d9dd6fb8/attachment.html>
More information about the llvm-bugs
mailing list