svn commit: r230622 - head

Rafal Jaworowski raj at semihalf.com
Mon Jan 30 19:45:41 UTC 2012


On 2012-01-27, at 19:29, Dimitry Andric wrote:

> Author: dim
> Date: Fri Jan 27 18:29:03 2012
> New Revision: 230622
> URL: http://svn.freebsd.org/changeset/base/230622
> 
> Log:
>  When the buildkernel stage 2.3 (build tools) runs, the PATH is still set
>  to the default from the top-level Makefile.  Therefore, invocations of
>  lex and yacc (used during building of aicasm) will use the executables
>  in /usr/bin, not those optionally built during the previous buildworld
>  or kernel-toolchain.  This makes kernel builds from older FreeBSD
>  releases more difficult than necessary.
> 
>  Fix this by setting PATH to ${BPATH}:${PATH} in stage 2.3, so the
>  bootstrap tools directories are searched before the regular ones.

Is this supposed to work for cross building as well? I'm still encountering problems on a 7.3 host build:

1. Cross world builds fine
make -j 8 buildworld TARGET_ARCH=arm

2. Kernel fails w/ the aicasm
make buildkernel TARGET_ARCH=arm KERNCONF=SHEEVAPLUG
[...]
cc -O2 -pipe -nostdinc -I/usr/include -I. -I/home/raj/work/svn/base/head/sys/dev/aic7xxx/aicasm -std=gnu99  -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -c aicasm_scan.c
cc1: warnings being treated as errors
/home/raj/work/svn/base/head/sys/dev/aic7xxx/aicasm/aicasm_scan.l:837: warning: function declaration isn't a prototype
*** Error code 1

Stop in /home/raj/work/obj/arm.arm/home/raj/work/svn/base/head/sys/SHEEVAPLUG.
*** Error code 1

Stop in /home/raj/work/svn/base/head.
*** Error code 1

Stop in /home/raj/work/svn/base/head.

Do you know any workarounds to this?

Rafal



More information about the svn-src-all mailing list