From nobody Wed Aug 11 17:44:07 2021 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BFFA211FE6A6 for ; Wed, 11 Aug 2021 17:44:10 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GlHHt4sJGz3ksd; Wed, 11 Aug 2021 17:44:10 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 72794A395; Wed, 11 Aug 2021 17:44:10 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (unknown [IPv6:2001:470:7a58:0:dc68:1295:d8f9:eb67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 1FC5150362; Wed, 11 Aug 2021 19:44:08 +0200 (CEST) Content-Type: text/plain; charset=us-ascii List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Source upgrade to stable/11 amd64 broken From: Dimitry Andric In-Reply-To: <490579f8-21d8-3495-69b9-27a504969287@grosbein.net> Date: Wed, 11 Aug 2021 19:44:07 +0200 Cc: FreeBSD stable Content-Transfer-Encoding: quoted-printable Message-Id: <30E3E4A7-C846-4EFA-B0B1-65F306960CB8@FreeBSD.org> References: <490579f8-21d8-3495-69b9-27a504969287@grosbein.net> To: Eugene Grosbein X-Mailer: Apple Mail (2.3654.120.0.1.13) X-ThisMailContainsUnwantedMimeParts: N On 11 Aug 2021, at 05:13, Eugene Grosbein wrote: >=20 > I'm in process of upgrading very old remote FreeBSD server running = 9.3-STABLE/amd64. > First, I used svn to fetch stable/10 sources and performed source = upgrade to 10.4-STABLE r369650 > and it went just fine. >=20 > Now it has stock "FreeBSD clang version 3.4.1 = (tags/RELEASE_34/dot1-final 208032) 20140512". > I did checkout for stable/11 sources via svn but this time buildworld = fails early: >=20 > -------------------------------------------------------------- >>>> stage 1.2: bootstrap tools > -------------------------------------------------------------- > cd /usr/local/src; MAKEOBJDIRPREFIX=3D/usr/obj/usr/local/src/tmp = INSTALL=3D"sh /usr/local/src/tools/install.sh" = TOOLS_PREFIX=3D/usr/obj/usr/local/src/tmp = PATH=3D/usr/obj/usr/local/src/tmp/legacy/usr/sbin:/usr/obj/usr/local/src/t= mp/legacy/usr/bin:/usr/obj/usr/local/src/tmp/legacy/bin:/sbin:/bin:/usr/sb= in:/usr/bin WORLDTMP=3D/usr/obj/usr/local/src/tmp MAKEFLAGS=3D"-m = /usr/local/src/tools/build/mk -m /usr/local/src/share/mk" make -f = Makefile.inc1 DESTDIR=3D BOOTSTRAPPING=3D1004503 SSP_CFLAGS=3D = MK_HTML=3Dno NO_LINT=3Dyes MK_MAN=3Dno -DNO_PIC MK_PROFILE=3Dno = -DNO_SHARED -DNO_CPU_CFLAGS MK_WARNS=3Dno MK_CTF=3Dno = MK_CLANG_EXTRAS=3Dno MK_CLANG_FORMAT=3Dno MK_CLANG_FULL=3Dno MK_LLDB=3Dno= MK_TESTS=3Dno MK_INCLUDES=3Dyes bootstrap-tools > =3D=3D=3D> lib/clang/libllvmminimal (obj,all,install) > /usr/obj/usr/local/src/tmp/usr/local/src/lib/clang/libllvmminimal = created for /usr/local/src/lib/clang/libllvmminimal > = /usr/obj/usr/local/src/tmp/usr/local/src/lib/clang/libllvmminimal/Demangle= created for /usr/local/src/lib/clang/libllvmminimal > = /usr/obj/usr/local/src/tmp/usr/local/src/lib/clang/libllvmminimal/Support = created for /usr/local/src/lib/clang/libllvmminimal > = /usr/obj/usr/local/src/tmp/usr/local/src/lib/clang/libllvmminimal/TableGen= created for /usr/local/src/lib/clang/libllvmminimal > c++ -O2 -pipe -I/usr/local/src/lib/clang/include = -I/usr/local/src/contrib/llvm-project/llvm/include = -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS = -DHAVE_VCS_VERSION_INC -DNDEBUG = -DLLVM_DEFAULT_TARGET_TRIPLE=3D\"x86_64-unknown-freebsd11.4\" = -DLLVM_HOST_TRIPLE=3D\"x86_64-unknown-freebsd11.4\" = -DDEFAULT_SYSROOT=3D\"/usr/obj/usr/local/src/tmp\" = -DLLVM_TARGET_ENABLE_AARCH64 -DLLVM_TARGET_ENABLE_ARM = -DLLVM_TARGET_ENABLE_MIPS -DLLVM_TARGET_ENABLE_POWERPC = -DLLVM_TARGET_ENABLE_SPARC -DLLVM_TARGET_ENABLE_X86 = -DLLVM_NATIVE_ASMPARSER=3DLLVMInitializeX86AsmParser = -DLLVM_NATIVE_ASMPRINTER=3DLLVMInitializeX86AsmPrinter = -DLLVM_NATIVE_DISASSEMBLER=3DLLVMInitializeX86Disassembler = -DLLVM_NATIVE_TARGET=3DLLVMInitializeX86Target = -DLLVM_NATIVE_TARGETINFO=3DLLVMInitializeX86TargetInfo = -DLLVM_NATIVE_TARGETMC=3DLLVMInitializeX86TargetMC -ffunction-sections = -fdata-sections -MD -MF.depend.Demangle_ItaniumDemangle.o = -MTDemangle/ItaniumDemangle.o -Qunused-arguments = -I/usr/obj/usr/local/src/tmp/legacy/usr/include -std=3Dc++14 = -fno-exceptions -fno-rtti -stdlib=3Dlibc++ -Wno-c++11-extensions -c = /usr/local/src/contrib/llvm-project/llvm/lib/Demangle/ItaniumDemangle.cpp = -o Demangle/ItaniumDemangle.o > error: invalid value 'c++14' in '-std=3Dc++14' > *** Error code 1 >=20 > Stop. > make[3]: stopped in /usr/local/src/lib/clang/libllvmminimal > *** Error code 1 >=20 > How do I resolve this? It's going to be a little tricky, as clang 3.4.1 is too old to support C++14 properly. I've tried using -std=3Dc++1y since that was the old = name for -std=3Dc++14, but it asserts quite early in the build. The best way forward is to attempt to buildworld (and buildkernel) with a clean stable/11 checkout at r360783, which is just before clang 10.0.0 got imported. You will also need to add: CXXFLAGS.clang=3D-Wno-out-of-line-declaration to your src.conf, otherwise it will get an unexpected error during the build. After this has completed, install world and kernel and reboot, and then you should have clang 9.0.0 and the corresponding libc++. This should allow you to do a regular update to the latest stable/11. =46rom there you should upgrade to stable/12, as 11 is going EOL in = about a month... :) -Dimitry From nobody Wed Aug 11 18:00:09 2021 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0E04913783C7 for ; Wed, 11 Aug 2021 18:00:17 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from gromit.dlib.vt.edu (gromit.dlib.vt.edu [128.173.49.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "gromit.dlib.vt.edu", Issuer "Chumby Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GlHfS6zwfz3mKJ; Wed, 11 Aug 2021 18:00:16 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from smtpclient.apple (pmather-dld-1.lib.vt.edu [128.173.51.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gromit.dlib.vt.edu (Postfix) with ESMTPSA id D1FF062B; Wed, 11 Aug 2021 14:00:09 -0400 (EDT) Content-Type: text/plain; charset=us-ascii List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Source upgrade to stable/11 amd64 broken From: Paul Mather In-Reply-To: <30E3E4A7-C846-4EFA-B0B1-65F306960CB8@FreeBSD.org> Date: Wed, 11 Aug 2021 14:00:09 -0400 Cc: Eugene Grosbein , FreeBSD stable Content-Transfer-Encoding: quoted-printable Message-Id: <94300E26-2E17-46E3-A21B-5F54564E65D7@gromit.dlib.vt.edu> References: <490579f8-21d8-3495-69b9-27a504969287@grosbein.net> <30E3E4A7-C846-4EFA-B0B1-65F306960CB8@FreeBSD.org> To: Dimitry Andric X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4GlHfS6zwfz3mKJ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Aug 11, 2021, at 1:44 PM, Dimitry Andric wrote: > On 11 Aug 2021, at 05:13, Eugene Grosbein wrote: >>=20 >> I'm in process of upgrading very old remote FreeBSD server running = 9.3-STABLE/amd64. >> First, I used svn to fetch stable/10 sources and performed source = upgrade to 10.4-STABLE r369650 >> and it went just fine. >>=20 >> Now it has stock "FreeBSD clang version 3.4.1 = (tags/RELEASE_34/dot1-final 208032) 20140512". >> I did checkout for stable/11 sources via svn but this time buildworld = fails early: >>=20 >> -------------------------------------------------------------- >>>>> stage 1.2: bootstrap tools >> -------------------------------------------------------------- >> cd /usr/local/src; MAKEOBJDIRPREFIX=3D/usr/obj/usr/local/src/tmp = INSTALL=3D"sh /usr/local/src/tools/install.sh" = TOOLS_PREFIX=3D/usr/obj/usr/local/src/tmp = PATH=3D/usr/obj/usr/local/src/tmp/legacy/usr/sbin:/usr/obj/usr/local/src/t= mp/legacy/usr/bin:/usr/obj/usr/local/src/tmp/legacy/bin:/sbin:/bin:/usr/sb= in:/usr/bin WORLDTMP=3D/usr/obj/usr/local/src/tmp MAKEFLAGS=3D"-m = /usr/local/src/tools/build/mk -m /usr/local/src/share/mk" make -f = Makefile.inc1 DESTDIR=3D BOOTSTRAPPING=3D1004503 SSP_CFLAGS=3D = MK_HTML=3Dno NO_LINT=3Dyes MK_MAN=3Dno -DNO_PIC MK_PROFILE=3Dno = -DNO_SHARED -DNO_CPU_CFLAGS MK_WARNS=3Dno MK_CTF=3Dno = MK_CLANG_EXTRAS=3Dno MK_CLANG_FORMAT=3Dno MK_CLANG_FULL=3Dno MK_LLDB=3Dno= MK_TESTS=3Dno MK_INCLUDES=3Dyes bootstrap-tools >> =3D=3D=3D> lib/clang/libllvmminimal (obj,all,install) >> /usr/obj/usr/local/src/tmp/usr/local/src/lib/clang/libllvmminimal = created for /usr/local/src/lib/clang/libllvmminimal >> = /usr/obj/usr/local/src/tmp/usr/local/src/lib/clang/libllvmminimal/Demangle= created for /usr/local/src/lib/clang/libllvmminimal >> = /usr/obj/usr/local/src/tmp/usr/local/src/lib/clang/libllvmminimal/Support = created for /usr/local/src/lib/clang/libllvmminimal >> = /usr/obj/usr/local/src/tmp/usr/local/src/lib/clang/libllvmminimal/TableGen= created for /usr/local/src/lib/clang/libllvmminimal >> c++ -O2 -pipe -I/usr/local/src/lib/clang/include = -I/usr/local/src/contrib/llvm-project/llvm/include = -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS = -DHAVE_VCS_VERSION_INC -DNDEBUG = -DLLVM_DEFAULT_TARGET_TRIPLE=3D\"x86_64-unknown-freebsd11.4\" = -DLLVM_HOST_TRIPLE=3D\"x86_64-unknown-freebsd11.4\" = -DDEFAULT_SYSROOT=3D\"/usr/obj/usr/local/src/tmp\" = -DLLVM_TARGET_ENABLE_AARCH64 -DLLVM_TARGET_ENABLE_ARM = -DLLVM_TARGET_ENABLE_MIPS -DLLVM_TARGET_ENABLE_POWERPC = -DLLVM_TARGET_ENABLE_SPARC -DLLVM_TARGET_ENABLE_X86 = -DLLVM_NATIVE_ASMPARSER=3DLLVMInitializeX86AsmParser = -DLLVM_NATIVE_ASMPRINTER=3DLLVMInitializeX86AsmPrinter = -DLLVM_NATIVE_DISASSEMBLER=3DLLVMInitializeX86Disassembler = -DLLVM_NATIVE_TARGET=3DLLVMInitializeX86Target = -DLLVM_NATIVE_TARGETINFO=3DLLVMInitializeX86TargetInfo = -DLLVM_NATIVE_TARGETMC=3DLLVMInitializeX86TargetMC -ffunction-sections = -fdata-sections -MD -MF.depend.Demangle_ItaniumDemangle.o = -MTDemangle/ItaniumDemangle.o -Qunused-arguments = -I/usr/obj/usr/local/src/tmp/legacy/usr/include -std=3Dc++14 = -fno-exceptions -fno-rtti -stdlib=3Dlibc++ -Wno-c++11-extensions -c = /usr/local/src/contrib/llvm-project/llvm/lib/Demangle/ItaniumDemangle.cpp = -o Demangle/ItaniumDemangle.o >> error: invalid value 'c++14' in '-std=3Dc++14' >> *** Error code 1 >>=20 >> Stop. >> make[3]: stopped in /usr/local/src/lib/clang/libllvmminimal >> *** Error code 1 >>=20 >> How do I resolve this? >=20 > It's going to be a little tricky, as clang 3.4.1 is too old to support > C++14 properly. I've tried using -std=3Dc++1y since that was the old = name > for -std=3Dc++14, but it asserts quite early in the build. >=20 > The best way forward is to attempt to buildworld (and buildkernel) = with > a clean stable/11 checkout at r360783, which is just before clang = 10.0.0 > got imported. You will also need to add: >=20 > CXXFLAGS.clang=3D-Wno-out-of-line-declaration >=20 > to your src.conf, otherwise it will get an unexpected error during the > build. >=20 > After this has completed, install world and kernel and reboot, and = then > you should have clang 9.0.0 and the corresponding libc++. This should > allow you to do a regular update to the latest stable/11. >=20 > =46rom there you should upgrade to stable/12, as 11 is going EOL in = about > a month... :) As the OP is currently at 10-STABLE, would it also not work to upgrade = from there to 11.0-RELEASE (releng/11.0) and then from there to do the = recommended upgrade path to whatever is the desired endpoint? It might = require more work, but it would be a known supported upgrade path. Just = wondering... Cheers, Paul. From nobody Wed Aug 11 18:09:26 2021 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4701F137971B for ; Wed, 11 Aug 2021 18:09:45 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GlHsP10Rxz3nfh for ; Wed, 11 Aug 2021 18:09:45 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-lf1-x12d.google.com with SMTP id z20so7647534lfd.2 for ; Wed, 11 Aug 2021 11:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VbFt+g01WGXDTbNxw/Ncy0JxSzKOraBL6NYnj4vX+LE=; b=zXjwPPKi3rtTbis/g0x9JcKY5X5cuUSeTUYl/cXHzV5WnS136uROS6Nn6Gk0kYYWCe ct14RDwMJV5RjFDuu/Qs4t6uXCNBtIPQBVE7x+XcgbTKvX6S2Cg4JpiG5il+zZ4UTx9k 3drEjO7hoMIUqGHC2z0KI/AV4aASh28iDpyWLSZkVfrynAK7mQ3Z2X0zQ4nuArciOvAi QS15c6z9iJKsy1iD2DHOL1Lya3ja/EZlZ9OH770L9acfQ8yzpowg651vOmvp/eUV5sIu cGG1U3cCOn3bQLr5n0zxhppGIkDKN05xanpK1WHe097/wyW5jBTzvaow6oaNw3dBICAo PZ9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VbFt+g01WGXDTbNxw/Ncy0JxSzKOraBL6NYnj4vX+LE=; b=W/JHUtawF/9WiffLoiNBqEAYxBGTW0ITsFuLxD4aW8hLgmXtDhqYDkEMstHLZr+xiR SqK3Ez34mkSDIwDk/FQFIZPntUaStIo4h0/qf+7PnEPY0yKb6ch/zXZLHptjJQaxMoZy FkH7gnpfDsbcniI3V8FNI8pvqqO9VNYK4zbaySn9F0fh1/TB83VNyeNPQfqDwiKIEhDp /L86QC9nJWULyHcQxD//+7aGPv9x1aND69zAWboOiYE/UQ5lrZtJ581ZRisbmbNl1zTg /kqthf7rvXV/uA2BM8X28odOQMJ08ZZKnT8QlwIFl5+7j/ehqiMwFZhGlpFGGZhOQqLN M6wg== X-Gm-Message-State: AOAM533puNFySGcd2/LmKRyBmsAa9vEJcVk/vYQvhmAaK8lWdnsIjW4Q 8yha3alczDQnxp6yDQfVc6YiDjroOWZDlj7GGxZfSA== X-Google-Smtp-Source: ABdhPJxvJWzw+wlPPWTxO0MwLUwurercwQleGMx5ukkW5w5BS85IWsjQZ2ecD4VFGUbTI8Ew+6k9aPSxWjUq6OVCam0= X-Received: by 2002:a05:6512:2627:: with SMTP id bt39mr79077lfb.138.1628705377580; Wed, 11 Aug 2021 11:09:37 -0700 (PDT) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 References: <490579f8-21d8-3495-69b9-27a504969287@grosbein.net> <30E3E4A7-C846-4EFA-B0B1-65F306960CB8@FreeBSD.org> <94300E26-2E17-46E3-A21B-5F54564E65D7@gromit.dlib.vt.edu> In-Reply-To: <94300E26-2E17-46E3-A21B-5F54564E65D7@gromit.dlib.vt.edu> From: Warner Losh Date: Wed, 11 Aug 2021 12:09:26 -0600 Message-ID: Subject: Re: Source upgrade to stable/11 amd64 broken To: Paul Mather Cc: Dimitry Andric , Eugene Grosbein , FreeBSD stable Content-Type: multipart/alternative; boundary="000000000000798bad05c94c85d0" X-Rspamd-Queue-Id: 4GlHsP10Rxz3nfh X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --000000000000798bad05c94c85d0 Content-Type: text/plain; charset="UTF-8" On Wed, Aug 11, 2021, 12:01 PM Paul Mather wrote: > On Aug 11, 2021, at 1:44 PM, Dimitry Andric wrote: > > > On 11 Aug 2021, at 05:13, Eugene Grosbein wrote: > >> > >> I'm in process of upgrading very old remote FreeBSD server running > 9.3-STABLE/amd64. > >> First, I used svn to fetch stable/10 sources and performed source > upgrade to 10.4-STABLE r369650 > >> and it went just fine. > >> > >> Now it has stock "FreeBSD clang version 3.4.1 > (tags/RELEASE_34/dot1-final 208032) 20140512". > >> I did checkout for stable/11 sources via svn but this time buildworld > fails early: > >> > >> -------------------------------------------------------------- > >>>>> stage 1.2: bootstrap tools > >> -------------------------------------------------------------- > >> cd /usr/local/src; MAKEOBJDIRPREFIX=/usr/obj/usr/local/src/tmp > INSTALL="sh /usr/local/src/tools/install.sh" > TOOLS_PREFIX=/usr/obj/usr/local/src/tmp > PATH=/usr/obj/usr/local/src/tmp/legacy/usr/sbin:/usr/obj/usr/local/src/tmp/legacy/usr/bin:/usr/obj/usr/local/src/tmp/legacy/bin:/sbin:/bin:/usr/sbin:/usr/bin > WORLDTMP=/usr/obj/usr/local/src/tmp MAKEFLAGS="-m > /usr/local/src/tools/build/mk -m /usr/local/src/share/mk" make -f > Makefile.inc1 DESTDIR= BOOTSTRAPPING=1004503 SSP_CFLAGS= MK_HTML=no > NO_LINT=yes MK_MAN=no -DNO_PIC MK_PROFILE=no -DNO_SHARED -DNO_CPU_CFLAGS > MK_WARNS=no MK_CTF=no MK_CLANG_EXTRAS=no MK_CLANG_FORMAT=no > MK_CLANG_FULL=no MK_LLDB=no MK_TESTS=no MK_INCLUDES=yes bootstrap-tools > >> ===> lib/clang/libllvmminimal (obj,all,install) > >> /usr/obj/usr/local/src/tmp/usr/local/src/lib/clang/libllvmminimal > created for /usr/local/src/lib/clang/libllvmminimal > >> > /usr/obj/usr/local/src/tmp/usr/local/src/lib/clang/libllvmminimal/Demangle > created for /usr/local/src/lib/clang/libllvmminimal > >> > /usr/obj/usr/local/src/tmp/usr/local/src/lib/clang/libllvmminimal/Support > created for /usr/local/src/lib/clang/libllvmminimal > >> > /usr/obj/usr/local/src/tmp/usr/local/src/lib/clang/libllvmminimal/TableGen > created for /usr/local/src/lib/clang/libllvmminimal > >> c++ -O2 -pipe -I/usr/local/src/lib/clang/include > -I/usr/local/src/contrib/llvm-project/llvm/include -D__STDC_CONSTANT_MACROS > -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_VCS_VERSION_INC > -DNDEBUG -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd11.4\" > -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd11.4\" > -DDEFAULT_SYSROOT=\"/usr/obj/usr/local/src/tmp\" > -DLLVM_TARGET_ENABLE_AARCH64 -DLLVM_TARGET_ENABLE_ARM > -DLLVM_TARGET_ENABLE_MIPS -DLLVM_TARGET_ENABLE_POWERPC > -DLLVM_TARGET_ENABLE_SPARC -DLLVM_TARGET_ENABLE_X86 > -DLLVM_NATIVE_ASMPARSER=LLVMInitializeX86AsmParser > -DLLVM_NATIVE_ASMPRINTER=LLVMInitializeX86AsmPrinter > -DLLVM_NATIVE_DISASSEMBLER=LLVMInitializeX86Disassembler > -DLLVM_NATIVE_TARGET=LLVMInitializeX86Target > -DLLVM_NATIVE_TARGETINFO=LLVMInitializeX86TargetInfo > -DLLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC -ffunction-sections > -fdata-sections -MD -MF.depend.Demangle_ItaniumDemangle.o > -MTDemangle/ItaniumDemangle.o -Qunused-arguments > -I/usr/obj/usr/local/src/tmp/legacy/usr/include -std=c++14 -fno-exceptions > -fno-rtti -stdlib=libc++ -Wno-c++11-extensions -c > /usr/local/src/contrib/llvm-project/llvm/lib/Demangle/ItaniumDemangle.cpp > -o Demangle/ItaniumDemangle.o > >> error: invalid value 'c++14' in '-std=c++14' > >> *** Error code 1 > >> > >> Stop. > >> make[3]: stopped in /usr/local/src/lib/clang/libllvmminimal > >> *** Error code 1 > >> > >> How do I resolve this? > > > > It's going to be a little tricky, as clang 3.4.1 is too old to support > > C++14 properly. I've tried using -std=c++1y since that was the old name > > for -std=c++14, but it asserts quite early in the build. > > > > The best way forward is to attempt to buildworld (and buildkernel) with > > a clean stable/11 checkout at r360783, which is just before clang 10.0.0 > > got imported. You will also need to add: > > > > CXXFLAGS.clang=-Wno-out-of-line-declaration > > > > to your src.conf, otherwise it will get an unexpected error during the > > build. > > > > After this has completed, install world and kernel and reboot, and then > > you should have clang 9.0.0 and the corresponding libc++. This should > > allow you to do a regular update to the latest stable/11. > > > > From there you should upgrade to stable/12, as 11 is going EOL in about > > a month... :) > > > As the OP is currently at 10-STABLE, would it also not work to upgrade > from there to 11.0-RELEASE (releng/11.0) and then from there to do the > recommended upgrade path to whatever is the desired endpoint? It might > require more work, but it would be a known supported upgrade path. Just > wondering... > In theory, going from the tip of stable/10 to releng/11.0 should work as lots of people did that back when 11.0 was new... from there you can follow dim's instructions to get to the tip of stable/11 and from there to 12.2 or stable/12. I have not tried that lately as I've retired even my old 10.x testing jails some tie ago. Warner Cheers, > > Paul. > > > --000000000000798bad05c94c85d0-- From nobody Wed Aug 11 18:56:05 2021 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0C56F137CF96 for ; Wed, 11 Aug 2021 18:56:08 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GlJtv6rgHz3sFx; Wed, 11 Aug 2021 18:56:07 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id B7342A7BE; Wed, 11 Aug 2021 18:56:07 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (unknown [IPv6:2001:470:7a58:0:dc68:1295:d8f9:eb67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 2BC5B50619; Wed, 11 Aug 2021 20:56:06 +0200 (CEST) Content-Type: text/plain; charset=us-ascii List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Source upgrade to stable/11 amd64 broken From: Dimitry Andric In-Reply-To: Date: Wed, 11 Aug 2021 20:56:05 +0200 Cc: Paul Mather , Eugene Grosbein , FreeBSD stable Content-Transfer-Encoding: 7bit Message-Id: References: <490579f8-21d8-3495-69b9-27a504969287@grosbein.net> <30E3E4A7-C846-4EFA-B0B1-65F306960CB8@FreeBSD.org> <94300E26-2E17-46E3-A21B-5F54564E65D7@gromit.dlib.vt.edu> To: Warner Losh X-Mailer: Apple Mail (2.3654.120.0.1.13) X-ThisMailContainsUnwantedMimeParts: N On 11 Aug 2021, at 20:09, Warner Losh wrote: > > On Wed, Aug 11, 2021, 12:01 PM Paul Mather wrote: >> On Aug 11, 2021, at 1:44 PM, Dimitry Andric wrote: >>> On 11 Aug 2021, at 05:13, Eugene Grosbein wrote: >>>> >>>> I'm in process of upgrading very old remote FreeBSD server running >> 9.3-STABLE/amd64. ... >>> The best way forward is to attempt to buildworld (and buildkernel) with >>> a clean stable/11 checkout at r360783, which is just before clang 10.0.0 >>> got imported. You will also need to add: >>> >>> CXXFLAGS.clang=-Wno-out-of-line-declaration >>> >>> to your src.conf, otherwise it will get an unexpected error during the >>> build. >>> >>> After this has completed, install world and kernel and reboot, and then >>> you should have clang 9.0.0 and the corresponding libc++. This should >>> allow you to do a regular update to the latest stable/11. >>> >>> From there you should upgrade to stable/12, as 11 is going EOL in about >>> a month... :) >> >> >> As the OP is currently at 10-STABLE, would it also not work to upgrade >> from there to 11.0-RELEASE (releng/11.0) and then from there to do the >> recommended upgrade path to whatever is the desired endpoint? It might >> require more work, but it would be a known supported upgrade path. Just >> wondering... >> > > In theory, going from the tip of stable/10 to releng/11.0 should work as > lots of people did that back when 11.0 was new... from there you can follow > dim's instructions to get to the tip of stable/11 and from there to 12.2 or > stable/12. I have not tried that lately as I've retired even my old 10.x > testing jails some tie ago. There are multiple ways to do this, as usual. I have verified that on a default installation of 10.4-RELEASE, I can follow the scenario that I wrote up, and it successfully upgrades to stable/11 r360783, with clang 9.0.0. That can certainly be used to go to the tip of stable/11, but I think it is also possible to upgrade right to stable/12 from there. -Dimitry From eugen@grosbein.net Thu Aug 12 01:38:37 2021 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7BF9211FD25E for ; Thu, 12 Aug 2021 01:39:03 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [IPv6:2a01:4f8:c2c:26d8::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GlTqq25Rjz4tXh; Thu, 12 Aug 2021 01:39:03 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id 17C1cvKY010602 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Aug 2021 01:38:58 GMT (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: dim@FreeBSD.org Received: from [10.58.0.10] (dadvw [10.58.0.10]) by eg.sd.rdtc.ru (8.16.1/8.16.1) with ESMTPS id 17C1cuhD091024 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 12 Aug 2021 08:38:56 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: Source upgrade to stable/11 amd64 broken To: Dimitry Andric , Warner Losh References: <490579f8-21d8-3495-69b9-27a504969287@grosbein.net> <30E3E4A7-C846-4EFA-B0B1-65F306960CB8@FreeBSD.org> <94300E26-2E17-46E3-A21B-5F54564E65D7@gromit.dlib.vt.edu> Cc: Paul Mather , FreeBSD stable From: Eugene Grosbein Message-ID: Date: Thu, 12 Aug 2021 08:38:37 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-102.3 required=5.0 tests=BAYES_00,SHORTCIRCUIT autolearn=disabled version=3.4.2 X-Spam-Report: * -100 SHORTCIRCUIT No description available. * [score: 0.0000] * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hz.grosbein.net X-Rspamd-Queue-Id: 4GlTqq25Rjz4tXh X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: N 12.08.2021 1:56, Dimitry Andric wrote: >> On Wed, Aug 11, 2021, 12:01 PM Paul Mather wrote: >>> On Aug 11, 2021, at 1:44 PM, Dimitry Andric wrote: >>>> On 11 Aug 2021, at 05:13, Eugene Grosbein wrote: >>>>> >>>>> I'm in process of upgrading very old remote FreeBSD server running >>> 9.3-STABLE/amd64. > ... >>>> The best way forward is to attempt to buildworld (and buildkernel) with >>>> a clean stable/11 checkout at r360783, which is just before clang 10.0.0 >>>> got imported. You will also need to add: >>>> >>>> CXXFLAGS.clang=-Wno-out-of-line-declaration >>>> >>>> to your src.conf, otherwise it will get an unexpected error during the >>>> build. >>>> >>>> After this has completed, install world and kernel and reboot, and then >>>> you should have clang 9.0.0 and the corresponding libc++. This should >>>> allow you to do a regular update to the latest stable/11. >>>> >>>> From there you should upgrade to stable/12, as 11 is going EOL in about >>>> a month... :) >>> >>> >>> As the OP is currently at 10-STABLE, would it also not work to upgrade >>> from there to 11.0-RELEASE (releng/11.0) and then from there to do the >>> recommended upgrade path to whatever is the desired endpoint? It might >>> require more work, but it would be a known supported upgrade path. Just >>> wondering... >>> >> >> In theory, going from the tip of stable/10 to releng/11.0 should work as >> lots of people did that back when 11.0 was new... from there you can follow >> dim's instructions to get to the tip of stable/11 and from there to 12.2 or >> stable/12. I have not tried that lately as I've retired even my old 10.x >> testing jails some tie ago. > > There are multiple ways to do this, as usual. I have verified that on a > default installation of 10.4-RELEASE, I can follow the scenario that I > wrote up, and it successfully upgrades to stable/11 r360783, with clang > 9.0.0. > > That can certainly be used to go to the tip of stable/11, but I think it > is also possible to upgrade right to stable/12 from there. Due do limited maintenance window time and obvious problems with freebsd-stable@ list that day, I went ahead and fetched releng/11.2 sources and performed source upgrade from 10.4-STABLE to 11.2-RELEASE-p15 and it went just fine, without any additional modifications. Then I upgraded to latest stable/11 without a problem. Maybe we need to add something to UPDATING for stable/11 branch? Also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246274 From nobody Thu Aug 12 14:12:18 2021 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C2B1D137ADE9 for ; Thu, 12 Aug 2021 14:12:27 +0000 (UTC) (envelope-from ali.abdallah@suse.com) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4GlpY63xBlz4q62; Thu, 12 Aug 2021 14:12:26 +0000 (UTC) (envelope-from ali.abdallah@suse.com) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 4A89D1FF4B; Thu, 12 Aug 2021 14:12:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1628777539; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NnipBlfpEpITeNzwO1fTIguxCPsnBe3foTSKO3Pgcc0=; b=OsCxXsYGZHsO1Slu50rPqGaKOuD9DJlJzDSMy0BCOxvqrNNVwC2TRnRjAjOMiEGTZ/iq+j UDnJhF/Ld7/TCjKqbdY//X0Y5I6q9+9Q79nSA96Ux2QFTCXbOQs6R8R63MXHZAVHqbinoW SL0gqmUceprjCJokyEPBPcP8QrD8vpQ= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1DE1B13C49; Thu, 12 Aug 2021 14:12:19 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id HSheBUMsFWEKBgAAMHmgww (envelope-from ); Thu, 12 Aug 2021 14:12:19 +0000 Date: Thu, 12 Aug 2021 16:12:18 +0200 To: Kurt Jaeger Cc: freebsd-stable@freebsd.org Subject: Re: Picasso AMD GPU freeze with the new g20210330 gpu firmwares Message-ID: <20210812141218.nqvncmstzscgof5w@Fryzen495> References: <20210806155252.24riqjok4tw7kcx7@Fryzen495> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4GlpY63xBlz4q62 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=suse.com header.s=susede1 header.b=OsCxXsYG; dmarc=pass (policy=quarantine) header.from=suse.com; spf=pass (mx1.freebsd.org: domain of ali.abdallah@suse.com designates 195.135.220.29 as permitted sender) smtp.mailfrom=ali.abdallah@suse.com X-Spamd-Result: default: False [-5.20 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.com:s=susede1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+a:smtp-out2.suse.de]; MIME_GOOD(-0.10)[text/plain]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DWL_DNSWL_MED(-2.00)[suse.com:dkim]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[suse.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[suse.com,quarantine]; RCVD_IN_DNSWL_MED(-0.20)[195.135.220.29:from]; NEURAL_HAM_SHORT(-1.00)[-0.999]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:29298, ipnet:195.135.220.0/23, country:DE]; RCVD_TLS_ALL(0.00)[] Reply-To: ali.abdallah@suse.com From: Ali Abdallah via freebsd-stable X-Original-From: Ali Abdallah X-ThisMailContainsUnwantedMimeParts: N On 06.08.2021 20:20, Kurt Jaeger wrote: > Yes, please open a bug report. The post helps, but adding a PR > is helpful to track the issue. Sorry for the delay, I just opened a new bug report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257786 Regards, Ali