/bin/bash: no: command not found.

Gedare Bloom gedare at rtems.org
Fri Mar 18 15:05:02 UTC 2016

Hi John,

I suspect the problem is that sparc-rtems-ld (or similar binutils) was
not found by the configure probe, since it looks for
sparc-rtems4.11-ld. You might work around by providing LD= and AR= on
the make cmd line like you did for CC. I'm not sure what else you
would need to specify manually.

I think you can also provide these to the configure step. I don't know
what is recommended workflow for the Gaisler toolchain. Moving forward
we are encouraging them to package their tools with the version number
embedded, consistent with RTEMS Project toolchain packaging.


On Fri, Mar 18, 2016 at 10:32 AM, Wang, John (IVV-1800)
<john.wang-1 at nasa.gov> wrote:
> So I am compiling for the Leon 3 compiler
> The command I am running after the configure is
> sudo make all CC=/opt/rtems-4.10/bin/sparc-rtems-gcc
> make[7]: Entering directory `/opt/rtems-4.10build/sparc-rtems4.10/c/leon3/cpukit/score/cpu/sparc'
> /opt/rtems-4.10/bin/sparc-rtems-gcc -DHAVE_CONFIG_H   -I../../.. -I../../../../cpukit/../../../leon3/lib/include   -mcpu=cypress -msoft-float -O2 -g -Wall -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT libscorecpu_a-cpu.o -MD -MP -MF .deps/libscorecpu_a-cpu.Tpo -c -o libscorecpu_a-cpu.o `test -f 'cpu.c' || echo '../../../../../../../../rtems-4.10a/c/src/../../cpukit/score/cpu/sparc/'`cpu.c
> mv -f .deps/libscorecpu_a-cpu.Tpo .deps/libscorecpu_a-cpu.Po
> /opt/rtems-4.10/bin/sparc-rtems-gcc --pipe -DHAVE_CONFIG_H   -I../../.. -I../../../../cpukit/../../../leon3/lib/include  -DASM -mcpu=cypress -msoft-float -O2 -g -Wall -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -mcpu=cypress -msoft-float -O2 -g -Wall -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT libscorecpu_a-cpu_asm.o -MD -MP -MF .deps/libscorecpu_a-cpu_asm.Tpo -c -o libscorecpu_a-cpu_asm.o `test -f 'cpu_asm.S' || echo '../../../../../../../../rtems-4.10a/c/src/../../cpukit/score/cpu/sparc/'`cpu_asm.S
> mv -f .deps/libscorecpu_a-cpu_asm.Tpo .deps/libscorecpu_a-cpu_asm.Po
> rm -f libscorecpu.a
> no cru libscorecpu.a libscorecpu_a-cpu.o libscorecpu_a-cpu_asm.o
> /bin/bash: no: command not found
> make[7]: *** [libscorecpu.a] Error 127
> make[7]: Leaving directory `/opt/rtems-4.10build/sparc-rtems4.10/c/leon3/cpukit/score/cpu/sparc'
> make[6]: *** [all-recursive] Error 1
> make[6]: Leaving directory `/opt/rtems-4.10build/sparc-rtems4.10/c/leon3/cpukit/score/cpu'
> make[5]: *** [all-recursive] Error 1
> make[5]: Leaving directory `/opt/rtems-4.10build/sparc-rtems4.10/c/leon3/cpukit/score'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory `/opt/rtems-4.10build/sparc-rtems4.10/c/leon3/cpukit'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory `/opt/rtems-4.10build/sparc-rtems4.10/c/leon3/cpukit'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/opt/rtems-4.10build/sparc-rtems4.10/c/leon3'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/opt/rtems-4.10build/sparc-rtems4.10/c'
> make: *** [all-recursive] Error 1
> thanks
> John
> ________________________________________
> From: Chris Johns [chrisj at rtems.org]
> Sent: Thursday, March 17, 2016 6:19 PM
> To: Wang, John (IVV-1800); users at rtems.org
> Subject: Re: /bin/bash: no: command not found.
> [ I removed the devel list to avoid cross posting.
>    This is a user question and not an RTEMS developer question. ]
> On 18/03/2016 07:28, Wang, John (IVV-1800) wrote:
>> *So I got much further with make.  Now I have the following errors:*
>> no cru libscorecup.a libscorecup_a-cpu.o libscorecpu_a-cp_asm.o
>> /bin/bash: no: command not found.
>> Can anyone shed some light on this?
> Can you please provide some more detail? Maybe the last part of the
> output with the error, your host and the command you entered?
> Thanks
> Chris
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users

More information about the users mailing list