[okl4-developer] error building okl4 for kzm_arm11
Geoffrey Lee
glee at ok-labs.com
Wed Jun 4 14:09:51 EST 2008
On Tue, Jun 03, 2008 at 04:30:19PM -0500, Ashish Bijlani wrote:
> hi,
>
Hi Ashish,
You will need to obtain the ARM compilers to compile for kzm. The
kzm board is a ARMv6-based chip.
-gl
> I got the following errors while building okl4 for kzm_arm11. I'm
> using i686-gcc-3.3.4-glibc-2.3.3-2006-06-02 toolchain and okl4-4.2. It
> seems the toolchain doesn't support armv5te. Where can I download
> pre-built gcc-4.2.3 based toolchain and the corresponding okl4 src
> tree from? I tried building okl4-4.2 with manually compiled gcc-4.2.3
> based toolchain - the build fails with lots of warnings as errors. Is
> it safe to disable -Werror flag to compile okl4 with gcc-4.2.3 based
> toolchain? Please lemme know.
>
> PATH=/opt/okl/Linux-i386/stow/i686-unknown-linux-gnu/bin:$PATH
> ./tools/build.py verbose_str=True machine=kzm_arm11 project=l4test
> toolprefix=i686-unknown-linux-gnu-
> scons: Reading SConscript files ...
> architecture arm is not yet supported by libcompat.
> architecture arm is not yet supported by libcompat.
> scons: done reading SConscript files.
> scons: Building targets ...
> Touch("build/l4_rootserver/bin/rom_memory_pool")
> Touch("build/l4_rootserver/bin/physical_memory_pool")
> cp platform/imx31/pistachio/include/l2cc.h
> build/pistachio/include/kernel/plat/l2cc.h
> cp platform/imx31/pistachio/include/platform.h
> build/pistachio/include/kernel/plat/platform.h
> cp platform/imx31/pistachio/include/io.h
> build/pistachio/include/kernel/plat/io.h
> i686-unknown-linux-gnu-g++ -Wall -Wredundant-decls -Wundef
> -Wpointer-arith -Wno-uninitialized -Werror -march=armv5te
> -Wa,-mcpu=arm1136 -O2 -nostdlib -nostdinc -fno-builtin -g
> -fno-exceptions -fomit-frame-pointer -finline-limit=99999999 --param
> large-function-growth=1000 -DARCH_ARM -DARCH_VER=6 -DMACHINE_KZM_ARM11
> -DENDIAN_LITTLE -DWORDSIZE_32 -D__ARMv__=6 -D__ARMv5TE__ -D__ARMv__=6
> -D__ARMv5TE__ -DKENGE_PISTACHIO -DCONFIG_MAX_THREAD_BITS=10
> -DCONFIG_SCHEDULE_INHERITANCE=1 -DCONFIG_REMOTE_MEMORY_COPY=1
> -D__L4_ARCH__=arm -DL4_ARCH_ARM -D__API__=v4 -D__ARCH__=arm
> -D__CPU__=arm1136js -D__PLATFORM__=imx31 -DCONFIG_ARCH_ARM=1
> -DCONFIG_PLAT_IMX31=1 -DCONFIG_CPU_ARM_ARM1136JS=1 "-D__USER__=\"Open
> Kernel Labs\"" -DKERNEL_VERSION=0 -DKERNEL_SUBVERSION=1
> -DKERNEL_SUBSUBVERSION=0 -DKERNEL_GEN_DAY=3 -DKERNEL_GEN_MONTH=6
> -DKERNEL_GEN_YEAR=8 -DCONFIG_LITTLEENDIAN=1 -DCONFIG_IS_32BIT=1
> -DCONFIG_SMP_MAX_CPUS=1 -DCONFIG_MAX_SPACES=256U
> -DCONFIG_ENABLE_FASTPATHS=1 -DCONFIG_EXCEPTION_FASTPATH=1
> -DCONFIG_IPC_FASTPATH=1 -DCONFIG_DEBUG=1 -DCONFIG_KDB=1
> -DCONFIG_KDB_COLOR_VT=1 -DCONFIG_ASSERT_LEVEL=3 -DCONFIG_KMEM_TRACE=1
> -DCONFIG_TRACEPOINTS=1 -DCONFIG_TRACEBUFFER=1
> -DCONFIG_TRACEBUF_PAGES=64 -DCONFIG_KDB_CONS=1 -DCONFIG_KDB_CLI=1
> -DCONFIG_THREAD_NAMES=1 -DCONFIG_MUTEX_NAMES=1 -DCONFIG_KDB_BREAKIN=1
> -DCONFIG_ROOT_CAP_BITS=10 -DCONFIG_ARM_VER=6
> -DCONFIG_ALIGNED_ACCESSES=1 -DCONFIG_MAX_NUM_ASIDS=256
> -DCONFIG_ASIDS_ROUNDR=1 -DCONFIG_BOOTMEM_PAGES=1024
> -DCONFIG_DEFAULT_CACHE_ATTR_WB=1 -DCONFIG_HAS_L2_CACHE=1
> -DCONFIG_USE_L2_CACHE=1 -DCONFIG_HAS_L2_EVTMON=1
> -DCONFIG_ARM_HWWALKER_IN_L2=1 -Ibuild/pistachio/include
> -Ibuild/pistachio/object/pistachio/include -Ipistachio/include
> -Iarch/arm/pistachio/v6/include
> -Ibuild/pistachio/object/pistachio/include pistachio/src/asid.cc -c -o
> build/pistachio/l4kernel/object/src/asid.o
> cc1plus: error: invalid parameter `large-function-growth'
> cc1plus: error: bad value (armv5te) for -march= switch
> cc1plus: error: bad value (armv5te) for -mcpu= switch
> scons: *** [build/pistachio/l4kernel/object/src/asid.o] Error 1
> scons: building terminated because of errors.
>
> Thanks,
> Ashish
>
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
>
--
More information about the Developer
mailing list