This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: ld: symbol(s) not found during make
- From: Ian Lance Taylor <iant at google dot com>
- To: Ankit Mahanot <ankit1986 at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Sun, 01 Nov 2009 13:26:03 -0800
- Subject: Re: ld: symbol(s) not found during make
- References: <7e6ebd600911010130u631715c4jbf2e1c5a6110d2f2@mail.gmail.com>
Ankit Mahanot <ankit1986@gmail.com> writes:
> I have three folders
> - gcc-4.4.1
> - gcc-build
> - gcc-bin
>
> I am currently in gcc-build.
>
> I did ../gcc-4.4.1/configure --prefix=/Users/Ankit/gcc-bin
>
> it created the makefil in gcc-build.
>
> then I did "make"
>
> it gave me the following error after 10-15 mins :(
>
> .
> .
> .
> _ix86_expand_builtin in libbackend.a(i386.o)
> _ix86_expand_builtin in libbackend.a(i386.o)
> _ix86_expand_builtin in libbackend.a(i386.o)
> _ix86_expand_builtin in libbackend.a(i386.o)
> _ix86_expand_builtin in libbackend.a(i386.o)
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[3]: *** [cc1-dummy] Error 1
> make[2]: *** [all-stage1-gcc] Error 2
> make[1]: *** [stage1-bubble] Error 2
> make: *** [all] Error 2
>
>
> I have compiled GCC before also & it worked fine. But I now it's happening :(
I don't know either. The function ix86_expand_builtin is defined in
gcc/config/i386/i386.c. I assume the leading underscore is there
because you are using some system which uses leading underscores on
symbol names, such as *BSD or Cygwin or MingW. I can't think of any
reason why you would have references to ix86_expand_builtin in i386.o
but no definition of it.
Ian