public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Illegal instruction
       [not found] <417f1b740511090634l4e854a92icb9b7495447ae313@mail.gmail.com>
@ 2005-11-09 14:41 ` Pramod P K
  2005-11-09 19:42   ` Florian Weimer
  0 siblings, 1 reply; 3+ messages in thread
From: Pramod P K @ 2005-11-09 14:41 UTC (permalink / raw)
  To: gcc-help; +Cc: linux-arm

Hi,

When  I do:
# arm-9tdmi-linux-gnu-gcc  -static  -v  testcpro.c

Reading specs from
/home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/lib/gcc/arm-9tdmi-linux-gnu/3.4.3/specs
Configured with:
/home/pramod/crosstool-0.38/build/arm-9tdmi-linux-gnu/gcc-3.4.3-glibc-2.3.4/gcc-3.4.3/configure
--target=arm-9tdmi-linux-gnu --host=i686-host_pc-linux-gnu
--prefix=/home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu
--with-cpu=arm9tdmi --enable-cxx-flags=-mcpu=arm9tdmi --enable-cross
--disable-multilib
--with-headers=/home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/include
--with-local-prefix=/home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu
--disable-nls --enable-threads=posix --enable-symvers=gnu
--enable-__cxa_atexit --enable-languages=c,c++ --enable-shared
--enable-c99 --enable-long-long
Thread model: posix
gcc version 3.4.3
 /home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/libexec/gcc/arm-9tdmi-linux-gnu/3.4.3/cc1
-quiet -v -D__ARM_ARCH_4T__ testcpro.c -quiet -dumpbase testcpro.c
-mcpu=arm9tdmi -auxbase testcpro -version -o /tmp/ccTnnGRn.s
#include "..." search starts here:
#include <...> search starts here:
 /home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/lib/gcc/arm-9tdmi-linux-gnu/3.4.3/include
 /home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/lib/gcc/arm-9tdmi-linux-gnu/3.4.3/../../../../arm-9tdmi-linux-gnu/sys-include
 /home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/lib/gcc/arm-9tdmi-linux-gnu/3.4.3/../../../../arm-9tdmi-linux-gnu/include
End of search list.
GNU C version 3.4.3 (arm-9tdmi-linux-gnu)
       compiled by GNU C version 4.0.0 20050519 (Red Hat 4.0.0-8).
GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=63150
 /home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/lib/gcc/arm-9tdmi-linux-gnu/3.4.3/../../../../arm-9tdmi-linux-gnu/bin/as
-mcpu=arm9tdmi -o /tmp/ccYu5icD.o /tmp/ccTnnGRn.s
 /home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/libexec/gcc/arm-9tdmi-linux-gnu/3.4.3/collect2
-Bstatic -dynamic-linker /lib/ld-linux.so.2 -X -m armelf_linux -p -o
testcpro-static
/home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/lib/gcc/arm-9tdmi-linux-gnu/3.4.3/../../../../arm-9tdmi-linux-gnu/lib/crt1.o
/home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/lib/gcc/arm-9tdmi-linux-gnu/3.4.3/../../../../arm-9tdmi-linux-gnu/lib/crti.o
/home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/lib/gcc/arm-9tdmi-linux-gnu/3.4.3/crtbegin.o
-L/home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/lib/gcc/arm-9tdmi-linux-gnu/3.4.3
-L/home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/lib/gcc/arm-9tdmi-linux-gnu/3.4.3/../../../../arm-9tdmi-linux-gnu/lib
/tmp/ccYu5icD.o --start-group -lgcc -lgcc_eh -lc --end-group
/home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/lib/gcc/arm-9tdmi-linux-gnu/3.4.3/crtend.o
/home/pramod/crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/lib/gcc/arm-9tdmi-linux-gnu/3.4.3/../../../../arm-9tdmi-linux-gnu/lib/crtn.o


seems to be OK.

I tried:
#  arm-9tdmi-linux-gnu-objdump  -s  ./a.out

works well.

Now Plz tel me what could be the problem with

# ./testcpro-static
Illegal instruction

Thanx

----------------------------------------------------------------
 PRAMOD P. K., <pra.engr@gmail.com>

 CDMA: 91- 9242195490.
----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Illegal instruction
  2005-11-09 14:41 ` Illegal instruction Pramod P K
@ 2005-11-09 19:42   ` Florian Weimer
  2005-11-10  4:04     ` Pramod P K
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Weimer @ 2005-11-09 19:42 UTC (permalink / raw)
  To: Pramod P K; +Cc: gcc-help

* Pramod P. K.:

> Now Plz tel me what could be the problem with
>
> # ./testcpro-static
> Illegal instruction

Are you trying to execute the command on the build host, or on the
target?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Illegal instruction
  2005-11-09 19:42   ` Florian Weimer
@ 2005-11-10  4:04     ` Pramod P K
  0 siblings, 0 replies; 3+ messages in thread
From: Pramod P K @ 2005-11-10  4:04 UTC (permalink / raw)
  To: Florian Weimer; +Cc: gcc-help

Hi,

> Are you trying to execute the command on the build host, or on the
> target?

On TARGET only..

Thanx
Pramod

On 11/10/05, Florian Weimer <fw@deneb.enyo.de> wrote:
> * Pramod P. K.:
>
> > Now Plz tel me what could be the problem with
> >
> > # ./testcpro-static
> > Illegal instruction
>
> Are you trying to execute the command on the build host, or on the
> target?
>


--
----------------------------------------------------------------
  PRAMOD P. K., <pra.engr@gmail.com>

  CDMA: 91- 9242195490.
----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-10  4:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <417f1b740511090634l4e854a92icb9b7495447ae313@mail.gmail.com>
2005-11-09 14:41 ` Illegal instruction Pramod P K
2005-11-09 19:42   ` Florian Weimer
2005-11-10  4:04     ` Pramod P K

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).