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

MacOs, m2, failed to compile build.bash #4980

Open
554773162 opened this issue Aug 15, 2024 · 3 comments
Open

MacOs, m2, failed to compile build.bash #4980

554773162 opened this issue Aug 15, 2024 · 3 comments

Comments

@554773162
Copy link

554773162 commented Aug 15, 2024

Question

What's your question?

./setup.bash has been complied successfully.
But, when I compiled ./build.sh, it reported "

[ 98%] Linking CXX executable ../output/bin/DroneShell
Undefined symbols for architecture x86_64:
"std::exception_ptr::__from_native_exception_pointer(void*)", referenced from:
std::__1::promise<clmdep_msgpack::v1::object_handle>::~promise() in libAirLib.a(RpcLibClientBase.cpp.o)
std::__1::promise<clmdep_msgpack::v1::object_handle>::~promise() in libAirLib.a(MultirotorRpcLibClient.cpp.o)
std::__1::promise<clmdep_msgpack::v1::object_handle>::~promise() in librpc.a(client.cc.o)
"___cxa_init_primary_exception", referenced from:
std::__1::promise<clmdep_msgpack::v1::object_handle>::~promise() in libAirLib.a(RpcLibClientBase.cpp.o)
std::__1::promise<clmdep_msgpack::v1::object_handle>::~promise() in libAirLib.a(MultirotorRpcLibClient.cpp.o)
std::__1::promise<clmdep_msgpack::v1::object_handle>::~promise() in librpc.a(client.cc.o)
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [output/bin/DroneShell] Error 1
make[1]: *** [DroneShell/CMakeFiles/DroneShell.dir/all] Error 2
"

Because the MacOs update, the methods before doesnt work.
Maybe due to architecture arm64, after modified, it doesnt work either.
I dont know how to deal with it

Context details

Tasks

No tasks being tracked yet.
@554773162
Copy link
Author

macOS, m2, Sonoma. UE 4.27.2

@hongh0
Copy link

hongh0 commented Aug 18, 2024

Same problem, have you figured out it?

Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

@atapin
Copy link

atapin commented Sep 9, 2024

@554773162 did you try to brew install llvm@8?

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

3 participants