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)

Portfile-gdb-disable-ccache-for-clang.patch (609 bytes) - added by manphiz@… 12 years ago.
Add comments about the clang and ccache issue.

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by manphiz@…

Add comments about the clang and ccache issue.

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 ccachegdb: disable -Werror to fix build with clang + ccache

comment:3 Changed 12 years ago by anddam (Andrea D'Amore)

Cc: and.damore@… added

Cc Me!

comment:4 Changed 12 years ago by maehne (Torsten Maehne)

Cc: Torsten.Maehne@… added

Cc Me!

comment:5 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.