From owner-freebsd-stable@freebsd.org Sun May 13 18:49:37 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 02E4EFCBE6C for ; Sun, 13 May 2018 18:49:37 +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 5494F688B5 for ; Sun, 13 May 2018 18:49:36 +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 w4DInPK2056275 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 13 May 2018 21:49:29 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua w4DInPK2056275 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id w4DInN3T056274; Sun, 13 May 2018 21:49:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 13 May 2018 21:49:23 +0300 From: Konstantin Belousov To: Mike Karels Cc: freebsd-stable@freebsd.org Subject: Re: 11.1-RELEASE-p10 cannot compile freebsd stable/11 kernel? Message-ID: <20180513184923.GZ6887@kib.kiev.ua> References: <201805131458.w4DEwTP9001036@mail.karels.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201805131458.w4DEwTP9001036@mail.karels.net> User-Agent: Mutt/1.9.5 (2018-04-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2018 18:49:37 -0000 On Sun, May 13, 2018 at 09:58:29AM -0500, Mike Karels wrote: > I attempted a kernel compile from stable/11, as a freebsd-update didn't > seem to update /usr/src/sys, and I'm running a custom kernel. I get > compile errors like this: > > ../../../amd64/amd64/support.S:829:2: error: unknown directive > .altmacro > ^ > :1:13: error: invalid register name > handle_ibrs_%(ll): > ^~ > :3:2: note: while in macro instantiation > ibrs_seq_label %(ll) > ^ > :2:2: note: while in macro instantiation > .rept 32 > ^ > ../../../amd64/amd64/support.S:858:2: note: while in macro instantiation > ibrs_seq 32 > ^ > :1:13: error: invalid register name > handle_ibrs_%(ll): > ^~ > :8:2: note: while in macro instantiation > ibrs_seq_label %(ll) > ^ > :2:2: note: while in macro instantiation > .rept 32 > ^ > ../../../amd64/amd64/support.S:858:2: note: while in macro instantiation > ibrs_seq 32 > ^ > :1:13: error: invalid register name > handle_ibrs_%(ll): > (and this continues) > > I had just run freebsd-update: > > pughole# freebsd-version > 11.1-RELEASE-p10 > > > pughole# cc --version > FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0) > Target: x86_64-unknown-freebsd11.1 > Thread model: posix > InstalledDir: /usr/bin > > I know that clang has been updated a lot; has the kernel source gotten > ahead of clang on stable/11? On stable/11 they are in sync. The official method of upgrade is make buildworld buildkernel from older version takes care of the compiler version transparently. If you use config/make, ensure that the installed world is at the compatible level for the kernel sources. Another option might be stopping using integrated clang assembler, there is some option in out build system for that, but I do not know it enough to remember.