[LLVMdev] LLVM-gcc for ARM

Anton Korobeynikov anton at korobeynikov.info
Sun Jan 17 23:22:52 PST 2010


>> llvm-gcc HelloWorld.c
>> /home/LLVM/install/lib/gcc/arm-elf/4.2.1/../../../../arm-elf/bin/ld: this linker was not configured to use sysroots
>> collect2: ld returned 1 exit status
>>
>> I would appreciate some help from you.
>
> You have to pass --with-sysroot when building binutils too.
It might be easier just to build newlib during the build of llvm-gcc.
Also, I don't think libc is usable /exists for bare-metal target
(arm-elf/arm-eabi).

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list