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 GitHub CI ld: Assertion failed: (0 && "unknown objc arch"), function doPass, file /Library/Caches/com.apple.xbs/Sources/ld64/ld64-609/src/ld/passes/objc.cpp, line 2267. #17870

Closed
XVilka opened this issue Oct 29, 2020 · 1 comment · Fixed by #17879
Assignees
Labels
buildsystem MacOS Apple OS X platform support issues

Comments

@XVilka
Copy link
Contributor

XVilka commented Oct 29, 2020

Work environment

Questions Answers
OS/arch/bits (mandatory) MacOS x86_64
File format of the file you reverse (mandatory) -
Architecture/bits of the file (mandatory) -
r2 -v full output, not truncated (mandatory) 50f5cca

Expected behavior

Compiles just fine

Actual behavior

for LIB in tree-sitter/libtree-sitter.a radare2-shell-parser/libshell-parser.a ar/libr_ar.a bochs/lib/libbochs.a capstone/libcapstone.a gdb/lib/libgdbr.a grub/libgrubfs.a java/libr_java.a lz4/liblz4.a qnx/lib/libqnxr.a yxml/libyxml.a winkd/libr_winkd.a zip/librz.a ; do \
		if [ -f "${LIB}" ]; then ld -r -all_load -o .libr/$(basename ${LIB}.a).o ${LIB} ; fi ; \
	done
ld: warning: -arch not specified
ld: warning: ignoring file tree-sitter/libtree-sitter.a, building for -unknown but attempting to link with file built for macOS-x86_64
0  0x1093a5078  __assert_rtn + 123
1  0x1093af367  ld::passes::objc::getFollowOnAtom(ld::Atom const*) (.cold.1) + 0
2  0x10937335e  void ld::passes::objc::doPass<x86_64, true>(Options const&, ld::Internal&) + 0
3  0x109263fcf  main + 408
4  0x7fff6addacc9  start + 1
A linker snapshot was created at:
	/tmp/libtree-sitter.a.a.o-2020-09-29-045504.ld-snapshot
ld: Assertion failed: (0 && "unknown objc arch"), function doPass, file /Library/Caches/com.apple.xbs/Sources/ld64/ld64-609/src/ld/passes/objc.cpp, line 2267.
ld: warning: -arch not specified
ld: warning: ignoring file radare2-shell-parser/libshell-parser.a, building for -unknown but attempting to link with file built for macOS-x86_64
0  0x1006d1078  __assert_rtn + 123
1  0x1006db367  ld::passes::objc::getFollowOnAtom(ld::Atom const*) (.cold.1) + 0
2  0x10069f35e  void ld::passes::objc::doPass<x86_64, true>(Options const&, ld::Internal&) + 0
3  0x10058ffcf  main + 408
A linker snapshot was created at:
	/tmp/libshell-parser.a.a.o-2020-09-29-045504.ld-snapshot
ld: Assertion failed: (0 && "unknown objc arch"), function doPass, file /Library/Caches/com.apple.xbs/Sources/ld64/ld64-609/src/ld/passes/objc.cpp, line 2267.
ld: warning: -arch not specified
ld: warning: ignoring file ar/libr_ar.a, building for -unknown but attempting to link with file built for macOS-x86_64
0  0x108aa4078  __assert_rtn + 123
1  0x108aae367  ld::passes::objc::getFollowOnAtom(ld::Atom const*) (.cold.1) + 0
2  0x108a7235e  void ld::passes::objc::doPass<x86_64, true>(Options const&, ld::Internal&) + 0
3  0x108962fcf  main + 408
A linker snapshot was created at:
	/tmp/libr_ar.a.a.o-2020-09-29-045504.ld-snapshot

https://github.com/radareorg/radare2/runs/1324724240#step:11:94

@XVilka XVilka added MacOS Apple OS X platform support issues buildsystem labels Oct 29, 2020
@trufae
Copy link
Collaborator

trufae commented Oct 29, 2020

related #17874

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buildsystem MacOS Apple OS X platform support issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants