From owner-freebsd-current@FreeBSD.ORG Sat Jun 14 21:57:26 2014 Return-Path: Delivered-To: freebsd-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 ESMTPS id 3FFAA134; Sat, 14 Jun 2014 21:57:26 +0000 (UTC) Received: from mail-ob0-x230.google.com (mail-ob0-x230.google.com [IPv6:2607:f8b0:4003:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E7AF422E5; Sat, 14 Jun 2014 21:57:25 +0000 (UTC) Received: by mail-ob0-f176.google.com with SMTP id wm4so3401172obc.7 for ; Sat, 14 Jun 2014 14:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=BHCpiOpgcjoJcM8spBJl53CYM/8QBSNWTKYGErpUv9M=; b=ReC87N9/aY6xot7bIY1dE6vVD3eeQ6Pc+nGvQpSH44h7t6nHV/busuDVbOplvlA2ZK gGJtw4HfGBc8ZyU0JHPmcKEF7XwB6NVJdNvNMASUj4N57HODsAHaPKwYcQ73DIkvmKqP Q1QBTnaDDcNZEhFFY/+tHJjL32IXg9oQshRQegCAwRn7Y06AhcA5XYyJT0HRNgYrfwK0 2axMoeNDriBbhpio6TcsCT8seUspHBhzn+ib8BPIRWo5spDsElarFyowM68J7urPMFev 3eYZin6MfB+C/kbWQuzYapHmzul+isPWawp3kzdaG4x3iYwyTF5vNlAHIVk0KdKy2Pf1 NOUQ== MIME-Version: 1.0 X-Received: by 10.60.129.131 with SMTP id nw3mr11195433oeb.56.1402783045110; Sat, 14 Jun 2014 14:57:25 -0700 (PDT) Received: by 10.182.216.197 with HTTP; Sat, 14 Jun 2014 14:57:24 -0700 (PDT) In-Reply-To: <201406131059.01450.jhb@freebsd.org> References: <201406131059.01450.jhb@freebsd.org> Date: Sat, 14 Jun 2014 23:57:24 +0200 Message-ID: Subject: Re: building i386 kernel on amd64 host From: Oliver Pinter To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 Cc: gavin@freebsd.org, freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 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: Sat, 14 Jun 2014 21:57:26 -0000 On 6/13/14, John Baldwin wrote: > On Friday, June 13, 2014 6:21:28 am Oliver Pinter wrote: >> Hi All! >> >> When I try to build i386 kernel on amd64 host running compile error >> due wrong cpufunc.h picked up by build system. >> >> I used the attached script to build the kernel, and I attached a build >> log. >> >> Any suggestion how can I fix this? > > To build an i386 kernel on an amd64 host do this: > > cd /usr/src (or some other tree) > make TARGET=i386 kernel-toolchain > make TARGET=i386 buildkernel > make TARGET=i386 installkernel DESTDIR=/some/place > > And your i386 kernel will end up in /some/place/boot/kernel/kernel. (You > can > set things like KERNCONF to pick an alternate kernel config just as with > normal 'make buildkernel'.) > > (Your attachment was size zero for me btw) > > -- > John Baldwin > I used this script to build the kernel: http://svnweb.freebsd.org/socsvn/soc2014/op/tools/build_kernel_32bit.csh?view=log And the error log are there: https://gist.github.com/opntr/cf8aa0e404c0c5ed6f90 . I get this error, when I first build kernel for amd64 system, and after that i386 kernel, and only the kernel. Now seems like I can build the whole system with buildworld buildkernel on vanilla master, I removed the objdir and do a clean buildworld. Now I test the modified kernel build, after the buildworld. It is broken too. When I do only make kernel-toolchain buildkernel, than this are broken for vanilla freebsd source and for my version to. summary: OK: make buildworld buildkernel BROKEN: make kernel-toolchain buildkernel Seems like someone in build environment bootstrapping are broken.