Summary: make broken on MIPS big-endian if posix_spawn() is
Submitted by: kumba
Submitted on: Mon 10 Feb 2020 08:12:50 AM UTC
Severity: 3 - Normal
Item Group: Bug
Assigned to: None
Discussion Lock: Any
Component Version: 4.3
Operating System: POSIX-Based
Fixed Release: None
Triage Status: None
Hi, discovered a bug on a big-endian MIPS setup where posix_spawn(), added in
make-4.3, doesn't appear to work right. When make tries to do operations like
executing files, changing directories, calling other programs (e.g., sed),
etc, it fails. Errors range from "operation not permitted" to "cd: <dir>: not
a directory", to "permission denied". Tested on both O32 ABI and N32 ABI.
Cannot test little-endian due to lack of hardware.
I eventually worked out that rebuilding make-4.3 with --disable-posix-spawn
results in a working build. So I am not sure if make's use of posix_spawn is
broken, or if the MIPS implementation in glibc is broken.