Summary: | dev-libs/glib-2.36.3-r1: build fails using clang-3.3 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Yuta SATOH <nigoro.dev> |
Component: | [OLD] Library | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | Inclusion |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
URL: | https://bugzilla.gnome.org/show_bug.cgi?id=691608 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 408963, 417789 | ||
Attachments: | sample patch for glib-2.36.3-r1.ebuild |
Description
Yuta SATOH
2013-07-27 10:13:31 UTC
Better log, setting MAKEOPTS=-j1 libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -I.. -I../glib -I../glib -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DGLIB_COMPILATION -DPCRE_STATIC -pthread -Wall -Wstrict-prototypes -Werror=declaration-after-statement -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs -O2 -pipe -c gfileutils.c -fPIC -DPIC -o .libs/libglib_2_0_la-gfileutils.o gfileutils.c:1023:16: error: format string is not a string literal [-Werror,-Wformat-nonliteral] format_string, display_name, g_strerror (saved_errno)); ^~~~~~~~~~~~~ 1 error generated. gmake[4]: *** [libglib_2_0_la-gfileutils.lo] Error 1 gmake[4]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.36.3-r1/work/glib-2.36.3/glib' I've confirmed that can be compiled in the following way. CC=clang CXX=clang++ CFLAGS="-O2 -pipe -Wno-format-nonliteral" \ CXXFLAGS="-O2 -pipe -Wno-format-nonliteral" emerge dev-libs/glib Created attachment 354392 [details, diff]
sample patch for glib-2.36.3-r1.ebuild
As this only affects clang, I would include it. Feel free to commit in a week if nobody disagree Patch looks good. However if gcc is going to fix this, maybe the could have that "fix" applied to all compilers, right ? + 29 Sep 2013; Pacho Ramos <pacho@gentoo.org> glib-2.36.4-r1.ebuild: + Support compilation in clang until upstream solves this, upstream bug #691608 + (#478338 by Yuta SATOH) + |