From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: [feature/native-comp] breakage on build Date: Thu, 04 Feb 2021 23:32:09 +0000 Message-ID: References: <87lfca7lsb.fsf@russet.org.uk> <463a837ca8ddbf7533c403350d75125d@russet.org.uk> <39105f71034e0902a749994dda9c4704@russet.org.uk> <83mtwq8kf3.fsf@gnu.org> <83k0ru8jnx.fsf@gnu.org> <83im7e8icf.fsf@gnu.org> <838s8a8adr.fsf@gnu.org> <83sg6h6s6d.fsf@gnu.org> <8335yf7qtf.fsf@gnu.org> <831rdy5i2r.fsf@gnu.org> <87y2g5p0q8.fsf@russet.org.uk> <87im7799s9.fsf@russet.org.uk> <87wnvn5yoz.fsf@russet.org.uk> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31927"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: akrl--- via "Emacs development discussions." , Eli Zaretskii To: Phillip Lord Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 05 00:33:04 2021 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 1l7o7U-0008Br-MM for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Feb 2021 00:33:04 +0100 Original-Received: from localhost ([::1]:47108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7o7T-0006MG-ON for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Feb 2021 18:33:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7o6z-0005wj-9X for emacs-devel@gnu.org; Thu, 04 Feb 2021 18:32:33 -0500 Original-Received: from mab.sdf.org ([205.166.94.33]:52322 helo=ma.sdf.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7o6w-0008Dg-6c; Thu, 04 Feb 2021 18:32:33 -0500 Original-Received: from akrl by ma.sdf.org with local (Exim 4.92) (envelope-from ) id 1l7o6b-0001h4-Vu; Thu, 04 Feb 2021 23:32:10 +0000 In-Reply-To: <87wnvn5yoz.fsf@russet.org.uk> (Phillip Lord's message of "Thu, 04 Feb 2021 21:07:40 +0000") Received-SPF: pass client-ip=205.166.94.33; envelope-from=akrl@sdf.org; helo=ma.sdf.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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:263927 Archived-At: Phillip Lord writes: > Andrea Corallo writes: > >> Phillip Lord writes: >> >> >>> >>> Compiling c:/msys64/home/Administrator/emacs-upload/emacs-28.0.50-snapshot-feature_native-comp-windows-2021-02-04/share/emacs/28.0.50/lisp/emacs-lisp/cl-lib.el... >>> compiling to c:/Users/Administrator/AppData/Roaming/.emacs.d/eln-cache/28.0.50-14889799/cl-lib-8b938900-d1df28b7.eln >>> x86_64-w64-mingw32-gcc-10.2.0: fatal error: cannot execute 'as': CreateProcess: No such file or directory >>> compilation terminated. >> >> Mmmh ATM I don't know why the internal GCC driver is not finding as, >> might be for one of these env vars [1]? >> >>> >>> I've tried putting as.exe manually into the package but that isn't >>> enough. as.exe doesn't seem to have any dll dependencies itself. >>> >>> Andrea what other tools does native-comp require to have around? Is >>> there a good way to debug the compilation process, so I can work out >>> what the file missing is? >> >> I'd say linker and assembler. >> >> I think if we don't solve with the mentioned env vars or we are unappy >> with the solution these are really questions for jit@gcc.gnu.org. > > > I've tried adding ld.exe and as.exe, and altering the path (at runtime > which Eli says is bad). > > I am now getting this error message; it's different so that's obviously > part of the problem. > > Warning (comp): Debugger entered--Lisp error: (native-ice > "c:/msys64/home/Administrator/emacs-upload/emacs-28..." "failed to > compile" "c:/Users/Administrator/AppData/Roaming/.emacs.d/el..." > "error invoking gcc driver") Disable showing Disable logging > > > I'm try following up on jit@gcc as you suggest. They may well know what > I need for a minimal functional install. Once I have that, I can work > out how to achieve it in the package. At this rate, though, I fear that > I am moving back to shipping half of msys. Hi Phillip, you should see the full error in the *Async-native-compile-log* buffer. That said I'd suggest if possible to try to package the simplest libgccjit "hello world" [1] to investigate what's needed for that to run, collecting errors and debugging will be quicker, same for reporting to the libgccjit mailing list in case. Thanks for your effort! Andrea [1]