[llvmlinux] Assembler error: junk at end of file... cross-compiling for arm64
dotweiba at gmail.com
Tue Apr 19 01:56:12 UTC 2016
Sry, the previous one is not a plain text mail.
I am doing cross-compiling LLVMLinux for arm64 platform with the purpose of
generating some *.bc files to analysis. So I followed the procedure as
1-> git clone git://git.linuxfoundation.org/llvmlinux/kernel.git
2-> downloaded little ‘m’ makefile and change ARCH, CROSS_COMPILE, CC and
3-> make memuconfig && make
But something weird happened:
2 warnings generated.
/tmp/empty-1a3667.s: Assembler messages:
/tmp/empty-1a3667.s:28: Error: bad expression
/tmp/empty-1a3667.s:28: Warning: division by zero
/tmp/empty-1a3667.s:28: Error: junk at end of line, first unrecognized
character is `L'
/tmp/empty-1a3667.s:29: Error: bad expression
/tmp/empty-1a3667.s:29: Warning: division by zero
/tmp/empty-1a3667.s:29: Error: junk at end of line, first unrecognized
character is `D'
/tmp/empty-1a3667.s:30: Error: bad expression
/tmp/empty-1a3667.s:30: Error: junk at end of line, first unrecognized
character is `O’
I tried to figure out what was wrong. And for native compiling (HOST=Clang
CC=Clang) it goes all right.
So I wonder if it is the dependency problem as you said
“Yes, there is still a dependency on parts of the gcc toolchain. Most
notably ld, as, and sometimes libgcc.”
Any help? I would appreciate it a lot.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LLVMLinux