[Bug c++/107128] armhf: floatn-common.h:214:9: error: multiple types in one declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107128 --- Comment #10 from CVS Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:538a0d0f29b12cff05681b6de2e0a3d7b33f3ef0 commit r13-6643-g538a0d0f29b12cff05681b6de2e0a3d7b33f3ef0 Author: Jason Merrill Date: Mon Mar 13 14:06:11 2023 -0400 c++: handle _FloatNN redeclaration like bool [PR107128] It's been inconvenient to compile testcases preprocessed with GCC 12 or earlier because they break on typedef __float128 _Float128; We already had code for handling this with bool and wchar_t, it just needs to be extended to _FloatNN as well. PR c++/107128 gcc/cp/ChangeLog: * parser.cc (cp_parser_set_decl_spec_type): Use redefined_builtin_type for extended_float_type_p. gcc/testsuite/ChangeLog: * g++.dg/warn/pragma-system_header6.h: New test. * g++.dg/warn/pragma-system_header6.C: New test.
[Bug c++/107128] armhf: floatn-common.h:214:9: error: multiple types in one declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107128 --- Comment #9 from Jakub Jelinek --- (In reply to Mike Hommey from comment #7) > Forget my last comment, it came from the use of a sysroot with an older > glibc. I wonder why the sysroot path didn't appear in those messages... You need to use fixincludes with gcc 13+ unless you have very old or very fresh glibc.
[Bug c++/107128] armhf: floatn-common.h:214:9: error: multiple types in one declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107128 --- Comment #8 from Andrew Pinski --- (In reply to Mike Hommey from comment #7) > Forget my last comment, it came from the use of a sysroot with an older > glibc. I wonder why the sysroot path didn't appear in those messages... Can you file a new bug. Fixincludes should be happening for the sysroot but maybe a setting is wrong. Please include how you configured gcc.
[Bug c++/107128] armhf: floatn-common.h:214:9: error: multiple types in one declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107128 --- Comment #7 from Mike Hommey --- Forget my last comment, it came from the use of a sysroot with an older glibc. I wonder why the sysroot path didn't appear in those messages...
[Bug c++/107128] armhf: floatn-common.h:214:9: error: multiple types in one declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107128 Mike Hommey changed: What|Removed |Added CC||mh+gcc at glandium dot org --- Comment #6 from Mike Hommey --- I'm getting a similar error on x86-64 Debian 11 with libc6 2.31: In file included from /usr/include/wchar.h:30, from /builds/worker/fetches/gcc-objdir/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/cwchar:44, from /builds/worker/fetches/gcc-objdir/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/postypes.h:40, from /builds/worker/fetches/gcc-objdir/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/iosfwd:42, from /builds/worker/fetches/gcc-objdir/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/shared_ptr.h:52, from /builds/worker/fetches/gcc-objdir/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/memory:80, from ../../gcc-source/libcody/cody.hh:24, from ../../gcc-source/libcody/internal.hh:5, from ../../gcc-source/libcody/packet.cc:6: /usr/include/x86_64-linux-gnu/bits/floatn.h:87:9: error: multiple types in one declaration 87 | typedef __float128 _Float128; | ^~ /usr/include/x86_64-linux-gnu/bits/floatn.h:87:20: error: declaration does not declare anything [-fpermissive] 87 | typedef __float128 _Float128; |^ In file included from /usr/include/x86_64-linux-gnu/bits/floatn.h:120: /usr/include/x86_64-linux-gnu/bits/floatn-common.h:214:9: error: multiple types in one declaration 214 | typedef float _Float32; | ^ /usr/include/x86_64-linux-gnu/bits/floatn-common.h:214:15: error: declaration does not declare anything [-fpermissive] 214 | typedef float _Float32; | ^~~~ /usr/include/x86_64-linux-gnu/bits/floatn-common.h:251:9: error: multiple types in one declaration 251 | typedef double _Float64; | ^~ /usr/include/x86_64-linux-gnu/bits/floatn-common.h:251:16: error: declaration does not declare anything [-fpermissive] 251 | typedef double _Float64; |^~~~ /usr/include/x86_64-linux-gnu/bits/floatn-common.h:268:9: error: multiple types in one declaration 268 | typedef double _Float32x; | ^~ /usr/include/x86_64-linux-gnu/bits/floatn-common.h:268:16: error: declaration does not declare anything [-fpermissive] 268 | typedef double _Float32x; |^ /usr/include/x86_64-linux-gnu/bits/floatn-common.h:285:14: error: multiple types in one declaration 285 | typedef long double _Float64x; | ^~ /usr/include/x86_64-linux-gnu/bits/floatn-common.h:285:21: error: declaration does not declare anything [-fpermissive] 285 | typedef long double _Float64x; | ^
[Bug c++/107128] armhf: floatn-common.h:214:9: error: multiple types in one declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107128 Richard Biener changed: What|Removed |Added Resolution|--- |INVALID Target||arm Status|WAITING |RESOLVED --- Comment #5 from Richard Biener --- Invalid then.
[Bug c++/107128] armhf: floatn-common.h:214:9: error: multiple types in one declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107128 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek --- By older in this case is any glibc >= 2.26 and < https://sourceware.org/git/?p=glibc.git;a=commit;h=3e5760fcb48528d48deeb60cb885a97bb731160c (i.e. for gcc 13, you can avoid fixincludes only for very old glibc (< 2.26) or if you have 4 or less days old glibc trunk.
[Bug c++/107128] armhf: floatn-common.h:214:9: error: multiple types in one declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107128 --- Comment #3 from Mathieu Malaterre --- > some (older) glibc By older what do you mean exactly ? It seems my system provides glibc 2.35: malat@amdahl /tmp % apt-cache policy libc6-dev libc6-dev: Installed: 2.35-1 Candidate: 2.35-1 Version table: *** 2.35-1 500 500 https://deb.debian.org/debian sid/main armhf Packages 100 /var/lib/dpkg/status
[Bug c++/107128] armhf: floatn-common.h:214:9: error: multiple types in one declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107128 --- Comment #2 from Mathieu Malaterre --- > Gcc 13 requires some (older) glibc headers to be fixed up . I could not reproduce it under my Debian amd64/chroot. I'll check with doko@d.o then. Sorry for the noise.
[Bug c++/107128] armhf: floatn-common.h:214:9: error: multiple types in one declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107128 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED |WAITING Last reconfirmed||2022-10-03 --- Comment #1 from Andrew Pinski --- Is this a packaging issue? > ignoring nonexistent directory > "/usr/lib/gcc-snapshot/lib/gcc/arm-linux-gnueabihf/13/include-fixed/arm-linux-gnueabihf" ignoring nonexistent directory "/usr/lib/gcc-snapshot/lib/gcc/arm-linux-gnueabihf/13/include-fixed" Gcc 13 requires some (older) glibc headers to be fixed up .