Skip to contentSkip to conversation

go-cross-1.3: Fix missing dependency for cross compile

PATCH New Jason Wessel 1 participant 2 messages Jan 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 go-cross-1.3: Fix missing dependency for cross compile

The go-cross-1.3 package depends on the libgcc to be installed for the cross compiler else you will receive an error if this package builds first like:

runtime/cgo
/opt/tmp/sysroots/x86_64-linux/usr/bin/arm-wrs-linux-gnueabi/../../libexec/arm-wrs-linux-gnueabi/gcc/arm-wrs-linux-gnueabi/4.9.1/ld: cannot find crtbeginS.o: No such file or directory
collect2: error: ld returned 1 exit status

---
 recipes-devtools/go-cross/go-cross-1.3_1.3.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-devtools/go-cross/go-cross-1.3_1.3.bb +1 -1
index 775e28f..dd57e56 100644
@@ -5,7 +5,7 @@ DESCRIPTION = "\
 HOMEPAGE = "https://golang.org/"
 LICENSE = "BSD-3-Clause"
 
-DEPENDS = "virtual/${TARGET_PREFIX}gcc"
+DEPENDS = "virtual/${TARGET_PREFIX}gcc libgcc"
 
 SRC_URI = "http://golang.org/dl/go${PV}.src.tar.gz"
 
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 go-cross-1.3: Fix missing dependency for cross compile

The go-cross-1.3 package depends on the libgcc to be installed for the cross compiler else you will receive an error if this package builds first like:

runtime/cgo
/opt/tmp/sysroots/x86_64-linux/usr/bin/arm-wrs-linux-gnueabi/../../libexec/arm-wrs-linux-gnueabi/gcc/arm-wrs-linux-gnueabi/4.9.1/ld: cannot find crtbeginS.o: No such file or directory
collect2: error: ld returned 1 exit status

---
 recipes-devtools/go-cross/go-cross-1.3_1.3.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-devtools/go-cross/go-cross-1.3_1.3.bb +1 -1
index 775e28f..dd57e56 100644
@@ -5,7 +5,7 @@ DESCRIPTION = "\
 HOMEPAGE = "https://golang.org/"
 LICENSE = "BSD-3-Clause"
 
-DEPENDS = "virtual/${TARGET_PREFIX}gcc"
+DEPENDS = "virtual/${TARGET_PREFIX}gcc libgcc"
 
 SRC_URI = "http://golang.org/dl/go${PV}.src.tar.gz"
 
Signature · 1 line
1.7.9.5