[Starlingx-discuss] Cannot build golang-1.13.15 package

Scott Little scott.little at windriver.com
Mon Sep 27 13:55:42 UTC 2021


Does this sound like your bug ? https://launchpad.net/bugs/1943770

Fix is up for review ... 
https://review.opendev.org/c/starlingx/compile/+/810905

Scott


On 2021-09-26 9:21 p.m., Shigeru Yoshida wrote:
> Hi,
>
> I'm trying to build StarlingX ISO following the Layered Build Guide.
>
> When I run build-pkgs to build the compiler layer, building golang 
> 1.13.15 failed with the following error:
>
> # go tool dist test -run=^test:0_1$
> BUILDSTDERR: run: go list -gcflags=all= -ldflags=all= -f={{if 
> .Stale}}  STALE {{.ImportPath}}: {{.StaleReason}}{{end}} std DONE
> BUILDSTDERR: /builddir/build/BUILD/go-13.15/test/runtest.exe --shard=0 
> --shards=1
> BUILDSTDERR: run: go list -gcflags=all= -ldflags=all= -f={{if 
> .Stale}}  STALE {{.ImportPath}}: {{.StaleReason}}{{end}} std
> BUILDSTDERR: run: go list -gcflags=all= -ldflags=all= -f={{if 
> .Stale}}  STALE {{.ImportPath}}: {{.StaleReason}}{{end}} std DONE
> BUILDSTDERR: go run /builddir/build/BUILD/go-13.15/src/cmd/api/run.go
> BUILDSTDERR: run: go list -gcflags=all= -ldflags=all= -f={{if 
> .Stale}}  STALE {{.ImportPath}}: {{.StaleReason}}{{end}} std
> ##### API check
> # go tool dist test -run=^api$
> Go version is "go1.13.15", ignoring -next 
> /builddir/build/BUILD/go-13.15/api/next.txt
> BUILDSTDERR: run: go list -gcflags=all= -ldflags=all= -f={{if 
> .Stale}}  STALE {{.ImportPath}}: {{.StaleReason}}{{end}} std DONE
> FAILED
> RPM build errors:
> BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.7ZZ7V8 (%check)
> BUILDSTDERR:     Macro expanded in comment on line 148: 
> %{version}-%{release}
> BUILDSTDERR:     Macro expanded in comment on line 149: %{version}
> BUILDSTDERR:     Macro expanded in comment on line 150: %{version}
> BUILDSTDERR:     Macro expanded in comment on line 151: %{version}
> BUILDSTDERR:     Bad exit status from /var/tmp/rpm-tmp.7ZZ7V8 (%check)
> Child return code was: 1
> EXCEPTION: [Error()]
> Traceback (most recent call last):
>   File 
> "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 
> 96, in trace
>     result = func(*args, **kw)
>   File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 736, 
> in do_with_status
>     raise exception.Error("Command failed: \n # %s\n%s" % (command, 
> output), child.returncode)
> mockbuild.exception.Error: Command failed:
>  # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps 
> /builddir/build/SPECS/golang.spec
>
> It seems that other golang versions, e.g. 1.13.9, 1.15.14, and 1.16.6, 
> are built successfully.
>
> How can I fix this?  Can anybody give me some comments to fix this?
>
> Thanks,
> Shigeru
>
> _______________________________________________
> Starlingx-discuss mailing list
> Starlingx-discuss at lists.starlingx.io
> http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss





More information about the Starlingx-discuss mailing list