Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Dec 2018 23:10:07 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        stable@freebsd.org
Subject:   Re: Error upgrading 11-STABLE to 12-STABLE in ifunc resolver
Message-ID:  <20181227211007.GE53138@kib.kiev.ua>
In-Reply-To: <20181227204106.GB2310@graf.pompo.net>
References:  <20181227204106.GB2310@graf.pompo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 27, 2018 at 09:41:06PM +0100, Thierry Thomas wrote:
> Hello,
>=20
> Trying to upgrade a machine from
>=20
> 11.2-STABLE #0 r337833: Wed Aug 15 12:50:47 CEST 2018
>=20
> to 12-STABLE as:
>=20
> Working Copy Root Path: /usr/src
> URL: https://svn.freebsd.org/base/stable/12
> Relative URL: ^/stable/12
> Repository Root: https://svn.freebsd.org/base
> Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
> Revision: 342558
> Node Kind: directory
> Schedule: normal
> Last Changed Author: kp
> Last Changed Rev: 342545
> Last Changed Date: 2018-12-26 13:56:36 +0100 (Wed, 26 Dec 2018)
>=20
> aborts due to this error:
>=20
> /usr/local/libexec/ccache/world/cc -target x86_64-unknown-freebsd12.0 --s=
ysroot=3D/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tm=
p/usr/bin  -O2 -pipe   -DNO__SCCSID -DNO__RCSID -I/usr/src/lib/libc/include=
 -I/usr/src/include -I/usr/src/lib/libc/amd64 -DNLS  -D__DBINTERFACE_PRIVAT=
E -I/usr/src/contrib/gdtoa -I/usr/src/contrib/libc-vis -DINET6 -I/usr/obj/u=
sr/src/amd64.amd64/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE -DPOS=
IX_MISTAKE -I/usr/src/lib/libmd -I/usr/src/contrib/jemalloc/include -I/usr/=
src/contrib/tzcode/stdtime -I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/=
locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DWANT_=
HYPERV -DYP -DNS_CACHING -DSYMBOL_VERSIONING -g -MD  -MF.depend.amd64_set_f=
sbase.o -MTamd64_set_fsbase.o -std=3Dgnu99 -fstack-protector-strong -Wsyste=
m-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sig=
n -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-taut=
ological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-fu=
nction -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packe=
d-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter  -Qunused=
-arguments  -I/usr/src/lib/libutil -I/usr/src/lib/msun/amd64 -I/usr/src/lib=
/msun/x86 -I/usr/src/lib/msun/src -c /usr/src/lib/libc/amd64/sys/amd64_set_=
fsbase.c -o amd64_set_fsbase.o
> --- amd64_get_fsbase.o ---
> /usr/src/lib/libc/amd64/sys/amd64_get_fsbase.c:60:1: error: ifunc resolve=
r function must have no parameters
> DEFINE_UIFUNC(, int, amd64_get_fsbase, (void **), static)
> ^
> /usr/obj/usr/src/amd64.amd64/tmp/usr/include/x86/ifunc.h:43:44: note: exp=
anded from macro 'DEFINE_UIFUNC'
>     qual ret_type name args __attribute__((ifunc(#name "_resolver")));  \
>=20
> cc is:
> FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLV=
M 6.0.1)
>=20
> This problem has already been reported in
> <https://lists.freebsd.org/pipermail/freebsd-current/2018-November/071980=
=2Ehtml>
> and should be fixed with clang 7, but I'm surprised that it seems
> impossible to upgrade from 11-STABLE to 12-STABLE; did I miss something?

Yes, you should update to the latest stable/11.  More details, you need
to have host clang which includes the r339284 commit.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20181227211007.GE53138>