Hotspot not building on Solaris SPARC

Azeem Jiva azeem.jiva at oracle.com
Thu Nov 29 15:25:36 PST 2012


Ahh I figured it out, I was using SolarisStudio12.3, when I switch back 
to the supported SunStudio12.1 compiler everything works great.


On 11/29/2012 05:21 PM, Azeem Jiva wrote:
> Kris,
>   Nope this is freshly pulled code from the HS trunk.
>
> On 11/29/2012 05:20 PM, Krystal Mo wrote:
>> Hi Azeem,
>>
>> Did you add a new overload of swap() somewhere in MacroAssembler or 
>> in C1_MacroAssembler?
>> If so, you'll need to add a "using Assembler::swap;" declaration 
>> along with the declaration of your new overload, otherwise the 
>> inherited ones will be hidden.
>>
>> HTH,
>> Kris
>>
>> On 11/30/2012 06:59 AM, Azeem Jiva wrote:
>>> Sorry to be more clear, I see that swap() takes both an Address and 
>>> Register and that offset has a default of zero if not provided 
>>> (which is true in this case).  I'm not sure why this is happening 
>>> though.   I'm hesitant to add a swap that takes just an Address and 
>>> Register since this is old code, and has compiled before :)
>>>
>>>
>>> On 11/29/2012 04:36 PM, Azeem Jiva wrote:
>>>> I'm trying to build HotSpot on Solaris SPARC, and see the following 
>>>> error from a fresh pull from the trunk:
>>>>
>>>> "/net/pae-t5two-04/root/hsx/src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp", 
>>>> line 3469: Error: Could not find a match for 
>>>> Assembler::swap(Address, RegisterImpl*) needed in 
>>>> LIR_Assembler::atomic_op(LIR_Code, LIR_OprDesc*, LIR_OprDesc*, 
>>>> LIR_OprDesc*, LIR_OprDesc*).
>>>> "/net/pae-t5two-04/root/hsx/src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp", 
>>>> line 3476: Error: Could not find a match for 
>>>> Assembler::swap(Address, RegisterImpl*) needed in 
>>>> LIR_Assembler::atomic_op(LIR_Code, LIR_OprDesc*, LIR_OprDesc*, 
>>>> LIR_OprDesc*, LIR_OprDesc*).
>>>> 2 Error(s) detected.
>>>> gmake[2]: *** [c1_LIRAssembler_sparc.o] Error 2
>>>> gmake[2]: *** Waiting for unfinished jobs....
>>>> "/net/pae-t5two-04/root/hsx/src/cpu/sparc/vm/sparc.ad", line 7349: 
>>>> Error: Could not find a match for Assembler::swap(Address, 
>>>> RegisterImpl*) needed in xchgINode::emit(CodeBuffer&, 
>>>> PhaseRegAlloc*) const.
>>>> "/net/pae-t5two-04/root/hsx/src/cpu/sparc/vm/sparc.ad", line 7371: 
>>>> Error: Could not find a match for Assembler::swap(Address, 
>>>> RegisterImpl*) needed in xchgNNode::emit(CodeBuffer&, 
>>>> PhaseRegAlloc*) const.
>>>> 2 Error(s) detected.
>>>> gmake[2]: *** [ad_sparc.o] Error 2
>>>>
>>>> Ideas?
>>>>
>>>
>>
>

-- 
Azeem Jiva
@javawithjiva



More information about the hotspot-compiler-dev mailing list