[oi-dev] error trying to compile gcc47-libgmp

Alexander Pyhalov alp at rsu.ru
Fri May 31 19:31:53 UTC 2013


Hello.

I have tried to build gcc47, but received

configure: error: Oops, mp_limb_t is 32 bits, but the assembler code
in this configuration expects 64 bits.
You appear to have set $CFLAGS, perhaps you also need to tell GMP the
intended ABI, see "ABI and ISA" in the manual.
gmake: *** 
[/export/home/build/srcs/oi-userland/components/gcc47-libgmp/build/i86/.configured] 
Error 1

$ uname -a
SunOS buildzone 5.11 testws i86pc i386 i86pc Solaris

$ isainfo
amd64 i386

This is Intel(r) Xeon(r) CPU           E5345  @ 2.33GHz machine, I am 
building in zone.

It seems that the following change solves this problem, but I'm just 
building gcc and haven't tested it yet.


--- a/components/gcc47-libgmp/Makefile
+++ b/components/gcc47-libgmp/Makefile
@@ -32,6 +32,7 @@ CONFIGURE_PREFIX= /usr/gcc/4.7

  CONFIGURE_OPTIONS+= --enable-cxx
  CONFIGURE_OPTIONS+= CFLAGS="-fexceptions"
+CONFIGURE_OPTIONS+= ABI=32

  build:          $(BUILD_32)


-- 
Best regards,
Alexander Pyhalov,
system administrator of Computer Center of Southern Federal University




More information about the oi-dev mailing list