[okl4-developer] arm1136 flags
Ashish Bijlani
ashish.bijlani at gmail.com
Sat Jul 5 00:21:59 EST 2008
Hi,
Why do you have "-march=armv5te" and "-mcpu=arm1136" for arm1136 cpus
in okl4 while linux uses "-march=armv6 -mtune=arm1136j-s -msoft-float
-Uarm" for arm1136?? Are the flags different for diff versions of
gcc??? which version of gcc you recommend me to use?
I'm currently using gcc-3.3.4.
"
#../opt/nicta/tools/gcc-3.4.4-glibc-2.3.5/arm-linux/bin/arm-linux-gcc --version
arm-linux-gcc (GCC) 3.4.4
"
I tried using gcc-4.2.3 but it reports lot of warnings as errors. Any
suggestions???
The build log is pasted below.
"
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_N810
-DENDIAN_LITTLE -DWORDSIZE_32 -D__ARMv__=6 -D__ARMv5TE__ -D-Werror=0
-DCONFIG_PLATFORM_OMAP2420=1 -DCONFIG_DEEP_DEBUGGING=1 -D__ARMv__=6
-D__ARMv5TE__ -D-Werror=0 -DCONFIG_PLATFORM_OMAP2420=1
-DCONFIG_DEEP_DEBUGGING=1 -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__=omap24xx -DCONFIG_ARCH_ARM=1 -DCONFIG_PLAT_OMAP24XX=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=7 -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_SUBPLAT_OMAP2420
-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
<command-line>: error: macro names must be identifiers
<command-line>: error: macro names must be identifiers
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/arch/pgent.h:70,
from build/pistachio/include/kernel/space.h:98,
from pistachio/src/asid.cc:62:
build/pistachio/include/kernel/arch/ver/pgent.h: In member function
'void pgent_t::dump_misc(generic_space_t*, pgent_t::pgsize_e)':
build/pistachio/include/kernel/arch/ver/pgent.h:645: warning:
deprecated conversion from string constant to 'char*'
build/pistachio/include/kernel/arch/ver/pgent.h:646: warning:
deprecated conversion from string constant to 'char*'
build/pistachio/include/kernel/arch/ver/pgent.h:647: warning:
deprecated conversion from string constant to 'char*'
build/pistachio/include/kernel/arch/ver/pgent.h:648: warning:
deprecated conversion from string constant to 'char*'
build/pistachio/include/kernel/arch/ver/pgent.h:649: warning:
deprecated conversion from string constant to 'char*'
build/pistachio/include/kernel/arch/ver/pgent.h:650: warning:
deprecated conversion from string constant to 'char*'
build/pistachio/include/kernel/arch/ver/pgent.h:651: warning:
deprecated conversion from string constant to 'char*'
build/pistachio/include/kernel/arch/ver/pgent.h:652: warning:
deprecated conversion from string constant to 'char*'
build/pistachio/include/kernel/arch/ver/pgent.h:653: warning:
deprecated conversion from string constant to 'char*'
build/pistachio/include/kernel/arch/ver/pgent.h:656: 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.
"
Thanks,
Ashish
More information about the Developer
mailing list