Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jul 2020 14:37:20 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        "pkubaj@freebsd.org" <pkubaj@FreeBSD.org>, freebsd-ppc <freebsd-ppc@freebsd.org>, FreeBSD ports <freebsd-ports@freebsd.org>
Subject:   32-bit powerpc graphics/mesa-dri build failure (poudriere based): "error: cannot redeclare builtin function" (e.g., __sync_add_and_fetch_8)
Message-ID:  <E062392D-1207-48D4-B503-5EC2227D2D20@yahoo.com>
References:  <E062392D-1207-48D4-B503-5EC2227D2D20.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
The error report material was:

cc -Isrc/util/ed6d25d@@mesa_util@sta -Isrc/util -I../src/util -Iinclude =
-I../include -Isrc -I../src -Isrc/mapi -I../src/mapi -Isrc/mesa =
-I../src/mesa -I../src/gallium/include -Isrc/gallium/auxiliary -
I../src/gallium/auxiliary -Xclang -fcolor-diagnostics -pipe =
-D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -std=3Dc99 -g =
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS =
'-DPACKAGE_VERS
ION=3D"19.0.8"' =
'-DPACKAGE_BUGREPORT=3D"https://bugs.freedesktop.org/enter_bug.cgi?product=
=3DMesa"' -DENABLE_ST_OMX_BELLAGIO=3D0 -DENABLE_ST_OMX_TIZONIA=3D0 =
-DHAVE_X11_PLATFORM -DGLX_INDIRECT_RENDERING -DGLX_DI
RECT_RENDERING -DGLX_USE_DRM -DHAVE_DRM_PLATFORM =
-DHAVE_SURFACELESS_PLATFORM -DDEBUG -DENABLE_SHADER_CACHE =
-DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ =
-DHAVE___BUILTIN_CLZLL
 -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS =
-DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT =
-DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE =
-DHAVE_FUNC_ATTRIBUTE_CONST
 -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC =
-DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED =
-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK =
-DHAVE_FUNC_ATTR
IBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED =
-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_VISIBILITY =
-DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -D_GNU_SOURCE =
-DUSE_GCC_ATOM
IC_BUILTINS -DMISSING_64BIT_ATOMICS -DHAVE_SYS_SYSCTL_H -DHAVE_XLOCALE_H =
-DHAVE_DLFCN_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_POSIX_MEMALIGN =
-DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_STRTOD_L -DHA
VE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_PTHREAD =
-DHAVE_LIBDRM -DHAVE_LLVM=3D0x0800 -DMESA_LLVM_VERSION_PATCH=3D1 =
-DHAVE_WAYLAND_PLATFORM -DWL_HIDE_DEPRECATED -DHAVE_DRI3 =
-DHAVE_DRI3_MODIFIERS=20
-Werror=3Dimplicit-function-declaration -Werror=3Dmissing-prototypes =
-Werror=3Dreturn-type -fno-math-errno -fno-trapping-math =
-Qunused-arguments -Wno-missing-field-initializers -O2 -g =
-fstack-protector-stro
ng -fno-strict-aliasing -fPIC -pthread -Werror=3Dpointer-arith =
-Werror=3Dvla -fvisibility=3Dhidden -MD -MQ =
'src/util/ed6d25d@@mesa_util@sta/u_atomic.c.o' -MF =
'src/util/ed6d25d@@mesa_util@sta/u_atomic.c.o.d'
 -o 'src/util/ed6d25d@@mesa_util@sta/u_atomic.c.o' -c =
../src/util/u_atomic.c
../src/util/u_atomic.c:38:1: error: cannot redeclare builtin function =
'__sync_add_and_fetch_8'
__sync_add_and_fetch_8(uint64_t *ptr, uint64_t val)
^
../src/util/u_atomic.c:38:1: note: '__sync_add_and_fetch_8' is a builtin =
with type 'long long (volatile long long *, long long, ...)'
../src/util/u_atomic.c:38:1: error: definition of builtin function =
'__sync_add_and_fetch_8'
__sync_add_and_fetch_8(uint64_t *ptr, uint64_t val)
^
../src/util/u_atomic.c:51:1: error: cannot redeclare builtin function =
'__sync_sub_and_fetch_8'
__sync_sub_and_fetch_8(uint64_t *ptr, uint64_t val)
^
../src/util/u_atomic.c:51:1: note: '__sync_sub_and_fetch_8' is a builtin =
with type 'long long (volatile long long *, long long, ...)'
../src/util/u_atomic.c:51:1: error: definition of builtin function =
'__sync_sub_and_fetch_8'
__sync_sub_and_fetch_8(uint64_t *ptr, uint64_t val)
^
../src/util/u_atomic.c:64:1: error: cannot redeclare builtin function =
'__sync_val_compare_and_swap_8'
__sync_val_compare_and_swap_8(uint64_t *ptr, uint64_t oldval, uint64_t =
newval)
^
../src/util/u_atomic.c:64:1: note: '__sync_val_compare_and_swap_8' is a =
builtin with type 'long long (volatile long long *, long long, long =
long, ...)'
../src/util/u_atomic.c:64:1: error: definition of builtin function =
'__sync_val_compare_and_swap_8'
__sync_val_compare_and_swap_8(uint64_t *ptr, uint64_t oldval, uint64_t =
newval)
^
6 errors generated.

# poudriere jail -l
JAILNAME      VERSION      ARCH              METHOD TIMESTAMP           =
PATH
FBSDpowerpc   13.0-CURRENT powerpc           null   2019-12-31 01:21:28 =
/usr/obj/DESTDIRs/clang-powerpc-installworld-poud
FBSDpowerpc64 13.0-CURRENT powerpc.powerpc64 null   2020-01-01 15:22:36 =
/usr/obj/DESTDIRs/clang-powerpc64-installworld-poud

FBSDpowerpc was in use on/under:

# uname -apKU
FreeBSD FBSDG5L2 13.0-CURRENT FreeBSD 13.0-CURRENT #7 r363123M: Sun Jul =
12 03:06:20 PDT 2020     =
markmi@FBSDFHUGE:/usr/obj/powerpc64vtsc_clang/powerpc.powerpc64/usr/src/po=
werpc.powerpc64/sys/GENERIC64vtsc-NODBG  powerpc powerpc64 1300101 =
1300101

# svnlite info /usr/ports
Path: /usr/ports
Working Copy Root Path: /usr/ports
URL: svn://svn.freebsd.org/ports/head
Relative URL: ^/head
Repository Root: svn://svn.freebsd.org/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 542111
Node Kind: directory
Schedule: normal
Last Changed Author: vanilla
Last Changed Rev: 542111
Last Changed Date: 2020-07-12 21:32:18 -0700 (Sun, 12 Jul 2020)


=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E062392D-1207-48D4-B503-5EC2227D2D20>