Dennis Clarke | 2 Mar 18:12 2009

m4-1.4.12 make check throws many errors

On Solaris 10 Update 6 with latest kernel patches. Sun Studio 12 compiler
used here. I used GNU make and all other tools were vendor supplied.

I am attempting to make a 64-bit AMD64 executable here.

The binary is in fact created via configure -- make with nothing specified
other than --prefix

bash-3.2$ find . -type f -name m4
./src/m4
bash-3.2$ file ./src/m4
./src/m4: ELF 64-bit LSB executable AMD64 Version 1 [SSE2 SSE FXSR FPU],
dynamically linked, not stripped
bash-3.2$ ldd ./src/m4
        libthread.so.1 =>        /lib/64/libthread.so.1
        libc.so.1 =>     /lib/64/libc.so.1
        libm.so.2 =>     /lib/64/libm.so.2

Things go pretty badly after this.

bash-3.2$ make check
make  check-recursive
Making check in .
Making check in examples
Making check in lib
make  check-recursive
Making check in src
Making check in doc
Making check in checks
PATH=`pwd`/../src":"$PATH; export PATH; \
(Continue reading)

Eric Blake | 3 Mar 04:44 2009
Picon

Re: m4-1.4.12 make check throws many errors


According to Dennis Clarke on 3/2/2009 10:12 AM:
> On Solaris 10 Update 6 with latest kernel patches. Sun Studio 12 compiler
> used here. I used GNU make and all other tools were vendor supplied.
> 
> I am attempting to make a 64-bit AMD64 executable here.
> 
>  <at>  ../doc/m4.texinfo:1891: Origin of test
> ../../../m4-1.4.12/checks/032.arguments: stderr mismatch
> --- m4-tmp.27760/m4-xerr        Mon Mar  2 17:11:04 2009
> +++ m4-tmp.27760/m4-err Mon Mar  2 17:11:04 2009
>  <at>  <at>  -1,2 +1,1  <at>  <at> 
> -m4:stdin:1: Warning: definition of `foo' contains sequence `$001'
> -m4:stdin:1: Warning: definition of `foo' contains sequence `${1}'
> +m4: internal error detected; please report this bug to <bug-m4 <at> gnu.org>:
> Segmentation fault

All of your failures look like they involve regular expressions.  I'm
guessing that there is some bug present in 1.4.12 where the regex engine
was not prepared for a 64-bit machine.

There have been upstream fixes to regex.c in the meantime.  Would you mind
repeating your tests on a more recent snapshot, to see if we have fixed
things, or need to do further investigation?
http://lists.gnu.org/archive/html/bug-m4/2009-02/msg00011.html

--
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 <at> byu.net
(Continue reading)

Fabio | 4 Mar 02:47 2009
Picon

Bug: m4-1.4.12 test phase

Hello, here is the build log of m4-1.4.12 in my Gentoo Linux system.
It uses gcc-4.3.2 and glibc-2.7. One of the tests have failed. Thanks
for your efforts in developing m4.

Fabio Correa.
Attachment (m4build.log): application/octet-stream, 32 KiB
Eric Blake | 4 Mar 02:53 2009
Picon

Re: Bug: m4-1.4.12 test phase


According to Fabio on 3/3/2009 6:47 PM:
> Hello, here is the build log of m4-1.4.12 in my Gentoo Linux system.
> It uses gcc-4.3.2 and glibc-2.7. One of the tests have failed. Thanks
> for your efforts in developing m4.

Thanks for the report.

> ./196.using_froz: stderr mismatch
> --- m4-tmp.6822/m4-xerr 2009-03-03 12:17:41.000000000 -0500
> +++ m4-tmp.6822/m4-err  2009-03-03 12:17:41.000000000 -0500
>  <at>  <at>  -1 +1  <at>  <at> 
> -m4: cannot open `/none/such': No such file or directory
> +m4: cannot open `/none/such': Permission denied

This has been previously reported.  It is a bug in the gentoo sandbox, and
not in m4.  That said, m4 can still work around it:
http://bugs.gentoo.org/show_bug.cgi?id=244396
http://lists.gnu.org/archive/html/m4-patches/2009-02/msg00011.html

You may also be interested in trying a more recent snapshot, where the m4
patch is in place:
http://lists.gnu.org/archive/html/bug-m4/2009-02/msg00011.html

--
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 <at> byu.net

Gmane