From owner-freebsd-current@FreeBSD.ORG Fri Sep 6 15:12:43 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1EBD3D5B for ; Fri, 6 Sep 2013 15:12:43 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: from mx.nsu.ru (mx.nsu.ru [84.237.50.39]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BE5AC2601 for ; Fri, 6 Sep 2013 15:12:42 +0000 (UTC) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.69) (envelope-from ) id 1VHxi8-0000Fw-D2 for current@freebsd.org; Fri, 06 Sep 2013 22:12:36 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id r86FCwsS031085 for ; Fri, 6 Sep 2013 22:12:58 +0700 (NOVT) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id r86FCruj031067 for current@freebsd.org; Fri, 6 Sep 2013 22:12:53 +0700 (NOVT) (envelope-from danfe) Date: Fri, 6 Sep 2013 22:12:52 +0700 From: Alexey Dokuchaev To: current@freebsd.org Subject: Cross-buildkernel (i386->amd64) is broken? Message-ID: <20130906151252.GA28654@regency.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Mailman-Approved-At: Fri, 06 Sep 2013 16:05:06 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2013 15:12:43 -0000 Hi there, I've been trying to cross-build an amd64 kernel on i386 host on recent -CURRENT for a while, and it fails like this: $ cd /usr/src && make buildkernel TARGET=amd64 TARGET_ARCH=amd64 [...] In file included from /usr/src/sys/amd64/amd64/genassym.c:46: In file included from /usr/src/sys/sys/buf.h:260: In file included from /usr/src/sys/sys/proc.h:62: /usr/src/sys/sys/pcpu.h:188:1: error: static_assert failed "compile-time assertion failed" CTASSERT((PAGE_SIZE / sizeof(struct pcpu)) * sizeof(struct pcpu) == PAGE_SIZE); Full log is available here: http://193.124.210.26/xbuild-amd64.log I remember it used to work before (at least at Jun 28th, when I've build my last kernel this way). Is is a well known issue? How do I remedy it? Thanks. ./danfe