[llvmlinux] Target beaglebone errors

Behan Webster behanw at converseincode.com
Thu Aug 13 13:43:25 UTC 2015


Looks like it's trying to use the x86 linker instead of the arm one.

We'd need a bit more info in order to help. Can you include the output of the following please?

$ cd targets/beaglebone
$ make list-config list-versions

Thanks

Behan

Sent from my Mobile Computer which is also a phone

> On Aug 12, 2015, at 6:25 PM, Peter Teoh <htmldeveloper at gmail.com> wrote:
> 
> I tried compiling for beaglebone as target in verbose mode (make V=1):
> 
> /bin/sh /sda10/llvm_linux_kernel/llvmlinux/targets/beaglebone/src/linux/scripts/mkcompile_h include/generated/compile.h \
>     "arm" "y" "" "/sda10/llvm_linux_kernel/llvmlinux/toolchain/clang/head/install/bin/clang  -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -target arm-none-linux-gnueabi -gcc-toolchain /sda10/llvm_linux_kernel/llvmlinux/arch/arm/toolchain/codesourcery/arm-2013.05 -no-integrated-as -fno-dwarf2-cfi-asm -Wa,-mno-warn-deprecated -mabi=aapcs-linux  -mfpu=vfp -funwind-tables -marm -D__LINUX_ARM_ARCH__=7 -march=armv7-a   -msoft-float  -Uarm -O2  -Wframe-larger-than=1024  -fno-stack-protector -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-asm-operand-widths -Wno-initializer-overrides -fno-builtin -Wno-tautological-compare  -mno-global-merge -fomit-frame-pointer  -g  -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow  -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Wno-initializer-overrides -Wno-unused-value -Wno-format -Wno-unknown-warning-option -Wno-sign-compare -Wno-format-zero-length -Wno-uninitialized    "
> make -f /sda10/llvm_linux_kernel/llvmlinux/targets/beaglebone/src/linux/scripts/Makefile.build obj=arch/arm/mach-meson
> make -f /sda10/llvm_linux_kernel/llvmlinux/targets/beaglebone/src/linux/scripts/Makefile.build obj=arch/arm/mach-mvebu
> make -f /sda10/llvm_linux_kernel/llvmlinux/targets/beaglebone/src/linux/scripts/Makefile.build obj=arch/arm/mach-imx
> /usr/bin/ld.bfd: unrecognised emulation mode: armelf_linux_eabi
> Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux elf_l1om elf_k1om i386pep i386pe
> clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
> make[3]: *** [arch/arm/vdso/vdso.so.raw] Error 1
> make[2]: *** [arch/arm/vdso] Error 2
> make[2]: *** Waiting for unfinished jobs....
> make[2]: *** wait: No child processes.  Stop.
> make[1]: *** [sub-make] Error 2
> make[1]: Leaving directory `/sda10/llvm_linux_kernel/llvmlinux/targets/beaglebone/src/linux'
> 
> real    0m30.004s
> user    0m2.382s
> sys    0m3.794s
> ---------------------------------------------------------------------
> I: Error file: targets/beaglebone/tmp/kernel-clang-stderr.log
> /usr/bin/ld.bfd: unrecognised emulation mode: armelf_linux_eabi
> Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux elf_l1om elf_k1om i386pep i386pe
> clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
> make[3]: *** [arch/arm/vdso/vdso.so.raw] Error 1
> make[2]: *** [arch/arm/vdso] Error 2
> make[2]: *** Waiting for unfinished jobs....
> make[2]: *** wait: No child processes.  Stop.
> make[1]: *** [sub-make] Error 2
> 
> real    0m30.004s
> user    0m2.382s
> sys    0m3.794s
> ---------------------------------------------------------------------
> I: Error file: targets/beaglebone/tmp/kernel-clang-stderr.log
>   adding: kernel-clang-stderr.log (deflated 39%)
> ---------------------------------------------------------------------
> I: Error log and files: targets/beaglebone/tmp/llvmlinux-clang-error.zip
> make[1]: Entering directory `/sda10/llvm_linux_kernel/llvmlinux/targets/beaglebone'
> ---------------------------------------------------------------------
> I: Building targets/beaglebone/tmp/buildbot/manifest.ini
> make[1]: Leaving directory `/sda10/llvm_linux_kernel/llvmlinux/targets/beaglebone'
> make: *** [state/kernel-build] Error 1
> 
> Referencing a similar bug report:
> 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=621029
> 
> Hmm....I am at a loss what to do?   Appreciate if someone can explain the meaning of this error:  "/usr/bin/ld.bfd: unrecognised emulation mode: armelf_linux_eabi"???
> 
> Thanks.
> 
> 
> -- 
> Regards,
> Peter Teoh
> _______________________________________________
> LLVMLinux mailing list
> LLVMLinux at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20150813/8eba2ecc/attachment.html>


More information about the LLVMLinux mailing list