[llvmlinux] compile error x86

Marcelo Sousa marceloabsousa at gmail.com
Mon Jul 22 20:45:56 UTC 2013

Hello everyone,

I'm getting an error after doing make in the x86 directory related to
inline assembly:

error: ambiguous instructions require an explicit suffix (could be 'btsw',
'btsl', or 'btsq')
                asm volatile(LOCK_PREFIX "bts %1,%0"
note: expanded from macro 'LOCK_PREFIX'
#define LOCK_PREFIX LOCK_PREFIX_HERE "\n\tlock; "
<inline asm>:6:8: note: instantiated into assembly here
        lock; bts $10,(%rcx)
1 warning and 14 errors generated.
make[2]: *** [mm/page_alloc.o] Error 1
make[1]: *** [mm] Error 2
make[1]: Leaving directory
Command exited with non-zero status 2
 Build Time
 User time (seconds): 39.09
 System time (seconds): 3.93
 Percent of CPU this job got: 611%
 Elapsed (wall clock) time (h:mm:ss or m:ss): 0:07.03
 Maximum resident set size (kbytes): 333152
 Major (requiring I/O) page faults: 1
 Minor (reclaiming a frame) page faults: 1783335
 Voluntary context switches: 8911
 Involuntary context switches: 42882
 Command being timed: "make -j17 CONFIG_DEBUG_INFO=1
CC=/home/marcelosousa/Research/llvmlinux/toolchain/clang/install/bin/clang "
 Swaps: 0
 File system inputs: 16
 File system outputs: 26568
 Page size (bytes): 4096
 Exit status: 2
make: *** [state/kernel-build] Error 2

Any thoughts?

Kind regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20130722/85d51d08/attachment.html>

More information about the LLVMLinux mailing list