[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: many tests with XS failing?
From: |
Gavin Smith |
Subject: |
Re: many tests with XS failing? |
Date: |
Sun, 25 Oct 2020 10:25:30 +0000 |
User-agent: |
Mutt/1.9.4 (2018-02-28) |
On Sun, Oct 25, 2020 at 12:39:04AM +0200, Patrice Dumas wrote:
> Hello,
>
> It is a bit strange if it only happens to me so it could be something
> with my setup. A lot of tests in t/ fail right now, and all the tests
> in tests, when using XS.
>
> Errors are like
> ignore_and_comments.texi:4: warning: @c should only appear at the beginning
> of a line
> and also some undefined values
> Use of uninitialized value $name in substitution (s///) at
> ../../tp/Texinfo/Report.pm line 378
>
> Everything is as expected with the pure perl parser.
It may be fixed in commit aa52e20a. Due to a change in the enum type,
offsets into the array in command_data.c may have been wrong.
> When compiling the XS modules, there are some warnings, I attach the
> stderr from make in XS.
>
> --
> Pat
> parsetexi/api.c: In function ‘element_to_perl_hash’:
> parsetexi/api.c:429:27: warning: cast from pointer to integer of different
> size [-Wpointer-to-int-cast]
> 429 | int value = (int) f;
> | ^
There's not much chance of an overflow here but to avoid the warnings,
another integer type could be used instead.
> parsetexi/input.c:16: warning: "_GNU_SOURCE" redefined
> 16 | #define _GNU_SOURCE
> |
> <command-line>: note: this is the location of the previous definition
> parsetexi/macro.c:16: warning: "_GNU_SOURCE" redefined
> 16 | #define _GNU_SOURCE
> |
Need to check how to define this.