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

See crosstool-NG 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]

Re: ARM-m3 no MMU no OS


On 28 May 2014 04:55, Ed Beroset <beroset@mindspring.com> wrote:
> I'm trying to use crosstool-NG to build g++ 2.9.0 for arm-m3 with no mmu bare-metal, EABI, but have not had much luck so far. Specifically, I get all the way to "Installing C library" but it fails when attempting to build newlib.  The relevant lines are:
>
> [ALL  ]    arm-bare_newlib_cortex_m3_nommu-eabi-cc -B/home/ejb/tools/crosstool-ng/.build/arm-bare_newlib_cortex_m3_nommu-eabi/build/build-libc/arm-bare_newlib_cortex_m3_nommu-eabi/newlib/ -isystem /home/ejb/tools/crosstool-ng/.build/arm-bare_newlib_cortex_m3_nommu-eabi/build/build-libc/arm-bare_newlib_cortex_m3_nommu-eabi/newlib/targ-include -isystem /home/ejb/tools/crosstool-ng/.build/src/newlib-2.1.0/newlib/libc/include -B/home/ejb/tools/crosstool-ng/.build/arm-bare_newlib_cortex_m3_nommu-eabi/build/build-libc/arm-bare_newlib_cortex_m3_nommu-eabi/libgloss/arm -L/home/ejb/tools/crosstool-ng/.build/arm-bare_newlib_cortex_m3_nommu-eabi/build/build-libc/arm-bare_newlib_cortex_m3_nommu-eabi/libgloss/libnosys -L/home/ejb/tools/crosstool-ng/.build/src/newlib-2.1.0/libgloss/arm    -DPACKAGE_NAME="newlib" -DPACKAGE_TARNAME="newlib" -DPACKAGE_VERSION="2.1.0" -DPACKAGE_STRING="newlib 2.1.0" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -I. -I/home/ejb/tools/crosstool-ng/.build/src/newlib-2.1.0/newlib/libc/search -Os -DNO_FLOATING_POINT -DARM_RDI_MONITOR -fno-builtin      -g -Os -c -o lib_a-twalk.o `test -f 'twalk.c' || echo '/home/ejb/tools/crosstool-ng/.build/src/newlib-2.1.0/newlib/libc/search/'`twalk.c
> [ALL  ]    /tmp/ccsTSIHh.s: Assembler messages:
> [ALL  ]    /tmp/ccsTSIHh.s:1155: Error: bad instruction `orn r3,r3,#31'
> [ALL  ]    /tmp/ccsTSIHh.s:1208: Error: bad instruction `orn r3,r3,#31'
> [ALL  ]    /tmp/ccsTSIHh.s:1690: Error: bad instruction `orn r3,r3,#31'
> [ERROR]    gmake[7]: *** [lib_a-hash_page.o] Error 1

`orn r3,r3,#31' is a correct instruction for Cortex-M3. Please check
your binutils version and flags passed to as (add "-v" option in your
cmdline).

-Zhenqiang

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