GNU bug report logs - #76816
Issues in testgluse.c

Previous Next

Package: dejagnu;

Reported by: Jan Dubiec <jdx <at> o2.pl>

Date: Fri, 7 Mar 2025 17:27:01 UTC

Severity: normal

Done: Jacob Bachmeyer <jcb62281 <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 76816 in the body.
You can then email your comments to 76816 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-dejagnu <at> gnu.org:
bug#76816; Package dejagnu. (Fri, 07 Mar 2025 17:27:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Dubiec <jdx <at> o2.pl>:
New bug report received and forwarded. Copy sent to bug-dejagnu <at> gnu.org. (Fri, 07 Mar 2025 17:27:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jan Dubiec <jdx <at> o2.pl>
To: bug-dejagnu <at> gnu.org
Subject: Issues in testgluse.c
Date: Fri, 7 Mar 2025 15:22:54 +0100
[Message part 1 (text/plain, inline)]
Hello,

When I tried to run newlib tests on the GNU arm simulator, development version of gcc complained about a few issues in testgluse.c. The suggested patch is in the attachment.

Excerpt from the log:

Test run by jdx on Thu Mar  6 22:00:01 2025
Target is arm-unknown-eabi
Host   is x86_64-pc-linux-gnu

		=== newlib tests ===

Schedule of variations:
    arm-sim

Running target arm-sim
Using /usr/share/dejagnu/baseboards/arm-sim.exp as board description file for target.
Using /usr/share/dejagnu/config/sim.exp as generic interface file for target.
Using /usr/share/dejagnu/baseboards/basic-sim.exp as board description file for target.
Using /mnt/Works/testgcc/combosrc/newlib/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /mnt/Works/testgcc/combosrc/newlib/testsuite/newlib.elix/elix.exp ...
Executing on host: /mnt/Works/testgcc/build-arm-linux/gcc/xgcc -B/mnt/Works/testgcc/build-arm-linux/gcc/    -c   -isystem /mnt/Works/testgcc/build-arm-linux/arm-eabi/./newlib/targ-include -isystem /mnt/Works/testgcc/combosrc/newlib/libc/include -o /mnt/Works/testgcc/build-arm-linux/arm-eabi/newlib/testsuite/testglue.o /usr/share/dejagnu/testglue.c    (timeout = 300)
spawn -ignore SIGHUP /mnt/Works/testgcc/build-arm-linux/gcc/xgcc -B/mnt/Works/testgcc/build-arm-linux/gcc/ -c -isystem /mnt/Works/testgcc/build-arm-linux/arm-eabi/./newlib/targ-include -isystem /mnt/Works/testgcc/combosrc/newlib/libc/include -o /mnt/Works/testgcc/build-arm-linux/arm-eabi/newlib/testsuite/testglue.o /usr/share/dejagnu/testglue.c
/usr/share/dejagnu/testglue.c: In function 'write_int':
/usr/share/dejagnu/testglue.c:67:1: warning: old-style function definition []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wno-old-style-definition-Wold-style-definition]8;;]
   67 | write_int(val, ptr)
      | ^~~~~~~~~
/usr/share/dejagnu/testglue.c: In function '__wrap_exit':
/usr/share/dejagnu/testglue.c:38:19: warning: old-style function definition []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wno-old-style-definition-Wold-style-definition]8;;]
   38 | #define ORIG_EXIT __wrap_exit
      |                   ^~~~~~~~~~~
/usr/share/dejagnu/testglue.c:85:1: note: in expansion of macro 'ORIG_EXIT'
   85 | ORIG_EXIT (code)
      | ^~~~~~~~~
/usr/share/dejagnu/testglue.c:32:19: error: too many arguments to function '__real_exit'; expected 0, have 1
   32 | #define REAL_EXIT __real_exit
      |                   ^~~~~~~~~~~
/usr/share/dejagnu/testglue.c:99:3: note: in expansion of macro 'REAL_EXIT'
   99 |   REAL_EXIT (code);
      |   ^~~~~~~~~
/usr/share/dejagnu/testglue.c:32:19: note: declared here
   32 | #define REAL_EXIT __real_exit
      |                   ^~~~~~~~~~~
/usr/share/dejagnu/testglue.c:51:13: note: in expansion of macro 'REAL_EXIT'
   51 | extern void REAL_EXIT ();
      |             ^~~~~~~~~
/usr/share/dejagnu/testglue.c: In function '__wrap__exit':
/usr/share/dejagnu/testglue.c:39:20: warning: old-style function definition []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wno-old-style-definition-Wold-style-definition]8;;]
   39 | #define ORIG__EXIT __wrap__exit
      |                    ^~~~~~~~~~~~
/usr/share/dejagnu/testglue.c:105:1: note: in expansion of macro 'ORIG__EXIT'
  105 | ORIG__EXIT (code)
      | ^~~~~~~~~~
/usr/share/dejagnu/testglue.c:34:20: error: too many arguments to function '__real__exit'; expected 0, have 1
   34 | #define REAL__EXIT __real__exit
      |                    ^~~~~~~~~~~~
/usr/share/dejagnu/testglue.c:120:3: note: in expansion of macro 'REAL__EXIT'
  120 |   REAL__EXIT (code);
      |   ^~~~~~~~~~
/usr/share/dejagnu/testglue.c:34:20: note: declared here
   34 | #define REAL__EXIT __real__exit
      |                    ^~~~~~~~~~~~
