Bug 13940

Summary: Cannot enable Go in GCC
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: devtools / tool chainAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Medium CC: meta.mr.watcher, meta.watcher, randy.macleod, richard.purdie
Version: 3.3   
Target Milestone: Future   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2020-06-12 05:54:28 UTC
If I add LANGUAGES_append = ",go" to local.conf, gcc-cross fails to build:

| In file included from ../../../../../../../../work-shared/gcc-10.1.0-r0/gcc-10.1.0/libgcc/libgcc2.c:27:
| ../../../../../../../../work-shared/gcc-10.1.0-r0/gcc-10.1.0/libgcc/../gcc/tsystem.h:87:10: fatal error: stdio.h: No such file or directory
|    87 | #include <stdio.h>
|       |          ^~~~~~~~~
Comment 1 Randy MacLeod 2020-06-18 07:34:27 UTC
Khem are interested in adding gcc go.
Comment 2 Khem Raj 2020-08-20 21:53:31 UTC
(In reply to comment #1)
> Khem are interested in adding gcc go.

are there users interested in using gccgo ? since we have go compiler already in core, it might need some more persuation.
Comment 3 Ross Burton 2020-08-26 14:44:52 UTC
gccgo would be an interesting way to bootstrap a proper Go without needing binaries.
Comment 4 Ross Burton 2023-03-23 15:47:48 UTC
FWIW just tried again with master and gcc 12.2, same issue:

| In file included from ../../../../../../../../work-shared/gcc-12.2.0-r0/gcc-12.2.0/libgcc/libgcc2.c:27:
| ../../../../../../../../work-shared/gcc-12.2.0-r0/gcc-12.2.0/libgcc/../gcc/tsystem.h:87:10: fatal error: stdio.h: No such file or directory
|    87 | #include <stdio.h>
|       |          ^~~~~~~~~
Comment 5 Randy MacLeod 2023-10-24 14:24:51 UTC
Bulk move from 4.99 or 0.00 to 5.99