From: "kosaki (Motohiro KOSAKI)" Date: 2012-12-12T11:05:41+09:00 Subject: [ruby-core:50804] [ruby-trunk - Bug #7485] ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap Issue #7485 has been updated by kosaki (Motohiro KOSAKI). Hi Does following patch fix your issue? diff --git a/configure.in b/configure.in index c916cd5..4a34334 100644 --- a/configure.in +++ b/configure.in @@ -1534,7 +1534,7 @@ AS_CASE(["$target_os"], []) -AS_CASE(["$target_cpu-$target_os"], [[i[3-6]86-linux*]], [ +AS_CASE(["$target_cpu-$target_os"], [[i[3-6]86-*]], [ AC_CACHE_CHECK([for __sync_val_compare_and_swap], [rb_cv_gcc_co AC_TRY_LINK([unsigned long atomic_var;], [ ---------------------------------------- Bug #7485: ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap https://bugs.ruby-lang.org/issues/7485#change-34646 Author: drbrain (Eric Hodel) Status: Open Priority: Normal Assignee: nobu (Nobuyoshi Nakada) Category: build Target version: 2.0.0 ruby -v: trunk mingw32 GCC has the other atomic builtins but not this one. The attached patch checks for the GCC builtins used in ruby_atomic.h but not checked for by configure. -- http://bugs.ruby-lang.org/