What all should I take care while compiling and running?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I created crosstool for arm-9tdmi-linux-gnu.  I compiled a simple program using
arm-9tdmi-linux-gnu-gcc.
(My target board has already  Kernel-2.6.10 and a compiler for older
versions of gcc & glibc)

I mount:  mount -o nolock,rsize=1500,wsize=1500 -t nfs
161.85.96.148:/home/pramod/crosstool  /mnt/test

Ive simply used ./a.out.
But its giving " sh:./a.out not found "
even when there is compiled a.out in /mnt/test.

when i use:
crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/lib/ld-linux.so.2
 ./a.out
its giving
" illegal instruction "

I can find crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/lib/ld-linux.so.2
Do u doubt crosstol build itself gone wrong? But i tested
arm-9tdmi-linux-gnu-objdump;  works properly.

What all should  I take care while compiling a program and running a
program in the TARGET?
Plz reply with all the possibilities where the thing gone wrong.

Thanx n regards,
--
----------------------------------------------------------------
  PRAMOD P. K., <pra.engr@xxxxxxxxx>

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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux