Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jun 2014 23:57:24 +0200
From:      Oliver Pinter <oliver.pntr@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        gavin@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: building i386 kernel on amd64 host
Message-ID:  <CAPjTQNEpGixRAtr1M6g=nq%2BJa6keaJncDR88UuJ3v3ocb1YHEg@mail.gmail.com>
In-Reply-To: <201406131059.01450.jhb@freebsd.org>
References:  <CAPjTQNF6rnwMBzcdMbeLFn_%2B6Ej-uamDuqeYHxp9KbxC44h1Gw@mail.gmail.com> <201406131059.01450.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6/13/14, John Baldwin <jhb@freebsd.org> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPjTQNEpGixRAtr1M6g=nq%2BJa6keaJncDR88UuJ3v3ocb1YHEg>