<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">hi,<br><br>So...<br><br>I followed the following steps in order to compile the llvm-gcc frontend. The single problem is that mentioned in the previous message: <br><br>llvm-gcc HelloWorld.c<br>/home/LLVM/install/lib/gcc/arm-elf/4.2.1/../../../../arm-elf/bin/ld: this linker was not configured to use sysroots<br>collect2: ld returned 1 exit status<br><br>1. I have compiled the binutils for the arm-none-eabi target. Options:<br>--target=arm-none-eabi --enable-multilib --with-gnu-as --with-gnu-ld --disable-nls --disable-libssp <br><br>2. I have compiled the LLVM-gcc source code with the following options:<br>--target=arm-none-eabi --enable-llvm=path/to/llvm --with-arch=armv7-a --enable-languages=c --enable-multilib --with-newlib --enable-internetwork --without-headers --disable-shared --with-gnu-as --with-gnu-ld --disable-libssp <br><br>3. Next: taken newlib-1.17.0
 source code and configured with the following options:<br>--target=arm-none-eabi --eanble-multilib --with-gnu-as --with-gnu-ld --dlsable-nls --disable-libssp<br><br>4. finally have repeated the step 2, but with an extraoption:<br>--with-sysroot=/home/LLVM/build/arm-none-eabi/newlib/libc.<br><br> <br>What I am supposed to do next? you said that I have to recompile binutils with --with-sysroot option?<br><br>Thank you.<br><br><br>--- On <b>Sun, 1/17/10, Anton Korobeynikov <i><anton@korobeynikov.info></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Anton Korobeynikov <anton@korobeynikov.info><br>Subject: Re: [LLVMdev] LLVM-gcc for ARM<br>To: "Rafael Espindola" <espindola@google.com><br>Cc: "corina s" <corina_fff@yahoo.com>, llvmdev@cs.uiuc.edu<br>Date: Sunday, January 17, 2010, 11:22 PM<br><br><div class="plainMail">>> llvm-gcc
 HelloWorld.c<br>>> /home/LLVM/install/lib/gcc/arm-elf/4.2.1/../../../../arm-elf/bin/ld: this linker was not configured to use sysroots<br>>> collect2: ld returned 1 exit status<br>>><br>>> I would appreciate some help from you.<br>><br>> You have to pass --with-sysroot when building binutils too.<br>It might be easier just to build newlib during the build of llvm-gcc.<br>Also, I don't think libc is usable /exists for bare-metal target<br>(arm-elf/arm-eabi).<br><br>-- <br>With best regards, Anton Korobeynikov<br>Faculty of Mathematics and Mechanics, Saint Petersburg State University<br></div></blockquote></td></tr></table><br>