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

Compiler Error on macOS:linking with `cc` failed: exit code: 1 #27240

Closed
avr1254 opened this issue Jul 13, 2020 · 2 comments
Closed

Compiler Error on macOS:linking with `cc` failed: exit code: 1 #27240

avr1254 opened this issue Jul 13, 2020 · 2 comments

Comments

@avr1254
Copy link
Contributor

@avr1254 avr1254 commented Jul 13, 2020

I'm getting the error listed above, with a note listed at the end. Undefined symbols for architecture x86_64: "_icudt65_dat", referenced from: openCommonData(char const*, int, UErrorCode*) in libmozjs_sys-13273380956a7fd9.rlib(udata.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I'm on macOS Catalina 10.15.5, and I'm confused about why I'm getting this error.

@avr1254 avr1254 changed the title Compiler Error on macOS: Compiler Error on macOS:linking with `cc` failed: exit code: 1 Jul 13, 2020
@jdm
Copy link
Member

@jdm jdm commented Jul 13, 2020

I believe this occurs when the wrong assembler is used to build ICU (based on this chat log). Make sure you have installed yasm from homebrew, and delete target/debug/build/mozjs* (or target/release/build/mozjs* if you're doing a release build).

@avr1254
Copy link
Contributor Author

@avr1254 avr1254 commented Jul 13, 2020

Thanks! Worked like a charm!

@avr1254 avr1254 closed this Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.