BUG: exec format error: emacs

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

BUG: exec format error: emacs

Ronald Fischer-6
When trying to run `emacs`, I get

 (on zsh) : zsh: exec format error: emacs
 (on bash): bash: /usr/bin/emacs: cannot execute binary file: Exec format error

Ronald

--
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

cygcheck.txt (305K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: BUG: exec format error: emacs

Ken Brown-6
On 1/17/2020 10:33 AM, Ronald Fischer wrote:
> When trying to run `emacs`, I get
>
>   (on zsh) : zsh: exec format error: emacs
>   (on bash): bash: /usr/bin/emacs: cannot execute binary file: Exec format error

Are you sure Cygwin's emacs is the first one in your path?  Cygwin's
/usr/bin/emacs should be a symlink:

$ ls -l /usr/bin/emacs
lrwxrwxrwx 1 kbrown-admin None 23 2019-03-21 18:11 /usr/bin/emacs ->
/etc/alternatives/emacs*

Ken

--
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

Reply | Threaded
Open this post in threaded view
|

Re: BUG: exec format error: emacs

Ronald Fischer-6


On Fri, Jan 17, 2020, at 17:16, Ken Brown wrote:
> On 1/17/2020 10:33 AM, Ronald Fischer wrote:
> > When trying to run `emacs`, I get
> >
> >   (on zsh) : zsh: exec format error: emacs
> >   (on bash): bash: /usr/bin/emacs: cannot execute binary file: Exec format error
>
> Are you sure Cygwin's emacs is the first one in your path?  

Well, at least you can see from the error message that /usr/bin/emacs is going to be executed.

> Cygwin's
> /usr/bin/emacs should be a symlink:

Actually, this is not the case:
$ ls -l /usr/bin/emacs
-rwxrwx---+ 1 FISRONA Domain Users 60 Apr 26  2019 /usr/bin/emacs

$ stat /usr/bin/emacs
  File: /usr/bin/emacs
  Size: 60              Blocks: 1          IO Block: 65536  regular file
Device: 38d54b25h/953502501d    Inode: 1407374883785092  Links: 1
Access: (0770/-rwxrwx---)  Uid: (3672028/ FISRONA)   Gid: (1049089/Domain Users)
Access: 2019-06-03 12:34:56.255711900 +0200
Modify: 2019-04-26 20:48:58.000000000 +0200
Change: 2019-06-03 12:34:56.255711900 +0200
 Birth: 2019-06-03 12:34:56.255711900 +0200

Two things I find of interest here: Although I have installed the new version using Cygwin's set-up program just a couple of days ago, the modify time goes back to 2019.

And the size is too small!

Ronald

--
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

Reply | Threaded
Open this post in threaded view
|

Re: BUG: exec format error: emacs

Ronald Fischer-6
In reply to this post by Ken Brown-6
I have now solved the problem by explicitly removing /usr/bin/emacs before re-installing it using Cygwin Setup. Now it indeed became a symlink (to /etc/alternatives/emacs).

Ronald

On Fri, Jan 17, 2020, at 17:16, Ken Brown wrote:

> On 1/17/2020 10:33 AM, Ronald Fischer wrote:
> > When trying to run `emacs`, I get
> >
> >   (on zsh) : zsh: exec format error: emacs
> >   (on bash): bash: /usr/bin/emacs: cannot execute binary file: Exec format error
>
> Are you sure Cygwin's emacs is the first one in your path?  Cygwin's
> /usr/bin/emacs should be a symlink:
>
> $ ls -l /usr/bin/emacs
> lrwxrwxrwx 1 kbrown-admin None 23 2019-03-21 18:11 /usr/bin/emacs ->
> /etc/alternatives/emacs*
>
> Ken
>
> --
> 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
>
>

--
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