<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 7, 2019, at 00:24, Ankush Sharma via cfe-users <<a href="mailto:cfe-users@lists.llvm.org" class="">cfe-users@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Hi Team,<span class=""></span></div><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span class=""> </span></p><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">During the
linking stage for an “.so” file creation, an error message is being flagged by
clang.<span class=""></span></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><b class=""><span lang="EN-US" class="">ld: error: dummy.so: write: Function not
implemented<span class=""></span></span></b></div><p class="gmail-xmsonormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span lang="EN-US" class=""><span class=""> </span></span></p><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><span class="">I'm not able to make a sense out of this message as it seems different from an "undefined reference" error. 
<span lang="EN-US" class="">There are multiple occurrence of this message
during the<span class=""></span></span>

<span style="font-size:11pt;font-family:"Calibri",sans-serif" lang="EN-US" class="">linking process.</span>

</span></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">Also the
linking doesn’t complete and the output “.so” keeps on bloating reaching size
upto 1TB or 100s of GB. Manual<span class=""></span></span><span lang="EN-US" class=""> termination
is required to stop this process. </span><span style="font-size:11pt;font-family:"Calibri",sans-serif" lang="EN-US" class=""></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size:11pt;font-family:"Calibri",sans-serif" lang="EN-US" class=""><br class=""></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size:11pt;font-family:"Calibri",sans-serif" lang="EN-US" class="">Any leads would be appreciated.</span>



<br clear="all" class=""></div></div></div></blockquote></div><br class=""><div class="">Just a guess, but perhaps this is not a linking error at all. This looks to me like ld calling write() and the call itself returning ENOSYS. Is there something unusual about the filesystem you’re writing dummy.so to? If the write fails but the file size also increases, I wonder if what you’re seeing is some sort of I/O error. Anything exciting in dmesg and friends?</div></body></html>