Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Nov 2013 02:59:00 GMT
From:      David Cecchin <dcecchin@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/183543: Recommend misc/dahdi, misc/dahdi-kmod, misc/dahdi-kmod26 USE_GCC=any
Message-ID:  <201311010259.rA12x09N001771@oldred.freebsd.org>
Resent-Message-ID: <201311010300.rA1300PQ009275@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         183543
>Category:       misc
>Synopsis:       Recommend misc/dahdi, misc/dahdi-kmod, misc/dahdi-kmod26 USE_GCC=any
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 01 03:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     David Cecchin
>Release:        FreeBSD 9.1-RELEASE-p8
>Organization:
>Environment:
FreeBSD sanction.local 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep  9 21:34:37 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
It seems that Dahdi is having some trouble building with clang. Currently I've set my ports compiler to be clang as outlined https://wiki.freebsd.org/PortsAndClang

The error seems to be:

===> freebsd/dahdi (all)
Warning: Object directory not changed from original /usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
Updating version.h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
x86 -> /usr/src/sys/x86/include
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
clang -O2 -pipe -fno-strict-aliasing -D__KERNEL__ -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../include -I. -I@ -I@/contrib/altq -fno-common  -fno-omit-frame-pointer  -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-parentheses-equality -c ng_dahdi_iface.c
clang -O2 -pipe -fno-strict-aliasing -D__KERNEL__ -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../include -I. -I@ -I@/contrib/altq -fno-common  -fno-omit-frame-pointer  -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-parentheses-equality -c /usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../drivers/dahdi/dahdi-base.c
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../drivers/dahdi/dahdi-base.c:826:2: error: expression result unused [-Werror,-Wunused-value]
        WARN_ON(!ec->owner);
        ^~~~~~~~~~~~~~~~~~~
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../include/dahdi/compat/bsd.h:355:2: note: expanded from macro 'WARN_ON'
        unlikely(__ret_warn_on);                        \
        ^
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../include/dahdi/compat/bsd.h:588:25: note: expanded from macro 'unlikely'
#define unlikely(x)     __builtin_expect(!!(x), 0)
                        ^~~~~~~~~~~~~~~~ ~~~~~~~~
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../drivers/dahdi/dahdi-base.c:3270:5: error: expression result unused [-Werror,-Wunused-value]
                         WARN_ON(1);
                         ^~~~~~~~~~
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../include/dahdi/compat/bsd.h:355:2: note: expanded from macro 'WARN_ON'
        unlikely(__ret_warn_on);                        \
        ^
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../include/dahdi/compat/bsd.h:588:25: note: expanded from macro 'unlikely'
#define unlikely(x)     __builtin_expect(!!(x), 0)
                        ^~~~~~~~~~~~~~~~ ~~~~~~~~
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../drivers/dahdi/dahdi-base.c:3341:12: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (count < 0)
            ~~~~~ ^ ~
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../drivers/dahdi/dahdi-base.c:3354:12: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (count < 0)
            ~~~~~ ^ ~
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../drivers/dahdi/dahdi-base.c:3846:3: error: expression result unused [-Werror,-Wunused-value]
                WARN_ON(1);
                ^~~~~~~~~~
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../include/dahdi/compat/bsd.h:355:2: note: expanded from macro 'WARN_ON'
        unlikely(__ret_warn_on);                        \
        ^
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../include/dahdi/compat/bsd.h:588:25: note: expanded from macro 'unlikely'
#define unlikely(x)     __builtin_expect(!!(x), 0)
                        ^~~~~~~~~~~~~~~~ ~~~~~~~~
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../drivers/dahdi/dahdi-base.c:5849:2: error: expression result unused [-Werror,-Wunused-value]
        WARN_ON(!chan->master);
        ^~~~~~~~~~~~~~~~~~~~~~
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../include/dahdi/compat/bsd.h:355:2: note: expanded from macro 'WARN_ON'
        unlikely(__ret_warn_on);                        \
        ^
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../include/dahdi/compat/bsd.h:588:25: note: expanded from macro 'unlikely'
#define unlikely(x)     __builtin_expect(!!(x), 0)
                        ^~~~~~~~~~~~~~~~ ~~~~~~~~
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../drivers/dahdi/dahdi-base.c:6308:3: error: expression result unused [-Werror,-Wunused-value]
                WARN_ON(1);
                ^~~~~~~~~~
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../include/dahdi/compat/bsd.h:355:2: note: expanded from macro 'WARN_ON'
        unlikely(__ret_warn_on);                        \
        ^
/usr/ports/misc/dahdi-kmod/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../include/dahdi/compat/bsd.h:588:25: note: expanded from macro 'unlikely'
#define unlikely(x)     __builtin_expect(!!(x), 0)
                        ^~~~~~~~~~~~~~~~ ~~~~~~~~
2 warnings and 5 errors generated.
*** [dahdi-base.o] Error code 1
1 error
*** [all] Error code 2
1 error
*** [all] Error code 2
1 error
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/misc/dahdi-kmod.

There are other issues too with FreeBSD 10:

http://beefy1.isc.freebsd.org/bulk/head-i386-default/2013-10-31_19h34m41s/logs/dahdi-kmod-2.4.0rc5_6.log
http://beefy2.isc.freebsd.org/bulk/head-amd64-default/2013-10-03_02h55m30s/logs/dahdi-kmod26-2.6.1.r10738.log
http://beefy2.isc.freebsd.org/bulk/10amd64-default/2013-10-31_09h08m16s/logs/dahdi-kmod-2.4.0rc5_6.log
http://beefy2.isc.freebsd.org/bulk/10amd64-default/2013-10-31_09h08m16s/logs/dahdi-kmod26-2.6.1.r10738.log

>How-To-Repeat:

>Fix:


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311010259.rA12x09N001771>