Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2019 20:32:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 238082] graphics/mesa-dri: clang 8 (from head@r347549) crashes during build on powerpc64 (WITH_CLANG_IS_CC)
Message-ID:  <bug-238082-29464-pLsYqYBS8x@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-238082-29464@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238082

--- Comment #8 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Mark Millard from comment #6)

Looks like possible operator error in that a retry did
not fail. (I re-went through establishing the patch
to what the poudriere bulk sees as the system-clang-8.)

But in trying to see what might be going on I notice there
is logic like:

# need LLVM for libEGL wherever possible, but mixing GCC and LLVM breaks
Gallium
.if ${CHOSEN_COMPILER_TYPE} == clang \
 || (${COMPONENT} == libs && ${ARCH} != sparc64)        # no working LLVM
MESA_LLVM_VER?= 60
.endif

.if "${MESA_LLVM_VER}" != ""
BUILD_DEPENDS+= llvm${MESA_LLVM_VER}>=3.9.0_4:devel/llvm${MESA_LLVM_VER}
.if ${COMPONENT} != libs
RUN_DEPENDS+=   llvm${MESA_LLVM_VER}>=3.9.0_4:devel/llvm${MESA_LLVM_VER}
.endif
CONFIGURE_ENV+= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${MESA_LLVM_VER}
LDFLAGS+=       -Wl,-rpath=${LOCALBASE}/llvm${MESA_LLVM_VER}/lib
CONFIGURE_ARGS+=        --enable-llvm
.else
CONFIGURE_ARGS+=        --disable-llvm
.endif


So it may be that devel/llvm60 ( or devel/llvm* ) needs to be patched
in order to work for contexts that would use it.

It seems that devel/llvm60 got its pkg added but mesa-dri actually
used what poudriere bulk saw as the system cc (system-clang-8 in my
context).

As for my 2nd test:

[00:01:44] [01] [00:00:00] Building graphics/mesa-dri | mesa-dri-18.3.2_2
[00:23:45] [01] [00:22:01] Finished graphics/mesa-dri | mesa-dri-18.3.2_2:
Success

So I guess I somehow had the context for poudriere bulk messed up
relative the the system cc that it saw.

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238082-29464-pLsYqYBS8x>