Hao,

At first glace it looks like you've set CC and CXX to g++-4.3. CC should be set 
to gcc-4.3

Hope that helps,

Ali
 
On Aug 17, 2010, at 6:52 PM, Hao Wang wrote:

> Hi everyone,
> 
> I am trying to install M5 on my computer. However, I receive the following 
> compile time error. The machine is 32-bit running Ubuntu 10.04 Lucid. Does M5 
> support 32-bit machine well?
> 
> It doesn't seem to be a gcc problem. I have tried both g++-4.3 and g++-4.4 
> and there is the same error. 
> 
> Could anyone help me solve the problem? Thank you very much in advance.
> -----------------------------
> $ scons build/ALPHA_FS/m5.debug
> scons: Reading SConscript files ...
> Checking for leading underscore in global variables...(cached) no
> Checking for C header file Python.h... (cached) yes
> Checking for C library pthread... (cached) yes
> Checking for C library dl... (cached) yes
> Checking for C library util... (cached) yes
> Checking for C library m... (cached) yes
> Checking for C library python2.6... (cached) yes
> Checking for accept(0,0,0) in C++ library None... (cached) yes
> Checking for zlibVersion() in C++ library z... (cached) yes
> Checking for C header file fenv.h... (cached) yes
> Reading /home/hao/m5/m5/src/cpu/simple/SConsopts
> Reading /home/hao/m5/m5/src/cpu/checker/SConsopts
> Reading /home/hao/m5/m5/src/cpu/inorder/SConsopts
> Reading /home/hao/m5/m5/src/cpu/ozone/SConsopts
> Reading /home/hao/m5/m5/src/cpu/o3/SConsopts
> Reading /home/hao/m5/m5/src/arch/mips/SConsopts
> Reading /home/hao/m5/m5/src/arch/sparc/SConsopts
> Reading /home/hao/m5/m5/src/arch/x86/SConsopts
> Reading /home/hao/m5/m5/src/arch/alpha/SConsopts
> Reading /home/hao/m5/m5/src/arch/power/SConsopts
> Reading /home/hao/m5/m5/src/arch/arm/SConsopts
> Reading /home/hao/m5/m5/src/mem/ruby/SConsopts
> Reading /home/hao/m5/m5/src/mem/protocol/SConsopts
> Building in /home/hao/m5/m5/build/ALPHA_FS
> Using saved variables file /home/hao/m5/m5/build/variables/ALPHA_FS
> scons: done reading SConscript files.
> scons: Building targets ...
> swig -c++ -python -modern -templatereduce -Ibuild/gzstream -Ibuild/libelf 
> -Iext -I/usr/include/python2.6 -Ibuild/ALPHA_FS -outdir build/ALPHA_FS/params 
> -o build/ALPHA_FS/params/params_wrap.cc build/ALPHA_FS/params/params.i
> g++-4.3 -o build/libelf/elf_begin.os -c -pipe -fno-strict-aliasing -Wall 
> -Wno-sign-compare -Wundef -Wno-pointer-sign -Wno-implicit -fPIC 
> build/libelf/elf_begin.c
> cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC 
> but not for C++
> build/libelf/elf_begin.c: In function 'Elf* _libelf_open_object(int, 
> Elf_Cmd)':
> build/libelf/elf_begin.c:54: error: invalid conversion from 'void*' to 'Elf*'
> build/libelf/elf_begin.c:61: error: invalid conversion from 'void*' to 'Elf*'
> build/libelf/elf_begin.c:64: error: invalid conversion from 'void*' to 'char*'
> build/libelf/elf_begin.c:64: error:   initializing argument 1 of 'Elf* 
> elf_memory(char*, size_t)'
> build/libelf/elf_begin.c:66: error: invalid conversion from 'void*' to 'Elf*'
> build/libelf/elf_begin.c:76: error: invalid conversion from 'void*' to 'Elf*'
> build/libelf/elf_begin.c: In function 'Elf* elf_begin(int, Elf_Cmd, Elf*)':
> build/libelf/elf_begin.c:87: error: invalid conversion from 'void*' to 'Elf*'
> build/libelf/elf_begin.c:91: error: invalid conversion from 'void*' to 'Elf*'
> build/libelf/elf_begin.c:96: error: invalid conversion from 'void*' to 'Elf*'
> build/libelf/elf_begin.c:102: error: invalid conversion from 'void*' to 'Elf*'
> build/libelf/elf_begin.c:109: error: 'ftruncate' was not declared in this 
> scope
> build/libelf/elf_begin.c:111: error: invalid conversion from 'void*' to 'Elf*'
> build/libelf/elf_begin.c:125: error: invalid conversion from 'void*' to 'Elf*'
> build/libelf/elf_begin.c:135: error: invalid conversion from 'void*' to 'Elf*'
> build/libelf/elf_begin.c:142: error: invalid conversion from 'void*' to 'Elf*'
> scons: *** [build/libelf/elf_begin.os] Error 1
> scons: building terminated because of errors.
> 
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to