<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt; " mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; ">Team,</div><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt; " mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt; " mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; ">Any takers here?<br style=""></div><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt; " mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt; " mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; "><font face="verdana, geneva" size="2" style=""><br></font></div><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt; " mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; "><font face="verdana, geneva" size="2" style="">[BUILD] bin/__divdi3.o</font></div><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt; " mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; "><font face="verdana, geneva" size="2" style=""><span mce_name="strong" mce_style="font-weight: bold;" style="font-weight: bold;" class="Apple-style-span" mce_fixed="1">cc1: error in backend: Global variable 'obj___divdi3' has an invalid section specifier '.provided': mach-o section specifier requires a segment and section separated by a comma.</span></font></div><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt; " mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; "><font face="verdana, geneva" size="2" style="">make: *** [bin/__divdi3.o] Error 1</font></div><div mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; "><font face="verdana, geneva" size="2"><div mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; " style=""><br style=""></div><div mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; " style="">This seems to be an issue with the section directive in src/include/compiler.h.  The only suspicious thing is that the section appears to be referenced differently for assembly vs. non-assembly modules:</div><div style="padding-left: 30px; ">#define PROVIDE_SYMBOL( _sym )                          \</div><div style="padding-left: 30px; ">        <b>.section ".provided", "a", @nobits ;</b></div><div mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; " style=""><br style=""></div><div mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; " style="">But seems to define this for non-assembly modules:</div><div style="padding-left: 30px; ">#define PROVIDE_SYMBOL( _sym )                          \</div><div style="padding-left: 30px; ">          __attribute__ (( <b>section ( ".provided" )</b> ))</div><div mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; " style=""><br></div><div mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; " style="">The format of the __attribute__ statement seems to be missing the section name that the original error is compaining about.  Toying with the contents of this statement yielded different errors but no real progress (e.g., 'section ( ".provided,a" )'.</div><div mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; " style=""><br></div><div mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; " style=""><br></div></font></div><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt; " mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; "><font face="verdana, geneva" size="2" style="">Any ideas?  I'm really out of my depth to troubleshoot this, but it smells close.</font></div><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt; " mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; "><font face="verdana, geneva" size="2" style=""><br></font></div><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt; " mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt; "><font face="verdana, geneva" size="2" style=""><br></font></div><blockquote id="replyBlockquote" webmail="1" style="color: black; font-family: verdana; font-size: 10pt; border-left-width: 2px; border-left-style: solid; border-left-color: blue; margin-left: 8px; padding-left: 8px; " mce_style="color: black; font-family: verdana; font-size: 10pt; border-left-width: 2px; border-left-style: solid; border-left-color: blue; margin-left: 8px; padding-left: 8px; "><div id="wmQuoteWrapper">-------- Original Message --------<br>
Subject: Unable to Make iPXE on Mac OSX 10.8.3<br>
From: "Richard D. Hornbaker" <<a href="mailto:Richard@Hornbaker.com">Richard@Hornbaker.com</a>><br>
Date: Thu, July 25, 2013 10:51 pm<br>
To: "iPXE Developers" <<a href="mailto:ipxe-devel@lists.ipxe.org">ipxe-devel@lists.ipxe.org</a>><br>
<br>
<span style="font-family:Verdana; color:#000000; font-size:10pt;" mce_style="font-family:Verdana; color:#000000; font-size:10pt;"><div><span style="font-family:Verdana; color:#000000; font-size:10pt;" mce_style="font-family:Verdana; color:#000000; font-size:10pt;"><div>All,</div><div><br></div><div>Redirecting from <a href="http://forum.ipxe.org/showthread.php?tid=6979" mce_href="http://forum.ipxe.org/showthread.php?tid=6979" title="http://forum.ipxe.org/showthread.php?tid=6979" target="_blank">http://forum.ipxe.org/showthread.php?tid=6979</a> at Robin's suggestion...</div><div><br></div><div><span style="">I'm trying to build this package on Mac OS 10.8.3 (command-line tools from Xcode 4.6.3), but getting an error during the make process. I've only found one hit on the forums, but no resolution - I've got the same issue:</span><br style=""><a href="http://forum.ipxe.org/showthread.php?tid=4559" mce_href="http://forum.ipxe.org/showthread.php?tid=4559" target="_blank" style="">http://forum.ipxe.org/showthread.php?tid=4559</a><br style=""><br style=""><span style="">$ make</span><br style=""><span mce_name="strong" mce_style="font-weight: bold;" style="font-weight: bold; " class="Apple-style-span" mce_fixed="1"><span style="">FATAL:/usr/bin/../libexec/as/x86_64/as: I don't understand '-' flag!</span><br style=""></span><span style="">[...]</span><br style=""><span style="">[DEPS] libgcc/__divdi3.c</span><br style=""><span style="">FATAL:/usr/bin/../libexec/as/x86_64/as: I don't understand '-' flag!</span><br style=""><span style="">[...]</span><br style=""><span style="">FATAL:/usr/bin/../libexec/as/x86_64/as: I don't understand '-' flag!</span><br style=""><span style="">[BUILD] bin/__divdi3.o</span><br style=""><span style="">In file included from <command-line>:0:</span><br style=""><span mce_name="strong" mce_style="font-weight: bold;" style="font-weight: bold;" class="Apple-style-span" mce_fixed="1"><span style="">./include/compiler.h:196:1: error: "__weak" redefined</span><br style=""></span><span style=""><built-in>: error: this is the location of the previous definition</span><br style=""><span style="">make: *** [bin/__divdi3.o] Error 1</span><br style=""><br style=""></div><div><br></div><div><span style="">I managed to narrow down the error to this shell call in Makefile.housekeeping:</span><br style=""><span style="">OLDGAS := $(shell $(AS) --version | grep -q '2\.9\.1' && $(ECHO) -DGAS291)</span><br style=""><br style=""><span style="">In this context, it looks like the "fatal" console error is probably cosmetic, and due to --version flag not being supported by 'as'.  The real hangup was this hard error:</span><br style=""><span style=""><span mce_name="strong" mce_style="font-weight: bold;" style="font-weight: bold;" class="Apple-style-span" mce_fixed="1">./include/compiler.h:196:1: error: "__weak" redefined</span></span><br style=""><br style=""><span style="">I searched for "__weak" and only got a hit in compiler.h for its definition.  I first tried making it conditional, then tried commenting it out, both with the same result (apparently it's being pre-defined somewhere outside of ipxe's source).  That pre-definition may in itself be a conflict, but getting past that error just revealed the next layer of the onion:</span><br style=""><br style=""><span style="">[BUILD] bin/__divdi3.o</span><br style=""><span style=""><span mce_name="strong" mce_style="font-weight: bold;" style="font-weight: bold;" class="Apple-style-span" mce_fixed="1">cc1: error in backend: Global variable 'obj___divdi3' has an invalid section specifier '.provided': mach-o section specifier requires a segment and section separated by a comma.</span></span><br style=""><span style="">make: *** [bin/__divdi3.o] Error 1</span><br style=""></div><div><br></div><div>At Robin's suggestion, I tried make NO_WERROR=1 with the same result.</div><div><br></div><div><br></div><div>I'm happy to be a test mule here to get this debugged.  Caveat: I'm a hack programmer, so a bit out of my element here; patience please. ;-)</div><div><br></div><div>It seems to me that a few things need to be fixed:</div><div>* Add some intelligence around the 'as' check to skip it on certain platforms like Xcode</div><div>* Figure out what's up with the pre-definition of __weak, and if that's an issue</div><div>* Linker error for .provided</div><div><br></div><div>Thanks,</div><div>Richard</div><div><br></div></span></div></span> 
</div>
</blockquote></span></body></html>