Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags '-s' -o bin/mixer mixer/*.go
- ---------> This FAILS with this output:
- go build reimagine-mixer-go/vendor/github.com/zaf/resample: build constraints exclude all Go files in /home/ec2-user/go/src/reimagine-mixer-go/vendor/github.com/zaf/resample
- GOOS=linux go build --ldflags '-extldflags "-static"' -a -o bin/mixer mixer/*.go
- ---------> This FAILS with this output:
- /usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
- /tmp/go-link-949739053/000018.o: In function `_cgo_f7895c2c5a3a_C2func_getaddrinfo':
- /tmp/go-build/cgo-gcc-prolog:46: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
- //usr/local/lib/libsoxr.a(soxr.c.o): In function `soxr_process._omp_fn.1':
- soxr.c:(.text+0x217): undefined reference to `omp_get_num_threads'
- soxr.c:(.text+0x21e): undefined reference to `omp_get_thread_num'
- //usr/local/lib/libsoxr.a(soxr.c.o): In function `soxr_output_no_callback._omp_fn.0':
- soxr.c:(.text+0x3e5): undefined reference to `omp_get_num_threads'
- soxr.c:(.text+0x3ec): undefined reference to `omp_get_thread_num'
- //usr/local/lib/libsoxr.a(soxr.c.o): In function `soxr_output':
- soxr.c:(.text+0x18b8): undefined reference to `GOMP_parallel'
- //usr/local/lib/libsoxr.a(soxr.c.o): In function `soxr_process':
- soxr.c:(.text+0x1cf6): undefined reference to `GOMP_parallel'
- //usr/local/lib/libsoxr.a(data-io.c.o): In function `_soxr_interleave':
- data-io.c:(.text+0xeee): undefined reference to `feclearexcept'
- data-io.c:(.text+0x126b): undefined reference to `fetestexcept'
- data-io.c:(.text+0x1294): undefined reference to `feclearexcept'
- etc. etc. etc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement