[okl4-developer] error building okl4 for kzm_arm11
Ashish Bijlani
ashish.bijlani at gmail.com
Thu Jun 5 00:26:50 EST 2008
ah!! i was using the wrong toolchain
i686-gcc-3.3.4-glibc-2.3.3-2006-06-02. however, i used an arm
gcc-4.2.3 based toolchain and i got lot of warnings as errors. it
seems one needs to do little bit of hacking to fix these warnings -
pasted below
Where can I download pre-built gcc-4.2.3 based toolchain and the
corresponding okl4 src tree from? Alson , is it safe to disable
-Werror flag to compile okl4 with gcc-4.2.3 based toolchain? Please
lemme know.
thanks,
ashish
#./tools/build.py verbose_str=True machine=nokia_n8xx project=l4test
toolprefix=arm-none-linux-gnueabi-
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 ...
arm-none-linux-gnueabi-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_NOKIA_N8XX -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__=n8xx
-DCONFIG_ARCH_ARM=1 -DCONFIG_PLAT_N8XX=1 -DCONFIG_CPU_ARM_ARM1136JS=1
"-D__USER__=\"Open Kernel Labs\"" -DKERNEL_VERSION=0
-DKERNEL_SUBVERSION=1 -DKERNEL_SUBSUBVERSION=0 -DKERNEL_GEN_DAY=4
-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 -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: warnings being treated as errors
In file included from build/pistachio/include/kernel/arch/cache.h:67,
from build/pistachio/include/kernel/cache.h:139,
from build/pistachio/include/kernel/arch/ver/pgtable.h:68,
from build/pistachio/include/kernel/arch/ver/pgent.h:68,
from build/pistachio/include/kernel/arch/pgent.h:70,
from build/pistachio/include/kernel/space.h:98,
from pistachio/src/asid.cc:62:
build/pistachio/include/kernel/cpu/cache.h: In static member function
'static void arm_cache::cache_enable()':
build/pistachio/include/kernel/cpu/cache.h:528: warning: deprecated
conversion from string constant to 'char*'
build/pistachio/include/kernel/cpu/cache.h: In static member function
'static void arm_cache::cache_invalidate_d_line(word_t)':
build/pistachio/include/kernel/cpu/cache.h:533: warning: deprecated
conversion from string constant to 'char*'
build/pistachio/include/kernel/cpu/cache.h: In static member function
'static void arm_cache::cache_clean(word_t)':
build/pistachio/include/kernel/cpu/cache.h:560: warning: deprecated
conversion from string constant to 'char*'
build/pistachio/include/kernel/cpu/cache.h: In static member function
'static void arm_cache::lock_icache_range(void*, word_t, word_t)':
build/pistachio/include/kernel/cpu/cache.h:598: warning: deprecated
conversion from string constant to 'char*'
In file included from build/pistachio/include/kernel/arch/ver/pgent.h:68,
from build/pistachio/include/kernel/arch/pgent.h:70,
from build/pistachio/include/kernel/space.h:98,
from pistachio/src/asid.cc:62:
build/pistachio/include/kernel/arch/ver/pgtable.h: In function
'memattrib_e to_memattrib(l4attrib_e)':
build/pistachio/include/kernel/arch/ver/pgtable.h:170: warning:
deprecated conversion from string constant to 'char*'
In file included from build/pistachio/include/kernel/tcb.h:102,
from pistachio/src/asid.cc:63:
build/pistachio/include/kernel/mp.h: In member function 'void
generic_mp_t::interrupt_context(cpu_context_t)':
build/pistachio/include/kernel/mp.h:104: warning: deprecated
conversion from string constant to 'char*'
scons: *** [build/pistachio/l4kernel/object/src/asid.o] Error 1
scons: building terminated because of errors.
On Tue, Jun 3, 2008 at 11:09 PM, Geoffrey Lee <glee at ok-labs.com> wrote:
> 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