<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, Roy,<br><div><div>On Jan 21, 2013, at 11:31 PM, Roy Liu <<a href="mailto:royliu@macports.org">royliu@macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Vasily,<div><br></div><div style="">Your patch worked like a charm! I am in your debt, as this issue has dragged on for months. This is the commit I made to the MacPorts trunk.</div><div style=""><br></div><div style="">
<a href="http://trac.macports.org/changeset/101907">http://trac.macports.org/changeset/101907</a><br></div><div style=""><br></div><div style="">Also, please find the relevant patch attached. It's basically your fix, with the LLVMGCC42 to APPLEGCC42 replacement done in place. Does it look OK to you?</div>
<div style=""><br></div></div></blockquote><div>Thanks for testing ;).</div><div><br></div>Yes, change set looks good. <br><br><blockquote type="cite"><div dir="ltr"><div style="">I have a lingering question about the addition of the two lines in kLdrModMachO.c and mach-o.h. What is their purpose, in light of using   Apple GCC 4.2 instead of the LLVM toolchain?</div></div></blockquote><div><br></div><div>These, load commands appears when ld from Apple gcc is involved in R0 module linking. At runtime these modules are loaded with VBox's loader which having no instructions about processing them just aborted loading. Fortunately, this load commands are ignorable so the change was really small. </div><br><blockquote type="cite"><div dir="ltr">
<div style=""><br></div><div style="">Thanks again and regards,</div><div style="">Roy</div><div style=""><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 17, 2013 at 7:46 PM, Vasily Levchenko <span dir="ltr"><<a href="mailto:vasily.levchenko@oracle.com" target="_blank">vasily.levchenko@oracle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi, Roy, </div><div>Could you please check whether the attached patch fixes issue for you?</div>
Note: <div>it also required specifying </div><div><br></div><div><div> VBOX_GCC_TOOL=APPLEGCC42</div><div> VBOX_GXX_TOOL=APPLEGCC42</div><div> TEMPLATE_VBOXBLDPROG_TOOL=APPLEGCC42</div><div>in kmk <command line> or in LocalConfig.kmk </div>
<div><br></div><div><div class="im"><div>On Jan 18, 2013, at 12:47 AM, Roy Liu <<a href="mailto:royliu@macports.org" target="_blank">royliu@macports.org</a>> wrote:</div><br><blockquote type="cite"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">I reported on this issue a while back, and we seem to have made some progress on the issue.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div></div></blockquote><br><blockquote type="cite"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px"><a href="http://trac.macports.org/ticket/36910" target="_blank">http://trac.macports.org/ticket/36910</a><br>

</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">The culprit seems to be a recent version of the ld64 linker. I am curious: What compiler toolchain is the official Mac OS X distribution of VirtualBox built with? </div>
</div></blockquote><div><br></div></div><div>Your suspicious looks right. And Config.xml code contains the check whether version of Xcode is lower than 4.2. </div><div class="im"><br><blockquote type="cite"><div dir="ltr">
<div style="font-family:arial,sans-serif;font-size:13px">This information may help us pinpoint the source of the issue.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">-Roy</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div></div></blockquote>
</div></div></div></div><br><div style="word-wrap:break-word"><div><blockquote type="cite">
_______________________________________________<br>vbox-dev mailing list<br><a href="mailto:vbox-dev@virtualbox.org" target="_blank">vbox-dev@virtualbox.org</a><br><a href="https://www.virtualbox.org/mailman/listinfo/vbox-dev" target="_blank">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a><br>
</blockquote></div><br></div>
<br></blockquote></div><br></div>
<span><patch-apple-gcc42.diff></span></blockquote></div><br></body></html>