Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 829999

Summary: www-apps/hugo-0.91.0 fail at compile phase
Product: Gentoo Linux Reporter: Remus-Gabriel Chelu <gaby_r_chelu>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: floppym, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Created emerge-info.txt
Created www-apps:hugo-0.91.0:20211225-172241.log

Description Remus-Gabriel Chelu 2021-12-26 10:48:13 UTC
Created attachment 760208 [details]
Created emerge-info.txt

Failed to build/compile with this message:


>>> Source unpacked in /var/tmp/portage/www-apps/hugo-0.91.0/work
>>> Preparing source in /var/tmp/portage/www-apps/hugo-0.91.0/work/hugo-0.91.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/www-apps/hugo-0.91.0/work/hugo-0.91.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/www-apps/hugo-0.91.0/work/hugo-0.91.0 ...
mkdir: created directory 'bin'
WORK=/var/tmp/portage/www-apps/hugo-0.91.0/temp/go-build2750099236
/usr/lib/go/src/net/http/h2_bundle.go:38:2: read /usr/lib/go/src/net/http/httptrace/example_test.go: unexpected NUL in input
resources/resource_factories/create/remote.go:23:2: read /usr/lib/go/src/net/http/httputil/dump.go: unexpected NUL in input
 * ERROR: www-apps/hugo-0.91.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 127:  Called src_compile
 *   environment, line 3419:  Called die
 * The specific snippet of code:
 *       go build -ldflags "-X ${my_import_path}/hugo.buildDate=$(date --iso-8601=seconds) -X ${my_import_path}/hugo.vendorInfo=Gentoo" $(usex sass "-tags extended" "") -o "${S}/bin/hugo" || die;
 * 


Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge -auvDN world

Actual Results:
Failed to build

Expected Results:
Not to fail
Comment 1 Remus-Gabriel Chelu 2021-12-26 10:49:36 UTC
Created attachment 760209 [details]
Created www-apps:hugo-0.91.0:20211225-172241.log
Comment 2 Remus-Gabriel Chelu 2021-12-26 11:32:10 UTC
(In reply to Remus-Gabriel Chelu from comment #1)
> Created attachment 760209 [details]
> Created www-apps:hugo-0.91.0:20211225-172241.log

Solution: reinstalling "go"; "hugo" compile fine:
emerge -v go && emerge -v hugo
Comment 3 Remus-Gabriel Chelu 2021-12-26 12:30:23 UTC
Question (although possibly not directly related to 'hugo'), why does the output of the "emerge --depclean" command offer for 'unmerged': dev-ruby/sass-listen and dev-ruby/sass, when www-apps/hugo was it built with the 'sass' flag?
Comment 4 Mike Gilbert gentoo-dev 2021-12-26 16:46:45 UTC
It sounds like some file(s) in your dev-lang/go package were corrupted. Reinstalling dev-lang/go fixed that.

Marking this report as INVALID as the issue is likely isolated to your system.