<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Here it is:</p>
<p><br>
</p>
<p></p>
<div>clang -v -fuse-ld=/usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/bin/ld -target arm-none-eabi -isystem /usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/include/ --static -mthumb -mcpu=cortex-m3 -D__USE_LPCOPEN -D__CODE_RED
-D__REDLIB__ -DCHIP_LPC175X_6X -DCORE_M3 -ffunction-sections -fdata-sections /home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0/config/arm/chips/lpc175x_6x/crp.c /home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0/config/arm/chips/lpc175x_6x/custom_clocking.c
-nostdlib -L/home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0/config/arm/chips/lpc175x_6x -L/usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/include -llpc_chip_175x_6x -T /home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0/config/arm/chips/lpc175x_6x/standalone.ld
-Wl,--gc-sections -Wl,--start-group -lc -lm -Wl,--end-group conftest.c </div>
<div><br>
</div>
<div> </div>
<div>clang version 6.0.0 (trunk 318625)</div>
<div>Target: arm-none--eabi</div>
<div>Thread model: posix</div>
<div>InstalledDir: /home/kg8280/work/programs/llvmCompilers/llvm5/build/bin</div>
<div> "/home/kg8280/work/programs/llvmCompilers/llvm5/build/bin/clang-6.0" -cc1 -triple thumbv7m-none--eabi -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name crp.c -static-define -mrelocation-model static -mthread-model
posix -mdisable-fp-elim -fmath-errno -no-integrated-as -mconstructor-aliases -nostdsysteminc -target-cpu cortex-m3 -target-feature +soft-float-abi -target-feature -crc -target-feature -dsp -target-feature -ras -target-feature -dotprod -target-feature -hwdiv-arm
-target-feature +hwdiv -target-feature +strict-align -target-abi aapcs -mfloat-abi soft -fallow-half-arguments-and-returns -dwarf-column-info -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -resource-dir /home/kg8280/work/programs/llvmCompilers/llvm5/build/lib/clang/6.0.0
-isystem /usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/include/ -D __USE_LPCOPEN -D __CODE_RED -D __REDLIB__ -D CHIP_LPC175X_6X -D CORE_M3 -internal-isystem /home/kg8280/work/programs/llvmCompilers/llvm5/build/lib/clang/6.0.0/include -internal-isystem
include -fdebug-compilation-dir /home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0 -ferror-limit 19 -fmessage-length 185 -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -o /tmp/crp-e2143b.o -x c /home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0/config/arm/chips/lpc175x_6x/crp.c</div>
<div>clang -cc1 version 6.0.0 based upon LLVM 6.0.0svn default target arm-none--eabi</div>
<div>ignoring duplicate directory "/home/kg8280/work/programs/llvmCompilers/llvm5/build/lib/clang/6.0.0/include"</div>
<div>#include "..." search starts here:</div>
<div>#include <...> search starts here:</div>
<div> /usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/include</div>
<div> /home/kg8280/work/programs/llvmCompilers/llvm5/build/lib/clang/6.0.0/include</div>
<div> include</div>
<div>End of search list.</div>
<div> "/home/kg8280/work/programs/llvmCompilers/llvm5/build/bin/clang-6.0" -cc1 -triple thumbv7m-none--eabi -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name custom_clocking.c -static-define -mrelocation-model static
-mthread-model posix -mdisable-fp-elim -fmath-errno -no-integrated-as -mconstructor-aliases -nostdsysteminc -target-cpu cortex-m3 -target-feature +soft-float-abi -target-feature -crc -target-feature -dsp -target-feature -ras -target-feature -dotprod -target-feature
-hwdiv-arm -target-feature +hwdiv -target-feature +strict-align -target-abi aapcs -mfloat-abi soft -fallow-half-arguments-and-returns -dwarf-column-info -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -resource-dir /home/kg8280/work/programs/llvmCompilers/llvm5/build/lib/clang/6.0.0
-isystem /usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/include/ -D __USE_LPCOPEN -D __CODE_RED -D __REDLIB__ -D CHIP_LPC175X_6X -D CORE_M3 -internal-isystem /home/kg8280/work/programs/llvmCompilers/llvm5/build/lib/clang/6.0.0/include -internal-isystem
include -fdebug-compilation-dir /home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0 -ferror-limit 19 -fmessage-length 185 -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -o /tmp/custom_clocking-9db145.o -x c /home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0/config/arm/chips/lpc175x_6x/custom_clocking.c</div>
<div>clang -cc1 version 6.0.0 based upon LLVM 6.0.0svn default target arm-none--eabi</div>
<div>ignoring duplicate directory "/home/kg8280/work/programs/llvmCompilers/llvm5/build/lib/clang/6.0.0/include"</div>
<div>#include "..." search starts here:</div>
<div>#include <...> search starts here:</div>
<div> /usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/include</div>
<div> /home/kg8280/work/programs/llvmCompilers/llvm5/build/lib/clang/6.0.0/include</div>
<div> include</div>
<div>End of search list.</div>
<div> "/home/kg8280/work/programs/llvmCompilers/llvm5/build/bin/clang-6.0" -cc1 -triple thumbv7m-none--eabi -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name conftest.c -static-define -mrelocation-model static -mthread-model
posix -mdisable-fp-elim -fmath-errno -no-integrated-as -mconstructor-aliases -nostdsysteminc -target-cpu cortex-m3 -target-feature +soft-float-abi -target-feature -crc -target-feature -dsp -target-feature -ras -target-feature -dotprod -target-feature -hwdiv-arm
-target-feature +hwdiv -target-feature +strict-align -target-abi aapcs -mfloat-abi soft -fallow-half-arguments-and-returns -dwarf-column-info -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -resource-dir /home/kg8280/work/programs/llvmCompilers/llvm5/build/lib/clang/6.0.0
-isystem /usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/include/ -D __USE_LPCOPEN -D __CODE_RED -D __REDLIB__ -D CHIP_LPC175X_6X -D CORE_M3 -internal-isystem /home/kg8280/work/programs/llvmCompilers/llvm5/build/lib/clang/6.0.0/include -internal-isystem
include -fdebug-compilation-dir /home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0 -ferror-limit 19 -fmessage-length 185 -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -o /tmp/conftest-22236c.o -x c conftest.c</div>
<div>clang -cc1 version 6.0.0 based upon LLVM 6.0.0svn default target arm-none--eabi</div>
<div>ignoring duplicate directory "/home/kg8280/work/programs/llvmCompilers/llvm5/build/lib/clang/6.0.0/include"</div>
<div>#include "..." search starts here:</div>
<div>#include <...> search starts here:</div>
<div> /usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/include</div>
<div> /home/kg8280/work/programs/llvmCompilers/llvm5/build/lib/clang/6.0.0/include</div>
<div> include</div>
<div>End of search list.</div>
<div> "/usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/bin/ld" /tmp/crp-e2143b.o /tmp/custom_clocking-9db145.o -llpc_chip_175x_6x --gc-sections --start-group -lc -lm --end-group /tmp/conftest-22236c.o -Bstatic -L/home/kg8280/work/programs/llvmCompilers/llvm5/build/lib/clang/6.0.0/lib/baremetal
-L/home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0/config/arm/chips/lpc175x_6x -L/usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/include -T /home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0/config/arm/chips/lpc175x_6x/standalone.ld
-o a.out</div>
<div>/usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/bin/ld: cannot find -lc</div>
<div>/usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/bin/ld: cannot find -lm</div>
<div>clang-6.0: error: ld.lld command failed with exit code 1 (use -v to see invocation)</div>
<br>
<p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Jonathan Roelofs <jonathan@codesourcery.com><br>
<b>Sent:</b> 21 November 2017 17:11:42<br>
<b>To:</b> Kyriakos Georgiou; cfe-dev@lists.llvm.org<br>
<b>Subject:</b> Re: [cfe-dev] How to configure clang to use arm-none-eabi linker</font>
<div> </div>
</div>
<div style="background-color:#FFFFFF">
<p><br>
</p>
<br>
<div class="x_moz-cite-prefix">On 11/21/17 10:01 AM, Kyriakos Georgiou wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hi Jon,</p>
<p><br>
</p>
<p>I tried this and I am getting:</p>
</div>
</blockquote>
<br>
I'd need your entire clang invocation, plus '-v'.<br>
<br>
<br>
Jon<br>
<br>
<blockquote type="cite">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p><br>
</p>
<div>/usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/bin/ld: cannot find -lc</div>
<div>/usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/bin/ld: cannot find -lm</div>
<div>clang-6.0: error: ld.lld command failed with exit code 1 (use -v to see invocation)</div>
<div><br>
</div>
<p>Is this similar to this bug?</p>
<p><a href="https://www.mail-archive.com/llvm-bugs@lists.llvm.org/msg14451.html" class="x_OWAAutoLink">https://www.mail-archive.com/llvm-bugs@lists.llvm.org/msg14451.html</a><br>
</p>
<p><br>
</p>
<p>Kind Regards,</p>
<p>Kyriakos</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Jonathan Roelofs
<a class="x_moz-txt-link-rfc2396E" href="mailto:jonathan@codesourcery.com"><jonathan@codesourcery.com></a><br>
<b>Sent:</b> 21 November 2017 16:13:45<br>
<b>To:</b> Kyriakos Georgiou; <a class="x_moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">
cfe-dev@lists.llvm.org</a><br>
<b>Subject:</b> Re: [cfe-dev] How to configure clang to use arm-none-eabi linker</font>
<div> </div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="x_PlainText"><br>
<br>
On 11/21/17 8:38 AM, Kyriakos Georgiou via cfe-dev wrote:<br>
> I am trying to configure the last version of clang (6.0) to use the <br>
> arm-none-eabi linker instead of the ld.lld but clang is always ignoring <br>
> everything and keep asking for the ld.lld one. I am trying to build for <br>
> cortex-m3 (lpx1769 board). How do I force clang to use the linker I want?<br>
> <br>
> -fuse-ld=ld is also not working, so does clang no longer allow the use <br>
> of any other linker?<br>
<br>
-fuse-ld=path/to/arm-none-eabi-ld<br>
<br>
> <br>
> Thank you,<br>
> <br>
> Kyriakos<br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a class="x_moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
> <br>
<br>
-- <br>
Jon Roelofs<br>
<a class="x_moz-txt-link-abbreviated" href="mailto:jonathan@codesourcery.com">jonathan@codesourcery.com</a><br>
CodeSourcery / Mentor Embedded / Siemens<br>
</div>
</span></font></div>
</blockquote>
<br>
<pre class="x_moz-signature" cols="72">--
Jon Roelofs
<a class="x_moz-txt-link-abbreviated" href="mailto:jonathan@codesourcery.com">jonathan@codesourcery.com</a>
CodeSourcery / Mentor Embedded / Siemens</pre>
</div>
</body>
</html>