Opened 12 years ago
Closed 12 years ago
#38411 closed defect (fixed)
db48, db51, db52, db53: error: definition of builtin function '__atomic_compare_exchange'
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | afb@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | ||
Port: | db48, db51, db52, db53 |
Description
./libtool --mode=compile /usr/bin/clang -c -I. -I../src -I/opt/local/include -pipe -Os -arch x86_64 ../src/mutex/mut_tas.c libtool: compile: /usr/bin/clang -c -I. -I../src -I/opt/local/include -pipe -Os -arch x86_64 ../src/mutex/mut_tas.c -fno-common -DPIC -o .libs/mut_tas.o In file included from ../src/mutex/mut_tas.c:11: In file included from ./db_int.h:1113: In file included from ../src/dbinc/mutex.h:15: In file included from ../src/dbinc/mutex_int.h:12: ../src/dbinc/atomic.h:179:19: error: definition of builtin function '__atomic_compare_exchange' static inline int __atomic_compare_exchange( ^ 1 error generated.
OS X 10.8.2, Xcode 4.6, Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Attachments (1)
Change History (6)
Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
comment:1 Changed 12 years ago by afb@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Port: | db48 db51 db52 added |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
Summary: | db53: error: definition of builtin function '__atomic_compare_exchange' → db48, db51, db52, db53: error: definition of builtin function '__atomic_compare_exchange' |
Thanks, that fixed db53, but other dbXX versions need the fix too.
comment:3 Changed 12 years ago by iwerris@…
Is there any workaround feasible in the short term? I'm encountering this issue for db48.
comment:4 Changed 12 years ago by afb@…
Fixed, r104994. (workaround would have been to use llvm-gcc)
comment:5 Changed 12 years ago by afb@…
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Backported to db51 and db52 too, even though those should probably be replaced_by.
Note: See
TracTickets for help on using
tickets.
Fixed, r104135.
Patch from FreeBSD ports, and http://lists.freebsd.org/pipermail/freebsd-current/2012-May/033615.html