Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 5D23BE00939; Wed, 8 Feb 2017 09:53:40 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.146.13 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E9D6BE00566 for ; Wed, 8 Feb 2017 09:53:38 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id v18HrYZ3017478 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Wed, 8 Feb 2017 09:53:36 -0800 (PST) Received: from yow-dellw-ma.wrs.com (128.224.56.18) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.294.0; Wed, 8 Feb 2017 09:53:34 -0800 From: Mark Asselstine To: Date: Wed, 8 Feb 2017 12:53:26 -0500 Message-ID: <1486576408-24433-1-git-send-email-mark.asselstine@windriver.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Cc: meta-virtualization@yoctoproject.org Subject: [PATCH 1/3] go-native: rename to go-initial-native X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2017 17:53:40 -0000 Content-Type: text/plain With the new per recipe sysroots we were having build issues since the bootstrap version of go (go-native 1.4) was being found and not the go-cross (1.6) we are expecting. This results in errors such as the following when building packages such as containerd: _cgo_.o: decoding dwarf section info at offset 0x4: unsupported version 0 This is caused by the dependency tree built up to prepare the per recipe sysroot. Since recipes like containerd DEPEND on go-cross and go-cross DEPENDS on go-native both are installed but unlike the old global sysroot the dependency parsing order results in go-native being last, overwriting go-cross. You can see this by running a devshell for containerd and running 'go version'. By adding '-initial' in the name we exploit functionality in sstate.bbclass that is already in place to handle gcc-initial and similar. This results in only explicit DEPENDS on go-native being enforced, so in the case of containerd we only get a dependency on go-cross and we therefor get go 1.6 as expected. Signed-off-by: Mark Asselstine --- recipes-devtools/go-cross/go-cross.inc | 4 +++- .../go-cross/{go-native_1.4.bb => go-initial-native_1.4.bb} | 0 2 files changed, 3 insertions(+), 1 deletion(-) rename recipes-devtools/go-cross/{go-native_1.4.bb => go-initial-native_1.4.bb} (100%) diff --git a/recipes-devtools/go-cross/go-cross.inc b/recipes-devtools/go-cross/go-cross.inc index 7f74903..857fbd5 100644 --- a/recipes-devtools/go-cross/go-cross.inc +++ b/recipes-devtools/go-cross/go-cross.inc @@ -1,7 +1,9 @@ inherit cross # libgcc is required for the target specific libraries to build properly -DEPENDS += "go-native libgcc virtual/${TARGET_PREFIX}gcc" +DEPENDS += "go-initial-native libgcc virtual/${TARGET_PREFIX}gcc" + +do_compile[depends] += "go-initial-native:do_populate_sysroot" # Prevent runstrip from running because you get errors when the host arch != target arch #INHIBIT_PACKAGE_STRIP = "1" diff --git a/recipes-devtools/go-cross/go-native_1.4.bb b/recipes-devtools/go-cross/go-initial-native_1.4.bb similarity index 100% rename from recipes-devtools/go-cross/go-native_1.4.bb rename to recipes-devtools/go-cross/go-initial-native_1.4.bb -- 2.7.4