<div dir="ltr"><div><div>Hi again,</div><div><br></div><div>After a long battle I managed to reach the final step (the cross building</div><div>of subsurface project) but somehow the linker fails. I receive a SEGV</div><div>when it tries to free some memory. I don't know if it is helpful</div><div>but you can find a dump here[1].</div><div><br></div><div>During the cross-compiling process I reached some issues and I will</div><div>write them here in hope that maybe they will we useful for other people</div><div>in the future:</div><div>- one of the issue is in libgit project (file tests/checkout/icase.c)</div><div>because they use an include directive for Windows header and on mingw</div><div>the header is with lower case. I made a pull request to fix that but</div><div>they have a problem with the CI environment so I don't know how much</div><div>it will take to accept the request[2].</div><div>- on OpenSuse there is a problem with the mingw64-libzip-devel </div><div>package(the zipconf header is not installed in the right place) and you</div><div>have to create manually a symbolic link in the</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/include/ directory.</div><div><br></div><div>I also made a list with all the mingw64 packages needed and updated</div><div>the INSTALL file. I believe that this will reduce the time of the</div><div>developers which tries for the first time to do a Linux to Windows</div><div>cross-compilation. You can find a patch attached to this e-mail.</div><div><br></div><div>If you have any idea on how I can fix the linking problem, please</div><div>let me know. As I said it before I have a OpenSuse 13.2-KDE-x86_64</div><div>platform. The linker version is GNU ld (GNU Binutils) 2.24.51.20140703.</div><div>and the version of mingw64-make is GNU Make 4.0.</div><div><br></div><div>For the moment I will skip the cross-building process and I will try</div><div>to finish my proposal and to discover other ways to contribute.</div><div><br></div><div>Best regards,</div><div>Claudiu</div><div><br></div><div>[1] - <a href="http://pastebin.com/MpqHVpJN">http://pastebin.com/MpqHVpJN</a></div><div>[2] - <a href="https://github.com/libgit2/libgit2/pull/2985">https://github.com/libgit2/libgit2/pull/2985</a></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 16, 2015 at 9:01 AM, Claudiu Olteanu <span dir="ltr"><<a href="mailto:olteanu.vasilica.claudiu@gmail.com" target="_blank">olteanu.vasilica.claudiu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div>Thanks for your responses. </div><div><br></div><div>Currently I use a OpenSuse distribution (13.2 - KDE - x86_64).</div><div><br></div><div>I will try to do the cross build when I will get back home and </div><div>I will let you know if it works. If not I can certainly look </div><div>over the scripts and try to make them work. In this way I will</div><div>expand my contribution to other areas.</div><div><br></div><div>If the things become pretty ugly I will raise a hand on the</div><div>IRC channel and call for help :-).</div><div><br></div><div>Cheers,</div><div>Claudiu</div></div></div>
</blockquote></div><br></div></div></div>