[llvmlinux] compile error x86

Jan-Simon Möller jsmoeller at linuxfoundation.org
Mon Jul 22 22:22:03 UTC 2013


I could reproduce it. Meanwhile, you could readd 

arch/x86_64/patches/ARCHIVE/002x-Changes-to-BT-operations.-Mostly-BTC-
BTCL.patch to 
arch/x86_64/patches/

and add it to  arch/x86_64/patches/series

Then
make kernel-clean kernel-quilt-clean
make


-- 

Sincerely yours,

Jan-Simon Möller

jsmoeller at linuxfoundation.org
On Monday 22 July 2013 23:06:04 Jan-Simon Möller wrote:
> Hi Marcelo,
> 
> can you describe what steps you did take ?
> 
> Plain checkout + cd targets/x86_64 + make ?
> 
> 
> What revision of the llvmlinux do you use ? Please paste:
> 
> cd targets/x86_64
> make list-config
> 
> Best,
> JS
> 
> > Hello everyone,
> > 
> > I'm getting an error after doing make in the x86 directory related to
> > inline assembly:
> > 
> > /home/marcelosousa/Research/llvmlinux/targets/x86_64/src/linux/arch/x86/in
> > cl ude/asm/bitops.h:70:16: error: ambiguous instructions require an
> > explicit suffix (could be 'btsw', 'btsl', or 'btsq')
> > 
> >                 asm volatile(LOCK_PREFIX "bts %1,%0"
> >                 
> >                              ^
> > 
> > /home/marcelosousa/Research/llvmlinux/targets/x86_64/src/linux/arch/x86/in
> > cl ude/asm/alternative.h:38:41: 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
> > `/home/marcelosousa/Research/llvmlinux/targets/x86_64/src/linux'
> > 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
> > 
> > CONFIG_DEBUG_SECTION_MISMATCH=y CONFIG_NO_ERROR_ON_MISMATCH=y
> > 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,
> > Marcelo


More information about the LLVMLinux mailing list