[cfe-dev] clang cannot compile ARM assembly in libcxxabi/src/Unwind ?

Renato Golin renato.golin at linaro.org
Mon Aug 4 05:41:34 PDT 2014


Hi Ismail,

Don't remember to have seen this one before. Please fill a bug with
this, make it a dependency for 18926 and assign to me, I'll have a
look.

cheers,
--renato

On 4 August 2014 10:50, İsmail Dönmez <ismail at donmez.ws> wrote:
> Hi,
>
> Trying to compile libcxxabi on ARM/Linux with clang ToT, I get:
>
> cd /home/ismail/libcxxabi/build/src/Unwind && /havana/dist/llvm/bin/clang
> -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
> -D__STDC_LIMIT_MACROS -fPIC -Werror=date-time -ffunction-sections
> -fdata-sections -I/home/ismail/libcxxabi/include
> -I/home/ismail/libcxx/include    -UNDEBUG -fPIC -o
> CMakeFiles/unwind.dir/UnwindRegistersRestore.S.o   -c
> /home/ismail/libcxxabi/src/Unwind/UnwindRegistersRestore.S
> /home/ismail/libcxxabi/src/Unwind/UnwindRegistersRestore.S:350:24: error:
> unknown token in expression
>   ldc p11, cr0, [r0], {#0x20} @ fldmiad r0, {d0-d15}
>                        ^
> /home/ismail/libcxxabi/src/Unwind/UnwindRegistersRestore.S:350:24: error:
> illegal expression
>   ldc p11, cr0, [r0], {#0x20} @ fldmiad r0, {d0-d15}
>                        ^
> /home/ismail/libcxxabi/src/Unwind/UnwindRegistersRestore.S:361:24: error:
> unknown token in expression
>   ldc p11, cr0, [r0], {#0x21} @ fldmiax r0, {d0-d15}
>                        ^
> /home/ismail/libcxxabi/src/Unwind/UnwindRegistersRestore.S:361:24: error:
> illegal expression
>   ldc p11, cr0, [r0], {#0x21} @ fldmiax r0, {d0-d15}
>                        ^
> /home/ismail/libcxxabi/src/Unwind/UnwindRegistersRestore.S:372:25: error:
> unknown token in expression
>   ldcl p11, cr0, [r0], {#0x20} @ vldm r0, {d16-d31}
>                         ^
> /home/ismail/libcxxabi/src/Unwind/UnwindRegistersRestore.S:372:25: error:
> illegal expression
>   ldcl p11, cr0, [r0], {#0x20} @ vldm r0, {d16-d31}
>                         ^
>
> This works with the gnu as (tested using -no-integrated-as). Is this a known
> problem?
>
> Thanks!
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>




More information about the cfe-dev mailing list