Bug 13940 - Cannot enable Go in GCC
Summary: Cannot enable Go in GCC
Status: NEW
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 3.3
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: Future
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-06-12 05:54 UTC by Ross Burton
Modified: 2026-08-20 15:04 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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