ld: symbol(s) not found during make

View: New views
2 Messages — Rating Filter:   Alert me  

ld: symbol(s) not found during make

by Ankit Mahanot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 :(

Regards
Ankit Mahanot

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

by Ian Lance Taylor-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ankit Mahanot <ankit1986@...> 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