[Top][All Lists]

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

problem while crosscompiling ncurses with arc

From: varidh bhargava
Subject: problem while crosscompiling ncurses with arc
Date: Mon, 08 Aug 2005 22:41:01 +0800


 I am trying to crosscompile ncurses for arc using i386. the library i am using
 is uclibc-0.9.27.

 i tried with the following commands
 In the ncurses-5.4 directory..
  ./configure arc-linux --target=arc-linux --with-shared --without-cxx 
CC-arc-unknown-linux-uclibc-gcc (arc gcc) 

   make BUILD_CC=gcc

 It gave the following error...

  warning:: cannot find entry symbol __start; defaulting to 000120c8
            undefined reference to main
   collect2: ld returned 1 exit status
this error came when arc gcc was trying to make libncurses.so.5.4 file in lib 

 i tried to think over it, might be due to the following reason

  we are passing BUILD_CC option as gcc. So the file make_hash and make_key 
which are made with the help of
 gcc. These files  contains crt0.o (file which is needed for finding start 
symbol) which is by default of host system,
so when arc-gcc is trying to find the __start symbol it is taking this crtn0.o 
of host gcc. So it might be giving this error, 
as arc-gcc should use the crtn0.o, made during the cross compilatiion od arc.

 Am i right or wrong. pls clear my doubts, if this is wrong what can be the 
error and if this is right then what changes i
need to make..

Also i wana ask that is it necessary that for making make_hash and make_key we 
need HOSTCC.

 i will be really grateful to the one who can clear my douts.


Graffiti.net free e-mail @ www.graffiti.net
Check out our value-added Premium features, such as a 1 GB mailbox for just 
US$9.95 per year!

Powered By Outblaze

reply via email to

[Prev in Thread] Current Thread [Next in Thread]