"/usr/bin/ld: crt1.o: No such file: No such file or directory " ? Please help me !

2,611 views
Skip to first unread message

top

unread,
Jun 27, 2009, 7:23:15 AM6/27/09
to android-ndk
I 'm working on fedora 11 x86_64 with Android NDK 1.5 I 've
installed SDK 1.5 and binutil already
when i execute script build/host-setup.sh

CC : compiler check ok (gcc)
your linker doesn't seem to work:
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status


thank

David Turner

unread,
Jun 27, 2009, 8:52:09 AM6/27/09
to andro...@googlegroups.com
You probably need to install gcc as well (binutils is not enough).
This requirement will probably go away in a later release; sorry about that.

top

unread,
Jun 27, 2009, 9:09:40 AM6/27/09
to android-ndk
I 've install gcc too.

David Turner

unread,
Jun 27, 2009, 11:07:46 AM6/27/09
to andro...@googlegroups.com
hmmm, the script is trying to run gcc to build a simple test file.
Can you run in verbose mode with the following, and report:

VERBOSE2=yes build/host-setup.sh

Thanks in advance

On Sat, Jun 27, 2009 at 3:09 PM, top <azim...@gmail.com> wrote:

I 've  install gcc  too.


Alexis ROBERT

unread,
Jun 27, 2009, 4:12:28 PM6/27/09
to android-ndk
Try to install development packages for glibc (like glibc-devel).

On 27 juin, 17:07, David Turner <di...@android.com> wrote:
> hmmm, the script is trying to run gcc to build a simple test file.
> Can you run in verbose mode with the following, and report:
>
> VERBOSE2=yes build/host-setup.sh
>
> Thanks in advance
>

mahadevan

unread,
Jul 7, 2009, 11:07:51 PM7/7/09
to android-ndk
To compile on 32-bit mode on on X86_64 bit systems , once needs to
install corresponding i386/i586 libs on 64-bit systems. For my
Fedora-11 X86_64 systems, I have gcc,libc,glibc for X86_64 packages.
But I was getting the crt1.o error. So after some trials, found that I
need to install packages for glibc for i586.

Here are some commands for updating of FC11:

# yum search glibc-devel
...
glibc-devel.i586 : Object files for development using standard C
libraries.
glibc-devel.x86_64 : Object files for development using standard C
libraries.

So I installed the i586 packge using
# yum install glibc-devel.i586


More info similair problems earlier.
http://www.linuxquestions.org/questions/linux-software-2/how-to-compile-32bit-.c-.cc-on-64bit-x8664-systems-612311/

Finally on my system I have following packages:
# rpm -qa|grep glibc
glibc-2.10.1-2.i686
glibc-2.10.1-2.x86_64
glibc-headers-2.10.1-2.x86_64
glibc-devel-2.10.1-2.i586
glibc-common-2.10.1-2.x86_64
glibc-devel-2.10.1-2.x86_64

Hope this helps

mahadevan
Reply all
Reply to author
Forward
0 new messages