Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Andre_M_4
Beginner
90 Views

icc cannot interpret clang-generated assembly syntax

Hello, I've been trying to compile Apple's Unwind library using ICC 16.0 on OSX 10.10, and icc has been complaining about "invalid instruction mnemonics" in the assembly code: src/unw_getcontext.s:223:2: error: invalid instruction mnemonic 'li' li r3, 0 ; return UNW_ESUCCESS ^~ src/unw_getcontext.s:223:14: error: invalid instruction mnemonic 'return' li r3, 0 ; return UNW_ESUCCESS ^~~~~~ src/unw_getcontext.s:224:2: error: invalid instruction mnemonic 'blr' blr The source code in question is: http://opensource.apple.com/source/libunwind/libunwind-35.3/src/unw_getcontext.s In particular, due to this problem the Julia language REPL cannot be compiled in OSX using icc (see https://github.com/JuliaLang/julia/issues/9145). Does anyone have suggestions on how to proceed? Perhaps some flag that can be passed to icc so that it accepts these commands? Thank you very much, Andre
0 Kudos
4 Replies
Melanie_B_Intel
Employee
90 Views

I clicked on the url that you referenced with the assembly code, and that particular chunk is under this conditional compilation:

 

#elif __ppc__

 

So the assembly code is suitable for power pc, but not intel architecture.  Probably your build configuration isn't correct.

Kittur_G_Intel
Employee
90 Views

Thanks Melanie.  
@Andre, does the response from Melanie answer your question? Thx.

_Kittur

Andre_M_2
Beginner
90 Views

Hi Melanie and Kittur,

Thanks for the quick response! It might as well be the case that this particular chunk is being considered due to incorrect build configuration... I still didn't have the chance to try fixing it -- to be honest, what I'm trying to compile here is the Julia language REPL, so the build wasn't set up by me. This issue is being discussed on GitHub (https://github.com/JuliaLang/julia/issues/9145), I'll forward Melanie's suggestion to them.

 

Thank you very much,

Andre.

Kittur_G_Intel
Employee
90 Views

Great, thanks Andre for keeping us updated.

_Kittur

Reply