gcc-4.6: "ld: warning: -fwritable-strings not compatible with literal CF/NSString"
Rainer Müller
raimue at macports.org
Sat Mar 5 04:51:07 PST 2011
On 2011-03-05 03:37 , Anatol Pomozov wrote:
> It makes me think that this is an issue with GCC. So I filed a bug
> against GCC http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47997 (that
> bug has a repro case).
>
> Bug the GCC teams says that -fwritable-strings has been removed from
> FSF gcc since 2004.
The warning appears to come from ld. See the source here:
http://www.opensource.apple.com/source/ld64/ld64-97.14/src/ld/MachOReaderRelocatable.hpp
If it does compile with gcc 4.5, you should compare the sections and
segments using otool(1) to see what makes the difference.
Rainer
More information about the macports-users
mailing list