Closed slayy2357 closed 4 months ago
Are you manually passing a compiler (CLANG
/EMBEDDED_CC
) or llvm-config (LLVM_CONFIG
/EMBEDDED_LLVM_CONFIG
)?
Are you manually passing a compiler (
CLANG
/EMBEDDED_CC
) or llvm-config (LLVM_CONFIG
/EMBEDDED_LLVM_CONFIG
)?
I don't know, I have compiled ld64/cctool and copy to path, installed llvm, installed clang and then try to compile pongoOS and this error happened
Alright, could you please post the output of:
llvm-config --bindir
and
find "$(llvm-config --bindir)/../lib" -name 'libLTO.*'
Alright, could you please post the output of:
llvm-config --bindir
and
find "$(llvm-config --bindir)/../lib" -name 'libLTO.*'
Of course :
llvm-config --bindir :
/usr/lib/llvm-18/bin
find "$(llvm-config --bindir)/../lib" -name 'libLTO.*' :
/usr/lib/llvm-18/bin/../lib/libLTO.so.18.1 /usr/lib/llvm-18/bin/../lib/libLTO.so
Ok, try adding this before your make
invocation:
EMBEDDED_LDFLAGS="-fuse-ld=$(which ld64) -Wl,-lto_library,$(llvm-config --bindir)/../lib/libLTO.so"
Ok, try adding this before your
make
invocation:EMBEDDED_LDFLAGS="-fuse-ld=$(which ld64) -Wl,-lto_library,$(llvm-config --bindir)/../lib/libLTO.so"
OK, so, on ubuntu it didn't work, same error. But on my main distro, kali, it work with your argument before make invocation. I had the same error on both distros so at least it works on Kali linux. Thanks
Hmm, that's odd. I've been meaning to look into LTO issues, but got stuck on trying to cross-compile a dependency for ld64... one of these days I'll hopefully have time to get back to that.
ld: warning: ignoring file /tmp/stage3-150467.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x74 0x24 0x00 0x00 ) ld: warning: ignoring file /tmp/main-c2dd97.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x74 0x0B 0x00 0x00 ) ld: warning: ignoring file /tmp/dtree_getprop-6f1dfc.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xC8 0x11 0x00 0x00 ) ld: warning: ignoring file /tmp/dtree-b1538d.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x10 0x17 0x00 0x00 ) ld: warning: ignoring file /tmp/entry-479710.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xD0 0x36 0x00 0x00 ) ld: warning: ignoring file /tmp/legacy-40ff52.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x58 0x0F 0x00 0x00 ) ld: warning: ignoring file /tmp/lowlevel-a994e1.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xAC 0x6F 0x00 0x00 ) ld: warning: ignoring file /tmp/main_task-535ff7.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xFC 0x14 0x00 0x00 ) ld: warning: ignoring file /tmp/locks-67af31.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x88 0x11 0x00 0x00 ) ld: warning: ignoring file /tmp/mm-1ea08d.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xAC 0x88 0x00 0x00 ) ld: warning: ignoring file /tmp/task-ad3acf.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xF4 0x87 0x00 0x00 ) ld: warning: ignoring file /tmp/panic-8f5c2b.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x64 0x16 0x00 0x00 ) ld: warning: ignoring file /tmp/syscall-64c6c7.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xAC 0x15 0x00 0x00 ) ld: warning: ignoring file /tmp/exit-dc241e.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x94 0x09 0x00 0x00 ) ld: warning: ignoring file /tmp/io-7bc058.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x18 0x21 0x00 0x00 ) ld: warning: ignoring file /tmp/vfs-c1db2a.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xDC 0x16 0x00 0x00 ) ld: warning: ignoring file /tmp/malloc-250b11.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x54 0x0A 0x00 0x00 ) ld: warning: ignoring file /tmp/sbrk-159d1f.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xE0 0x0C 0x00 0x00 ) ld: warning: ignoring file /tmp/process-706be8.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x40 0x0D 0x00 0x00 ) ld: warning: ignoring file /tmp/autoboot-f8bf67.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xC4 0x0D 0x00 0x00 ) ld: warning: ld: warning: ignoring file /tmp/command-cf3c34.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x8C 0x27 0x00 0x00 ) ld: warning: ignoring file /tmp/modload_macho-1fe64d.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xB4 0x21 0x00 0x00 )ld: warning: ignoring file /tmp/main-914ede.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x50 0x3A 0x00 0x00 ) ld: warning: ignoring file /tmp/usbloader-59ca95.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x34 0x1F 0x00 0x00 )ld: warning: ignoring file /tmp/aes_a7-81cc73.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xEC 0x12 0x00 0x00 )ignoring file /tmp/modload-7e0756.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x4C 0xFA 0x05 0x00 )ld: warning: ignoring file /tmp/linux-1fe5b5.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x00 0x17 0x00 0x00 ) ld: warning: ld: warning: ignoring file /tmp/hex-2eb907.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xC8 0x12 0x00 0x00 )
ld: warning: ignoring file /tmp/aes-d1293a.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xAC 0x1F 0x00 0x00 ) ld: warning: ignoring file /tmp/fb-d95f6a.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xB8 0x33 0x00 0x00 ) ignoring file /tmp/aes_a9-3cd849.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x48 0x14 0x00 0x00 ) ld: warning: ignoring file /tmp/gpio-76f5f7.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xA4 0x11 0x00 0x00 ) ld: warning: ignoring file /tmp/mipi-0e79c6.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x00 0x18 0x00 0x00 ) ld: warning: ignoring file /tmp/s8000-204684.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x5C 0x10 0x00 0x00 ) ld: warning: ld: warning: ld: warning: ignoring file /tmp/s5l8960-2e326b.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x70 0x10 0x00 0x00 ) ld: warning: ignoring file /tmp/t7001-690b3e.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x54 0x10 0x00 0x00 ) ld: warning: ignoring file /tmp/t7000-e7fa84.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x54 0x10 0x00 0x00 )ignoring file /tmp/s8001-07aaa1.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x54 0x10 0x00 0x00 ) ld: warning: ignoring file /tmp/s8003-c6891a.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x58 0x10 0x00 0x00 )
ld: warning: ld: warning: ignoring file /tmp/t8011-e7e42f.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x54 0x10 0x00 0x00 ) ignoring file /tmp/hal-bf7d10.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x74 0x2F 0x00 0x00 ) ld: warning: ignoring file /tmp/recfg-3d2f5b.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x28 0x24 0x00 0x00 ) ld: warning: ignoring file /tmp/t8015-d22da3.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x48 0x10 0x00 0x00 )
ld: warning: ld: warning: ignoring file /tmp/t8010-1f3456.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x54 0x10 0x00 0x00 ) ld: warning: ld: warning: ignoring file /tmp/uart-43824a.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x28 0x23 0x00 0x00 )ld: warning: ignoring file /tmp/sep-21f433.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x48 0xC1 0x00 0x00 ) ignoring file /tmp/timer-e55799.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xFC 0x0B 0x00 0x00 )
ld: warning: ignoring file /tmp/tz-80dbaf.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xE8 0x1B 0x00 0x00 ) ignoring file /tmp/t8012-82ca31.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x54 0x10 0x00 0x00 ) ld: warning: ignoring file /tmp/fdt-0cd9c5.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xA8 0x27 0x00 0x00 )ld: warning: ld: warning: ignoring file /tmp/xnu-0bebf3.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x80 0xC8 0x00 0x00 )ld: warning: ignoring file /tmp/fdt_addresses-623ef1.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x24 0x12 0x00 0x00 )
ld: warning: ignoring file /tmp/fdt_empty_tree-397ac8.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x20 0x0C 0x00 0x00 )
ld: warning: ignoring file /tmp/fdt_ro-0377d5.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x04 0x57 0x00 0x00 ) ld: warning: ignoring file /tmp/fdt_strerror-665667.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xC8 0x0F 0x00 0x00 ) ld: warning: ld: warning: ignoring file /tmp/fdt_overlay-411d2e.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xA8 0x2D 0x00 0x00 ) ld: warning: ignoring file /tmp/linux-aab63e.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x28 0x4F 0x00 0x00 ) ignoring file /tmp/recfg_soc-b18d2a.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xF8 0x45 0x00 0x00 ) ld: warning: ignoring file /tmp/fdt_sw-11b811.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x04 0x2F 0x00 0x00 ) ignoring file /tmp/fdt_wip-4905a9.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x44 0x14 0x00 0x00 ) ld: warning: ignoring file /tmp/DER_Encode-59f77f.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xDC 0x1D 0x00 0x00 ) ld: warning: ld: warning: ignoring file /tmp/fdt_rw-44211c.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x4C 0x3F 0x00 0x00 ) ignoring file /tmp/synopsys_otg-6bbec5.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x5C 0x84 0x00 0x00 ) ignoring file /tmp/DER_Decode-93e16f.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xC4 0x23 0x00 0x00 ) ld: warning: ignoring file /tmp/img4-caf60a.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x4C 0x33 0x00 0x00 ) ld: warning: ignoring file /tmp/lzmadec-63e3b3.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0xE0 0x5A 0x00 0x00 ) ld: warning: ignoring file /tmp/oids-5c63bf.o, building for free standing-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xDE 0xC0 0x17 0x0B 0x00 0x00 0x00 0x00 0x14 0x00 0x00 0x00 0x08 0x3E 0x00 0x00 ) Undefined symbols for architecture arm64: "_sep_has_booted", referenced from: _swap_blocks in sep_racer-38da58.o "_sep_has_panicked", referenced from: _swap_blocks in sep_racer-38da58.o "_task_yield_preemption", referenced from: exc_handler in int-0ac665.o "_exception_stack", referenced from: _set_exception_stack_core0 in entry-53a026.o (maybe you meant: _set_exception_stack_core0) "_fiq_exc", referenced from: Jfiq_exc in int-0ac665.o Jfiq_exc_el1sp1 in int-0ac665.o "_seprom_has_left_to_sepos", referenced from: _swap_blocks in sep_racer-38da58.o "_serror_exc", referenced from: Jserror_exc in int-0ac665.o "_irq_exc", referenced from: Jirq_exc in int-0ac665.o Jirq_exc_el1sp1 in int-0ac665.o "_sched_stack", referenced from: _set_execution_stack_core0 in entry-53a026.o "_sync_exc", referenced from: Jsync_exc in int-0ac665.o "_sync_exc_el0", referenced from: Jsync_exc_el0 in int-0ac665.o "_disable_interrupts", referenced from: __task_switch in int-0ac665.o _task_load in int-0ac665.o "_trampoline_entry", referenced from: start$l0 in entry-53a026.o "_enable_interrupts", referenced from: __task_switch_asserted in int-0ac665.o _task_load_asserted in int-0ac665.o "_sep_check_mailbox", referenced from: _sep_racer in sep_racer-38da58.o "_sep_fast_check_mailbox", referenced from: _sep_racer in sep_racer-38da58.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:99 : build/Pongo] Erreur 1