gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
74.38k stars 7.43k forks source link

extend version on Mac gives "ld: warning: ignoring duplicate libraries: '-lc++', '-lm'" error massed on go install #12659

Open gedw99 opened 1 month ago

gedw99 commented 1 month ago

What version of Hugo are you using (hugo version)?

latest

Does this issue reproduce with the latest release?

yes

How to reproduce ?

I have only done this on a Mac m2.

Hugo still installs and works, but I wanted to just raise this, as originally I thought the install failed, due to the message. Maybe there is an easy way to fix this message occurring, so I figured that it is worth raising.

CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest
# github.com/gohugoio/hugo
ld: warning: ignoring duplicate libraries: '-lc++', '-lm'
hugo version                                                           
hugo v0.128.2+extended darwin/arm64 BuildDate=unknown

-tags extended,osusergo,netgo works still

CGO_ENABLED=1 go install -tags extended,osusergo,netgo github.com/gohugoio/hugo@latest
# github.com/gohugoio/hugo
ld: warning: ignoring duplicate libraries: '-lc++', '-lm'
hugo version                                                           
hugo v0.128.2+extended darwin/arm64 BuildDate=unknown
bep commented 1 month ago

This comes from

You could try to convince this project to fix this: https://github.com/sass/libsass

gedw99 commented 1 month ago

Thanks @bep

Close this and reduce the backlog; to me its not worth the effort …

gedw99 commented 1 month ago

Thanks @bep

Close this and reduce the backlog; to me like not worth the effort …