From owner-freebsd-current@FreeBSD.ORG Thu Aug 9 12:15:38 2012 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D876E106566B for ; Thu, 9 Aug 2012 12:15:38 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward5h.mail.yandex.net (forward5h.mail.yandex.net [IPv6:2a02:6b8:0:f05::5]) by mx1.freebsd.org (Postfix) with ESMTP id 58D688FC0A for ; Thu, 9 Aug 2012 12:15:38 +0000 (UTC) Received: from smtp4h.mail.yandex.net (smtp4h.mail.yandex.net [84.201.186.21]) by forward5h.mail.yandex.net (Yandex) with ESMTP id 0D32DD02662 for ; Thu, 9 Aug 2012 16:15:36 +0400 (MSK) Received: from smtp4h.mail.yandex.net (localhost [127.0.0.1]) by smtp4h.mail.yandex.net (Yandex) with ESMTP id DFF552C00EA for ; Thu, 9 Aug 2012 16:15:36 +0400 (MSK) Received: from 87.249.28.59.tel.ru (87.249.28.59.tel.ru [87.249.28.59]) by smtp4h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id FaAan0Hx-FaAOZrgn; Thu, 9 Aug 2012 16:15:36 +0400 Message-ID: <5023A9E8.6040503@passap.ru> Date: Thu, 09 Aug 2012 16:15:36 +0400 From: Boris Samorodov User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:14.0) Gecko/20120728 Thunderbird/14.0 MIME-Version: 1.0 To: freebsd-current@FreeBSD.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: [clang] kernel build failure X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2012 12:15:38 -0000 Hi! The kernel build fails at fresh CURRENT. At first I get a couple of same warnings like: ----- clang -c -O -pipe -std=c99 -g -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 -nostdinc -I. -I/usr/ src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mno-aes -mno-avx -mno-mmx -mno-sse -msoft-float -ffreestanding -fstack-protector /usr/src/sys/cam/scsi/scsi_cd.c /usr/src/sys/cam/scsi/scsi_cd.c:571:7: warning: implicit declaration of function 'scsi_extract_sense_ccb' is invalid in C99 [-Wimplicit-function-declaration] scsi_extract_sense_ccb(ccb, ^ ----- And then I get an error: ----- linking kernel.debug cam_periph.o: In function `cam_periph_error': /usr/src/sys/cam/cam_periph.c:1776: undefined reference to `scsi_extract_sense_ccb' scsi_cd.o: In function `cdasync': /usr/src/sys/cam/scsi/scsi_cd.c:571: undefined reference to `scsi_extract_sense_ccb' scsi_da.o: In function `daasync': /usr/src/sys/cam/scsi/scsi_da.c:1394: undefined reference to `scsi_extract_sense_ccb' *** [kernel.debug] Error code 1 ----- The system...: ----- % uname -a FreeBSD bsam.wart.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #21 r238828M: Fri Jul 27 16:26:02 SAMT 2012 bsam@bsam.wart.ru:/usr/obj/usr/src/sys/BBX i386 ----- ...is build with options: ----- WITH_CLANG_IS_CC="YES" WITH_LIBCPLUSPLUS="YES" ----- -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve