<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(171, 171, 171) solid;font-family:"Segoe UI WPC","Segoe UI",Tahoma,"Microsoft Sans Serif",Verdana,sans-serif;font-size:10pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(223, 237, 250);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 2px 4px 0px 4px;vertical-align:sub;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(223, 237, 250) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}.wf {speak:none; font-weight:normal; font-variant:normal; text-transform:none; -webkit-font-smoothing:antialiased; vertical-align:middle; display:inline-block;}.wf-family-owa {font-family:'o365Icons'}@font-face {  font-family:'o365IconsIE8';  src:url('prem/15.0.913.22/resources/styles/office365icons.ie8.eot?#iefix') format('embedded-opentype'),         url('prem/15.0.913.22/resources/styles/office365icons.ie8.woff') format('woff'),         url('prem/15.0.913.22/resources/styles/office365icons.ie8.ttf') format('truetype');  font-weight:normal;  font-style:normal;}@font-face {  font-family:'o365IconsMouse';  src:url('prem/15.0.913.22/resources/styles/office365icons.mouse.eot?#iefix') format('embedded-opentype'),         url('prem/15.0.913.22/resources/styles/office365icons.mouse.woff') format('woff'),         url('prem/15.0.913.22/resources/styles/office365icons.mouse.ttf') format('truetype');  font-weight:normal;  font-style:normal;}.wf-family-owa {font-family:'o365IconsMouse'}.ie8 .wf-family-owa {font-family:'o365IconsIE8'}.ie8 .wf-owa-play-large:before {content:'\e254';}.notIE8 .wf-owa-play-large:before {content:'\e054';}.ie8 .wf-owa-play-large {color:#FFFFFF/*$WFWhiteColor*/;}.notIE8 .wf-owa-play-large {border-color:#FFFFFF/*$WFWhiteColor*/; width:1.4em; height:1.4em; border-width:.1em; border-style:solid; border-radius:.8em; text-align:center; box-sizing:border-box; -moz-box-sizing:border-box; padding:0.1em; color:#FFFFFF/*$WFWhiteColor*/;}.ie8 .wf-size-play-large {width:40px; height:40px; font-size:30px}.notIE8 .wf-size-play-large {width:40px; height:40px; font-size:30px}--></style>
</head>
<body dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>I'll try and have a look at the nexus 5 target over the weekend. I won't be able to work on it before then.</p>
<p><br>
</p>
<p>-Mark<br>
</p>
<div style="color: rgb(40, 40, 40);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> llvmlinux-bounces@lists.linuxfoundation.org &lt;llvmlinux-bounces@lists.linuxfoundation.org&gt; on behalf of Behan Webster &lt;behanw@converseincode.com&gt;<br>
<b>Sent:</b> Thursday, November 13, 2014 2:48 PM<br>
<b>To:</b> Davide RombolÓ<br>
<b>Cc:</b> llvm &gt;&gt; Compiling the Linux Kernel with Clang/LLVM<br>
<b>Subject:</b> Re: [llvmlinux] compile linux kernel for ARM with Clang-3.6</font>
<div>&nbsp;</div>
</div>
<div>
<div class="moz-cite-prefix">The Nexus5 build is still a work in progress. Not yet working.<br>
<br>
However, the error message you've posted makes it appear that the x86 version of the assembler is being called instead of the ARM one. No doubt since it is a 3.4 kernel it doesn't have all the appropriate patches in place since we spend a lot more time on the
 mainline patches.<br>
<br>
Cross posting to the LLVMLinux list so that others who are interested might be able to help you.<br>
<br>
Behan<br>
<br>
On 11/13/14 10:13, Davide RombolÓ wrote:<br>
</div>
<blockquote type="cite">
<p dir="ltr">I'm on linux kernel 3.4 arch mach-msm (nexus 5), the error is:</p>
<p dir="ltr">/usr/bin/as: unrecognized option '-mfloat-abi=softfp' clang-3: error: assembler command failed with exit code 1</p>
<div class="gmail_quote">Il 13/nov/2014 18:43 &quot;Behan Webster&quot; &lt;<a href="mailto:behanw@converseincode.com">behanw@converseincode.com</a>&gt; ha scritto:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
          .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div bgcolor="#FFFFFF">
<div>On 11/13/14 03:42, Davide RombolÓ wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><font face="arial, helvetica, sans-serif">Hi!</font>
<div><font face="arial, helvetica, sans-serif">i'm trying to compile linux kernel for arm with clang-3.5.</font></div>
<div><font face="arial, helvetica, sans-serif">i followed this guide&nbsp;<a href="http://llvm.linuxfoundation.org/index.php/Main_Page" target="_blank">http://llvm.linuxfoundation.org/index.php/Main_Page</a> and all went ok.</font></div>
</div>
</blockquote>
Depending on which kernel version you are building, you will need a clang newer than 3.5. Currently only the pre 3.6 clang will work.<br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div><font face="arial, helvetica, sans-serif"><br>
</font></div>
<div><font face="arial, helvetica, sans-serif">On compilation clang gave me error on
<font color="#000000">&quot;<span style="line-height:16.7999992370605px; white-space:pre-wrap">-mfloat-abi=soft&quot; flag.</span></font></font></div>
</div>
</blockquote>
I'd have to see the error. But remember that the kernel can't use floating point opcodes (with very few exceptions).<br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div><font color="#000000" face="arial, helvetica,
                    sans-serif"><span style="line-height:16.7999992370605px; white-space:pre-wrap"><br>
</span></font></div>
<div><font face="arial, helvetica, sans-serif"><font color="#000000"><span style="line-height:16.7999992370605px; white-space:pre-wrap">this flag only apper in &quot;</span></font><font color="#000000"><span style="line-height:16.7999992370605px; white-space:pre-wrap">arch/arm/vfp/Makefile&quot;,
 i deleted it but clang still gave me the same error.</span></font></font></div>
<div><font color="#000000" face="arial, helvetica,
                    sans-serif"><span style="line-height:16.7999992370605px; white-space:pre-wrap"><br>
</span></font></div>
<div><font color="#000000" face="arial, helvetica,
                    sans-serif"><span style="line-height:16.7999992370605px; white-space:pre-wrap">Could you suggest me a solution for this?</span></font></div>
<div><font color="#000000" face="arial, helvetica,
                    sans-serif"><span style="line-height:16.7999992370605px; white-space:pre-wrap"><br>
</span></font></div>
<div><font color="#000000" face="arial, helvetica,
                    sans-serif"><span style="line-height:16.7999992370605px; white-space:pre-wrap">Thanks for your time,</span></font></div>
</div>
</blockquote>
Like I said, I'd need to see the error. I don't have enough info to be able to even guess.<br>
<br>
Behan<br>
<pre cols="72">-- 
Behan Webster
<a href="mailto:behanw@converseincode.com" target="_blank">behanw@converseincode.com</a></pre>
</div>
</blockquote>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Behan Webster
<a class="moz-txt-link-abbreviated" href="mailto:behanw@converseincode.com">behanw@converseincode.com</a></pre>
</div>
</div>
</div>
</body>
</html>