Advertisement
Guest User

Untitled

a guest
Jul 24th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags '-s' -o bin/mixer mixer/*.go
  2. ---------> This FAILS with this output:
  3. 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
  4.  
  5. GOOS=linux go build --ldflags '-extldflags "-static"' -a -o bin/mixer mixer/*.go
  6. ---------> This FAILS with this output:
  7. /usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
  8. /tmp/go-link-949739053/000018.o: In function `_cgo_f7895c2c5a3a_C2func_getaddrinfo':
  9. /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
  10. //usr/local/lib/libsoxr.a(soxr.c.o): In function `soxr_process._omp_fn.1':
  11. soxr.c:(.text+0x217): undefined reference to `omp_get_num_threads'
  12. soxr.c:(.text+0x21e): undefined reference to `omp_get_thread_num'
  13. //usr/local/lib/libsoxr.a(soxr.c.o): In function `soxr_output_no_callback._omp_fn.0':
  14. soxr.c:(.text+0x3e5): undefined reference to `omp_get_num_threads'
  15. soxr.c:(.text+0x3ec): undefined reference to `omp_get_thread_num'
  16. //usr/local/lib/libsoxr.a(soxr.c.o): In function `soxr_output':
  17. soxr.c:(.text+0x18b8): undefined reference to `GOMP_parallel'
  18. //usr/local/lib/libsoxr.a(soxr.c.o): In function `soxr_process':
  19. soxr.c:(.text+0x1cf6): undefined reference to `GOMP_parallel'
  20. //usr/local/lib/libsoxr.a(data-io.c.o): In function `_soxr_interleave':
  21. data-io.c:(.text+0xeee): undefined reference to `feclearexcept'
  22. data-io.c:(.text+0x126b): undefined reference to `fetestexcept'
  23. data-io.c:(.text+0x1294): undefined reference to `feclearexcept'
  24. etc. etc. etc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement