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

How to build docker image for M1 processor? #69

Closed
rafaph opened this issue Oct 28, 2022 · 0 comments
Closed

How to build docker image for M1 processor? #69

rafaph opened this issue Oct 28, 2022 · 0 comments

Comments

@rafaph
Copy link

rafaph commented Oct 28, 2022

Hello, first of all thank you for this amazing project!

I'm trying to build using the Dockerfile provided and I'm getting this error, not sure how to proceed to fix.

Here is the log:

> [stage-0 7/7] RUN make emulator/build:
#0 0.188 CGO_ENABLED=1 CXX=clang++ go build -o bigquery-emulator \
#0 0.188        -ldflags='-s -w -X main.version=latest -X main.revision=353f38c -linkmode external -extldflags "-static"' \
#0 0.188        ./cmd/bigquery-emulator
#0 805.4 # github.com/goccy/bigquery-emulator/cmd/bigquery-emulator
#0 805.4 /usr/local/go/pkg/tool/linux_arm64/link: running clang++ failed: exit status 1
#0 805.4 /usr/bin/ld: /usr/bin/ld: DWARF error: could not find variable specification at offset 62f34c
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 6ef417
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 6f16b9
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset e4b4f7
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset e5329a
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset e53315
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset e53374
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset e533d3
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset e5341a
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset e53461
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset e66d11
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset e67919
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset fa8c72
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset fd21fe
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset fd26c2
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset fd2a08
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset fd2d4e
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset fd3094
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset fd33da
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset fd3720
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset fd3a66
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset fd3df9
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset fd418c
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1060adf
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 10632b0
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1063a71
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1078783
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 108bc96
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 108befd
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 108c166
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 10e8ab6
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 10ee31e
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 10eeff5
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 10f0771
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 10f29d8
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 10f348f
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 10f3f54
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 10f49e1
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 10f5a9e
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 10f67cd
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 10f746e
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 10f8950
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 10fcbf5
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 10fd6ba
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 10fe171
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1100611
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11027ba
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1102c0d
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1102e5c
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11030af
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 110330a
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1103579
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11037e8
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11039e9
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1103bec
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1103df3
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1104004
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1104216
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11044f9
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11047de
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1104b8c
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1104c05
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1104c63
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1104ca9
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1158e10
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1159939
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 115a54b
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 115b277
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 115bf30
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1164bd2
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1164d92
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 116507a
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11768c5
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1177ca5
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1179160
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 117a0e9
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 117a96f
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 117b2d5
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 117c2cf
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 117cf32
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11883c8
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11a020b
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11a0ebd
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11a196b
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11a2263
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11a3167
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11a4103
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11e1fa3
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11ee64b
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11f271a
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11f4a57
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11f5900
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11f67b4
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 11fefe3
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 1200093
#0 805.4 /usr/bin/ld: DWARF error: could not find variable specification at offset 123b56c
#0 805.4 /tmp/go-link-3564573297/000024.o: in function `export_zetasql_uprv_dl_open':
#0 805.4 /go/pkg/mod/github.com/goccy/go-zetasql@v0.3.7/internal/ccall/icu/common/putil.cpp:2294: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
#0 805.4 /usr/bin/ld: /tmp/go-link-3564573297/000054.o: in function `mygetgrouplist':
#0 805.4 /_/os/user/getgrouplist_unix.go:15: warning: Using 'getgrouplist' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
#0 805.4 /usr/bin/ld: /tmp/go-link-3564573297/000053.o: in function `mygetgrgid_r':
#0 805.4 /_/os/user/cgo_lookup_unix.go:37: warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
#0 805.4 /usr/bin/ld: /tmp/go-link-3564573297/000053.o: in function `mygetgrnam_r':
#0 805.4 /_/os/user/cgo_lookup_unix.go:42: warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
#0 805.4 /usr/bin/ld: /tmp/go-link-3564573297/000053.o: in function `mygetpwnam_r':
#0 805.4 /_/os/user/cgo_lookup_unix.go:32: warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
#0 805.4 /usr/bin/ld: /tmp/go-link-3564573297/000053.o: in function `mygetpwuid_r':
#0 805.4 /_/os/user/cgo_lookup_unix.go:27: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
#0 805.4 /usr/bin/ld: /tmp/go-link-3564573297/000004.o: in function `_cgo_6cc2654a8ed3_C2func_getaddrinfo':
#0 805.4 /tmp/go-build/cgo-gcc-prolog:58: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
#0 805.4 /usr/bin/../lib/gcc/aarch64-linux-gnu/10/../../../aarch64-linux-gnu/libc.a(init-first.o): in function `__libc_init_first':
#0 805.4 (.text+0x14): relocation truncated to fit: R_AARCH64_LD64_GOTPAGE_LO15 against undefined symbol `_dl_starting_up'
#0 805.4 /usr/bin/ld: (.text+0x14): warning: too many GOT entries for -fpic, please recompile with -fPIC
#0 805.4 clang: error: linker command failed with exit code 1 (use -v to see invocation)
#0 805.4 
#0 805.8 make: *** [Makefile:9: emulator/build] Error 2

I'm having performance issues using the default image, as Docker for Mac emulates the amd64 environment, that's why I'm trying this operation.

Thanks!

@rafaph rafaph closed this as completed Oct 29, 2022
@rafaph rafaph reopened this Oct 29, 2022
@rafaph rafaph closed this as completed Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant