Building pkg-1.3.6 fails

Paul Mather paul at gromit.dlib.vt.edu
Thu Aug 21 15:01:04 UTC 2014


On Aug 21, 2014, at 7:24 AM, Mattia Rossi <mattia.rossi.mailinglists at gmail.com> wrote:

> Hi,
> 
> does anyone else get this issue when trying to build pkg 1.3.6 on arm?
> 
> ===>  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 = 0;
>           ^
> sqlite/sqlite3.c:57860:13: warning: unused variable 'key' [-Wunused-variable]
>        u32 key = get4byte(&apNew[i]->aData[8]);
>            ^
> sqlite/sqlite3.c:8542:26: warning: unused variable 'sqlite3one' [-Wunused-const-
> SQLITE_PRIVATE const int sqlite3one = 1;
>                         ^
> fatal error: error in backend: IO failure on output stream.
> *** [sqlite/libsqlite_static_la-sqlite3.lo] Error code 1
> 
> make[5]: stopped in /root/usr/ports/ports-mgmt/pkg/work/pkg-1.3.6/external
> 1 error
> 
> make[5]: stopped in /root/usr/ports/ports-mgmt/pkg/work/pkg-1.3.6/external
> *** [all] Error code 2
> 
> make[4]: stopped in /root/usr/ports/ports-mgmt/pkg/work/pkg-1.3.6/external
> 1 error
> 
> make[4]: stopped in /root/usr/ports/ports-mgmt/pkg/work/pkg-1.3.6/external
> *** [all-recursive] Error code 1
> 
> make[3]: stopped in /root/usr/ports/ports-mgmt/pkg/work/pkg-1.3.6
> 1 error
> 
> make[3]: stopped in /root/usr/ports/ports-mgmt/pkg/work/pkg-1.3.6
> *** [all] Error code 2
> 
> make[2]: stopped in /root/usr/ports/ports-mgmt/pkg/work/pkg-1.3.6
> 1 error
> 
> make[2]: stopped in /root/usr/ports/ports-mgmt/pkg/work/pkg-1.3.6
> ===> Compilation failed unexpectedly.
> 
> 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 
pkg-1.3.6 on my BBB and R-PI quite recently:

pmather at 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 at 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 at beaglebone:~ % uname -a
FreeBSD beaglebone 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r270100: Sun Aug 17 10:50:42 EDT 2014     paul at chumby.chumby.lan:/build/obj/bbb/arm.armv6/build/src/head/sys/BEAGLEBONE-NO_WITNESS  arm

pmather at 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: 


I suspect the "fatal error: error in backend: IO failure on output 
stream." might mean that you ran out of space in /tmp or that your SD 
card is going bad?

That point in the build takes quite a few minutes for me on ARM but 
gets past it.  I just started a make and this is what I got:

=====
[[...]]
===>  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 = 0;
           ^
sqlite/sqlite3.c:57860:13: warning: unused variable 'key' [-Wunused-variable]
        u32 key = get4byte(&apNew[i]->aData[8]);
            ^
sqlite/sqlite3.c:8542:26: warning: unused variable 'sqlite3one' [-Wunused-const-variable]
SQLITE_PRIVATE const int sqlite3one = 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
[[...]]
=====

The build is still running, but it is past the point it failed for you. 
 If it helps, I have /usr/ports and /tmp on an external USB drive.  By 
default, /tmp is on an md device, so may be consuming resources needed 
to compile this file.

Cheers,

Paul.


More information about the freebsd-arm mailing list