-
Notifications
You must be signed in to change notification settings - Fork 408
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
ld: symbol(s) not found for architecture arm64 #129
Comments
Yeah we need to update the toolchain instructions. You need compiler-rt for iOS, which is only shipped in the Darwin build of clang. Assuming you have the standard clang of Ubuntu 20.04 (clang-10), then you can download the corresponding Darwin build from here (other versions can be found here) and add the compiler-rt libraries to your toolchain like so:
|
Thank you for the response. Im still getting the same error. |
Its searching in the include folder instead of the lib folder, is that normal: ignoring nonexistent directory "include/modules/linux/" |
Any updates on this? Edit: |
Will PongoOS/jailbreak process work on iOS15 now with the more recent commits made on the iOS15 branch and compiling using those changes? |
@aalyatim I experimented a bit more with clang-10. It's pretty broken, but you might just get this to compile if you manually pass the @cakarlen No. There's still no public checkra1n that works with iOS 15 iBoot. |
I can't compile on ubuntu 20.04 from branch iOS15 I always get this error:
ld: symbol(s) not found for architecture arm64
I tried the other suggestions posted here but that did not work(make -C newlib distclean, make -C newlib all). It compiles fine with the master branch just not this one.
Here is the log:
clang -o build/Pongo src/boot/entry.S src/boot/stage3.c src/boot/clearhook.S src/boot/patches.S src/boot/demote_patch.S src/boot/jump_to_image.S src/boot/main.c src/kernel/panic.c src/kernel/syscall.c src/kernel/entry.c src/kernel/task.c src/kernel/lowlevel.c src/kernel/dtree.c src/kernel/legacy.c src/kernel/locks.c src/kernel/dtree_getprop.c src/kernel/main_task.c src/kernel/mm.c src/kernel/vfs.c src/kernel/support/exit.c src/kernel/support/io.c src/kernel/support/process.c src/kernel/support/sbrk.c src/kernel/support/malloc.c src/dynamic/modload.c src/dynamic/modload_macho.c src/kernel/int.S src/shell/autoboot.c src/shell/hex.c src/shell/usbloader.c src/shell/main.c src/shell/linux.c src/shell/command.c src/drivers/tz/tz.c src/drivers/framebuffer/fb.c src/drivers/xnu/xnu.c src/drivers/plat/s8000.c src/drivers/plat/t7000.c src/drivers/plat/t8011.c src/drivers/plat/s8003.c src/drivers/plat/t8012.c src/drivers/plat/s5l8960.c src/drivers/plat/t8010.c src/drivers/plat/s8001.c src/drivers/plat/t7001.c src/drivers/plat/t8015.c src/drivers/usb/synopsys_otg.c src/drivers/mipi/mipi.c src/drivers/hal/hal.c src/drivers/aes/aes_a7.c src/drivers/aes/aes_a9.c src/drivers/aes/aes.c src/drivers/sep/sep.c src/drivers/timer/timer.c src/drivers/recfg/recfg.c src/drivers/recfg/recfg_soc.c src/drivers/gpio/gpio.c src/drivers/uart/uart.c src/drivers/xnu/xnu.S src/drivers/sep/sep_racer.S src/modules/linux/libfdt/fdt.c src/modules/linux/libfdt/fdt_rw.c src/modules/linux/libfdt/fdt_sw.c src/modules/linux/libfdt/fdt_empty_tree.c src/modules/linux/libfdt/fdt_overlay.c src/modules/linux/libfdt/fdt_wip.c src/modules/linux/libfdt/fdt_strerror.c src/modules/linux/libfdt/fdt_ro.c src/modules/linux/libfdt/fdt_addresses.c src/modules/linux/linux.c src/lib/lzma/lzmadec.c src/lib/libDER/DER_Decode.c src/lib/libDER/DER_Encode.c src/lib/libDER/oids.c src/lib/img4/img4.c --target=arm64-apple-ios12.0 -std=gnu17 -Wall -Wunused-label -Werror -flto -ffreestanding -U__nonnull -nostdlibinc -DTARGET_OS_OSX=0 -DTARGET_OS_MACCATALYST=0 -Inewlib/aarch64-none-darwin/include -nostdlib -static -Wl,-fatal_warnings -Wl,-dead_strip -Wl,-Z -fuse-ld='/usr/bin/ld64' -Os -moutline -DPONGO_VERSION='"2.5.1-0f9f5a87"' -DPONGO_BUILD='"0f9f5a8718c4be0f30526ed30bca05aa9c9d0efe (iOS15, dirty)"' -DAUTOBOOT -DPONGO_PRIVATE=1 -Isrc/lib -Iinclude -Iapple-include -Iinclude/modules/linux/ -Isrc/kernel -Isrc/drivers -Isrc/modules/linux/libfdt -Lnewlib/aarch64-none-darwin/fixup -lc -Wl,-preload -Wl,-no_uuid -Wl,-e,start -Wl,-order_file,src/sym_order.txt -Wl,-image_base,0x100000000 -Wl,-sectalign,__DATA,__common,0x8 -Wl,-segalign,0x4000 -DDER_TAG_SIZE=8
Undefined symbols for architecture arm64:
"___muloti4", referenced from:
_reallocarray in libc.a(lib_a-reallocarray.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:143: build/Pongo] Error 1
The text was updated successfully, but these errors were encountered: