Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829999 - www-apps/hugo-0.91.0 fail at compile phase
Summary: www-apps/hugo-0.91.0 fail at compile phase
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-26 10:48 UTC by Remus-Gabriel Chelu
Modified: 2021-12-27 02:04 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Created emerge-info.txt (emerge-info.txt,24.47 KB, text/plain)
2021-12-26 10:48 UTC, Remus-Gabriel Chelu
Details
Created www-apps:hugo-0.91.0:20211225-172241.log (www-apps:hugo-0.91.0:20211225-172241.log,10.69 KB, text/x-log)
2021-12-26 10:49 UTC, Remus-Gabriel Chelu
Details

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