[LLVMdev] Compiling llvm-gcc on amd64 with 32 bits: assembler still carps

Török Edwin edwintorok at gmail.com
Tue Apr 1 03:25:53 PDT 2008


Joachim Durchholz wrote:
> *bump*
>
> Anybody got a clue?
>
> I can post a full transcript of a shell session that reproduces the
> error if that helps.
>
> To reiterate the original problem: I'm trying to compile LLVM-GCC on an
> Ubuntu 64-bit box, with a 32-bit target (to avoid potential problems
> with PIC and such).
> I get errors like
>   Error: suffix or operands invalid for `push'
> as soon as the make process tries to assemble anything; the surface
> cause of the problem is that it's calling the preinstalled GNU assembler
> but not telling it to emit 32-bit code. (The root cause may be that the
> --build, --host and --target options are mishandled somewhere. This
> hypothesis is supported by the fact that you need to specify all three
> even though normally, specifying just --build should be enough, but
> unfortunately, I don't know enough about the automake machinery to
> verify or falsify it.)
>
> Regards,
> Jo
>
>   


Try downloading the upstream gcc-4.2 (without any vendor-specific
patches), and build with same configure line (except the --enable-llvm).
If it works, compare the Makefiles. This should give a starting point.

Best regards,
--Edwin



More information about the llvm-dev mailing list