From owner-freebsd-arm@FreeBSD.ORG Thu Aug 21 15:33:42 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6E0BAD28 for ; Thu, 21 Aug 2014 15:33:42 +0000 (UTC) Received: from mail-la0-x234.google.com (mail-la0-x234.google.com [IPv6:2a00:1450:4010:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D731C33FB for ; Thu, 21 Aug 2014 15:33:41 +0000 (UTC) Received: by mail-la0-f52.google.com with SMTP id b17so8701866lan.39 for ; Thu, 21 Aug 2014 08:33:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=WDnciYKXwCOes5Fd0E9J1NPKeM6ISPfeXoc+bOVNIFA=; b=CmkXGhCkvppkHj+0wE2wI3vjv55ZgSldrHq8oM+oCIeb/Ss5338N4SxVvZzf+mmKPD iB/MoW3GGOB2qV1ii1MeINm5b7XJMGEF/q2/+8+901EVKKb2/Ah7kj2c0/TLPcA+pSPY Vk+SJZPR/H11XVhjVcD7lXZwF5O9xdy1IRlxZ+YkG+qTxTV/RSBCQcRo0BFNFW3NRfcv FXMe1q2hHDTtUnBb1PnjZvTzLBm/6jgFzACKU9VT+OA3QhevI/LZr8zZbKXQywEs7fbH OkYi1zzDAtEr2xHYf+pjvWhqVynS2/ArKM8BF09UYGBckaeBQl9QA5wS3rtiS3MHkQRA EIVg== X-Received: by 10.112.255.36 with SMTP id an4mr47582385lbd.31.1408635219599; Thu, 21 Aug 2014 08:33:39 -0700 (PDT) Received: from ?IPv6:2001:1620:ff0:c51:434:a679:7428:2e35? ([2001:1620:ff0:c51:434:a679:7428:2e35]) by mx.google.com with ESMTPSA id bz10sm38906522lbb.10.2014.08.21.08.33.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Aug 2014 08:33:38 -0700 (PDT) Message-ID: <53F61151.50801@gmail.com> Date: Thu, 21 Aug 2014 17:33:37 +0200 From: Mattia Rossi User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Paul Mather Subject: Re: Building pkg-1.3.6 fails References: <53F5D6D2.50309@gmail.com> <4896998C-814F-499E-95B5-FC2CF611CA53@gromit.dlib.vt.edu> In-Reply-To: <4896998C-814F-499E-95B5-FC2CF611CA53@gromit.dlib.vt.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2014 15:33:42 -0000 Hi Paul, Top posting for easier readability. You gave me the right hint. /tmp is on a tmpfs and it was too small thanks to a typo (1M instead of 10M). Would have never thought of that. Now fixing. Should work. Thanks! Am 21.08.2014 16:55, schrieb Paul Mather: > On Aug 21, 2014, at 7:24 AM, Mattia Rossi 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@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/BEAGLEBONE-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: > > > 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.