Opened 11 years ago

Closed 11 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)

main.log (31.7 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

comment:1 Changed 11 years ago by afb@…

Resolution: fixed
Status: newclosed

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Port: db48 db51 db52 added
Resolution: fixed
Status: closedreopened
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 11 years ago by iwerris@…

Is there any workaround feasible in the short term? I'm encountering this issue for db48.

comment:4 Changed 11 years ago by afb@…

Fixed, r104994. (workaround would have been to use llvm-gcc)

comment:5 Changed 11 years ago by afb@…

Resolution: fixed
Status: reopenedclosed

Backported to db51 and db52 too, even though those should probably be replaced_by.

Note: See TracTickets for help on using tickets.