Opened 12 years ago
Closed 12 years ago
#36478 closed defect (fixed)
gdb: disable -Werror to fix build with clang + ccache
Reported by: | manphiz@… | Owned by: | dweber@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | haspatch | Cc: | anddam (Andrea D'Amore), maehne (Torsten Maehne) |
Port: | gdb |
Description
The attached patch disables "-Werror" which results in build failure when using clang with ccache. The root for this problem is that ccache passes CFLAGS to preprocessor and clang spits "unused arguments" warnings, which then upgraded to errors. Before ccache supports clang, it will be better to turn off this configure switch.
Note that this is NOT related to #36472.
Attachments (1)
Change History (6)
Changed 12 years ago by manphiz@…
Attachment: | Portfile-gdb-disable-ccache-for-clang.patch added |
---|
comment:1 Changed 12 years ago by manphiz@…
Sorry I forgot the CC the maintainer dweber. Where can I add this after submitting the bug?
comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | haspatch added |
---|---|
Owner: | changed from macports-tickets@… to dweber@… |
Summary: | Build fix for gdb when using clang with ccache → gdb: disable -Werror to fix build with clang + ccache |
comment:5 Changed 12 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Add comments about the clang and ccache issue.