all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: help-gnu-emacs@gnu.org
Subject: Re: (Windows) Problems with processes on master branch
Date: Sun, 03 Mar 2024 00:17:13 +0100	[thread overview]
Message-ID: <87il249qbq.fsf@telefonica.net> (raw)
In-Reply-To: 867cikakxh.fsf@gnu.org

Arash Esbati <arash@gnu.org> writes:

> With my Emacs 30 (d0766c0999) build, started from cmd.exe with
> 'runemacs -Q' and M-x shell RET, I get:
>
> Microsoft Windows [Version 10.0.19045.4046]
> (c) Microsoft Corporation. Alle Rechte vorbehalten.
>
> z:dir\>gcc -v
> gcc -v
> Using built-in specs.
> ...
>
>
> With 'emacs -Q' started from a MinGW64 shell, M-x shell RET says:
>
> bash: cannot set terminal process group (-1): Inappropriate ioctl for device
> bash: no job control in this shell
>
> $ gcc -v
> Using built-in specs.
> ...
>
> Both versions work, despite the bash message.  I didn't try eshell.

Thanks Arash and Corwin.

The problem is caused by MSYS2 makepkg-mingw (the MSYS2 binary package
builder) which adds

-D_FORTIFY_SOURCE

to CFLAGS. In fact, the MSYS2/Mingw-packages recipe for emacs-29
contains:

  # -D_FORTIFY_SOURCE breaks build
  CFLAGS=${CFLAGS//"-Wp,-D_FORTIFY_SOURCE=2"}
  # -foptimize-sibling-calls breaks native compilation (GCC 13.1)
  CFLAGS+=" -fno-optimize-sibling-calls"

Once that is added to my recipe, the problem goes away.




      reply	other threads:[~2024-03-02 23:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-01 16:46 (Windows) Problems with processes on master branch Óscar Fuentes
2024-03-01 16:52 ` Eli Zaretskii
2024-03-01 17:12   ` Óscar Fuentes
2024-03-01 18:10     ` Corwin Brust
2024-03-02 12:16 ` Arash Esbati
2024-03-02 23:17   ` Óscar Fuentes [this message]

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=87il249qbq.fsf@telefonica.net \
    --to=ofv@wanadoo.es \
    --cc=help-gnu-emacs@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.