emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [feature/native-comp] breakage on build


From: Phillip Lord
Subject: Re: [feature/native-comp] breakage on build
Date: Fri, 05 Feb 2021 20:37:31 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Phillip Lord <phillip.lord@russet.org.uk>
>> Cc: akrl--- via "Emacs development discussions." <emacs-devel@gnu.org>,  Eli
>>  Zaretskii <eliz@gnu.org>
>> Date: Fri, 05 Feb 2021 10:05:21 +0000
>> 
>> It's ld/as not finding things that is causing the problem.
>
> What stuff do they fail to find?  Can you show the error messages?

Pretty much everything as far as I can tell.

Having added as.exe, ld.exe to the Emacs bin directory, and having
updated PATH and exec-path to include this directory (from inside Emacs
-- whether this is the long terms solution at the moment, I do not
care yet), I get this error.



   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.
ld: cannot find dllcrt2.o: No such file or directory
ld: cannot find crtbegin.o: No such file or directory
ld: cannot find -lmingw32
ld: cannot find -lgcc_s
ld: cannot find -lgcc
ld: cannot find -lmoldname
ld: cannot find -lmingwex
ld: cannot find -lmsvcrt
ld: cannot find -lkernel32
ld: cannot find -lpthread
ld: cannot find -ladvapi32
ld: cannot find -lshell32
ld: cannot find -luser32
ld: cannot find -lkernel32
ld: cannot find -lmingw32
ld: cannot find -lgcc_s
ld: cannot find -lgcc
ld: cannot find -lmoldname
ld: cannot find -lmingwex
ld: cannot find -lmsvcrt
ld: cannot find -lkernel32
ld: cannot find crtend.o: No such file or directory
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/cconv.el...
compiling to 
c:/Users/Administrator/AppData/Roaming/.emacs.d/eln-cache/28.0.50-14889799/cconv-3b1f1f98-c52b23db.eln
libgccjit.so: error: error invoking gcc driver
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")
  signal(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"))
  comp--native-compile("c:/msys64/home/Administrator/emacs-upload/emacs-28..." 
t)
  
load-with-code-conversion("c:/Users/ADMINI~1/AppData/Local/Temp/2/emacs-async..."
 "c:/Users/ADMINI~1/AppData/Local/Temp/2/emacs-async..." nil t)
  command-line-1(("-l" "c:/Users/ADMINI~1/AppData/Local/Temp/2/emacs-async..."))
  command-line()
  normal-top-level()



I have checked the library paths as well as I know how (gcc
--print-search-dirs). I have reformatted the output with some new lines
to make it readable.


** Search paths (broken)
   gcc --print-search-dirs
   install: 
c:/Users/Administrator/Desktop/emacs-28.0.50-snapshot-feature_native-comp-windows-2021-02-04/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/
   programs: 
=c:/Users/Administrator/Desktop/emacs-28.0.50-snapshot-feature_native-comp-windows-2021-02-04/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/;c:/Users/Administrator/Desktop/emacs-28.0.50-snapshot-feature_native-comp-windows-2021-02-04/bin/../lib/gcc/;c:/Users/Administrator/Desktop/emacs-28.0.50-snapshot-feature_native-comp-windows-2021-02-04/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/x86_64-w64-mingw32/10.2.0/;c:/Users/Administrator/Desktop/emacs-28.0.50-snapshot-feature_native-comp-windows-2021-02-04/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/

   libraries:
   
=c:/Users/Administrator/Desktop/emacs-28.0.50-snapshot-feature_native-comp-windows-2021-02-04/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/;
   
c:/Users/Administrator/Desktop/emacs-28.0.50-snapshot-feature_native-comp-windows-2021-02-04/bin/../lib/gcc/;
   
c:/Users/Administrator/Desktop/emacs-28.0.50-snapshot-feature_native-comp-windows-2021-02-04/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/lib/x86_64-w64-mingw32/10.2.0/;
   
c:/Users/Administrator/Desktop/emacs-28.0.50-snapshot-feature_native-comp-windows-2021-02-04/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/lib/../lib/;
   
c:/Users/Administrator/Desktop/emacs-28.0.50-snapshot-feature_native-comp-windows-2021-02-04/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../x86_64-w64-mingw32/10.2.0/;
   
c:/Users/Administrator/Desktop/emacs-28.0.50-snapshot-feature_native-comp-windows-2021-02-04/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../lib/;
   
D:/a/_temp/msys/msys64/mingw64/x86_64-w64-mingw32/lib/x86_64-w64-mingw32/10.2.0/;
   D:/a/_temp/msys/msys64/mingw64/x86_64-w64-mingw32/lib/../lib/;
   
c:/Users/Administrator/Desktop/emacs-28.0.50-snapshot-feature_native-comp-windows-2021-02-04/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/lib/;
   
c:/Users/Administrator/Desktop/emacs-28.0.50-snapshot-feature_native-comp-windows-2021-02-04/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../;
   D:/a/_temp/msys/msys64/mingw64/x86_64-w64-mingw32/lib/




The equivalent version for an Emacs run from mingw64 shell (which works
and JIT compiles), I get this.



** Search paths (working)

   gcc --print-search-dirs
install: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/
programs: 
=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/;C:/msys64/mingw64/bin/../lib/gcc/;C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/x86_64-w64-mingw32/10.2.0/;C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/

   libraries:
   =C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/;
   C:/msys64/mingw64/bin/../lib/gcc/;
   
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/lib/x86_64-w64-mingw32/10.2.0/;
   
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/lib/../lib/;
   
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../x86_64-w64-mingw32/10.2.0/;
   C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../lib/;
   
D:/a/_temp/msys/msys64/mingw64/x86_64-w64-mingw32/lib/x86_64-w64-mingw32/10.2.0/;D:/a/_temp/msys/msys64/mingw64/x86_64-w64-mingw32/lib/../lib/;
   
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/lib/;
   
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../;D:/a/_temp/msys/msys64/mingw64/x86_64-w64-mingw32/lib/





On a whim, I tried copying the contents on mingw64/lib/gcc to inside the
Emacs install. That doesn't seem to work.

Phil



reply via email to

[Prev in Thread] Current Thread [Next in Thread]