From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.77) (envelope-from ) id 1Soc1A-0000Hg-V0 for garchives@archives.gentoo.org; Tue, 10 Jul 2012 15:06:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5AD9B21C21A for ; Tue, 10 Jul 2012 15:06:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2419321C035 for ; Tue, 10 Jul 2012 14:12:06 +0000 (UTC) Received: from [192.168.1.128] (dynamic-adsl-84-221-126-178.clienti.tiscali.it [84.221.126.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: lu_zero) by smtp.gentoo.org (Postfix) with ESMTPSA id EC6911B4037; Tue, 10 Jul 2012 14:12:04 +0000 (UTC) Message-ID: <4FFC3859.8040702@gentoo.org> Date: Tue, 10 Jul 2012 16:12:41 +0200 From: Luca Barbato User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120529 Thunderbird/12.0.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-soc@lists.gentoo.org Reply-to: gentoo-soc@lists.gentoo.org MIME-Version: 1.0 To: Jing Huang CC: gentoo-soc@lists.gentoo.org Subject: Re: [gentoo-soc] cross_container_support - progress report #7 References: In-Reply-To: X-Enigmail-Version: 1.5pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 4617741e-e1e9-4bfa-9b90-1a20034cb82f X-Archives-Hash: 675f1dfb60c1a6d4f30a24f38639830b On 07/10/2012 03:31 PM, Jing Huang wrote: > First, I try to fix the ping issues in qemu-user of arm-gentoo > container. The patch is attached. Try to propose it to the qemu ml. > * The do_setsockopts function in qemu-user does not support SOL_RAW > socket which is used in ping program. > > * The recvmsg in main_loop of ping_common.c could not fetch > sockaddr_in struct. That is because do_sendrecvmsg in qemu-user does > not pass the msg->msg_name to the target. > So the ping will show "64 bytes from 0.0.0.0: icmp_req=1 ttl=64 time=1.16 ms". Good investigation =) > Second, I am investigating how to execute local gcc toolchain in > arm-gentoo container. > > At begging, I want to use ldd to parse each cross-gcc toolchain > executable in arm container. Then copy the related libraries to > gentoo-arm rootfs and config the ld.so.conf to make cross-gcc running > locally. You could also investigate mount --bind over files, that's how I'm doing it currently and works up to a point =) > Now, I think I could modify the crossdev script and build cross-gcc > with LDFLAGS="-static". So the cross-gcc can be executed locally in > arm-gentoo container. Seems an interesting approach as well. Less fun manging with runtime paths and runtime linkers. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero