unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Build failure on WSL
@ 2024-09-25  9:58 Dani Moncayo
  2024-09-25 12:30 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Dani Moncayo @ 2024-09-25  9:58 UTC (permalink / raw)
  To: Emacs development discussions

[-- Attachment #1: Type: text/plain, Size: 354 bytes --]

Hi there.

I usually build Emacs from/for my WSL environment, this way:
$ cd ~/src/emacs/repo && git pull
$ cd ../build1 && make -j4

The last few days I've been getting build errors (see attached log).

I've tried several things, without success.
* Re-run ./autogen.sh && configure && make
* Run make bootstrap
* ...

Any advice?

TIA

-- 
Dani Moncayo

[-- Attachment #2: make_error.log --]
[-- Type: application/octet-stream, Size: 3174 bytes --]

make actual-all || make advice-on-failure make-target=all exit-status=$?
make[1]: Entering directory '/home/dani/src/emacs/build1'
make -C lib all
make[2]: Entering directory '/home/dani/src/emacs/build1/lib'
  CC       acl-errno-valid.o
In file included from ./sys/stat.h:51,
                 from ../../repo/lib/acl.h:29,
                 from ../../repo/lib/acl-errno-valid.c:22:
../../repo/lib/time.h:767:40: error: macro "_GL_FUNCDECL_RPL" passed 4 arguments, but takes just 3
  767 |                   _GL_ARG_NONNULL ((1)));
      |                                        ^
In file included from ./sys/select.h:114,
                 from /usr/include/x86_64-linux-gnu/sys/types.h:179,
                 from ../../repo/lib/sys/types.h:46,
                 from ./sys/types.h:46,
                 from ../../repo/lib/acl.h:28:
../../repo/lib/sys/select.h:269: note: macro "_GL_FUNCDECL_RPL" defined here
  269 | #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \
      | 
../../repo/lib/time.h:1056:62: error: macro "_GL_FUNCDECL_SYS" passed 4 arguments, but takes just 3
 1056 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name), );
      |                                                              ^
../../repo/lib/sys/select.h:281: note: macro "_GL_FUNCDECL_SYS" defined here
  281 | #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \
      | 
../../repo/lib/time.h:1064:52: error: macro "_GL_FUNCDECL_SYS" passed 4 arguments, but takes just 3
 1064 | _GL_FUNCDECL_SYS (tzfree, void, (timezone_t __tz), );
      |                                                    ^
../../repo/lib/sys/select.h:281: note: macro "_GL_FUNCDECL_SYS" defined here
  281 | #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \
      | 
../../repo/lib/time.h:1090:43: error: macro "_GL_FUNCDECL_SYS" passed 4 arguments, but takes just 3
 1090 |                   _GL_ARG_NONNULL ((2, 3)));
      |                                           ^
../../repo/lib/sys/select.h:281: note: macro "_GL_FUNCDECL_SYS" defined here
  281 | #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \
      | 
../../repo/lib/time.h:1116:40: error: macro "_GL_FUNCDECL_SYS" passed 4 arguments, but takes just 3
 1116 |                   _GL_ARG_NONNULL ((2)));
      |                                        ^
../../repo/lib/sys/select.h:281: note: macro "_GL_FUNCDECL_SYS" defined here
  281 | #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \
      | 
make[2]: *** [Makefile:103: acl-errno-valid.o] Error 1
make[2]: Leaving directory '/home/dani/src/emacs/build1/lib'
make[1]: *** [Makefile:537: lib] Error 2
make[1]: Leaving directory '/home/dani/src/emacs/build1'
make[1]: Entering directory '/home/dani/src/emacs/build1'
***
*** "make all" failed with exit status 2.
***
*** You could try to:
*** - run "make bootstrap", which might fix the problem
*** - run "make V=1", which displays the full commands invoked by make,
***   to further investigate the problem
***
make[1]: *** [Makefile:418: advice-on-failure] Error 2
make[1]: Leaving directory '/home/dani/src/emacs/build1'
make: *** [Makefile:374: all] Error 2

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Build failure on WSL
  2024-09-25  9:58 Build failure on WSL Dani Moncayo
@ 2024-09-25 12:30 ` Eli Zaretskii
  2024-09-25 13:16   ` Dani Moncayo
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2024-09-25 12:30 UTC (permalink / raw)
  To: Dani Moncayo; +Cc: emacs-devel

> From: Dani Moncayo <dmoncayo@gmail.com>
> Date: Wed, 25 Sep 2024 11:58:04 +0200
> 
> I usually build Emacs from/for my WSL environment, this way:
> $ cd ~/src/emacs/repo && git pull
> $ cd ../build1 && make -j4
> 
> The last few days I've been getting build errors (see attached log).
> 
> I've tried several things, without success.
> * Re-run ./autogen.sh && configure && make
> * Run make bootstrap
> * ...
> 
> Any advice?

Try "git clean -fdx", and make sure your 'build1' directory is empty
when you start the build.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Build failure on WSL
  2024-09-25 12:30 ` Eli Zaretskii
@ 2024-09-25 13:16   ` Dani Moncayo
  0 siblings, 0 replies; 3+ messages in thread
From: Dani Moncayo @ 2024-09-25 13:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

On Wed, Sep 25, 2024 at 2:31 PM Eli Zaretskii <eliz@gnu.org> wrote:
> [...]
> Try "git clean -fdx", and make sure your 'build1' directory is empty
> when you start the build.

Yes, that worked.

Thank's very much!!

-- 
Dani Moncayo



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-09-25 13:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-25  9:58 Build failure on WSL Dani Moncayo
2024-09-25 12:30 ` Eli Zaretskii
2024-09-25 13:16   ` Dani Moncayo

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).