Skip to contentSkip to conversation

go-native: Add work around for binutils >= 2.27

PATCH In review Jason Wessel 2 participants 2 messages Oct 18, 2016 – Oct 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 go-native: Add work around for binutils >= 2.27

We only use go-native to bootstrap go-cross and according to a post in the go-lang git it is possible to work around by disabling CGO:

https://github.com/golang/go/issues/16906

This patch fixes the compile failure with binutils 2.27 which has the message:

cannot load DWARF output from $WORK/net/_obj//_cgo_.o: decoding dwarf section info at offset 0x4: unsupported version 0

---
 recipes-devtools/go-cross/go-native.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-devtools/go-cross/go-native.inc +1 -1
index 8b4be9e..cb2dd2a 100644
@@ -16,7 +16,7 @@ do_compile() {
     mkdir -p ${WORKDIR}/build-tmp
 
     cd src
-    ./make.bash --host-only
+    CGO_ENABLED=0 ./make.bash --host-only
 }
 
 
Signature · 1 line
1.9.1
#1 lore raw

merged.

Bruce

Quoted 39 lines · Jason Wessel

We only use go-native to bootstrap go-cross and according to a post in the go-lang git it is possible to work around by disabling CGO:

https://github.com/golang/go/issues/16906

This patch fixes the compile failure with binutils 2.27 which has the message:

cannot load DWARF output from $WORK/net/_obj//_cgo_.o: decoding dwarf section info at offset 0x4: unsupported version 0

---
 recipes-devtools/go-cross/go-native.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-devtools/go-cross/go-native.inc +1 -2
index 8b4be9e..cb2dd2a 100644
@@ -16,7 +16,7 @@ do_compile() {
     mkdir -p ${WORKDIR}/build-tmp
 
     cd src
-    ./make.bash --host-only
+    CGO_ENABLED=0 ./make.bash --host-only
 }
 
 
--

1.9.1

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"