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

[BUG] faild to complie on macOS Sonoma, Apple Silicon #306

Closed
laofan13 opened this issue Oct 24, 2023 · 8 comments
Closed

[BUG] faild to complie on macOS Sonoma, Apple Silicon #306

laofan13 opened this issue Oct 24, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@laofan13
Copy link

laofan13 commented Oct 24, 2023

Describe the bug
A clear and concise description of what the bug is.

[ 24%] Built target common
[ 25%] Built target obclient
[ 78%] Built target observer_static
[ 78%] Linking CXX executable ../../bin/observer
ld: multiple errors: archive member '/' not a mach-o file in '/usr/local/lib/libevent_pthreads.a'; archive member '/' not a mach-o file in '/usr/local/lib/libevent_core.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/observer] Error 1
make[1]: *** [src/observer/CMakeFiles/observer.dir/all] Error 2
make: *** [all] Error 2

** Environment**
Apple clang version 15.0.0 (clang-1500.1.0.1.1)
Target: arm64-apple-darwin23.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Fast Reproduce Steps(Required)
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Actual Behavior
What is the result? picture is allowed

Additional context
Add any other context about the problem here.

@laofan13 laofan13 added the bug Something isn't working label Oct 24, 2023
@hnwyllmm
Copy link
Collaborator

Did you copy the libevent libraries from other system?
Please remove those libraries and do the command below and try again.

bash build.sh init

or

sudo bash build.sh init

@laofan13
Copy link
Author

Did you copy the libevent libraries from other system? Please remove those libraries and do the command below and try again.

bash build.sh init

or

sudo bash build.sh init

No libevent libraries on my macos, I followed the steps above.

@hnwyllmm
Copy link
Collaborator

What's wrong? Do you have any information?

@laofan13
Copy link
Author

What's wrong? Do you have any information?

now it can work, thanks.

@rybalkoss
Copy link

@laofan13 could you share the solution that worked for you?

@hnwyllmm
Copy link
Collaborator

hnwyllmm commented Dec 7, 2023

@laofan13 could you share the solution that worked for you?

Do you have any virtual environment tools on your system?

@laofan13
Copy link
Author

laofan13 commented Dec 7, 2023

@laofan13 could you share the solution that worked for you?

Do you have any virtual environment tools on your system?

Hi @hnwyllmm ,it can work without change.

@hnwyllmm
Copy link
Collaborator

hnwyllmm commented Dec 7, 2023

Interesting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants