[LLVMdev] gcc 4.1* carashes compiling llvm-gcc

Ferad Zyulkyarov feradz at gmail.com
Thu Mar 29 05:23:53 PDT 2007


Hi Anton,

> What's the version of binutils you're using? I've seen such messages
> with 2.16 series, but they were only warnings...

The version of binutils is 2.17

By the way. I will use the opportunity to ask you again :) I tried to
compile with gcc 4.0.4. It successfully compile LLVM but fails
compiling LLVM's gcc front end. The problem is architectural 32 and 64
bit. The machine has intel xeon CPU that is physically 32 bit but has
64 extension x86_64 (or something like that, I am not exactly sure).
The error message that I get is bellow. I noticed also that the
compilation command specifies "-m32" flag which probably shouldn't be
passed.

/home/ferad/llvm/llvm-gcc-obj/gcc/xgcc
-B/home/ferad/llvm/llvm-gcc-obj/gcc/ -B/h
                ome/ferad/llvm/llvm-gcc/x86_64-unknown-linux-gnu/bin/
-B/home/ferad/llvm/llvm-gc
 c/x86_64-unknown-linux-gnu/lib/ -isystem
/home/ferad/llvm/llvm-gcc/x86_64-unknow
              n-linux-gnu/include -isystem
/home/ferad/llvm/llvm-gcc/x86_64-unknown-linux-gnu/
                          sys-include -O2 -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissi
                  ng-prototypes -Wold-style-definition  -isystem
./include  -I. -I32 -I../../llvm-
        gcc-src/gcc -I../../llvm-gcc-src/gcc/32
-I../../llvm-gcc-src/gcc/../include -I..
               /../llvm-gcc-src/gcc/../libcpp/include
-I/home/ferad/llvm/llvm-1.9/include -I/h
               ome/ferad/llvm/llvm-obj/include -m32 -g0
-finhibit-size-directive -fno-inline-fu
              nctions -fno-exceptions -fno-zero-initialized-in-bss
-fno-unit-at-a-time -fno-om
  it-frame-pointer -fno-asynchronous-unwind-tables \

   -c ../../llvm-gcc-src/gcc/crtstuff.c -DCRT_BEGIN \

  -o 32/crtbegin.o

Warning: Generation of 64-bit code for a 32-bit processor requested.

In file included from ../../llvm-gcc-src/gcc/crtstuff.c:67:

../../llvm-gcc-src/gcc/unwind-dw2-fde.h: In function âget_cieâ:

../../llvm-gcc-src/gcc/unwind-dw2-fde.h:163: warning: return from
incompatible p                                              ointer
type

/tmp/ccCUQ9uX.s: Assembler messages:

/tmp/ccCUQ9uX.s:11: Error: `completed.4804(%rip)' is not a valid
base/index expr                                              ession

/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 expr                                              ession


Thanks,
Ferad

-- 
Ferad Zyulkyarov
Barcelona Supercomputing Center




More information about the llvm-dev mailing list