On Wed, Dec 31, 2014 at 09:41:34PM +0100, Dimitry Andric wrote: > Hi, > > I just committed an upgrade of clang, llvm and lldb to 3.5.0 to head, in > r276479. > ..... Hmm... I'm seeing a problem with src/sys/modules/asr, using (head) sources _at_276499 in native i386 environments that are presently running: FreeBSD g1-253.catwhisker.org 11.0-CURRENT FreeBSD 11.0-CURRENT #1470 r276462M/276468:1100051: Wed Dec 31 06:18:00 PST 2014 root_at_g1-253.catwhisker.org:/common/S4/obj/usr/src/sys/CANARY i386 and: FreeBSD freebeast.catwhisker.org 11.0-CURRENT FreeBSD 11.0-CURRENT #1707 r276462M/276468:1100051: Wed Dec 31 05:48:32 PST 2014 root_at_freebeast.catwhisker.org:/common/S4/obj/usr/src/sys/GENERIC i386 (For a history, showing at what points I've successfully built, installed, and booted i386/head on these machines, please see <http://www.catwhisker.org/~david/FreeBSD/history/laptop_i386_11.txt> or <http://www.catwhisker.org/~david/FreeBSD/history/freebeast_i386_11.txt>.) Here's an excerpt from one of the failures (re-created without a -j specification in order to help keep things clear): >>> Kernel build for CANARY started on Thu Jan 1 08:56:50 PST 2015 ... >>> stage 3.2: building everything ... ===> asmc (all) cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /common/S4/obj/usr/src/sys/CANARY/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -fno-common -g -I/common/S4/obj/usr/src/sys/CANARY -mno-mmx -mno-sse -msoft-float -ffreestanding -fstack-protector -gdwarf-2 -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-format -Wno-error-parentheses -Wno-error-switch -Wno-error-switch -Wno-error-shift-count-negative -Wno-error-shift-count-overflow -Wno-error-constant-conversion -mno-aes -mno-avx -std=iso9899:1999 -c /usr/src/sys/modules/asmc/../../dev/asmc/asmc.c /usr/src/sys/modules/asmc/../../dev/asmc/asmc.c:975:7: warning: assigning to 'char *' from 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] desc = buf+4; ^ ~~~~~ 1 warning generated. ctfconvert -L VERSION -g asmc.o ld -d -warn-common -r -d -o asmc.kld asmc.o ctfmerge -L VERSION -g -o asmc.kld asmc.o :> export_syms awk -f /usr/src/sys/conf/kmod_syms.awk asmc.kld export_syms | xargs -J% objcopy % asmc.kld ld -Bshareable -d -warn-common -o asmc.ko.debug asmc.kld objcopy --only-keep-debug asmc.ko.debug asmc.ko.symbols objcopy --strip-debug --add-gnu-debuglink=asmc.ko.symbols asmc.ko.debug asmc.ko ===> asr (all) cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /common/S4/obj/usr/src/sys/CANARY/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -fno-common -g -I/common/S4/obj/usr/src/sys/CANARY -mno-mmx -mno-sse -msoft-float -ffreestanding -fstack-protector -gdwarf-2 -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-format -Wno-error-parentheses -Wno-error-switch -Wno-error-switch -Wno-error-shift-count-negative -Wno-error-shift-count-overflow -Wno-error-constant-conversion -mno-aes -mno-avx -std=iso9899:1999 -c /usr/src/sys/modules/asr/../../dev/asr/asr.c /usr/src/sys/modules/asr/../../dev/asr/asr.c:1844:4: warning: assigning to 'caddr_t' (aka 'char *') from 'u_int8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] v = ccb->csio.data_ptr; ^ ~~~~~~~~~~~~~~~~~~ /usr/src/sys/modules/asr/../../dev/asr/asr.c:1849:29: error: array index 58 is past the end of the array (which contains 1 element) [-Werror,-Warray-bounds] while ((len > 0) && (sg < &((PPRIVATE_SCSI_SCB_EXECUTE_MESSAGE) ^ /usr/src/sys/dev/asr/i2omsg.h:934:8: note: array 'Simple' declared here I2O_SGE_SIMPLE_ELEMENT Simple[1]; ^ /usr/src/sys/modules/asr/../../dev/asr/asr.c:2621:18: warning: passing 'char [8]' to parameter of type 'u_int8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] ASR_prstring (iq->vendor, 8); ^~~~~~~~~~ /usr/src/sys/modules/asr/../../dev/asr/asr.c:732:24: note: passing argument to parameter 's' here ASR_prstring(u_int8_t *s, int len) ^ /usr/src/sys/modules/asr/../../dev/asr/asr.c:2626:18: warning: passing 'char [16]' to parameter of type 'u_int8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] ASR_prstring (iq->product, 16); /usr/src/sys/modules/asr/../../dev/asr/asr.c:732:24: note: passing argument to parameter 's' here ASR_prstring(u_int8_t *s, int len) ^ /usr/src/sys/modules/asr/../../dev/asr/asr.c:2631:18: warning: passing 'char [4]' to parameter of type 'u_int8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] ASR_prstring (iq->revision, 4); ^~~~~~~~~~~~ /usr/src/sys/modules/asr/../../dev/asr/asr.c:732:24: note: passing argument to parameter 's' here ASR_prstring(u_int8_t *s, int len) ^ 4 warnings and 1 error generated. *** Error code 1 Stop. make[4]: stopped in /usr/src/sys/modules/asr *** Error code 1 Stop. make[3]: stopped in /usr/src/sys/modules *** Error code 1 Stop. make[2]: stopped in /common/S4/obj/usr/src/sys/CANARY *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 src.conf is: g1-253(11.0-C)[9] cat /etc/src.conf KERNCONF=CANARY PORTS_MODULES=x11/nvidia-driver g1-253(11.0-C)[10] Peace, david -- David H. Wolfskill david_at_catwhisker.org Actions have consequences ... as do inactions. See http://www.catwhisker.org/~david/publickey.gpg for my public key.
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:54 UTC