delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/02/14/15:02:49

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:subject:date:in-reply-to
:references:content-type:content-transfer-encoding:mime-version;
q=dns; s=default; b=OBMmwY6YcgJHDMuFQjorNQEqUaFYiapRJUUi5BX2Hvy
vwtczUUSNX2gu4JIVZMQcMeBuwtmGFwGBCmcz5MSfJrhT42aowx2pGZqg2zSKTrq
F9TRWvAf4k00R3TR/5czncxnSbUGhLwcdkRbJuyZlQ7zcrY6tptNPvK3UuRk6gA8
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:subject:date:in-reply-to
:references:content-type:content-transfer-encoding:mime-version;
s=default; bh=i1Q1ZXUhDJH2Z/OHPgxKRlcqijA=; b=Gh8uwxcd2vGT6Zqss
bNVv7maLWUqLyTBWmJ8leaAm8WOT/bHKpiBmpIvDj7elytxR/1bpzKGknXi7AXBm
XBD4y/aUfPx1HkdCYb9eIjXrT/6Srhk7HixLVe4J00VN17MGMdfgeVrYDoq0R7NW
lWvG1e6tCAOXsY3xJgDH7DqR54=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=julia, mcjit, Julia, stub
X-HELO: BAY004-OMC1S8.hotmail.com
X-TMN: [hge9tpElzA4BP0ecZmadIGnG0uOGDpGd]
Message-ID: <BAY169-W81E193B5307A709D14CBA4A7AB0@phx.gbl>
From: Tony Kelman <tony AT kelman DOT net>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: [ANNOUNCEMENT] Assorted MinGW-w64 toolchain libraries and tools
Date: Sun, 14 Feb 2016 12:02:29 -0800
In-Reply-To: <BAY169-W1394D7AC30EB8F5CC92A73BA7A80@phx.gbl>
References: <announce DOT 56BB74B0 DOT 8010306 AT cygwin DOT com> <loom DOT 20160210T212108-245 AT post DOT gmane DOT org>,<56BBDCBE DOT 2050208 AT cygwin DOT com>,<BAY169-W1394D7AC30EB8F5CC92A73BA7A80 AT phx DOT gbl>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u1EK2jCT016019

>> LLVM/Clang version bumps are time-consuming to get right. I actually
>> looked at 3.6, but MCJIT did not work OOTB with PE/COFF targets. I'll
>> have to see what the story is with 3.7.
>
> Understandable. 3.8 is in RC right now so maybe try building the
> release_38 branch if you get to it soon, otherwise wait a few weeks.
> I'm trying to figure out how to cross-build mingw llvm via cmake
> now that they've deprecated autotools (it's still there in 3.8 with
> a warning, but has been deleted on trunk which will become 3.9).

Okay, just FYI, building LLVM 3.8 or newer will fail with a win32-threads
build of mingw-w64 unless you build with LLVM_ENABLE_THREADS=0
and completely stub out lib/Support/ThreadPool.cpp. We're using MCJIT
(actually the new ORCJIT) in Julia and it's slower than the old JIT but
mostly works.

> I'll check your i686-libgit2 package soon, but I suspect it may be
> affected by https://github.com/libgit2/libgit2/issues/3342 and need
> to be built with -mincoming-stack-boundary=2

Confirmed.

$ echo '#include "git2.h"
void main() {
    git_repository* repo_ptr = NULL;
    char* repo_url = "https://github.com/JuliaLang/Example.jl";
    char* repo_path = "Example.Bare";
    git_clone_options clone_opts = GIT_CLONE_OPTIONS_INIT;
    clone_opts.bare = 1;
    git_libgit2_init();
    git_clone(&repo_ptr, repo_url, repo_path, &clone_opts);
    git_libgit2_shutdown();
}'> clonetest.c

Tony AT LAPTOP-O230JCFF ~
$ i686-w64-mingw32-gcc -L/usr/i686-w64-mingw32/sys-root/mingw/bin \
  -lgit2 clonetest.c -g -o /usr/i686-w64-mingw32/sys-root/mingw/bin/clonetest.exe

Tony AT LAPTOP-O230JCFF ~
$ gdb -q /usr/i686-w64-mingw32/sys-root/mingw/bin/clonetest.exe
Reading symbols from /usr/i686-w64-mingw32/sys-root/mingw/bin/clonetest.exe...done.
(gdb) r
Starting program: /usr/i686-w64-mingw32/sys-root/mingw/bin/clonetest.exe
[New Thread 8788.0x794]
[New Thread 8788.0x209c]
[New Thread 8788.0x638]
[New Thread 8788.0x123c]

Program received signal SIGSEGV, Segmentation fault.
0x6ccf9188 in libgit2!git_filebuf_commit ()
   from /usr/i686-w64-mingw32/sys-root/mingw/bin/libgit2.dll

(be sure to `rm -rf Example.Bare` between runs of this test program)


 		 	   		  
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019