Re: Kernel builds failing with lots of failed to retrieve array bounds errors
On 28/05/2012 20:45, Dimitry Andric wrote: Note, in r236149 I have pulled in a change from upstream clang, which should fix the root cause of the failed to retrieve array bounds messages. Indeed, I updated rebuilt yesterday message no-longer appeared. Thanks Sevan ___ 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: Kernel builds failing with lots of failed to retrieve array bounds errors
On 2012-05-24 22:50, Sevan / Venture37 wrote: On 24/05/2012 20:21, Dimitry Andric wrote: I've seen these too, and it seems clang produces debug info which ctfconvert can't handle, for some reason. However, in my case, the kernel build doesn't abort at all, it continues and all the object files seem to work just fine. Updated to r235926 kernel build completed successfully. Note, in r236149 I have pulled in a change from upstream clang, which should fix the root cause of the failed to retrieve array bounds messages. For flexible array members (e.g. arrays at the end of a struct with no specified size), clang didn't produce correct debug information. This confused ctfconvert, causing it to bail out. ___ 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
Kernel builds failing with lots of failed to retrieve array bounds errors
Hi I'm unable to build the generic kernel, seeing lots of failed to retrieve array bounds errors (129 to be exact) starting with ERROR: scsi_all.c: die 43574: failed to retrieve array bounds stoping at cc -c -O2 -pipe -fno-strict-aliasing -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 -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 -Werror /usr/src/sys/dev/ata/ata-card.c ctfconvert -L VERSION -g aic_pccard.o ctfconvert -L VERSION -g ata-card.o ctfconvert -L VERSION -g intel_dp.o ERROR: intel_dp.c: die 24561: failed to retrieve array bounds cc -c -O2 -pipe -fno-strict-aliasing -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 -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 -Werror /usr/src/sys/dev/cs/if_cs_pccard.c 1 error *** [all] Error code 2 1 error *** [all] Error code 2 1 error *** [modules-all] Error code 2 cc -c -O2 -pipe -fno-strict-aliasing -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 -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 -Werror /usr/src/sys/dev/ed/if_ed_pccard.c ctfconvert -L VERSION -g if_an_pccard.o ctfconvert -L VERSION -g if_cs_pccard.o ctfconvert -L VERSION -g if_ed_pccard.o 1 error *** [buildkernel] Error code 2 1 error *** [buildkernel] Error code 2 1 error Userland was built installed earlier this morning WITH_CLANG_IS_CC defined in src.conf, and the make.conf is as follows STRIP= CFLAGS+=-fno-omit-frame-pointer #CFLAGS= -O2 -fno-strict-aliasing -pipe #COPTFLAGS= -O -pipe #CXXFLAGS+= -fconserve-space #CPUTYPE?=core2 WITH_LCD_FILTERING=YES VIDEO_DRIVER=intel WITHOUT_NLS=YES RUBY_VER=1.9 WITH_LCD_FILTERING=YES # added by use.perl 2012-05-20 14:42:26 PERL_VERSION=5.12.4 Sevan / Venture37 ___ 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: Kernel builds failing with lots of failed to retrieve array bounds errors
On 2012-05-24 19:13, Sevan / Venture37 wrote: I'm unable to build the generic kernel, seeing lots of failed to retrieve array bounds errors (129 to be exact) starting with ERROR: scsi_all.c: die 43574: failed to retrieve array bounds stoping at I've seen these too, and it seems clang produces debug info which ctfconvert can't handle, for some reason. However, in my case, the kernel build doesn't abort at all, it continues and all the object files seem to work just fine. I don't know much much about the dtrace/ctfconvert stuff though, so I will have to ask somebody else to step up to investigate, and hopefully fix it. :) ... Userland was built installed earlier this morning WITH_CLANG_IS_CC defined in src.conf, and the make.conf is as follows STRIP= CFLAGS+=-fno-omit-frame-pointer Ah, I think that it works for me, because I don't define STRIP to empty. Just as an experiment, can you try commenting that setting, and do a clean build of your kernel? ___ 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: Kernel builds failing with lots of failed to retrieve array bounds errors
On 24/05/2012 20:21, Dimitry Andric wrote: I've seen these too, and it seems clang produces debug info which ctfconvert can't handle, for some reason. However, in my case, the kernel build doesn't abort at all, it continues and all the object files seem to work just fine. Updated to r235926 kernel build completed successfully. Sevan ___ 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