GMP 5.0.5 build fails with tcc due to x86_64 asm (unknown register...)

Torbjorn Granlund tg at
Tue Jun 19 16:21:28 CEST 2012

[This discussion has been moved from the bug reporting list]

Vincent Lefevre <vincent at> writes:

  I completely disagree: until now, tcc is fine for compiling C.
  C, not assembler!
  In GMP's "./configure --help" output:
    CC          C compiler command
  So, CC is a command to compile C code. For the assembler, it may be
  another command.

Please use a command (let's call it ccompilerassemblerlinker) that works
the Unix way, i.e., can compile C, can assemble according to the syntax
conventions specified for the system in question, and can link object

If mce or tcc cannot handle all of these roles, you will need to wrap it
inside a script, or it will be incapable of compiling GMP and many other


More information about the gmp-discuss mailing list