ld Mac OS 10.13.6:未知选项:-EL
ld Mac OS 10.13.6 : unknown option: -EL
我正在尝试在我的 iMac 上编译 android linux 内核 (4.4) 但它一直显示此错误,这里是完整输出:
juampi@iMacEscritorio /Volumes/roms/kernels/msm8998 make -j4 O=out ARCH=arm64 \
CC='/Users/juampi/Downloads/android-ndk-r21b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang' \
CLANG_TRIPLE=aarch64-linux-gnu \
CROSS_COMPILE_ARM32='/Users/juampi/Downloads/android-ndk-r21b/toolchains/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-' \
CROSS_COMPILE='/Users/juampi/Downloads/android-ndk-r21b/toolchains/arm-linux-androideabi-4.9' \
CROSS_COMPILE='/Volumes/roms/peplus/prebuilts/gcc/darwin-x86/arm/bin/aarch64-linux-android-'
CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
CHK scripts/mod/devicetable-offsets.h
Using .. as source for kernel
CHK include/generated/utsrelease.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL ../scripts/checksyscalls.sh
VDSOL arch/arm64/kernel/vdso/vdso.so.dbg
ld: unknown option: -EL
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [arch/arm64/kernel/vdso/vdso.so.dbg] Error 1
make[1]: *** [vdso_prepare] Error 2
make: *** [sub-make] Error 2
知道是什么原因造成的吗?
提前致谢
感谢 Alan Birtles 的评论,我意识到我可以(并且应该)使用工具链中的 ld。我不知道该怎么做,所以我将工具链中的 Mac ld 和 cp 备份到 /usr/bin。如果有人知道如何正确操作,请回答
编辑:正确的做法是设置
PATH
妥当
我正在尝试在我的 iMac 上编译 android linux 内核 (4.4) 但它一直显示此错误,这里是完整输出:
juampi@iMacEscritorio /Volumes/roms/kernels/msm8998 make -j4 O=out ARCH=arm64 \
CC='/Users/juampi/Downloads/android-ndk-r21b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang' \
CLANG_TRIPLE=aarch64-linux-gnu \
CROSS_COMPILE_ARM32='/Users/juampi/Downloads/android-ndk-r21b/toolchains/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-' \
CROSS_COMPILE='/Users/juampi/Downloads/android-ndk-r21b/toolchains/arm-linux-androideabi-4.9' \
CROSS_COMPILE='/Volumes/roms/peplus/prebuilts/gcc/darwin-x86/arm/bin/aarch64-linux-android-'
CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
CHK scripts/mod/devicetable-offsets.h
Using .. as source for kernel
CHK include/generated/utsrelease.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL ../scripts/checksyscalls.sh
VDSOL arch/arm64/kernel/vdso/vdso.so.dbg
ld: unknown option: -EL
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [arch/arm64/kernel/vdso/vdso.so.dbg] Error 1
make[1]: *** [vdso_prepare] Error 2
make: *** [sub-make] Error 2
知道是什么原因造成的吗?
提前致谢
感谢 Alan Birtles 的评论,我意识到我可以(并且应该)使用工具链中的 ld。我不知道该怎么做,所以我将工具链中的 Mac ld 和 cp 备份到 /usr/bin。如果有人知道如何正确操作,请回答
编辑:正确的做法是设置
PATH
妥当