[erlang-questions] Can't build on new Sun T2?

Kostis Sagonas <>
Fri Oct 5 08:26:11 CEST 2007


Tim Bray wrote:
> Any advice?  This should be a good erlang box, I want to run some tests.
> 
> sca12-3200a-32 ~/dev/otp_src_R11B-5/> uname -a
> SunOS sca12-3200a-32 5.10 Generic_120011-13 sun4v sparc SUNW,SPARC- 
> Enterprise-****
> 
> ./configure showed no problems.
> 
> sca12-3200a-32 ~/dev/otp_src_R11B-5/> gmake
> ... hundreds of lines omitted ...
> 
> ld: fatal: relocation error: R_SPARC_32: file obj/sparc-sun- 
> solaris2.10/opt/hybrid/hipe_sparc_glue.o: symbol <unknown>: offset  
> 0xfcec0f6e is non-aligned
> ld: fatal: relocation error: R_SPARC_32: file obj/sparc-sun- 
> solaris2.10/opt/hybrid/hipe_sparc_bifs.o: symbol <unknown>: offset  
> 0xfcec0fdb is non-aligned
> ld: fatal: relocation error: R_SPARC_32: file obj/sparc-sun- 
> solaris2.10/opt/hybrid/hipe_sparc_bifs.o: symbol <unknown>: offset  
> 0xfcec0fe1 is non-aligned
> ld: fatal: relocation error: R_SPARC_32: file obj/sparc-sun- 
> solaris2.10/opt/hybrid/hipe_sparc_bifs.o: symbol <unknown>: offset  


If you want hipe support you (your gcc) needs to use "gas" (the GNU 
assembler), not "as" (the SUN assembler).

You have two options:
   1. Force use of "gas"  (recommended)
   2. Configure with --disable-hipe

Kostis



More information about the erlang-questions mailing list