Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6l problem with go-1.4.2 Linux/amd64 #1381

Closed
mjfh opened this issue Aug 26, 2015 · 5 comments
Closed

6l problem with go-1.4.2 Linux/amd64 #1381

mjfh opened this issue Aug 26, 2015 · 5 comments
Labels

Comments

@mjfh
Copy link

mjfh commented Aug 26, 2015

Running make gave a 6l error. Splitting -ldflags arguments worked for me:

diff --git a/Makefile b/Makefile
index 823428f..de1ba9c 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,8 @@

COMMIT_HASH=git rev-parse --short HEAD 2>/dev/null
BUILD_DATE=date +%FT%T%z
-LDFLAGS=-ldflags "-X github.com/spf13/hugo/hugolib.CommitHash=${COMMIT_HASH} -X github.com/spf13/hugo/hugolib.BuildDate=${BUILD_DATE}"
+LDFLAGS=-ldflags "-X github.com/spf13/hugo/hugolib.CommitHash=${COMMIT_HASH}" \

  • -ldflags "-X github.com/spf13/hugo/hugolib.BuildDate=${BUILD_DATE}"

all: gitinfo

Kind regards
Jordan

@bep
Copy link
Member

bep commented Aug 27, 2015

See #1365

@bep bep closed this as completed Aug 27, 2015
@mjfh
Copy link
Author

mjfh commented Aug 27, 2015

Hi Bjørn

It does not work on my system unless you split the -ldflags arguments so
you get the option twice (each one with a single "-X .." argument). I
have it not tested against go 1.5.

System:     Debian/stretch
Go version: go1.4.2 linux/amd64
Deb/package:    golang 2:1.4.2-3

Thanks for providing hugo - it is great.
Jordan

On Thu, 27 Aug 2015 17:58:51 +0000
Bjørn Erik Pedersen notifications@github.com wrote:

Closed #1381 #1381.


Reply to this email directly or view it on GitHub
#1381 (comment).

@bep
Copy link
Member

bep commented Aug 27, 2015

It works fine with Go 1.5. I would blame the Go team for this -- we could maybe make it so it works for both, but we got enough other stuff to focus on -- and this can be a motivation to get people onto Go 1.5. And it still builds fine with 1.4.2 and 1.3, but not with the provided make file.

@mjfh
Copy link
Author

mjfh commented Aug 27, 2015

On Thu, 27 Aug 2015 20:16:18 +0000
Bjørn Erik Pedersen notifications@github.com wrote:

It works fine with Go 1.5. I would blame the Go team for this -- we
could maybe make it so it works for both, but we got enough other stuff
to focus on -- and this can be a motivation to get people onto Go 1.5.

You are right. I would not do anything - just keep it in mind in case
somebody cares. No many people would probably try to compile it on
Stretch at the moment (just a guess).

And it still builds fine with 1.4.2 and 1.3, but not with the provided
make file.


Reply to this email directly or view it on GitHub
#1381 (comment).

Jordan

@anthonyfok anthonyfok changed the title l6 problem with go-4.2 inux/amd64 6l problem with go-1.4.2 Linux/amd64 Feb 6, 2016
bep added a commit that referenced this issue Apr 20, 2021
fb551cc75 Update index.md
7af894857 Update index.md
d235753ea Hugo 0.82.1
e03e72deb Merge branch 'temp0821'
e62648961 Merge branch 'release-0.82.1'
e1ab0f6eb releaser: Add release notes to /docs for release of 0.82.1
5d354c38d Replaced ``` code blocks with Code Toggler
c9d065c20 Remove duplicate YAML keys (#1420)
8ae31e701 Add webp image encoding support
848f2af26 Update internal.md (#1407)
c103a86a4 Fix `ref` shortcode example output (#1409)
9f8ba56dc Remove leading dot from where function KEY (#1419)
363251a51 Improve presentation of template lookup order (#1382)
b73da986d Improve description of Page Resources (#1381)
4e0bb96d5 Rework robots.txt page (#1405)
edf893e6f Update migrations.md (#1412)
450f1580b Add link to `site` function doc (#1417)
cfffa6e6f Added one extension to the list (#1414)
05f1665a0 Update theme
5de0b1c6a Update theme
250e20552 Add hugo.IsExtended
dea5e1fd7 Fix typo on merge function page (#1408)
1bbed2cf3 Update configuration.md
be0b64a46 Omit ISO
cbb5b8367 Fix `dateFormat` documentation
698f15466 Regenerate the docshelper
f9a8a7cb6 Update multilingual.md
a22dc6267 Fix grammar (#1398)
eb98b0997 Fix pretty URL example (#1397)
f4c4153dc Mention date var complementation in post scheduling (#1396)
17fae284c Fix resources.ExecuteAsTemplate argument order (#1394)
97e2c2abb Use code-toggle shortcode in `multilingual.md` (#1388)
3a84929bb Harmonize capitalization (#1393)
17f15daa6 fix file naming used in example (#1392)
5d97b6a18 Add slice syntax to sections permalinks config
00665b97b Improve description of `site.md`
edcf5e3fc Fix example in `merge.md`
f275ab778 Update postprocess.md
9593e3991 Fix file name
59bd9656f Update postprocess.md
1172fb6d0 Update to theNewDynamic repository (#1263)
f5b5c1d2c Update Hugo container image
4f2e92f2a Adapt anchorize.md to Goldmark
98aa19073 Directly link to `highlight` shortcode (#1384)
4c75c2422 Fix header level
f15c06f23 markdownify: add note about render-hooks and .RenderString (#1281)
69c82eb68 Remove Blackfriday reference from shortcode desc (#1380)
36de478df Update description of ignoreFiles config setting (#1377)
6337699d8 Remove "Authors" page from documentation (#1371)
35e73ca90 fix indent in example (#1372)
d3f01f19a Remove opening body tag from header example (#1376)
341a5a7d8 Update index.md
c9bfdbee6 Release 0.82.0
119644949 releaser: Add release notes to /docs for release of 0.82.0
32efaed78 docs: Regenerate docs helper
dea5449a2 docs: Regen CLI docs
eeab18fce Merge commit '81689af79901f0cdaff765cda6322dd4a9a7ccb3'
d508a1259 Attributes for code fences should be placed after the lang indicator only
c80905cef deps: Update to esbuild v0.9.0
95350eb79 Add support for Google Analytics v4
02d36f9bc Allow markdown attribute lists to be used in title render hooks
7df220a64 Merge commit '9d31f650da964a52f05fc27b7fb99cf3e09778cf'
d80bf61b7 Fixes #7698.

git-subtree-dir: docs
git-subtree-split: fb551cc750faa83a1493b0e0d0898cd98ab74465
@github-actions
Copy link

github-actions bot commented Apr 9, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants