From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Nicolas_B=C3=A9rtolo?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] [WIP] Port feature/native-comp to Windows. Date: Sat, 9 May 2020 12:40:18 -0300 Message-ID: References: <5eb5b953.1c69fb81.a67ce.a764@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="7227"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 09 17:41:10 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jXRbC-0001nH-1m for ged-emacs-devel@m.gmane-mx.org; Sat, 09 May 2020 17:41:10 +0200 Original-Received: from localhost ([::1]:54260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXRbA-0001Pw-If for ged-emacs-devel@m.gmane-mx.org; Sat, 09 May 2020 11:41:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXRaa-0000pR-Bf for emacs-devel@gnu.org; Sat, 09 May 2020 11:40:32 -0400 Original-Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]:45013) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXRaZ-00081z-Gi for emacs-devel@gnu.org; Sat, 09 May 2020 11:40:32 -0400 Original-Received: by mail-oi1-x229.google.com with SMTP id a2so11049649oia.11 for ; Sat, 09 May 2020 08:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xckflZ4Nj9R53riJOuVuG+p/sCbbXukeXQ7EJwBnZnk=; b=DxDSrn+Iy0c41/WTu0qF1W7o1EA2WVzUqKJ4cJcOgCn9wMhbILJi6Xj75t1aYpfz7d sH/i87XOfZS83t8jszUPbmhTeUwbK3EtaNYLlYPvZDf2tnVIIy4KKNLmRrGd2g14nC80 ckD1ld+ZOwrH5P/hgtQhf3+yUWbwXrNFp/6tw/l2lrlNjSlrfE1SqKMst93MAmLKyMqs afcXkhekz+vrpEh/AdM9eyPFXT1qIYm+Ft9Xy233uzY6MzJ7vzLgdQt9oftNBbvZQFML 4Uo4jgrhQcpsek/h6fLcIPfCRuGWInpek/4wkEkYYMjzJ/WLWH/bmrWG+WjMD3F4LSsf aT3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xckflZ4Nj9R53riJOuVuG+p/sCbbXukeXQ7EJwBnZnk=; b=p9WEfQ+k2OM8HVhKUNNEwTUbokZty64TAmuoChdmKrOscnYDh6Hli2ed3jc5QWAJAi R+1Fr3eaocO8HCxogoxsgqjH+NxSg1PwjehEMcb/JqF+jZS2mIhjZTiX3uLOiE1SHOnX Z271sPdrMRkYlekYrJI6CpM5UKL+tHu53SEgN0J9fVnMePF6rQ7ygO7jKVwZ4l5SPylx z9slVZlgmjpdiUV/9cWvz8kD7FApQV7Ol5QKmZoSagsm8hNxigBIw8cFTkutKzDDgxRi QZB9YjXrcVUsX3peKHhYnFRSgaJpQkI7tvGK5pv8a+8h1QCM009lMVStrUFtyxfsL5qd qXLg== X-Gm-Message-State: AGi0PuZbjnCOQXdpqrnUo7I6dsfiM5ap7ebywZqOsNrE4//N4yQqHTv4 mOjvY1wOmNRWBkZc/XixZLYC1B5JTmycGb3dYhQIpAedqFn6ww== X-Google-Smtp-Source: APiQypKaymnSocQ1NwYRE/nOclPUs5cZOpFXH+GlEUDzcYvhtcG8FI6xCFtBydfJ06EDYNxe1AC9c5X/8/J6475snLk= X-Received: by 2002:a05:6808:98f:: with SMTP id a15mr14341841oic.65.1589038830275; Sat, 09 May 2020 08:40:30 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::229; envelope-from=nicolasbertolo@gmail.com; helo=mail-oi1-x229.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:249474 Archived-At: > I get a 404 now but IIRC he had to hack libgccjit too. Did you had to > modify that too or just works OOTB in Mingw64? I did. I followed his procedures. I will write a document specifying what I had to do in English. > Mmmh the .eln do not link against any library so I guess if the shared > libraries produced from the Mingw64 env are usable outside it should > work (I'm totally ignorant on windows related subject). They link against the crt (C runtime) and some core Windows libraries. As I replied to Eli, the main issue is that the assembler and linker expect to find some support files from the MSYS installation. The easiest way is to just run Emacs from a MSYS shell. Another way would be to create a "stub installation" of MSYS inside the emacs installation dir copying only the files that are necessary. The second way seems to be best, especially when you consider that shipping a full MSYS installation alongside emacs is not a good idea. PS: I don't understand why the freloc table is necessary. Is it impossible to rely on the dynamic linker to solve that when calling dlopen()? Nicolas