Re: [clang] kernel build failure

2012-08-10 Thread Boris Samorodov

09.08.2012 16:26, David Wolfskill пишет:

On Thu, Aug 09, 2012 at 04:15:36PM +0400, Boris Samorodov wrote:

Hi!

The kernel build fails at fresh CURRENT...
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 b...@bsam.wart.ru:/usr/obj/usr/src/sys/BBX
   i386
-


I had no trouble (just now); was running:

FreeBSD g1-227.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #645 239138M: 
Wed Aug  8 04:44:43 PDT 2012 
r...@g1-227.catwhisker.org:/usr/obj/usr/src/sys/CANARY  i386

now running:

FreeBSD g1-227.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #646 239148M: 
Thu Aug  9 05:04:05 PDT 2012 
r...@g1-227.catwhisker.org:/usr/obj/usr/src/sys/CANARY  i386


I appeared to have some stale patches:
-
% svn st /usr/src
M   /usr/src/sys/cam/cam_periph.c
M   /usr/src/sys/cam/scsi/scsi_all.c
M   /usr/src/sys/cam/scsi/scsi_all.h
M   /usr/src/sys/cam/scsi/scsi_cd.c
M   /usr/src/sys/cam/scsi/scsi_da.c
-

Reverting helped here. Thanks for your cooperation!

--
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [clang] kernel build failure

2012-08-09 Thread David Wolfskill
On Thu, Aug 09, 2012 at 04:15:36PM +0400, Boris Samorodov wrote:
> Hi!
> 
> The kernel build fails at fresh CURRENT...
> 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 b...@bsam.wart.ru:/usr/obj/usr/src/sys/BBX 
>   i386
> -

I had no trouble (just now); was running:

FreeBSD g1-227.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #645 239138M: 
Wed Aug  8 04:44:43 PDT 2012 
r...@g1-227.catwhisker.org:/usr/obj/usr/src/sys/CANARY  i386

now running:

FreeBSD g1-227.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #646 239148M: 
Thu Aug  9 05:04:05 PDT 2012 
r...@g1-227.catwhisker.org:/usr/obj/usr/src/sys/CANARY  i386

Peace,
david
-- 
David H. Wolfskill  da...@catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


pgpAKLjALFtGI.pgp
Description: PGP signature


[clang] kernel build failure

2012-08-09 Thread Boris Samorodov

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 b...@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
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"