I was trying to cross-compile bash for musl libc. The configure script reports:
checking for working sbrk... configure: WARNING: cannot check working sbrk if cross-compiling yes However, I don't believe musl libc supports sbrk. However, autoconf seems to default to assuming yes and sets the HAVE_SBRK definition. Bash then crashes on xmalloc failure. Is this intended behavior?