misc/183543: Recommend misc/dahdi, misc/dahdi-kmod, misc/dahdi-kmod26 USE_GCC=any
David Cecchin
dcecchin at gmail.com
Fri Nov 1 03:00:00 UTC 2013
>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 at 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:
More information about the freebsd-bugs
mailing list