-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[BUG] 与gocv共同编译时出错 #598
Labels
🐛bug
Something isn't working
Comments
看着是环境的依赖问题。单独 gocv 可以编译成功吗 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bug 描述
这两个项目在系统:Mac OS Intel 14.1.1 (23B81) 下动态编译时报错,已开启CGO
github.com/GoAdminGroup/go-admin v1.2.24
gocv.io/x/gocv v0.35.0
复现步骤
使用复现代码中的项目即可复现。
期望结果
复现代码
https://wwhw.lanpv.com/iK8WC1lp5r9e
版本信息:
系统:Mac OS Intel
其他信息 [如截图等其他信息可以贴在这里]
GOROOT=/usr/local/go #gosetup
GOPATH=/Users/crab/go #gosetup
/usr/local/go/bin/go build -o /Users/cccc/Library/Caches/JetBrains/GoLand2023.1/tmp/GoLand/___go_build_testCv_src -gcflags all=-N -l testCv/src #gosetup
testCv/src
/usr/local/go/pkg/tool/darwin_amd64/link: running clang++ failed: exit status 1
ld: warning: -bind_at_load is deprecated on macOS
ld: warning: -no_pie is deprecated when targeting new OS versions
0 0x10fb8c157 __assert_rtn + 137
1 0x10f9ba679 ld::tool::InputFiles::findDylib(char const*, ld::dylib::File const*, bool) + 1081
2 0x10fafbce1 generic::dylib::File::processIndirectLibraries(ld::dylib::File::DylibHandler*, bool) + 81
3 0x10f9bc2ab ld::tool::InputFiles::createIndirectDylibs() + 875
4 0x10f9bd442 ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler&, ld::Internal&) + 1042
5 0x10f9d5e4e ld::tool::Resolver::resolve() + 382
6 0x10f9212d8 main + 1000
A linker snapshot was created at:
/tmp/a.out-2024-01-20-201600.ld-snapshot
ld: Assertion failed: (counter() < 0xffff), function nextCounter, file ld.hpp, line 487.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The text was updated successfully, but these errors were encountered: