Hi all,
I followed instructions to cross compile a kernel for arm (AVILA BOARD) (http://people.freebsd.org/~cognet/freebsd_arm.txt).
Everything is going well until I try to build the kernel. When I type "make depend all" to build to kernel, I get this error:
It seems like it is not finding cc1.
I've read that cc1 should be found in /usr/libexec/cc1 and I have it -- but I guess that I need the "cross compiling" version of cc1.
But if I look in the cross compile directory (/usr/cross/usr/) I see that libexec is not a directory but a file (!?!).
Do you know what could be the problem here?
I'm using FreeBSD 8.0-CURRENT-200905 on i386, gcc version is 4.2.1 20070719
Thank you very much,
Francesco
I followed instructions to cross compile a kernel for arm (AVILA BOARD) (http://people.freebsd.org/~cognet/freebsd_arm.txt).
Everything is going well until I try to build the kernel. When I type "make depend all" to build to kernel, I get this error:
Code:
/usr/cross/usr/bin/gcc -mbig-endian -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I../../../legacy -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../dev/ath -I../../../dev/ath/ath_hal -I../../../contrib/ngatm -I../../../dev/twa -I../../../gnu/fs/xfs/FreeBSD -I../../../gnu/fs/xfs/FreeBSD/support -I../../../gnu/fs/xfs -I../../../contrib/opensolaris/compat -I../../../dev/cxgb -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mcpu=xscale -ffreestanding ../../../arm/arm/genassym.c
gcc: error trying to exec 'cc1': execvp: No such file or directory
*** Error code 1
Stop in /usr/src/sys/arm/compile/AVILA.
It seems like it is not finding cc1.
I've read that cc1 should be found in /usr/libexec/cc1 and I have it -- but I guess that I need the "cross compiling" version of cc1.
But if I look in the cross compile directory (/usr/cross/usr/) I see that libexec is not a directory but a file (!?!).
Do you know what could be the problem here?
I'm using FreeBSD 8.0-CURRENT-200905 on i386, gcc version is 4.2.1 20070719
Thank you very much,
Francesco