ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ltib] Calling Native toolchain as well as target toolchain in makefile.


From: Ken Gilmer
Subject: [Ltib] Calling Native toolchain as well as target toolchain in makefile.
Date: Mon, 22 Jan 2007 11:29:19 -0500


Hello~

  I'm pretty new to LTIB, and would really appreciate any advice. I am trying to build the phoneME Advanced JVM for the Freescale mx31 board.  I have found some various issues with the current source tree, with fixes here http://forums.java.net/jive/thread.jspa?messageID=196515&#196515 .  The problem I think I am having is that the phoneME build scripts require compiling some native (host) programs as well as the target binaries.  In the phoneME makefile (which is already written with the assumption of cross compilation), I define a path to the native toolchain, as well as to the target toolchain.  When I run ./ltib -m scbuild -p phoneME_advance (my package), it goes well for quite a while and then breaks with this:

cc  ../../build/linux-arm-bug/./obj/zip_util.o
host c++ ../../build/linux-arm-bug/./jcs/compress.o
arm-none-linux-gnueabi-as: unrecognized option `-Qy'
make: *** [../../build/linux-arm-bug/./jcs/compress.o] Error 1
error: Bad exit status from

My interpretation of this is that the target toolchain is being called to generate the native binaries.  How can I override this behavior in LTIB?  Is there something I'm missing?

Here is the relevant part of my phoneme_advanced.spec file:

%Description
%{summary}

%Prep
%setup

%Build
cd build/linux-arm-bug
make bin


Here are the environment variables set when the build begins:

CVM_HOST   = i686-redhat-linux
CVM_TARGET = linux-arm-bug
SHELL      = sh -e
HOST_CC    = /usr/bin/gcc
HOST_CCC   = /usr/bin/g++
ZIP        = /usr/bin/zip
FLEX       = /opt/freescale/ltib/usr/bin/flex
BISON      = /usr/bin/bison
CVM_JAVA   = /usr/java/jdk1.5.0_09/bin/java
CVM_JAVAC  = /usr/java/jdk1.5.0_09/bin/javac
CVM_JAVAH  = /usr/java/jdk1.5.0_09/bin/javah
CVM_JAR    = /usr/java/jdk1.5.0_09/bin/jar
TARGET_CC     = /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc
TARGET_CCC    = /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++
TARGET_AS     = /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc
TARGET_LD     = /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc
TARGET_AR     = /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ar
TARGET_RANLIB = /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ranlib
LINKFLAGS  = -g -Wl,-export-dynamic
LINKLIBS   = -lpthread -ldl
ASM_FLAGS  = -c -fno-common  -traditional
CCCFLAGS   = -fno-rtti
CCFLAGS_SPEED  = -c -fno-common -Wall -fno-strict-aliasing  -O4
CCFLAGS_SPACE  = -c -fno-common -Wall -fno-strict-aliasing  -O2
CCFLAGS_LOOP   = -c -fno-common -Wall -fno-strict-aliasing  -O4
CCFLAGS_FDLIB  = -c -fno-common -Wall -fno-strict-aliasing  -O4
JAVAC_OPTIONS  = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -target 1.4
CVM_DEFINES    =  -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLOADING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_JIT_REGISTER_LOCALS -DCVM_TIMESTAMPING -DJ2ME_CLASSLIB=cdc -DTARGET_CPU_FAMILY=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -D_GNU_SOURCE -DCVM_IAI_OPT_ALL -DAAPCS

Any help would be greatly appreciated and I would be happy to submit my package back to the LTIB community once it's working.

TIA
ken

reply via email to

[Prev in Thread] Current Thread [Next in Thread]