ports/161193: [ERROR] cannot portupgrade ports/sysutils/lsof with CLANG

Andrei Lavreniyuk andy.lavr at gmail.com
Sat Oct 1 11:10:11 UTC 2011


>Number:         161193
>Category:       ports
>Synopsis:       [ERROR] cannot portupgrade ports/sysutils/lsof with CLANG
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 01 11:10:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Andrei Lavreniyuk
>Release:        FreeBSD 9.0-BETA3
>Organization:
Technica-03, Inc.
>Environment:
FreeBSD opensolaris.technica-03.local 9.0-BETA3 FreeBSD 9.0-BETA3 #0: Thu Sep 29 13:05:43 EEST 2011     root at opensolaris.technica-03.local:/usr/obj/usr/src/sys/SMP64R  amd64
>Description:
===>  Building for lsof-4.85D_1,5
(cd lib; make DEBUG="-O2" CFGF="-pipe -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -march=core2 -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -march=core2 -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_VM_MEMATTR_T -DHAS_CDEV2PRIV -DHAS_NO_SI_UDEV -DHAS_SYS_SX_H -DHAS_ZFS -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DHAS_NO_6PORT -DHAS_NO_6PPCB -DNEEDS_BOOLEAN_T -DFREEBSDV=9000 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHASIPv6 -DHASUTMPX -DHAS_STRFTIME -DLSOF_VSTR=\"9.0-BETA3\"")
clang  -pipe -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -march=core2 -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -march=core2 -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_VM_MEMATTR_T -DHAS_CDEV2PRIV -DHAS_NO_SI_UDEV -DHAS_SYS_SX_H -DHAS_ZFS -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DHAS_NO_6PORT -DHAS_NO_6PPCB -DNEEDS_BOOLEAN_T -DFREEBSDV=9000 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHASIPv6 -DHASUTMPX -DHAS_STRFTIME -DLSOF_VSTR="9.0-BETA3" -I/usr/src/sys -O2 -c ckkv.c
In file included from ckkv.c:43:
In file included from ./../lsof.h:195:
In file included from ./../dlsof.h:190:
In file included from /usr/src/sys/ufs/ufs/ufsmount.h:36:
/usr/src/sys/sys/buf.h:388:2: warning: implicit declaration of function 'KASSERT' is invalid in C99 [-Wimplicit-function-declaration]
        KASSERT(bp->b_bufobj != NULL, ("bwrite: no bufobj bp=%p", bp));
        ^
/usr/src/sys/sys/buf.h:388:33: warning: expression result unused [-Wunused-value]
        KASSERT(bp->b_bufobj != NULL, ("bwrite: no bufobj bp=%p", bp));
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/sys/buf.h:389:41: warning: expression result unused [-Wunused-value]
        KASSERT(bp->b_bufobj->bo_ops != NULL, ("bwrite: no bo_ops bp=%p", bp));
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/sys/buf.h:391:7: warning: expression result unused [-Wunused-value]
            ("bwrite: no bop_write bp=%p", bp));
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/sys/buf.h:399:33: warning: expression result unused [-Wunused-value]
        KASSERT(bp->b_bufobj != NULL, ("bstrategy: no bufobj bp=%p", bp));
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/sys/buf.h:401:7: warning: expression result unused [-Wunused-value]
            ("bstrategy: no bo_ops bp=%p", bp));
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/sys/buf.h:403:7: warning: expression result unused [-Wunused-value]
            ("bstrategy: no bop_strategy bp=%p", bp));
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ckkv.c:43:
In file included from ./../lsof.h:195:
In file included from ./../dlsof.h:432:
In file included from /usr/include/string.h:45:
/usr/include/strings.h:47:6: error: conflicting types for '__builtin_ffs'
int      ffs(int) __pure2;
         ^
/usr/include/machine/cpufunc.h:140:24: note: expanded from:
#define        ffs(x)  __builtin_ffs(x)
                       ^
/usr/include/strings.h:47:6: note: '__builtin_ffs' is a builtin with type 'int (unsigned int)'
7 warnings and 1 error generated.
*** Error code 1

Stop in /usr/ports/sysutils/lsof/work/lsof_4.85D.freebsd/lib.
*** Error code 1

Stop in /usr/ports/sysutils/lsof/work/lsof_4.85D.freebsd.
*** Error code 1

Stop in /usr/ports/sysutils/lsof.
** Command failed [exit code 1]: /usr/bin/script -qa /var/tmp/portupgrade20111001-12902-1sri6t8 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=lsof-4.85D_1,5 UPGRADE_PORT_VER=4.85D_1,5 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! sysutils/lsof (lsof-4.85D_1,5)        (compiler error)

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list