亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

gloang運行報錯誤,我用命令行sudo就沒問題了

????????

GOROOT=/usr/local/Cellar/go/1.15/libexec #gosetup

GOPATH=/Users/fuhaoliang/go #gosetup

/usr/local/Cellar/go/1.15/libexec/bin/go build -o /private/var/folders/m0/8z5vb1313bngjmg0_hbpkchr0000gn/T/___go_build_github_com_owenliang_go_push_logic_cli github.com/owenliang/go-push/logic/cli #gosetup

# runtime/cgo

ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libpthread.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libpthread.tbd

ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd

Undefined symbols for architecture x86_64:

? "___stack_chk_fail", referenced from:

? ? ? _x_cgo_init in _x004.o

? ? ? __cgo_sys_thread_start in _x004.o

? "___stack_chk_guard", referenced from:

? ? ? _x_cgo_init in _x004.o

? ? ? __cgo_sys_thread_start in _x004.o

? "___stderrp", referenced from:

? ? ? __cgo_sys_thread_start in _x004.o

? ? ? _x_cgo_sys_thread_create in _x005.o

? ? ? _x_cgo_thread_start in _x008.o

? "_abort", referenced from:

? ? ? __cgo_sys_thread_start in _x004.o

? ? ? _x_cgo_sys_thread_create in _x005.o

? ? ? _x_cgo_thread_start in _x008.o

? "_fprintf", referenced from:

? ? ? __cgo_sys_thread_start in _x004.o

? ? ? _x_cgo_sys_thread_create in _x005.o

? "_free", referenced from:

? ? ? _threadentry in _x004.o

? "_fwrite", referenced from:

? ? ? _x_cgo_thread_start in _x008.o

? "_malloc", referenced from:

? ? ? _x_cgo_thread_start in _x008.o

? "_nanosleep", referenced from:

? ? ? _x_cgo_sys_thread_create in _x005.o

? ? ? __cgo_try_pthread_create in _x005.o

? "_pthread_attr_destroy", referenced from:

? ? ? _x_cgo_init in _x004.o

? "_pthread_attr_getstacksize", referenced from:

? ? ? _x_cgo_init in _x004.o

? ? ? __cgo_sys_thread_start in _x004.o

? "_pthread_attr_init", referenced from:

? ? ? _x_cgo_init in _x004.o

? ? ? __cgo_sys_thread_start in _x004.o

? "_pthread_cond_broadcast", referenced from:

? ? ? _x_cgo_notify_runtime_init_done in _x005.o

? "_pthread_cond_wait", referenced from:

? ? ? __cgo_wait_runtime_init_done in _x005.o

? "_pthread_create", referenced from:

? ? ? _x_cgo_sys_thread_create in _x005.o

? ? ? __cgo_try_pthread_create in _x005.o

? ? ?(maybe you meant: __cgo_try_pthread_create)

? "_pthread_detach", referenced from:

? ? ? _x_cgo_sys_thread_create in _x005.o

? ? ? __cgo_try_pthread_create in _x005.o

? "_pthread_mutex_lock", referenced from:

? ? ? __cgo_wait_runtime_init_done in _x005.o

? ? ? _x_cgo_notify_runtime_init_done in _x005.o

? ? ? _x_cgo_set_context_function in _x005.o

? ? ? __cgo_get_context_function in _x005.o

? "_pthread_mutex_unlock", referenced from:

? ? ? __cgo_wait_runtime_init_done in _x005.o

? ? ? _x_cgo_notify_runtime_init_done in _x005.o

? ? ? _x_cgo_set_context_function in _x005.o

? ? ? __cgo_get_context_function in _x005.o

? "_pthread_sigmask", referenced from:

? ? ? __cgo_sys_thread_start in _x004.o

? "_setenv", referenced from:

? ? ? _x_cgo_setenv in _x006.o

? ? ?(maybe you meant: _x_cgo_setenv)

? "_strerror", referenced from:

? ? ? __cgo_sys_thread_start in _x004.o

? ? ? _x_cgo_sys_thread_create in _x005.o

? "_unsetenv", referenced from:

? ? ? _x_cgo_unsetenv in _x006.o

? ? ?(maybe you meant: _x_cgo_unsetenv)

ld: symbol(s) not found for architecture x86_64

clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)


Compilation finished with exit code 2


正在回答

1 回答

是原因你運行的依賴上需要管理員的權限,解決的辦法是降級你的依賴,重新用非管理員的方式去下載一下

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

gloang運行報錯誤,我用命令行sudo就沒問題了

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號