From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1ABF8138454 for ; Sat, 12 Sep 2015 12:41:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C4A71E083C; Sat, 12 Sep 2015 12:41:37 +0000 (UTC) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 99112E07EB for ; Sat, 12 Sep 2015 12:41:36 +0000 (UTC) Received: by pacex6 with SMTP id ex6so99848717pac.0 for ; Sat, 12 Sep 2015 05:41:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=qXwV0X+/xaB1b7YLmyxhtuwz+tfIa5R87cquK//PEuo=; b=pjuSfy16F3BJWJ0HVzLXX/LyRFNCuDHoqOWVAIUvLhhm2A9+CIS8HoRC1ld1wBs2gv UWKF5yX8hOhNGmbeItUXMW1x3t2qBnU2dKjoAHBSLVJbMHetFiGAibGJi31Rt6Or7lGS X8gGtfHT0rbtiObhuuQpHeNAZHQV9EeJZOHFj76N8c94ARbdxHSTM7SEXuI5dyJjmurr DCecEAT0OMoVxkDGqrxRWkdPdlJOMpjB2e8lA71sGyvpM51hiQigKXggcRLmMrEBwa9i l07z2s6dUXoTZrjTTDi7/uLqxyAxh6GH43yqmFWuusZ2Jt3RftX7mbO84Y4+3TTbT+6f EwzA== X-Received: by 10.66.66.1 with SMTP id b1mr814275pat.60.1442061695596; Sat, 12 Sep 2015 05:41:35 -0700 (PDT) Received: from [192.168.1.40] (16.86.70.115.static.exetel.com.au. [115.70.86.16]) by smtp.gmail.com with ESMTPSA id rz10sm5767837pab.42.2015.09.12.05.41.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 Sep 2015 05:41:34 -0700 (PDT) Subject: Re: [gentoo-user] Can't update to go-1.4.2 To: gentoo-user@lists.gentoo.org References: <55F08D3F.8020501@gmail.com> From: Bruce Schultz Message-ID: <55F41D67.1030600@gmail.com> Date: Sat, 12 Sep 2015 22:41:11 +1000 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <55F08D3F.8020501@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: ccef53cf-7c22-43ad-b6e0-d3753d0ea138 X-Archives-Hash: c70fcd595d31566a57b74020af3d2037 On 10/09/15 05:49, Alan McKinnon wrote: > On 09/09/2015 21:37, Ajai Khattri wrote: >> On Fri, 4 Sep 2015, Fernando Rodriguez wrote: >> >>> Post your emerge --info. >>> Why do you have i686-pc-linux-gnu-gcc on a 64-bit machine? >> FYI, this is 32bit Gentoo running on a 64bit virtual machine (so it has >> a 64bit kernel) because awhile ago I upgraded from a 32bit setup. Was >> hoping I wouldn't have to reinstall the whole OS... > > You have a 64 bit kernel, this is true, but a 32 bit userland. > > I don't know how Go does these things but apps don't usually talk to the > kernel directly, they talk to libc. Which in your case is ... 32 bit > > Reinstall. Not necessary. It builds successfully with the command: linux32 emerge go Without the linux32 pre-command, the go build system detects the system as "linux/amd64". However, when adding it the system is identified as "linux/386". (But beware that it will probably cause issues when you update in future) I've been running a system with 64 bit kernel and 32 bit userspace for quite a few years and its only the 4th issue I've hit, so while its generally not supported, it still works mostly. For reference, the other issues I've hit are: - kernel ABI incompatibility with autofs (fixed in a later kernel) - virtualbox kernel modules needed to be built 64 bit - steam has issues detecting system & tries to launch 64 bit binaries (I'll try the linux32 trick with that later too) I'd never had more than passing interest in go, but tonight I've started working through the tutorial & I think I'll keep playing with it for a bit. Cheers Bruce -- :b