From: Dani Moncayo <dmoncayo@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: Building Emacs from a new MinGW environment
Date: Sat, 14 Sep 2013 21:57:26 +0200 [thread overview]
Message-ID: <CAH8Pv0iVUqOEqx+eY-BsKpp6_a4tVNwTvxFDHRMaQMeyp09Gig@mail.gmail.com> (raw)
In-Reply-To: <83k3ijfhk0.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1985 bytes --]
> What is the value of srcdir in top-level Makefile?
it is
/home/dani/emacs/emacs.git
and FWIW, msys_to_w32 is
sed -e 's,\\,/,g' -e 's,^/\([A-Za-z]\)/,\1:/,'
and strangely the printed value of w32srcdir is an empty string. It
strange because:
* The output of the command employed to produce its value (echo
"${srcdir}" | ${msys_to_w32}) is "/home/dani/emacs/emacs.git".
* The occurrences of "@SRC@" in epaths.nt are actually replaced by
that string ("/home/dani/emacs/emacs.git") when written to epaths.h.
I'm attaching the diff between these two files.
BTW, I don't understand why there are two "$" in
"/^.*#/s|@SRC@|$${w32srcdir}|g", unlike the two previous lines (which
should be similar, I think).
>> > set auto-load safe-path c:/msys/home/dani
>> >
>> > (I always disable this nuisance by using "/" as the argument.)
>>
>> I just tried that too. The warning disappears, but the xtype/xstring
>> commands remain undefined.
>
> "source ./gdbinit" inside GDB should do the trick.
Doing "source ./.gdbinit" didn't solve the problem, but I saw that the
contents of that file ("src/.gdbinit" from the build directory) are
this single line:
source /home/dani/emacs/emacs.git/src/.gdbinit
so it occurred to me that perhaps giving that command to gdb could do
the trick. And yes, it did. So here we go:
> If that doesn't work, perhaps PATH_DUMPLOADSEARCH has the wrong value
> (it comes from src/epaths.h). If PATH_DUMPLOADSEARCH looks OK (it
> should not have any %emacs_dir% in it, then look at the value of 'tem'
> 3 lines above the line I marked:
>
> (gdb) p tem
$1 = 57476881
> (gdb) xtype
Lisp_String
> (gdb) xstring
$3 = (struct Lisp_String *) 0x36d0710 <__register_frame_info+57476880>
"c:/msys/home/dani/emacs/build/src/%emacs_dir%/share/emacs/24.3.50/etc/gnu"
> If the result of 'xstring' indeed shows the etc subdirectory of your
> Emacs source tree, then ....
No, the problem is already there: that path is wrong, obviously.
--
Dani Moncayo
[-- Attachment #2: epaths.diff --]
[-- Type: application/octet-stream, Size: 2472 bytes --]
--- epaths.nt 2013-09-14 20:59:50 +0200
+++ epaths.h 2013-09-14 20:59:50 +0200
@@ -38,7 +38,7 @@
<datadir>/emacs/VERSION/lisp:<datadir>/emacs/VERSION/leim
where datadir is eg /usr/local/share.
*/
-#define PATH_LOADSEARCH "%emacs_dir%/share/emacs/@VER@/lisp;%emacs_dir%/share/emacs/@VER@/leim"
+#define PATH_LOADSEARCH "%emacs_dir%/share/emacs/24.3.50/lisp;%emacs_dir%/share/emacs/24.3.50/leim"
/* Like PATH_LOADSEARCH, but contains the non-standard pieces.
These are the site-lisp directories. Configure sets this to
@@ -48,25 +48,25 @@
This is combined with PATH_LOADSEARCH to make the default load-path.
If the --no-site-lisp option is used, this piece is excluded.
*/
-#define PATH_SITELOADSEARCH "%emacs_dir%/share/emacs/@VER@/site-lisp;%emacs_dir%/share/emacs/site-lisp"
+#define PATH_SITELOADSEARCH "%emacs_dir%/share/emacs/24.3.50/site-lisp;%emacs_dir%/share/emacs/site-lisp"
/* Like PATH_LOADSEARCH, but used only during the build process
when Emacs is dumping. Configure (using "make epaths-force") sets
this to $buildlisppath, which normally has the value: <srcdir>/lisp.
*/
-#define PATH_DUMPLOADSEARCH "@SRC@/lisp"
+#define PATH_DUMPLOADSEARCH "/home/dani/emacs/emacs.git/lisp"
/* The extra search path for programs to invoke. This is appended to
whatever the PATH environment variable says to set the Lisp
variable exec-path and the first file name in it sets the Lisp
variable exec-directory. exec-directory is used for finding
executables and other architecture-dependent files. */
-#define PATH_EXEC "%emacs_dir%/libexec/emacs/@VER@/@CFG@"
+#define PATH_EXEC "%emacs_dir%/libexec/emacs/24.3.50/i686-pc-mingw32"
/* Where Emacs should look for its architecture-independent data
files, like the NEWS file. The lisp variable data-directory
is set to this value. */
-#define PATH_DATA "%emacs_dir%/share/emacs/@VER@/etc"
+#define PATH_DATA "%emacs_dir%/share/emacs/24.3.50/etc"
/* Where Emacs should look for X bitmap files.
The lisp variable x-bitmap-file-path is set based on this value. */
@@ -74,7 +74,7 @@
/* Where Emacs should look for its docstring file. The lisp variable
doc-directory is set to this value. */
-#define PATH_DOC "%emacs_dir%/share/emacs/@VER@/etc"
+#define PATH_DOC "%emacs_dir%/share/emacs/24.3.50/etc"
/* Where the configuration process believes the info tree lives. The
lisp variable configure-info-directory gets its value from this
next prev parent reply other threads:[~2013-09-14 19:57 UTC|newest]
Thread overview: 70+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-26 18:38 Building Emacs from a new MinGW environment Dani Moncayo
2013-08-26 19:38 ` Eli Zaretskii
2013-08-26 20:08 ` Dani Moncayo
2013-09-13 14:31 ` Dani Moncayo
2013-09-14 9:32 ` Eli Zaretskii
2013-09-14 9:41 ` Dani Moncayo
2013-09-14 10:07 ` Eli Zaretskii
2013-09-14 14:25 ` Dani Moncayo
2013-09-14 14:50 ` Eli Zaretskii
2013-09-14 15:42 ` Dani Moncayo
2013-09-14 16:10 ` Eli Zaretskii
2013-09-14 16:34 ` Dani Moncayo
2013-09-14 17:18 ` Eli Zaretskii
2013-09-14 19:57 ` Dani Moncayo [this message]
2013-09-14 20:56 ` Eli Zaretskii
2013-09-14 21:19 ` Dani Moncayo
2013-09-14 22:30 ` Dani Moncayo
2013-09-15 9:35 ` Eli Zaretskii
2013-09-15 9:28 ` Eli Zaretskii
2013-09-16 16:48 ` Dani Moncayo
2013-09-16 17:37 ` Eli Zaretskii
2013-09-16 19:25 ` Dani Moncayo
2013-09-16 19:40 ` Eli Zaretskii
2013-09-16 19:44 ` Dani Moncayo
2013-09-16 20:19 ` Eli Zaretskii
2013-09-17 7:16 ` Eli Zaretskii
2013-09-17 8:17 ` Dani Moncayo
2013-09-17 8:30 ` Eli Zaretskii
2013-09-17 16:09 ` Dani Moncayo
2013-09-17 16:17 ` Glenn Morris
2013-09-17 17:27 ` Eli Zaretskii
2013-09-17 20:29 ` Dani Moncayo
2013-09-18 7:46 ` Eli Zaretskii
2013-09-18 9:32 ` Dani Moncayo
2013-09-18 10:00 ` Eli Zaretskii
2013-09-18 10:38 ` Dani Moncayo
2013-09-18 11:21 ` Eli Zaretskii
2013-09-18 12:39 ` Dani Moncayo
2013-09-18 12:31 ` Dani Moncayo
2013-09-18 13:14 ` Eli Zaretskii
2013-09-18 16:51 ` Dani Moncayo
2013-09-18 19:20 ` Eli Zaretskii
2013-09-19 22:56 ` Dani Moncayo
2013-09-20 8:14 ` Eli Zaretskii
2013-09-20 9:29 ` Andy Moreton
2013-09-20 11:08 ` Dani Moncayo
2013-09-20 11:21 ` Eli Zaretskii
2013-09-20 12:22 ` Dani Moncayo
2013-09-20 12:30 ` Dani Moncayo
2013-09-20 13:16 ` Eli Zaretskii
2013-09-20 13:12 ` Eli Zaretskii
2013-09-20 14:12 ` Eli Zaretskii
2013-09-20 15:05 ` Dani Moncayo
2013-09-18 10:46 ` Andy Moreton
2013-09-18 11:24 ` Eli Zaretskii
2013-09-18 12:44 ` Sean Sieger
2013-09-18 13:16 ` Eli Zaretskii
2013-09-18 13:19 ` Sean Sieger
2013-09-18 14:33 ` Eli Zaretskii
2013-09-18 13:21 ` Andy Moreton
2013-09-18 14:45 ` Eli Zaretskii
2013-09-18 20:51 ` Andy Moreton
2013-09-19 8:45 ` Eli Zaretskii
2013-09-19 8:56 ` Dani Moncayo
2013-09-19 9:38 ` Eli Zaretskii
2013-09-19 10:04 ` Dani Moncayo
2013-09-19 10:11 ` Eli Zaretskii
2013-11-09 14:47 ` Dani Moncayo
2013-11-10 16:32 ` Dani Moncayo
2013-11-12 2:56 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAH8Pv0iVUqOEqx+eY-BsKpp6_a4tVNwTvxFDHRMaQMeyp09Gig@mail.gmail.com \
--to=dmoncayo@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.