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]

Building ARM Cortex A8 hard float toolchain


Hello All,

I am new to this list.

I am trying to build toolchain to support hard float based on sample:
arm-cortex_a8-linux-gnueabi/crosstool.config

Here is my recipe:

 binutils-2.20
 cloog-ppl-0.15.9
 gdb-6.8
 glibc-2.9
 glibc-ports-2.9
 gmp-4.3.2
 linux-2.6.32.25
 mpfr-2.4.2
 ncurses-5.7
 ppl-0.10.2
 gcc-4.5.1
 mpc-0.8.1

CT_ARCH_ARCH="armv7-a"
CT_ARCH_CPU="cortex-a8"
CT_ARCH_TUNE="cortex-a8"
CT_ARCH_FPU="vfpv3-d16"
CT_ARCH_FLOAT_HW=y

The toolchain was built successfully. But I found error as follow:
ruckuus@markonah:~/tulcein/testbed$
~/srikutil-glibc-hardfloat/arm-cortex_a8-linux-gnueabi/bin/arm-cortex_a8-linux-gnueabi-gcc
-c test.c -mfloat-abi=hard

ruckuus@markonah:~/tulcein/testbed$
~/srikutil-glibc-hardfloat/arm-cortex_a8-linux-gnueabi/bin/arm-cortex_a8-linux-gnueabi-gcc
test.o -o test -mfloat-abi=hard --verbose

/home/ruckuus/srikutil-glibc-hardfloat/arm-cortex_a8-linux-gnueabi/lib/gcc/arm-cortex_a8-linux-gnueabi/4.5.1/../../../../arm-cortex_a8-linux-gnueabi/bin/ld:
error: test.o uses VFP register arguments, test does not
/home/ruckuus/srikutil-glibc-hardfloat/arm-cortex_a8-linux-gnueabi/lib/gcc/arm-cortex_a8-linux-gnueabi/4.5.1/../../../../arm-cortex_a8-linux-gnueabi/bin/ld:
failed to merge target specific data of file test.o
collect2: ld returned 1 exit status

Is there anything wrong in the build process?

Should I set :
CT_TARGET_CFLAGS=""
CT_TARGET_LDFLAGS=""
CT_LIBC_GLIBC_EXTRA_CFLAGS=""

??

I really appreciate any response.

Best regards,
DWI

PS: Enclosed is my config file.

-- 
"A mathematician is a device for turning coffee into theorems." - Paul Erdos

Attachment: config-ct-ng-gcc-4.5.1-hardfloat
Description: Binary data

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