> On 2012-01-19 02:45:57, Andreas Hansson wrote:
> > SConstruct, line 693
> > <http://reviews.m5sim.org/r/986/diff/3/?file=20951#file20951line693>
> >
> >     The CheckHeader test fails when I try to build using clang, and the 
> > reason seems to be that clang in contrast to gcc cannot find asm/errno.h 
> > that is included via Python.h. On a x86_64 machine I had to forcefully add 
> > "-I/usr/include/x64_64-linux-gnu" for the build to proceed. Did anyone else 
> > have these issues?
> 
> Koan-Sin Tan wrote:
>     this is a bit tricky. Simple answer is to try something like 'scons 
> build/ARM_SE/m5.opt CXX=clang++ CC=clang". If this works, I know the reason 
> :-)
> 
> Andreas Hansson wrote:
>     tried both export CC=clang; export CXX=clang++ and specifying on the 
> command line as suggested...but no luck.
>     
>     it seems to be a known issue, at least based on the number of google 
> hits: 
>     > "asm/errno.h" is in the directory /usr/include/<host triple>. gcc has 
> that directory on its search list, but clang doesn't
>

It looks like it's a configuration problem of your clang. Clang can find 
asm/error.h (located at /usr/include/arml-linux-gnueabi/) on my Pandaboard 
running ubuntu 11.10


- Koan-Sin


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviews.m5sim.org/r/986/#review1967
-----------------------------------------------------------


On 2012-01-12 23:36:49, Koan-Sin Tan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviews.m5sim.org/r/986/
> -----------------------------------------------------------
> 
> (Updated 2012-01-12 23:36:49)
> 
> 
> Review request for Default.
> 
> 
> Summary
> -------
> 
> Initial patch to make gem5 compile with clang/llvm. Tested on Mac OS X 10.7.2 
> + clang/llvm from Xcode 4.2
> 
> 
> Diffs
> -----
> 
>   SConstruct UNKNOWN 
>   src/SConscript UNKNOWN 
>   src/arch/alpha/tlb.cc UNKNOWN 
>   src/arch/arm/insts/static_inst.hh UNKNOWN 
>   src/arch/arm/insts/vfp.hh UNKNOWN 
>   src/arch/arm/isa/templates/basic.isa UNKNOWN 
>   src/arch/generic/memhelpers.hh UNKNOWN 
>   src/arch/mips/faults.hh UNKNOWN 
>   src/arch/mips/faults.cc UNKNOWN 
>   src/arch/x86/bios/intelmp.cc UNKNOWN 
>   src/base/fast_alloc.cc UNKNOWN 
>   src/base/range_map.hh UNKNOWN 
>   src/base/stl_helpers.hh UNKNOWN 
>   src/cpu/o3/decode_impl.hh UNKNOWN 
>   src/cpu/o3/iew.hh UNKNOWN 
>   src/cpu/o3/inst_queue.hh UNKNOWN 
>   src/cpu/o3/inst_queue_impl.hh UNKNOWN 
>   src/cpu/o3/mem_dep_unit.cc UNKNOWN 
>   src/cpu/o3/sat_counter.hh UNKNOWN 
>   src/dev/alpha/tsunami_cchip.cc UNKNOWN 
>   src/dev/alpha/tsunami_io.cc UNKNOWN 
>   src/dev/arm/pl111.hh UNKNOWN 
>   src/dev/arm/pl111.cc UNKNOWN 
>   src/dev/copy_engine.cc UNKNOWN 
>   src/dev/ide_ctrl.cc UNKNOWN 
>   src/dev/ns_gige.cc UNKNOWN 
>   src/dev/pciconfigall.cc UNKNOWN 
>   src/dev/pcidev.cc UNKNOWN 
>   src/mem/cache/base.hh UNKNOWN 
>   src/sim/process_impl.hh UNKNOWN 
>   src/sim/syscall_emul.hh UNKNOWN 
> 
> Diff: http://reviews.m5sim.org/r/986/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Koan-Sin
> 
>

_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to