GNU bug report logs - #17176
24.3.50; Problem with manifests on cygw32 build with new binutils

Previous Next

Package: emacs;

Reported by: Ken Brown <kbrown <at> cornell.edu>

Date: Wed, 2 Apr 2014 19:08:01 UTC

Severity: important

Found in version 24.3.50

Fixed in version 24.4

Done: Ken Brown <kbrown <at> cornell.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: kbrown <at> cornell.edu
Cc: 17176 <at> debbugs.gnu.org
Subject: bug#17176: 24.3.50; Problem with manifests on cygw32 build with new binutils
Date: Wed, 02 Apr 2014 23:59:07 +0300
> Date: Wed, 02 Apr 2014 23:29:35 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 17176 <at> debbugs.gnu.org
> 
> > Date: Wed, 02 Apr 2014 15:07:23 -0400
> > From: Ken Brown <kbrown <at> cornell.edu>
> > 
> > binutils has changed so that, on Cygwin, executables have a manifest 
> > built in by default.  A consequence is that the cygw32 build of emacs 
> > produces an emacs.exe which, after it is stripped, won't run:
> > 
> > $ ./emacs-stripped.exe
> > -bash: ./emacs-stripped.exe: cannot execute binary file
> > 
> > This is presumably caused by the fact that the cygw32 build already 
> > incorporates a manifest via nt/emacs.res.
> 
> Are you sure this is the cause?  If so, can you explain how stripping
> makes this problem rear its head?  What do you see in the .rsrc
> section in the unstripped and in stripped emacs.exe?

Also, what about those Cygwin users who didn't yet upgrade to this new
version of Binutils? they will be left with no manifest.

And are you sure the Cygwin manifest does everything our manifest
does?

If there's a linker switch to disable this automatic embedding of
Cygwin manifest, I'd suggest to use it, at least for emacs-24 branch.
That sounds like a better short-run solution.

Failing that, a configure-time test for this version of Binutils will
be needed, I think.




This bug report was last modified 11 years and 49 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.