From owner-freebsd-arm@freebsd.org Mon Dec 28 22:02:03 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 50D76A53AB2 for ; Mon, 28 Dec 2015 22:02:03 +0000 (UTC) (envelope-from crees@physics.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 350381829 for ; Mon, 28 Dec 2015 22:02:03 +0000 (UTC) (envelope-from crees@physics.org) Received: by mailman.ysv.freebsd.org (Postfix) id 34DBFA53AB0; Mon, 28 Dec 2015 22:02:03 +0000 (UTC) Delivered-To: arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 34753A53AAF for ; Mon, 28 Dec 2015 22:02:03 +0000 (UTC) (envelope-from crees@physics.org) Received: from mk-outboundfilter-5.mail.uk.tiscali.com (mk-outboundfilter-5.mail.uk.tiscali.com [212.74.114.1]) by mx1.freebsd.org (Postfix) with ESMTP id CCACA1828 for ; Mon, 28 Dec 2015 22:02:02 +0000 (UTC) (envelope-from crees@physics.org) X-Trace: 259377704/mk-outboundfilter-5.mail.uk.tiscali.com/PIPEX/$ON_NET_AUTH_ACCEPTED/Talk_Talk_Customer/2.102.6.73/-4.0/crees@physics.org X-SBRS: -4.0 X-RemoteIP: 2.102.6.73 X-IP-MAIL-FROM: crees@physics.org X-SMTP-AUTH: bayofrum@uwclub.net X-MUA: Mozilla/5.0 (Windows NT 5.1; rv:32.0) Gecko/20100101 Firefox/32.0 SeaMonkey/2.29 X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CPCQA2sIFWPEkGZgJeKAECgw9SbYhZtlYmhwdNAQEBAQEBBwEBAQFBP0EQhCIeIj0WGAMCAQIBJwonBgICiC8BCZsaoT4hhlaDeziDOYI2hBkFlwaBDoQyiW1Kg3yCdw4jhTGOOoRuPjQBAQGCZ4ITAQEB X-IPAS-Result: A2CPCQA2sIFWPEkGZgJeKAECgw9SbYhZtlYmhwdNAQEBAQEBBwEBAQFBP0EQhCIeIj0WGAMCAQIBJwonBgICiC8BCZsaoT4hhlaDeziDOYI2hBkFlwaBDoQyiW1Kg3yCdw4jhTGOOoRuPjQBAQGCZ4ITAQEB X-IronPort-AV: E=Sophos;i="5.20,492,1444690800"; d="scan'208";a="259377704" X-IP-Direction: OUT Received: from host-2-102-6-73.as13285.net (HELO pegasus.bayofrum.net) ([2.102.6.73]) by smtp.pipex.tiscali.co.uk with ESMTP; 28 Dec 2015 22:01:54 +0000 Received: from [192.168.1.181] (HESTIA.bayofrum.net [192.168.1.181]) by pegasus.bayofrum.net (Postfix) with ESMTPSA id 8CD3419EA2 for ; Mon, 28 Dec 2015 22:00:36 +0000 (GMT) Message-ID: <5681AD3F.6000202@physics.org> Date: Mon, 28 Dec 2015 21:44:31 +0000 From: Chris Rees User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:32.0) Gecko/20100101 Firefox/32.0 SeaMonkey/2.29 MIME-Version: 1.0 To: arm@FreeBSD.org Subject: Cross building ports amd64/armv6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-bayofrum-MailScanner-Information: Please contact the ISP for more information X-bayofrum-MailScanner-ID: 8CD3419EA2.A9565 X-bayofrum-MailScanner: Found to be clean X-bayofrum-MailScanner-From: crees@physics.org X-Spam-Status: No X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Dec 2015 22:02:03 -0000 Hi all, Got a weird problem (as you'd expect with cross-built ports!) I have a cross-building toolchain made with [1] (irrelevant to this issue), and I'm using poudriere to build ports for my R-Pi. It's mainly working great, save a few issues with ld for which I'm disabling the cross-building tools and using the native ones. The issue I have is with the odd port that tries to install(1) empty files, such as lang/python27 and audio/libvorbis [2]. I can reproduce this by entering the build jail, and *on the wrkdir mount* touching a, installing a b. The wrkdir is created with mdconfig -a -t swap -s 3G by poudriere, and it doesn't happen on the zfs partition that the partition resides on. I've narrowed it down to this ancient optimisation (mmap and write if less than 8M), which is from ~r1000 [3]; if I disable this block of code and just use the code below it (read to buf, write from buf) the problem disappears. Firstly, is this known? Secondly, is it likely to be possible/a priority to fix? It could be anything, but my suspicion is that it's an endian issue, as somehow nw ends up negative (error from line 1181). I could be wrong. Could also somehow be a 64/32bit issue... I'll stop guessing. Does anyone have any ideas please? [crees@pegasus]~% uname -a FreeBSD pegasus.bayofrum.net 10.2-RELEASE-p2 FreeBSD 10.2-RELEASE-p2 #2 r287474: Sat Sep 5 17:56:09 BST 2015 root@pegasus.bayofrum.net:/usr/obj/usr/src/sys/PEGASUS amd64 Chris [1] http://phaq.phunsites.net/2015/10/11/freebsd-on-armv6-cross-compile-performance-optimization-for-poudriere/ [2] https://www.bayofrum.net/pkg/102armv6-default/2015-12-27_22h07m30s/logs/errors/libvorbis-1.3.5,3.log [3] http://svnweb.freebsd.org/base/head/usr.bin/xinstall/xinstall.c?revision=291091&view=markup#l1168 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.