From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CCDDA395B064; Wed, 16 Nov 2022 14:41:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CCDDA395B064 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668609683; bh=y40UHcxASe1COs+81fSHZSVNeZMBoXy2OrFODQr5Ke0=; h=From:To:Subject:Date:From; b=JAYnRP/7aa6UIUZFOt6jYUcRxi4NFpPSSlFLNklhA2nKcMKNKAQVn2cESjZSrat0c S3H1mlCt6p5QKPQbfsbXs2g3rhptpMDt3QjffV6J6p2Y1eRJPl8DSNcIRIJ1ivsPRX D5yapv8nzDkDDdEYdBr1DeRJaOMOozmqw1MJ696s= From: "ro at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug build/29791] New: [13 regression] Many gdbsupport files don't compile on Solaris Date: Wed, 16 Nov 2022 14:41:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget cf_gccbuild Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29791 Bug ID: 29791 Summary: [13 regression] Many gdbsupport files don't compile on Solaris Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: build Assignee: unassigned at sourceware dot org Reporter: ro at gcc dot gnu.org Target Milestone: --- Host: *-*-solaris2.11 Target: *-*-solaris2.11 Build: *-*-solaris2.11 When trying to build current trunk on Solaris 11.4 (both SPARC and x86) with the bundled GCC 12.2.0, a large part of gdbsupport failed to compile like t= his: $ g++ -DHAVE_CONFIG_H -I. -I/vol/src/gnu/gdb/hg/master/dist/gdbsupport=20 -I/vol/src/gnu/gdb/hg/master/dist/gdbsupport/../include -I/vol/src/gnu/gdb/hg/master/dist/gdbsupport/../gdb -I../gnulib/import -I/vol/src/gnu/gdb/hg/master/dist/gdbsupport/../gnulib/import -I.. -I/vol/src/gnu/gdb/hg/master/dist/gdbsupport/.. -I../bfd -I/vol/src/gnu/gdb/hg/master/dist/gdbsupport/../bfd -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-variable -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-error=3Dmaybe-uninitialized -Wno-mismatched-tags -Wsuggest-override -Wimplicit-fallthrough=3D3 -Wduplicated-cond -Wshadow=3Dlocal -Wdeprecated-copy -Wdeprecated-copy-dtor -Wredundant-move -Wmissing-declarations -Wstrict-null-sentinel -Wno-unknown-pragmas -Wno-deprecated-declarations -Werror -g -O2 -MT pt= id.o -MD -MP -MF .deps/ptid.Tpo -c -o ptid.o /vol/src/gnu/gdb/hg/master/dist/gdbsupport/ptid.cc In file included from /usr/include/sys/time.h:448, from ../gnulib/import/sys/time.h:39, from /usr/include/sys/select.h:27, from ../gnulib/import/sys/select.h:36, from /usr/include/sys/types.h:665, from ../gnulib/import/sys/types.h:39, from ../gnulib/import/stdio.h:58, from /vol/src/gnu/gdb/hg/master/dist/gdbsupport/common-defs.h:86, from /vol/src/gnu/gdb/hg/master/dist/gdbsupport/ptid.cc:20: ../gnulib/config.h:1693:72: error: =E2=80=98malloc=E2=80=99 attribute argum= ent 1 is ambiguous 1693 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^ ../gnulib/config.h:1693:72: note: use a cast to the expected type to disambiguate ../gnulib/config.h:1693:72: error: =E2=80=98malloc=E2=80=99 attribute argum= ent 1 is ambiguous 1693 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^ ../gnulib/config.h:1693:72: note: use a cast to the expected type to disambiguate ../gnulib/config.h:1693:72: error: =E2=80=98malloc=E2=80=99 attribute argum= ent 1 is ambiguous 1693 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^ ../gnulib/config.h:1693:72: note: use a cast to the expected type to disambiguate ../gnulib/config.h:1693:72: error: =E2=80=98malloc=E2=80=99 attribute argum= ent 1 is ambiguous 1693 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^ ../gnulib/config.h:1693:72: note: use a cast to the expected type to disambiguate TBH, I don't have the slightest idea what this is supposed to mean, let alo= ne how to fix it. It can be reproduced with the attached ptid.ii as $ g++ -Wall -O2 -c -o ptid.o ptid.ii To get further along, I'm currently using the attached hack to disable _GL_ATTRIBUTE_DEALLOC on Solaris. For the time being, I've --=20 You are receiving this mail because: You are on the CC list for the bug.=