public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug demangler/101779] New: Compilation of rust-demangle.c fails on MinGW @ 2021-08-04 19:13 eliz at gnu dot org 2021-08-05 9:00 ` [Bug demangler/101779] " rguenth at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: eliz at gnu dot org @ 2021-08-04 19:13 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101779 Bug ID: 101779 Summary: Compilation of rust-demangle.c fails on MinGW Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: demangler Assignee: unassigned at gcc dot gnu.org Reporter: eliz at gnu dot org Target Milestone: --- The version of rust-demangle.c included with Binutils 2.37 doesn't compile with MinGW: mingw32-gcc -c -DHAVE_CONFIG_H -O2 -gdwarf-4 -g3 -I. -I../../binutils-2.37/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE ../../binutils-2.37/libiberty/rust-demangle.c -o rust-demangle.o ../../binutils-2.37/libiberty/rust-demangle.c:84:3: error: unknown type name 'uint' 84 | uint recursion; | ^~~~ ../../binutils-2.37/libiberty/rust-demangle.c: In function 'demangle_path': ../../binutils-2.37/libiberty/rust-demangle.c:87:37: error: 'uint' undeclared (first use in this function); did you mean 'int'? 87 | #define RUST_NO_RECURSION_LIMIT ((uint) -1) | ^~~~ ../../binutils-2.37/libiberty/rust-demangle.c:686:25: note: in expansion of macro 'RUST_NO_RECURSION_LIMIT' 686 | if (rdm->recursion != RUST_NO_RECURSION_LIMIT) | ^~~~~~~~~~~~~~~~~~~~~~~ ../../binutils-2.37/libiberty/rust-demangle.c:87:37: note: each undeclared identifier is reported only once for each function it appears in 87 | #define RUST_NO_RECURSION_LIMIT ((uint) -1) | ^~~~ ../../binutils-2.37/libiberty/rust-demangle.c:686:25: note: in expansion of macro 'RUST_NO_RECURSION_LIMIT' 686 | if (rdm->recursion != RUST_NO_RECURSION_LIMIT) | ^~~~~~~~~~~~~~~~~~~~~~~ ../../binutils-2.37/libiberty/rust-demangle.c: In function 'rust_demangle_callback': ../../binutils-2.37/libiberty/rust-demangle.c:87:37: error: 'uint' undeclared (first use in this function); did you mean 'int'? 87 | #define RUST_NO_RECURSION_LIMIT ((uint) -1) | ^~~~ ../../binutils-2.37/libiberty/rust-demangle.c:1347:55: note: in expansion of macro 'RUST_NO_RECURSION_LIMIT' 1347 | rdm.recursion = (options & DMGL_NO_RECURSE_LIMIT) ? RUST_NO_RECURSION_LIMIT : 0; | ^~~~~~~~~~~~~~~~~~~~~~~ This is because the data type 'uint' is not defined in the MinGW headers. I used uint32_t instead, and it compiled OK. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug demangler/101779] Compilation of rust-demangle.c fails on MinGW 2021-08-04 19:13 [Bug demangler/101779] New: Compilation of rust-demangle.c fails on MinGW eliz at gnu dot org @ 2021-08-05 9:00 ` rguenth at gcc dot gnu.org 2021-08-05 10:20 ` redi at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu.org @ 2021-08-05 9:00 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101779 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |mingw32 Status|UNCONFIRMED |WAITING Last reconfirmed| |2021-08-05 Ever confirmed|0 |1 Keywords| |build --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- It looks like rust-demanlge.c is newer in the binutils repository than in the GCC repository. I cannot find the referenced code in the GCC one. Can you report the issue to the bugzilla at sourceware.org please? ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug demangler/101779] Compilation of rust-demangle.c fails on MinGW 2021-08-04 19:13 [Bug demangler/101779] New: Compilation of rust-demangle.c fails on MinGW eliz at gnu dot org 2021-08-05 9:00 ` [Bug demangler/101779] " rguenth at gcc dot gnu.org @ 2021-08-05 10:20 ` redi at gcc dot gnu.org 2021-08-05 10:43 ` eliz at gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: redi at gcc dot gnu.org @ 2021-08-05 10:20 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101779 --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Binutils 2.37 has the fix for GCC PR 99935 included, so I suggest adding a comment to that bug instead. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug demangler/101779] Compilation of rust-demangle.c fails on MinGW 2021-08-04 19:13 [Bug demangler/101779] New: Compilation of rust-demangle.c fails on MinGW eliz at gnu dot org 2021-08-05 9:00 ` [Bug demangler/101779] " rguenth at gcc dot gnu.org 2021-08-05 10:20 ` redi at gcc dot gnu.org @ 2021-08-05 10:43 ` eliz at gnu dot org 2021-08-11 15:07 ` nickc at gcc dot gnu.org 2022-01-22 17:54 ` pinskia at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: eliz at gnu dot org @ 2021-08-05 10:43 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101779 --- Comment #3 from Eli Zaretskii <eliz at gnu dot org> --- (In reply to Jonathan Wakely from comment #2) > Binutils 2.37 has the fix for GCC PR 99935 included, so I suggest adding a > comment to that bug instead. I see that you already reported the issue there (thanks!), so I guess I don't need to do anything else? ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug demangler/101779] Compilation of rust-demangle.c fails on MinGW 2021-08-04 19:13 [Bug demangler/101779] New: Compilation of rust-demangle.c fails on MinGW eliz at gnu dot org ` (2 preceding siblings ...) 2021-08-05 10:43 ` eliz at gnu dot org @ 2021-08-11 15:07 ` nickc at gcc dot gnu.org 2022-01-22 17:54 ` pinskia at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: nickc at gcc dot gnu.org @ 2021-08-11 15:07 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101779 Nick Clifton <nickc at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nickc at gcc dot gnu.org --- Comment #4 from Nick Clifton <nickc at gcc dot gnu.org> --- Note - this bug has been reported and fixed in the binutils copy of the libiberty sources: https://sourceware.org/bugzilla/show_bug.cgi?id=28207 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug demangler/101779] Compilation of rust-demangle.c fails on MinGW 2021-08-04 19:13 [Bug demangler/101779] New: Compilation of rust-demangle.c fails on MinGW eliz at gnu dot org ` (3 preceding siblings ...) 2021-08-11 15:07 ` nickc at gcc dot gnu.org @ 2022-01-22 17:54 ` pinskia at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu.org @ 2022-01-22 17:54 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101779 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |DUPLICATE --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Dup of bug 99935. *** This bug has been marked as a duplicate of bug 99935 *** ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-01-22 17:54 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-08-04 19:13 [Bug demangler/101779] New: Compilation of rust-demangle.c fails on MinGW eliz at gnu dot org 2021-08-05 9:00 ` [Bug demangler/101779] " rguenth at gcc dot gnu.org 2021-08-05 10:20 ` redi at gcc dot gnu.org 2021-08-05 10:43 ` eliz at gnu dot org 2021-08-11 15:07 ` nickc at gcc dot gnu.org 2022-01-22 17:54 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).