From owner-freebsd-stable@freebsd.org Thu Dec 27 21:10:17 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4FAF014233E7 for ; Thu, 27 Dec 2018 21:10:17 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id CAC488BCAB for ; Thu, 27 Dec 2018 21:10:16 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 89B7914233E6; Thu, 27 Dec 2018 21:10:16 +0000 (UTC) Delivered-To: stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A9A414233E5 for ; Thu, 27 Dec 2018 21:10:16 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 78E398BCAA for ; Thu, 27 Dec 2018 21:10:15 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id wBRLA7nC004170 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 27 Dec 2018 23:10:10 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua wBRLA7nC004170 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id wBRLA7ri004156 for stable@freebsd.org; Thu, 27 Dec 2018 23:10:07 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 27 Dec 2018 23:10:07 +0200 From: Konstantin Belousov To: stable@freebsd.org Subject: Re: Error upgrading 11-STABLE to 12-STABLE in ifunc resolver Message-ID: <20181227211007.GE53138@kib.kiev.ua> References: <20181227204106.GB2310@graf.pompo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20181227204106.GB2310@graf.pompo.net> User-Agent: Mutt/1.11.1 (2018-12-01) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2018 21:10:17 -0000 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 > > 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.