Summary: | devel/libdispatch don't build with clang on 8.2-RELEASE amd64 | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Danilo Egêa Gondolfo <daniloegea> |
Component: | Individual Port(s) | Assignee: | freebsd-ports-bugs (Nobody) <ports-bugs> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | ||
Priority: | Normal | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Danilo Egêa Gondolfo
2011-03-01 14:30:10 UTC
Responsible Changed From-To: freebsd-ports-bugs->stas Fix synopsis and assign. Note, however, that according to the wiki, we're still more interested in patches than in just acknowledgements that ports don't build: http://wiki.freebsd.org/PortsAndClang We're currently aware of around 900 errors ... The problem is the binutils version, the port try to use the binutils-2.21. With the binutils-2.15 (native of the system) works fine. -- Danilo Egêa Gondolfo http://daniloegea.wordpress.com __________________________________________________ Fale com seus amigos de graça com o novo Yahoo! Messenger http://br.messenger.yahoo.com/ This is a common linking error due to Clang excessive warnings and affects many ports. Here is the excerpt if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi Which can be worked around by either -Qunused-arguments in CFLAGS or lt_cv_prog_compiler_pic_works=yes in CONFIGURE_ENV or below patch(es) --- a.diff begins here --- Index: devel/libdispatch/files/patch-clang =================================================================== RCS file: devel/libdispatch/files/patch-clang diff -N devel/libdispatch/files/patch-clang --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ devel/libdispatch/files/patch-clang 19 May 2011 05:23:51 -0000 @@ -0,0 +1,14 @@ +--- configure~ ++++ configure +@@ -9396,9 +9396,10 @@ else + echo "$as_me:9396: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized ++ # except for clang warnings about unused arguments. + # So say no if there are warnings other than the usual output. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp +- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ $SED '/argument unused/d; /^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi --- a.diff ends here --- --- b.diff begins here --- Index: Mk/bsd.port.mk =================================================================== RCS file: /a/.cvsup/ports/Mk/bsd.port.mk,v retrieving revision 1.682 diff -u -p -r1.682 bsd.port.mk --- Mk/bsd.port.mk 6 May 2011 06:20:12 -0000 1.682 +++ Mk/bsd.port.mk 19 May 2011 05:28:07 -0000 @@ -3021,7 +3028,7 @@ CONFIGURE_MAX_CMD_LEN!= ${SYSCTL} -n ker .endif GNU_CONFIGURE_PREFIX?= ${PREFIX} CONFIGURE_ARGS+= --prefix=${GNU_CONFIGURE_PREFIX} $${_LATE_CONFIGURE_ARGS} -CONFIGURE_ENV+= lt_cv_sys_max_cmd_len=${CONFIGURE_MAX_CMD_LEN} +CONFIGURE_ENV+= lt_cv_sys_max_cmd_len=${CONFIGURE_MAX_CMD_LEN} lt_cv_prog_compiler_pic_works=yes HAS_CONFIGURE= yes SET_LATE_CONFIGURE_ARGS= \ --- b.diff ends here --- stas 2011-08-21 08:03:09 UTC FreeBSD ports repository Modified files: devel/libdispatch Makefile Log: - Force PIC support in configure, so the check will pass on broken compiler/linker combinations as well. PR: ports/155157 Submitted by: Pan Tsu <inyaoo@gmail.com> Revision Changes Path 1.14 +2 -0 ports/devel/libdispatch/Makefile _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" Responsible Changed From-To: stas->freebsd-ports-bugs - back to the heap State Changed From-To: open->closed patch was committed on 21th august |