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

See the CrossGCC FAQ 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]

What all should I take care while compiling and running?


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@gmail.com>

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

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]