/usr/share/dejagnu/testglue.c:56:13: note: in expansion of macro 'REAL__EXIT'
   56 | extern void REAL__EXIT ();
      |             ^~~~~~~~~~
/usr/share/dejagnu/testglue.c: In function '__wrap_main':
/usr/share/dejagnu/testglue.c:41:19: warning: old-style function definition []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wno-old-style-definition-Wold-style-definition]8;;]
   41 | #define ORIG_MAIN __wrap_main
      |                   ^~~~~~~~~~~
/usr/share/dejagnu/testglue.c:136:1: note: in expansion of macro 'ORIG_MAIN'
  136 | ORIG_MAIN (argc, argv, envp)
      | ^~~~~~~~~
compiler exited with status 1


Compiler version:

jdx <at> jdxpc:/mnt/Works/testgcc/build-arm-linux$ ./gcc/xgcc -v
Using built-in specs.
COLLECT_GCC=./gcc/xgcc
Target: arm-eabi
Configured with: ../combosrc/configure --prefix=/mnt/Works/testgcc/install-linux --target=arm-eabi --disable-werror --disable-nls --disable-threads --disable-tls --enable-checking=release --enable-languages=c --with-newlib --disable-multilib --enable-lto --disable-shared --enable-static --disable-libstdcxx-pch --without-libstdcxx-zoneinfo --with-system-zlib --with-pkgversion='GNU Toolchain for the ARM Architecture [Built by jdx]' --enable-tui --with-curses --enable-sim --with-expat
Thread model: single
Supported LTO compression algorithms: zlib
gcc version 15.0.1 20250227 (experimental) (GNU Toolchain for the ARM Architecture [Built by jdx])

Best regards,
Jan
[testglue.c.patch (text/plain, attachment)]

Information forwarded to bug-dejagnu <at> gnu.org:
bug#76816; Package dejagnu. (Thu, 20 Mar 2025 02:05:01 GMT) Full text and rfc822 format available.

Message #8 received at 76816 <at> debbugs.gnu.org (full text, mbox):

From: Jacob Bachmeyer <jcb62281 <at> gmail.com>
To: Jan Dubiec <jdx <at> o2.pl>, 76816 <at> debbugs.gnu.org
Subject: Re: bug#76816: Issues in testgluse.c
Date: Wed, 19 Mar 2025 21:04:28 -0500
On 3/7/25 08:22, Jan Dubiec wrote:
> Hello,
>
> When I tried to run newlib tests on the GNU arm simulator, development 
> version of gcc complained about a few issues in testgluse.c. The 
> suggested patch is in the attachment.

Thank you for the report; this is the second report of issues with 
testglue.c and C23 compilers.

These problems will be fixed but I must ask for patience, as a related 
issue before changes are made to testglue.c appears to presently be 
caught in a backlogged queue.

Once those issues are straightened out, testglue.c will be updated to 
use prototypes with ANSI-capable compilers.


-- Jacob






Information forwarded to bug-dejagnu <at> gnu.org:
bug#76816; Package dejagnu. (Fri, 10 Oct 2025 02:38:02 GMT) Full text and rfc822 format available.

Message #11 received at 76816 <at> debbugs.gnu.org (full text, mbox):

From: Jacob Bachmeyer <jcb62281 <at> gmail.com>
To: Jan Dubiec <jdx <at> o2.pl>, 76816 <at> debbugs.gnu.org
Subject: Re: bug#76816: Issues in testgluse.c
Date: Thu, 9 Oct 2025 21:36:39 -0500
On 3/7/25 08:22, Jan Dubiec wrote:
> Hello,
>
> When I tried to run newlib tests on the GNU arm simulator, development 
> version of gcc complained about a few issues in testgluse.c. The 
> suggested patch is in the attachment.
>
Apologies for the lengthy delay in addressing this issue; an unusual 
logjam occurred in the process.

A solution has been pushed to Savannah on the PR76816 branch. Please 
confirm that this patch solves your problem and I will merge it to master.


-- Jacob





Reply sent to jcb62281 <at> gmail.com:
You have taken responsibility. (Fri, 17 Oct 2025 02:46:02 GMT) Full text and rfc822 format available.

Notification sent to Jan Dubiec <jdx <at> o2.pl>:
bug acknowledged by developer. (Fri, 17 Oct 2025 02:46:02 GMT) Full text and rfc822 format available.

Message #16 received at 76816-done <at> debbugs.gnu.org (full text, mbox):

From: Jacob Bachmeyer <jcb62281 <at> gmail.com>
To: 76816-done <at> debbugs.gnu.org
Subject: Re: bug#76816: Issues in testgluse.c
Date: Thu, 16 Oct 2025 21:44:36 -0500
On 10/9/25 21:36, Jacob Bachmeyer wrote:
> On 3/7/25 08:22, Jan Dubiec wrote:
>> Hello,
>>
>> When I tried to run newlib tests on the GNU arm simulator, 
>> development version of gcc complained about a few issues in 
>> testgluse.c. The suggested patch is in the attachment.
>>
> Apologies for the lengthy delay in addressing this issue; an unusual 
> logjam occurred in the process.
>
> A solution has been pushed to Savannah on the PR76816 branch. Please 
> confirm that this patch solves your problem and I will merge it to master.

Merged and pushed; resolved.


-- Jacob






bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 14 Nov 2025 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 43 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.