-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
So I tried to build the toolchain on my macbook M1, but I'm finding some issues when building gdb
First configure couldn't find GMP (configure: error: GMP is missing or unusable), but I had it installed with Homebrew.
I did manage to force configure to detect libgmp using
./configure LDFLAGS=-L/opt/homebrew/lib
but, then I'm getting this error when trying to link gdb:
CXXLD gdb
Undefined symbols for architecture arm64:
"darwin_set_sstep(unsigned int, int)", referenced from:
darwin_resume_thread(inferior*, darwin_thread_info*, int, int) in darwin-nat.o
"darwin_check_osabi(darwin_inferior*, unsigned int)", referenced from:
darwin_nat_target::attach(char const*, int) in darwin-nat.o
"_aarch64_mach_o_vec", referenced from:
initialize_current_architecture() in arch-utils.o
"_bfd_aarch64_arch", referenced from:
initialize_current_architecture() in arch-utils.o
gdbarch_info_fill(gdbarch_info*) in arch-utils.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]: *** [gdb] Error 1
make[1]: *** [all-gdb] Error 2
make: *** [all] Error 2
I built the PS3 toolchain PSL1GHT recently and had to do some patches to compile gcc 7.2 on arm64, due to missing symbols on too.
Metadata
Metadata
Assignees
Labels
No labels