[LLVMdev] gcc 4.1* carashes compiling llvm-gcc

Reid Spencer
2007-03-29T14:57:40Z

On Thu, 2007-03-29 at 15:57 +0200, Ferad Zyulkyarov
wrote:
> > i had the same errors. adding "--disable-multilib" to
configure solved
> > the problem. but i guess this is not a general solution.
>
> Thanks, that worked. Probably it would be good if this issue is
> included in the readme file for gcc-front end.

The problem looked (to me) like an inline assembly issue. These messages
in particular:

> /tmp/ccCUQ9uX.s:11: Error: `completed.4804(%rip)' is not a valid
> base/index expression
> /tmp/ccCUQ9uX.s:17: Error: `p.4803(%rip)' is not a valid base/index
> expression
> /tmp/ccCUQ9uX.s:18: Error: bad register name `%rax'
> /tmp/ccCUQ9uX.s:20: Error: `p.4803(%rip)' is not a valid base/index
> expression
> /tmp/ccCUQ9uX.s:21: Error: bad register name `%rax)'
> /tmp/ccCUQ9uX.s:22: Error: bad register name `%rax'
> /tmp/ccCUQ9uX.s:25: Error: `completed.4804(%rip)' is not a valid
> base/index expression

All of the quoted code looks like inline assembly. It is likely these
are coming from system header files. If not, they may be coming from the
GCC runtime code. In order to debug this, you'd need to provide the
pre-processed input that was trying to be compiled. It is also possible
that the "host" machine for your machine was calculated incorrectly
and
you're attempting to compile assembly that doesn't match the machine.

Reid.