* ARM-m3 no MMU no OS
@ 2014-05-27 20:56 Ed Beroset
2014-05-28 5:51 ` Zhenqiang Chen
0 siblings, 1 reply; 4+ messages in thread
From: Ed Beroset @ 2014-05-27 20:56 UTC (permalink / raw)
To: crossgcc
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
I'm willing to put in some work to figure this out, but I'm not sure where to start. When I dive into /home/ejb/tools/crosstool-ng/.build/src/newlib-2.1.0/newlib/libc/search/ I find a Makefile and some object files, but clearly I'm missing a lot of context at that point and can't just type "make" there. Any clues?
Ed
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ARM-m3 no MMU no OS
2014-05-27 20:56 ARM-m3 no MMU no OS Ed Beroset
@ 2014-05-28 5:51 ` Zhenqiang Chen
2014-05-28 5:56 ` Bryan Hundven
0 siblings, 1 reply; 4+ messages in thread
From: Zhenqiang Chen @ 2014-05-28 5:51 UTC (permalink / raw)
To: Ed Beroset; +Cc: crossgcc
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ARM-m3 no MMU no OS
2014-05-28 5:51 ` Zhenqiang Chen
@ 2014-05-28 5:56 ` Bryan Hundven
0 siblings, 0 replies; 4+ messages in thread
From: Bryan Hundven @ 2014-05-28 5:56 UTC (permalink / raw)
To: Zhenqiang Chen; +Cc: Ed Beroset, crossgcc
On Tue, May 27, 2014 at 10:51 PM, Zhenqiang Chen
<zhenqiang.chen@linaro.org> wrote:
> 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
Or more simply, just pastebin .config and full build.log, then link here.
Cheers,
-Bryan
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ARM-m3 no MMU no OS
@ 2014-05-28 18:13 Ed Beroset
0 siblings, 0 replies; 4+ messages in thread
From: Ed Beroset @ 2014-05-28 18:13 UTC (permalink / raw)
To: crossgcc
Here's the .config file I had been attempting to use: http://pastebin.com/yi0cf4mD
The problem, as I've already posted, is as follows:
[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
Ed
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-05-28 18:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-27 20:56 ARM-m3 no MMU no OS Ed Beroset
2014-05-28 5:51 ` Zhenqiang Chen
2014-05-28 5:56 ` Bryan Hundven
2014-05-28 18:13 Ed Beroset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).