This is the mail archive of the
crossgcc@sourceware.org
mailing list for the crossgcc project.
See the CrossGCC FAQ for lots
more information.
Re: building for Cortex M3
[--SNIP--]
If all goes well, you should set the following:
CT_ARCH_ARCH: armv7-m (I'm not so sure about that one, if it
fails,
leave the field empty)
CT_ARCH_CPU : cortex-m3
CT_ARCH_TUNE: cortex-m3
OK, I just tested, it does not work. Error message is:
cc1: error: target CPU does not support ARM mode
Both gcc and glibc complain, although the gcc build does not stop,
and
happily goes on, even if the newly-built gcc is broken. Then glibc
breaks
becasue the compiler does not support ARM mode...
Well, I took a shot on the glibc build problem and added -mthumb to
the
CFLAGS. It got past that problem and on to another in the same file.
--SNIP--
try eglibc. It compiles and works when compiled in pure thumb2. I am
not sure about glibc.
Perhaps this is still a compiler issue? eglibc fails in the same manor.
[ALL ] /home/acurtis/work/targets/arm-cortex_m3-linux-gnueabi/
build/gcc-core-static/bin/arm-cortex_m3-linux-gnueabi-gcc ../eglibc-
ports-2_10/sysdeps/unix/sysv/linux/arm/sysdep.S -c -I../include -I/
home/acurtis/work/targets/arm-cortex_m3-linux-gnueabi/build/build-libc-
startfiles/csu -I/home/acurtis/work/targets/arm-cortex_m3-linux-
gnueabi/build/build-libc-startfiles -I../eglibc-ports-2_10/sysdeps/arm/
elf -I../ports/sysdeps/arm/elf -I../eglibc-ports-2_10/sysdeps/unix/
sysv/linux/arm/eabi/nptl -I../eglibc-ports-2_10/sysdeps/unix/sysv/
linux/arm/eabi -I../ports/sysdeps/unix/sysv/linux/arm/eabi/nptl -I../
ports/sysdeps/unix/sysv/linux/arm/eabi -I../eglibc-ports-2_10/sysdeps/
unix/sysv/linux/arm/nptl -I../eglibc-ports-2_10/sysdeps/unix/sysv/
linux/arm -I../ports/sysdeps/unix/sysv/linux/arm/nptl -I../ports/
sysdeps/unix/sysv/linux/arm -I../eglibc-ports-2_10/sysdeps/unix/sysv/
linux -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../
sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/
sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/
mman -I../sysdeps/unix/inet -I../eglibc-ports-2_10/sysdeps/unix/sysv -
I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/
unix/sysv -I../eglibc-ports-2_10/sysdeps/unix/arm -I../ports/sysdeps/
unix/arm -I../eglibc-ports-2_10/sysdeps/unix -I../nptl/sysdeps/unix -
I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../
eglibc-ports-2_10/sysdeps/arm/eabi -I../ports/sysdeps/arm/eabi -I../
eglibc-ports-2_10/sysdeps/arm/fpu -I../ports/sysdeps/arm/fpu -I../
eglibc-ports-2_10/sysdeps/arm/nptl -I../eglibc-ports-2_10/sysdeps/arm -
I../sysdeps/wordsize-32 -I../sysdeps/ie
ee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../ports/sysdeps/arm/nptl -
I../ports/sysdeps/arm -I../sysdeps/ieee754 -I../sysdeps/generic/elf -
I../sysdeps/generic
-I../eglibc-ports-2_10 -I../nptl -I../ports -I.. -I../libio -I. -
nostdinc -isystem /home/acurtis/work/targets/arm-cortex_m3-linux-
gnueabi/build/gcc-core-stati
c/lib/gcc/arm-cortex_m3-linux-gnueabi/4.4.0/include -isystem /home/
acurtis/work/targets/arm-cortex_m3-linux-gnueabi/build/gcc-core-static/
lib/gcc/arm-cortex_m3
-linux-gnueabi/4.4.0/include-fixed -isystem /home/acurtis/x-tools/arm-
cortex_m3-linux-gnueabi/arm-cortex_m3-linux-gnueabi//sys-root/usr/
include -D_LIBC_REENTRA
NT -include ../include/libc-symbols.h -DHAVE_INITFINI -
DASSEMBLER -I/home/acurtis/work/targets/arm-cortex_m3-linux-gnueabi/
build/build-libc-startfiles/c
su/. -Wa,--noexecstack -o /home/acurtis/work/targets/arm-cortex_m3-
linux-gnueabi/build/build-libc-startfiles/csu/sysdep.o -MD -MP -MF /
home/acurtis/work/tar
gets/arm-cortex_m3-linux-gnueabi/build/build-libc-startfiles/csu/
sysdep.o.dt -MT /home/acurtis/work/targets/arm-cortex_m3-linux-gnueabi/
build/build-libc-startf
iles/csu/sysdep.o
[ALL ] ../eglibc-ports-2_10/sysdeps/unix/arm/sysdep.S: Assembler
messages:
[ALL ] ../eglibc-ports-2_10/sysdeps/unix/arm/sysdep.S:51: Error:
lo register required -- `sub pc,r0,#31'
[ALL ] ../eglibc-ports-2_10/sysdeps/unix/arm/sysdep.S:54: Error:
invalid base register for register offset -- `ldr r2,[pc,r2]'
[ALL ] ../eglibc-ports-2_10/sysdeps/unix/arm/sysdep.S:56: Error:
unshifted register required -- `mvn r0,#0'
[ERROR] make[3]: *** [/home/acurtis/work/targets/arm-cortex_m3-
linux-gnueabi/build/build-libc-startfiles/csu/sysdep.o] Error 1
[ALL ] make[3]: *** Waiting for unfinished jobs....
[ALL ] make[3]: Leaving directory `/home/acurtis/work/targets/src/
eglibc-2_10/csu'
[ERROR] make[2]: *** [csu/subdir_lib] Error 2
[ALL ] make[2]: Leaving directory `/home/acurtis/work/targets/src/
eglibc-2_10'
[ERROR] make[1]: *** [csu/subdir_lib] Error 2
[ALL ] make[1]: Leaving directory `/home/acurtis/work/targets/arm-
cortex_m3-linux-gnueabi/build/build-libc-startfiles'
[ERROR] Build failed in step 'Installing C library headers / start
files'
[ERROR] Error happened in '/opt/crosstool-ng/lib/ct-ng-1.5.0/
scripts/functions' in function 'CT_DoExecLog' (line unknown, sorry)
[ERROR] called from '/opt/crosstool-ng/lib/ct-ng-1.5.0/
scripts/build/libc/eglibc.sh' at line # 188 in function
'do_libc_start_files'
[ERROR] called from '/opt/crosstool-ng/lib/ct-ng-1.5.0/
scripts/crosstool-NG.sh' at line # 544 in function 'main'
--
For unsubscribe information see http://sourceware.org/lists.html#faq