<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace;color:#0000ff">Wow, what a pain! - thanks for sharing</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 4, 2014 at 3:38 AM, Stephen Kelly <span dir="ltr"><<a href="mailto:steveire@gmail.com" target="_blank">steveire@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I discussed a bit off-list with José, and discovered that a colleague could successfully run apitrace on a mac, and discovered I could create a new user account on mine which could run it.<div><br></div><div>I then realized that the problem was I had DYLD_IMAGE_SUFFIX=_debug in my environment. Removing that fixed the problem. Maybe apitrace could check that and issue an informative error message.</div><div><br></div><div>Also, the Qt5 branch in the repo should maybe be rebased :).</div><div><br></div><div>Thanks,</div><div><br></div><div>Steve.</div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 2, 2014 at 11:58 AM, José Fonseca <span dir="ltr"><<a href="mailto:jose.r.fonseca@gmail.com" target="_blank">jose.r.fonseca@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Tue, Dec 2, 2014 at 9:49 AM, Stephen Kelly <span dir="ltr"><<a href="mailto:steveire@gmail.com" target="_blank">steveire@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Zack Rusin <zack <at> <a href="http://kde.org/" target="_blank">kde.org</a>> writes:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">> </div><div style="font-family:arial,sans-serif;font-size:13px">> On Mon, Dec 1, 2014 at 2:20 PM, José Fonseca <jose.r.fonseca <at> <a href="http://gmail.com/" target="_blank">gmail.com</a>> wrote:I never tried building with the "Xcode" generator. I always use the default "Unix Makefiles" generator.</div><span><span style="font-family:arial,sans-serif;font-size:13px"><div>> Does the issue happen with the Unix Makefiles cmake generator too?</div><div>> </div><div>> </div><div>> Nah, those work correctly. Xcode generator has been broken for a while (maybe even always). I use 'ninja' because it's faster than the alternatives but both unix makefiles and ninja work fine.</div><div><br></div></span></span><div style="font-family:arial,sans-serif;font-size:13px">Ok, I tried the makefiles generator again and I got it to build. I think the problem I hit before was a bad clang installation.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">However, it doesn't work for me:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"> ~/dev/src/apitrace/build (master) $ ./apitrace trace ~/dev/prefix/bin/qmlscene</div><div style="font-family:arial,sans-serif;font-size:13px"> apitrace: loaded into /Users/ske/dev/prefix/bin/qmlscene</div><div style="font-family:arial,sans-serif;font-size:13px"> apitrace: tracing to /Users/ske/dev/src/apitrace/build/qmlscene.trace</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"> ~/dev/src/apitrace/build (master) $ DYLD_FRAMEWORK_PATH=$PWD/wrappers ~/dev/prefix/bin/qmlscene</div><div style="font-family:arial,sans-serif;font-size:13px"> apitrace: loaded into /Users/ske/dev/prefix/bin/qmlscene</div><div style="font-family:arial,sans-serif;font-size:13px"> apitrace: tracing to /Users/ske/dev/src/apitrace/build/qmlscene.1.trace</div><div style="font-family:arial,sans-serif;font-size:13px"> Segmentation fault: 11</div><div style="font-family:arial,sans-serif;font-size:13px"> ~/dev/src/apitrace/build (master) $ l $PWD/wrappers/</div><div style="font-family:arial,sans-serif;font-size:13px"> CMakeFiles          Makefile            OpenGL.framework    cgltrace.cpp        cmake_install.cmake</div><div style="font-family:arial,sans-serif;font-size:13px"> ~/dev/src/apitrace/build (master) $ </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Any guidance from here?</div></div></blockquote><div><br></div></span><div>Pull the latest changes (in order to pick up <a href="https://github.com/apitrace/apitrace/commit/8695c248b5347120bf56c3d1a3a8493d791ea712" target="_blank">https://github.com/apitrace/apitrace/commit/8695c248b5347120bf56c3d1a3a8493d791ea712</a> ) and do<br></div><br><div>   ./apitrace trace --verbose --debug ~/dev/prefix/bin/qmlscene<br><br></div><div>to run inside LLDB and provide the stack back trace.<br><br></div><span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial;font-size:small"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial;font-size:small">For example, is there a requirement that apitrace and Qt (and anything else - what else?) is compiled with the same compiler? </span></div></div></blockquote><div><br></div></span><div>No.<br> <br></div><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial;font-size:small">In this case, Qt and apitrace are compiled with the same compiler, (a self-built clang), but if there are other dependencies coming from the system, then they were not compiled with the same compiler.</span><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">Is there a simpler testcase available than Qt?</div><div><br></div></div><br></div></blockquote><div><br></div></span><div>Yeah, there's a test suite composed of simple test cases on <a href="https://github.com/apitrace/apitrace-tests" target="_blank">https://github.com/apitrace/apitrace-tests</a> and I run it continuously on MacOSX.<br><br>Jose <br></div></div></div></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
apitrace mailing list<br>
<a href="mailto:apitrace@lists.freedesktop.org">apitrace@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/apitrace" target="_blank">http://lists.freedesktop.org/mailman/listinfo/apitrace</a><br>
<br></blockquote></div><br></div>