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]

Fwd: to make crosstool default for vfp support<Fwd>: Re: Fwd: Patch for arm-nonfpu


Can someone give Yan a hand?
Thanks,
Dan

---------- Forwarded message ----------
From: yan xiaotian <xiaotian.yan@gmail.com>
Date: Dec 10, 2006 4:44 AM
Subject: to make crosstool default for vfp support<Fwd>: Re: Fwd:
Patch for arm-nonfpu


Hi Dan, Sorry for sending u direct mail, but I just could NOT post on crossgcc@sourceware.org. T_T

    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"



Thanx for crosstool~:^)


Best Regards





Yours Alex X.T Yan


by_yanxt@gpsign.com

12.10


-- Wine for Windows ISVs: http://kegel.com/wine/isv

--
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]