Date: Wed, 23 Jul 2014 16:49:42 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r362707 - head/ports-mgmt/pkg/files Message-ID: <201407231649.s6NGng7q054856@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danfe Date: Wed Jul 23 16:49:42 2014 New Revision: 362707 URL: http://svnweb.freebsd.org/changeset/ports/362707 QAT: https://qat.redports.org/buildarchive/r362707/ Log: Fix the build on PowerPC: apparently it declares that it has atomic builtins, but GCC 4.2 bombs with internal compiler error (= unrecognizable instruction) when compiling libucl/src/ucl_util.c. Approved by: bapt (portmgr, maintainer) Added: head/ports-mgmt/pkg/files/patch-powerpc-no-atomic-builtins (contents, props changed) Added: head/ports-mgmt/pkg/files/patch-powerpc-no-atomic-builtins ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/ports-mgmt/pkg/files/patch-powerpc-no-atomic-builtins Wed Jul 23 16:49:42 2014 (r362707) @@ -0,0 +1,29 @@ +--- external/libucl/src/ucl_util.c.orig 2014-06-12 01:37:02 +0800 ++++ external/libucl/src/ucl_util.c +@@ -160,7 +160,7 @@ static void + ucl_object_dtor_unref_single (ucl_object_t *obj) + { + if (obj != NULL) { +-#ifdef HAVE_ATOMIC_BUILTINS ++#if defined(HAVE_ATOMIC_BUILTINS) && !defined(__powerpc__) + unsigned int rc = __sync_sub_and_fetch (&obj->ref, 1); + if (rc == 0) { + #else +@@ -1850,7 +1850,7 @@ ucl_object_ref (const ucl_object_t *obj) + + if (obj != NULL) { + res = __DECONST (ucl_object_t *, obj); +-#ifdef HAVE_ATOMIC_BUILTINS ++#if defined(HAVE_ATOMIC_BUILTINS) && !defined(__powerpc__) + (void)__sync_add_and_fetch (&res->ref, 1); + #else + res->ref ++; +@@ -1863,7 +1863,7 @@ void + ucl_object_unref (ucl_object_t *obj) + { + if (obj != NULL) { +-#ifdef HAVE_ATOMIC_BUILTINS ++#if defined(HAVE_ATOMIC_BUILTINS) && !defined(__powerpc__) + unsigned int rc = __sync_sub_and_fetch (&obj->ref, 1); + if (rc == 0) { + #else
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407231649.s6NGng7q054856>