Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Sep 2012 06:27:25 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        current@freebsd.org
Cc:        delphij@freebsd.org
Subject:   buildkernel fails after r240104 (i386, clang)
Message-ID:  <20120905132725.GE1486@albert.catwhisker.org>

next in thread | raw e-mail | index | archive | help

--gMR3gsNFwZpnI/Ts
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Running:

FreeBSD g1-227.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #669 240081=
M: Tue Sep  4 05:02:11 PDT 2012     root@g1-227.catwhisker.org:/usr/obj/usr=
/src/sys/CANARY  i386

After updating sources to r240131, I see:

=2E..
>>> stage 3.2: building everything
=2E..
clang -c -O -pipe  -std=3Dc99 -g -Wall -Wredundant-decls -Wnested-externs -=
Wstrict
-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wu=
ndef=20
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics=
-show
-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-=
paren
theses-equality -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -=
D_KER
NEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h  -mno-aes -mno-avx -=
mno-m
mx -mno-sse -msoft-float -ffreestanding -fstack-protector -Werror  /usr/src=
/sys/
dev/fe/if_fe_isa.c
ctfconvert -L VERSION -g if_ed_wd80x3.o
clang -c -O -pipe  -std=3Dc99 -g -Wall -Wredundant-decls -Wnested-externs -=
Wstrict
-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wu=
ndef=20
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics=
-show
-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-=
paren
theses-equality -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -=
D_KER
NEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h  -mno-aes -mno-avx -=
mno-m
mx -mno-sse -msoft-float -ffreestanding -fstack-protector -Werror  /usr/src=
/sys/
dev/hpt27xx/osm_bsd.c
clang -c -O -pipe  -std=3Dc99 -g -Wall -Wredundant-decls -Wnested-externs -=
Wstrict
-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wu=
ndef=20
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics=
-show
-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-=
paren
theses-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 -Werror=
  /usr/src/sys/dev/hpt27xx/os_bsd.c
/usr/src/sys/dev/hpt27xx/osm_bsd.c:170:66: warning: for loop has empty body=
 [-Wempty-body]
                for (order=3D0, size=3DPAGE_SIZE; size<f->size; order++, si=
ze<<=3D1) ;
                                                                           =
    ^
/usr/src/sys/dev/hpt27xx/osm_bsd.c:170:66: note: put the semicolon on a sep=
arate line to silence this warning
/usr/src/sys/dev/hpt27xx/osm_bsd.c:1180:25: error: format string is not a s=
tring literal (potentially insecure) [-Werror,-Wformat-security]
            S_IRUSR | S_IWUSR, driver_name);
                               ^~~~~~~~~~~
/usr/src/sys/dev/hpt27xx/hpt27xx_config.h:46:21: note: expanded from macro =
'driver_name'
#define driver_name hpt27xx_driver_name
                    ^~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
*** [osm_bsd.o] Error code 1
ctfconvert -L VERSION -g if_fe_isa.o
ctfconvert -L VERSION -g os_bsd.o
1 warning generated.
ctfconvert -L VERSION -g if_bwn.o
ld  -d -warn-common -r -d -o if_bwn.kld if_bwn.o
ctfmerge -L VERSION -g -o if_bwn.kld if_bwn.o
:> export_syms
awk -f /usr/src/sys/conf/kmod_syms.awk if_bwn.kld  export_syms | xargs -J% =
objcopy % if_bwn.kld
ld -Bshareable  -d -warn-common -o if_bwn.ko.debug if_bwn.kld
objcopy --only-keep-debug if_bwn.ko.debug if_bwn.ko.symbols
objcopy --strip-debug --add-gnu-debuglink=3Dif_bwn.ko.symbols if_bwn.ko.deb=
ug if_bwn.ko
=2E..
=3D=3D=3D> zlib (all)
1 error
*** [buildkernel] Error code 2
1 error
*** [buildkernel] Error code 2
1 error



I suspect that:

------------------------------------------------------------------------
r240104 | delphij | 2012-09-04 14:02:57 -0700 (Tue, 04 Sep 2012) | 4 lines

Add hpt27xx to GENERIC kernel for amd64 and i386 systems.

MFC after:      2 weeks

------------------------------------------------------------------------

(from "svn log sys/conf/i386/GENERIC") has a fair bit of involvement.


Peace,
david
--=20
David H. Wolfskill				david@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.

--gMR3gsNFwZpnI/Ts
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlBHUzwACgkQmprOCmdXAD1+dQCgh+hSa9DSj8MVFfAoOJmzlQZZ
DeEAnjFwM2878rQip0hEksaqlsMIfKGB
=wSnk
-----END PGP SIGNATURE-----

--gMR3gsNFwZpnI/Ts--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120905132725.GE1486>