Package: golang-1.17-src Version: 1.17 I found the whole /usr/lib/go-1.17/pkg/include/ directory missing from the golang-src package. Verified with the following filelist as well:
https://packages.debian.org/sid/all/golang-1.17-src/filelist The "include" directory should be there as per Ian from golang.org. Missing it prevents installing certain packages like below. It's OK not to include them by default in the golang-vv-src packages as there might not be many people using them, however, I searched for "golang-1.17" but found no other packages providing them. Maybe provide an extra -src-include package? BTW, the problem exist in golang-1.18-src as well, verified by examining the listing from https://packages.debian.org/sid/all/golang-1.18-src/filelist thanks ---------- Forwarded message --------- From: Ian Lance Taylor <i...@golang.org> Date: Thu, Apr 7, 2022 at 7:40 PM Subject: Re: [go-nuts] Missing /usr/lib/go/pkg/include/ for native binaries To: Tong Sun Cc: golang-nuts <golang-n...@googlegroups.com> On Thu, Apr 7, 2022 at 2:35 PM Tong Sun wrote: > > This might be the first go package that I do `go get` and which requires > native binaries: > > $ go get -v go.opentelemetry.io/otel/exporters/stdout/stdouttrace > golang.org/x/sys/unix > # golang.org/x/sys/unix > /.../Go/pkg/mod/golang.org/x/sys@v0.0.0-20210423185535-09eb48e85fd7/unix/asm_linux_amd64.s:9: > #include: open /usr/lib/go-1.17/pkg/include/textflag.h: no such file or > directory > > I checked and found that I'm missing the whole /usr/lib/go-1.17/pkg/include/ > directory. > > How can I get them so that my `go get` can be successful? > > Thanks > > $ go version > go version go1.17.6 linux/amd64 > > $ lsb_release -a > No LSB modules are available. > Distributor ID: Debian > Description: Debian GNU/Linux bullseye/sid > Release: 10.12 > Codename: buster > > $ apt-cache policy golang-1.17-src > golang-1.17-src: > Installed: 1.17.6-1~bpo11+1 > Candidate: 1.17.8-1~bpo11+1 > Version table: > 1.17.8-1~bpo11+1 100 > 100 http://deb.debian.org/debian bullseye-backports/main amd64 > Packages > *** 1.17.6-1~bpo11+1 100 > 100 /var/lib/dpkg/status That's odd. File a bug report against Debian? I don't know why they are missing. You can of course get the header files you need by installing Go yourself (https://go.dev/doc/install). Ian