Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: posix_spawn issue?



Hi,

I have uploaded simple test Makefiles:
https://www.netbsd.org/~ryoon/gmake-tests-20210502.tar.gz

It is as follows:

$ cat Makefile
all:
        ${MAKE} -C test-a

clean:
        ${MAKE} -C test-a clean


$ cat test-a/Makefile
all: a.txt

a.txt:
        touch a.txt

clean:
        rm -f a.txt


Results is here:

Without posix_spawn:
$ gmake
gmake -C test-a
gmake[1]: Entering directory '/home/ryoon/gmake-tests/test-a'
touch a.txt
gmake[1]: Leaving directory '/home/ryoon/gmake-tests/test-a'


With posix_spawn:
$ gmake
gmake -C test-a
gmake: *** [Makefile:2: all] Error 127


The tarball also includes a result of 'ktrace gmake' in posix_spawn case.

I wish this could be useful for debugging.

Thank you.


Thomas Klausner <wiz%NetBSD.org@localhost> writes:

> Hi!
>
> NetBSD implements posix_spawn() and Linux does too.
>
> gmake since version 4.3 uses posix_spawn(), but that breaks the build
> of firefox (and libreoffice). Disabling posix_spawn() support in gmake
> works around this problem.[1]
>
> Is there a bug/incompatibility in our posix_spawn() or is there a bug
> in gmake?
>
> If you want to try it out, use wip/gmake and remove the
> CONFIGURE_ARGS.NetBSD+=	--disable-posix-spawn
> line.
>
> Cheers,
>  Thomas
>
> [1] https://mail-index.netbsd.org/tech-pkg/2021/05/01/msg024834.html
>     https://mail-index.netbsd.org/tech-pkg/2021/05/01/msg024835.html

-- 
Ryo ONODERA // ryo%tetera.org@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Home | Main Index | Thread Index | Old Index