This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld: symbol(s) not found during make


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


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