This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to make crosstool support for VFP software fp format?


Dear all,

    I have a vfp compatible problem with crosstool now , have u any advice
or instructions about how to make crosstool to work with vfp softfloat
support?
I bumped into some trouble when compiling and linking my application and
some third party library with newly-built crosstool-0.42 for my arm9 target
platform. my Makefile is as follows (main part):

CC = arm-9tdmi-linux-gnu-gcc
MSF = -msoft-float
MVFP = -mfpe=vfp
SOURCES = $(wildcard *.c)
INCS = $(wildcard *.h)
OBJS = $(patsubst %.c, %.o, $(SOURCES))
LINK = -L. -lGPSEngine -lm -lpthread #$(MSF)
CFLAGS = $(MSF) -c
ASFLAGS= -mno-fpu
TAR = sirfapi
$(TAR):$(OBJS)
    @echo linking object $(TAR) ......
    $(CC) -o $@ $^ $(LINK)
sirfapi.o:sirfapi.c agps.h types.h Sf_studio.h
    @echo compiling binary $@ ......
    $(CC) $(CFLAGS) $< -o $@
opengprs.o:opengprs.c term_interface.h
    @echo compiling binary $@ ......
    $(CC) $(CFLAGS) $< -o $@

error message:

compiling binary opengprs.o ......
arm-9tdmi-linux-gnu-gcc -msoft-float -c opengprs.c -o opengprs.o
compiling binary sirfapi.o ......
arm-9tdmi-linux-gnu-gcc -msoft-float -c sirfapi.c -o sirfapi.o
linking object sirfapi ......
arm-9tdmi-linux-gnu-gcc -o sirfapi opengprs.o sirfapi.o -L. -lGPSEngine -lm
-lpthread
/opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-9tdmi-linux-gnu/lib/gcc/arm-9tdmi-linux-gnu/3.4.1/../../../../arm-9tdmi-linux-gnu/bin/ld:
ERROR: ./libGPSEngine.a(AGPS.o) uses *VFP* instructions, whereas *sirfapi*(our
program) does not

....................................

Does this mean my crosstool doesn't have the VFP support . I wonder if I
need some vfp or arm sfp patches or sth like that, could u plz point out
what necessary patches I really have to add for this mission and the
approach to apply the them.

Or, perhaps, I can achieve the goal by configuring with some relevant
parameters for

GCC or GLIBC ?

my current paras:

GCC_EXTRA_CONFIG=

"--with-float=soft --with-cpu=arm9tdmi --enable-cxx-flags=-mcpu=arm9tdmi"

GLIBC_EXTRA_CONFIG="--without-fp"

to Dan:  At last I fix my mailer.  thanks for forwarding ;-)
and thanks for crosstool~:^)

Best Regards


Yours Alex X.T Yan


xiaotian.yan@gmail.com

12.11

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]