Date: Thu, 21 Aug 2014 10:55:05 -0400 From: Paul Mather <paul@gromit.dlib.vt.edu> To: Mattia Rossi <mattia.rossi.mailinglists@gmail.com> Cc: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: Building pkg-1.3.6 fails Message-ID: <4896998C-814F-499E-95B5-FC2CF611CA53@gromit.dlib.vt.edu> In-Reply-To: <53F5D6D2.50309@gmail.com> References: <53F5D6D2.50309@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Aug 21, 2014, at 7:24 AM, Mattia Rossi = <mattia.rossi.mailinglists@gmail.com> wrote: > Hi, >=20 > does anyone else get this issue when trying to build pkg 1.3.6 on arm? >=20 > =3D=3D=3D> Building for pkg-1.3.6 > /usr/bin/make all-recursive > Making all in external > ./libelf/native-elf-format > libelf/native-elf-format.h > /usr/bin/make all-am > CC libucl/src/libucl_static_la-ucl_emitter.lo > CC libucl/src/libucl_static_la-ucl_emitter_utils.lo > CC libucl/src/libucl_static_la-ucl_emitter_streamline.lo > CC libucl/src/libucl_static_la-ucl_hash.lo > CC libucl/src/libucl_static_la-ucl_parser.lo > CC libucl/src/libucl_static_la-ucl_schema.lo > CC libucl/src/libucl_static_la-ucl_util.lo > CC libucl/src/libucl_static_la-xxhash.lo > CC sqlite/libsqlite_static_la-sqlite3.lo > sqlite/sqlite3.c:53835:12: warning: unused variable 'pBlock' = [-Wunused-variable] > sqlite3 *pBlock =3D 0; > ^ > sqlite/sqlite3.c:57860:13: warning: unused variable 'key' = [-Wunused-variable] > u32 key =3D get4byte(&apNew[i]->aData[8]); > ^ > sqlite/sqlite3.c:8542:26: warning: unused variable 'sqlite3one' = [-Wunused-const- > SQLITE_PRIVATE const int sqlite3one =3D 1; > ^ > fatal error: error in backend: IO failure on output stream. > *** [sqlite/libsqlite_static_la-sqlite3.lo] Error code 1 >=20 > make[5]: stopped in = /root/usr/ports/ports-mgmt/pkg/work/pkg-1.3.6/external > 1 error >=20 > make[5]: stopped in = /root/usr/ports/ports-mgmt/pkg/work/pkg-1.3.6/external > *** [all] Error code 2 >=20 > make[4]: stopped in = /root/usr/ports/ports-mgmt/pkg/work/pkg-1.3.6/external > 1 error >=20 > make[4]: stopped in = /root/usr/ports/ports-mgmt/pkg/work/pkg-1.3.6/external > *** [all-recursive] Error code 1 >=20 > make[3]: stopped in /root/usr/ports/ports-mgmt/pkg/work/pkg-1.3.6 > 1 error >=20 > make[3]: stopped in /root/usr/ports/ports-mgmt/pkg/work/pkg-1.3.6 > *** [all] Error code 2 >=20 > make[2]: stopped in /root/usr/ports/ports-mgmt/pkg/work/pkg-1.3.6 > 1 error >=20 > make[2]: stopped in /root/usr/ports/ports-mgmt/pkg/work/pkg-1.3.6 > =3D=3D=3D> Compilation failed unexpectedly. >=20 > It's not related to permissions or filesystem stuff. On i386 it throws = the same warning and hangs for a bit (1 or 2 seconds) there, but then = continues wihtout problems and builds completely. > Anyone having an idea what's going on here? I don't know what's causing your error, but, FWIW, I successfully built=20= pkg-1.3.6 on my BBB and R-PI quite recently: pmather@beaglebone:~ % pkg info pkg pkg-1.3.6 Name : pkg Version : 1.3.6 Installed on : Thu Aug 14 18:07:21 EDT 2014 Origin : ports-mgmt/pkg Architecture : freebsd:11:armv6:32:el:eabi:softfp Prefix : /usr/local Categories : ports-mgmt Licenses : BSD2CLAUSE Maintainer : portmgr@FreeBSD.org WWW : http://wiki.freebsd.org/pkgng Comment : Package manager Flat size : 8.68MiB Description : Package management tool WWW: http://wiki.freebsd.org/pkgng This is on -CURRENT with clang: pmather@beaglebone:~ % uname -a FreeBSD beaglebone 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r270100: Sun Aug = 17 10:50:42 EDT 2014 = paul@chumby.chumby.lan:/build/obj/bbb/arm.armv6/build/src/head/sys/BEAGLEB= ONE-NO_WITNESS arm pmather@beaglebone:~ % cc -v FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: armv6--freebsd11.0-gnueabi Thread model: posix Selected GCC installation:=20 I suspect the "fatal error: error in backend: IO failure on output=20 stream." might mean that you ran out of space in /tmp or that your SD=20 card is going bad? That point in the build takes quite a few minutes for me on ARM but=20 gets past it. I just started a make and this is what I got: =3D=3D=3D=3D=3D [[...]] =3D=3D=3D> Building for pkg-1.3.6 /usr/bin/make all-recursive Making all in external ./libelf/native-elf-format > libelf/native-elf-format.h /usr/bin/make all-am CC libucl/src/libucl_static_la-ucl_emitter.lo CC libucl/src/libucl_static_la-ucl_emitter_utils.lo CC libucl/src/libucl_static_la-ucl_emitter_streamline.lo CC libucl/src/libucl_static_la-ucl_hash.lo CC libucl/src/libucl_static_la-ucl_parser.lo CC libucl/src/libucl_static_la-ucl_schema.lo CC libucl/src/libucl_static_la-ucl_util.lo CC libucl/src/libucl_static_la-xxhash.lo CC sqlite/libsqlite_static_la-sqlite3.lo sqlite/sqlite3.c:53835:12: warning: unused variable 'pBlock' = [-Wunused-variable] sqlite3 *pBlock =3D 0; ^ sqlite/sqlite3.c:57860:13: warning: unused variable 'key' = [-Wunused-variable] u32 key =3D get4byte(&apNew[i]->aData[8]); ^ sqlite/sqlite3.c:8542:26: warning: unused variable 'sqlite3one' = [-Wunused-const-variable] SQLITE_PRIVATE const int sqlite3one =3D 1; ^ 3 warnings generated. CC sqlite/libsqlite_static_la-shell.lo CC libyaml/src/libyaml_static_la-api.lo CC libyaml/src/libyaml_static_la-loader.lo CC libyaml/src/libyaml_static_la-parser.lo CC libyaml/src/libyaml_static_la-reader.lo [[...]] =3D=3D=3D=3D=3D The build is still running, but it is past the point it failed for you.=20= If it helps, I have /usr/ports and /tmp on an external USB drive. By=20= default, /tmp is on an md device, so may be consuming resources needed=20= to compile this file. Cheers, Paul.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4896998C-814F-499E-95B5-FC2CF611CA53>