[LLVMdev] llvm compilation of libc?

Gregory Malecha gmalecha at gmail.com
Thu Jun 23 13:18:20 PDT 2011


Hi Xi,

How did you compile it with clang? I ran into problems:

clang -emit-llvm -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
-DPACKAGE_VERSION=\"1.19.0\" -DPACKAGE_STRING=\"newlib\ 1.19.0\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I. -DMISSING_SYSCALL_NAMES
-fno-builtin     -DMISSING_SYSCALL_NAMES -fno-builtin   -O2 -c -o
lib_a-memcpy.o `test -f 'memcpy.S' || echo './'`memcpy.S
/tmp/cc-qoxxpO.s:51:3: error: invalid instruction mnemonic 'movntiq'
  movntiq % rax, (% rdi)
  ^
/tmp/cc-qoxxpO.s:52:3: error: invalid instruction mnemonic 'movntiq'
  movntiq % r8 , 8 (% rdi)
  ^
/tmp/cc-qoxxpO.s:53:3: error: invalid instruction mnemonic 'movntiq'
  movntiq % r9 , 16 (% rdi)
  ^
/tmp/cc-qoxxpO.s:54:3: error: invalid instruction mnemonic 'movntiq'
  movntiq % r10, 24 (% rdi)
  ^
/tmp/cc-qoxxpO.s:55:3: error: invalid instruction mnemonic 'movntiq'
  movntiq % r11, 32 (% rdi)
  ^
/tmp/cc-qoxxpO.s:56:3: error: invalid instruction mnemonic 'movntiq'
  movntiq % r12, 40 (% rdi)
  ^
/tmp/cc-qoxxpO.s:57:3: error: invalid instruction mnemonic 'movntiq'
  movntiq % r13, 48 (% rdi)
  ^
/tmp/cc-qoxxpO.s:58:3: error: invalid instruction mnemonic 'movntiq'
  movntiq % r14, 56 (% rdi)
  ^
/tmp/cc-qoxxpO.s:69:3: error: invalid instruction mnemonic 'movntiq'
  movntiq % rax, 64 (% rdi)
  ^
/tmp/cc-qoxxpO.s:70:3: error: invalid instruction mnemonic 'movntiq'
  movntiq % r8 , 72 (% rdi)
  ^
/tmp/cc-qoxxpO.s:71:3: error: invalid instruction mnemonic 'movntiq'
  movntiq % r9 , 80 (% rdi)
  ^
/tmp/cc-qoxxpO.s:72:3: error: invalid instruction mnemonic 'movntiq'
  movntiq % r10, 88 (% rdi)
  ^
/tmp/cc-qoxxpO.s:73:3: error: invalid instruction mnemonic 'movntiq'
  movntiq % r11, 96 (% rdi)
  ^
/tmp/cc-qoxxpO.s:74:3: error: invalid instruction mnemonic 'movntiq'
  movntiq % r12, 104 (% rdi)
  ^
/tmp/cc-qoxxpO.s:75:3: error: invalid instruction mnemonic 'movntiq'
  movntiq % r13, 112 (% rdi)
  ^
/tmp/cc-qoxxpO.s:76:3: error: invalid instruction mnemonic 'movntiq'
  movntiq % r14, 120 (% rdi)
  ^
make[2]: *** [lib_a-memcpy.o] Error 1

Thanks.

On Thu, Jun 23, 2011 at 6:55 AM, Xi Wang <xi.wang at gmail.com> wrote:

> I would recommend Newlib.  It's easy to configure and compile using Clang.
>
> http://sourceware.org/newlib/
>
> - xi
>
> On Jun 23, 2011, at 2:07 AM, Gregory Malecha wrote:
>
> > Hello,
> >
> > I'm wondering if anyone had any success (even a small amount) compiling
> any variant of libc to llvm bitcode?
> >
> > --
> > gregory malecha
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>



-- 
gregory malecha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110623/1ba4c26f/attachment.html>


More information about the llvm-dev mailing list