Re: Test failure in GNU M4 1.4.18 with musl libc

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.m4.bugs,gmane.comp.lib.gnulib.bugs
Organization Red Hat, Inc.
Message-ID <[email protected]>
On 9/11/19 2:58 PM, Cody Logan wrote:
> Hello,
> 
> I'm attempting to cross-compile M4 1.4.18 with musl libc instead of
> glibc. The build completes, but when I run `make check`, I get two test
> failures. I'm running Arch Linux x86-64 on Linux 5.2.13 and
> cross-compiling with GCC 9.2.0 (targeting x86_64-pc-linux-musl).FWIW,
> the same failures occur on Alpine Linux with native GCC 8.3.0.

Both of these failed tests come from gnulib (added in cc); I'm not sure
if they have been fixed in the meantime (in which case, you just need to
wait for an eventual m4 1.4.19 that uses a newer gnulib) or represent
problems that others will still hit.


> FAIL: test-localename
> =====================
> 
> test-localename.c:183: assertion 'strcmp (name, "fr_FR.UTF-8") == 0' failed
> FAIL test-localename (exit status: 134)
> 

> 
> FAIL: test-mbrtowc5.sh
> ======================
> 
> test-mbrtowc.c:106: assertion 'wc == c' failed
> ./test-mbrtowc5.sh: line 4: 789048 Aborted                 (core dumped)
> LC_ALL=C ./test-mbrtowc${EXEEXT} 5
> FAIL test-mbrtowc5.sh (exit status: 134)
> 
But on the bright side, it probably does not represent an actual bug in
your just-built m4.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.