mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
Struggling to compile Go bindings #190
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pzduniak on GitHub (Aug 17, 2017).
Alpine 3.6, any
go buildresults in the following:Brotli is built using the following command in a Dockerfile:
I have no idea what I should do, I am unable to reproduce it on OSX, local Alpine VM and so on. Whatever I do during the CI process (it's on CircleCI), this happens.
@pzduniak commented on GitHub (Aug 17, 2017):
Running with
-x:@eustas commented on GitHub (Aug 23, 2017):
Thanks for the report. Going to investigate/fix soon
@eustas commented on GitHub (Aug 23, 2017):
Could you provide sample CircleCI configuration, please?
@eustas commented on GitHub (Sep 19, 2017):
Hi. Could you try this once again? Now both static and shared libraries are built.
cgo.go will hook up with shared libraries, though.
@jbergstroem commented on GitHub (Mar 2, 2018):
I tried this with
golang:1.10-alpineby installing the build deps, building and installing brotli then verifying withgo test:@pzduniak commented on GitHub (Mar 2, 2018):
We've actually been using a fork of Brotli in our org, I'll look into it this week.
@pzduniak commented on GitHub (Mar 2, 2018):
I'm actually building static libraries and here's where the issue happens. Dynamic build works fine. From what I understand the static libraries are also built when you run a build through CMake, so it should be working fine.
@pzduniak commented on GitHub (Mar 2, 2018):
And here are the errors:
@eustas commented on GitHub (Oct 24, 2018):
Look like "static" libraries have to be installed / copied in specific locations so that compiler could find them...
Is it possible to create a clean repro case - i.e. script that could end up in compilation failure, similar to this or this?
@krk commented on GitHub (Mar 6, 2019):
A workaround is to remove the
#cgocomments from9cd01c0437/go/cbrotli/cgo.go (L10-L12)and specify the static libraries inCGO_LDFLAGS:@jameshartig commented on GitHub (Jan 23, 2020):
Is there a reason the static libraries have a
-staticsuffix? If they didn't have that then the cgo comments would work, right? Alternatively we could make another cgo_static file that has build constraints to only be used whenstatic_buildtag is present.@eustas commented on GitHub (Dec 15, 2021):
It is a build system limitation. We can not use both dynamic and static library from one target...