From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.devel Subject: Compiling (development) Emacs with MSVC Date: Mon, 6 Dec 2010 21:21:49 +0000 (UTC) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291670539 15620 80.91.229.12 (6 Dec 2010 21:22:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2010 21:22:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 06 22:22:12 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PPiVd-0006oB-Ls for ged-emacs-devel@m.gmane.org; Mon, 06 Dec 2010 22:22:09 +0100 Original-Received: from localhost ([127.0.0.1]:34986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPiVd-00033i-3T for ged-emacs-devel@m.gmane.org; Mon, 06 Dec 2010 16:22:09 -0500 Original-Received: from [140.186.70.92] (port=56415 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPiVX-0002yk-7X for emacs-devel@gnu.org; Mon, 06 Dec 2010 16:22:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPiVW-0003cN-16 for emacs-devel@gnu.org; Mon, 06 Dec 2010 16:22:03 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:58686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPiVV-0003cD-Rg for emacs-devel@gnu.org; Mon, 06 Dec 2010 16:22:01 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PPiVV-0006j2-0Y for emacs-devel@gnu.org; Mon, 06 Dec 2010 22:22:01 +0100 Original-Received: from abo-167-76-69.trs.modulonet.fr ([85.69.76.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Dec 2010 22:22:01 +0100 Original-Received: from fabrice.popineau by abo-167-76-69.trs.modulonet.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Dec 2010 22:22:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 85.69.76.167 (Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.215 Safari/534.10) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133473 Archived-At: Hi guys, Some of you may remember this thread : http://thread.gmane.org/gmane.emacs.devel/97959 This issue has been solved, the ASLR feature was not at stake and I have been using several variants of emacs 22.x compiled with msvc and linked to msvcrt.dll. I'm digging out this thread because I have been beaten by this very feature using the most recent msvc compiler (Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01) together with their linker (Microsoft (R) Incremental Linker Version 10.00.30319.01) This time, the ASLR feature is turned on _by default_ and the dumped emacs is not able to run (various function pointers off). Hint: use the /dynamicbase:no option to the linker. I have been able to compile the current emacs source tree with msvc/mscvcrt.dll (debug mode for the moment). It just works (almost) out of the box. I have been able to bootstrap and run the whole thing. Best regards, Fabrice