SystemC

112 views
Skip to first unread message

O.ELMahi

unread,
May 13, 2011, 10:35:23 PM5/13/11
to resp-sim
Hello,

i am downloading ReSP on ubuntu 11.4 and 64 bit machine.
i have a problem with Trap installation when using command:
./waf configure --with-systemc=../systemc-2.2.0/systemc-2.2.0 --
license=gpl

it gives me the output:
Setting top to : /home/jana/resp-sim/install/
External_tools/trap-gen
Setting out to : /home/jana/resp-sim/install/
External_tools/trap-gen/_build_
Checking for waf version in 1.6.0-1.7.0 : ok
Checking for 'g++' (c++ compiler) : ok
Checking for compiler version : ok - 4.5.2
Checking for program objdump : /usr/bin/objdump
Checking for program python : /usr/bin/python
Checking for python version : (2, 7, 1, 'final', 0)
Checking for g++ optimization flags : yes
Checking for gcc optimization flags : yes
Checking for C compilation flags : yes
Checking for C++ compilation flags : yes
Checking for link flags : yes
Checking for host endianness : little
Checking boost includes : 1_42
Checking boost libs : ok
Determining gcc search path : ok
Checking for library iberty_pic : ok iberty_pic
Checking for library bfd : ok bfd
Checking for header bfd.h : yes
Checking for Binutils Version : yes
Checking for bfd_demangle : ok >= 2.18
Checking for linker flags -pthread : yes
Checking for compiler flags -pthread : yes
Checking for library systemc : not found, use --with-
systemc option
The configuration failed
(complete log in /home/jana/resp-sim/install/External_tools/trap-gen/
_build_/config.log)

not sure where is the problem
Thanks

Luca Fossati

unread,
May 16, 2011, 8:54:47 AM5/16/11
to resp...@googlegroups.com
Simple: it seems like you have not correctly installed/compiler systemc:
giving a look at the log (as even suggested in the error message) might help.
If you still cannot figure out what is going wrong when looking at the log,
send me its content and I give you a hand!

Cheers

Luca


--
You received this message because you are subscribed to the Google Groups "resp-sim" group.
To post to this group, send email to resp...@googlegroups.com.
To unsubscribe from this group, send email to resp-sim+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/resp-sim?hl=en.


O.ELMahi

unread,
May 18, 2011, 9:08:47 PM5/18/11
to resp-sim
Hello,

first thanks. the problem in installing system c as you said i can not
install it separately. in log file i checked that all ok except the
final part :

Checking for library systemc
==>

int main() {
return 0;
}

<==
[1/2] [32mcxx: _build_/.conf_check_030eab487202cf95b4c7e34c2281c8f3/
test.cpp -> _build_/.conf_check_030eab487202cf95b4c7e34c2281c8f3/
testbuild/test.cpp.0.o
[0m
['/usr/bin/g++', '-O2', '-pipe', '-finline-functions', '-ftracer', '-
fomit-frame-pointer', '-march=native', '-fstrict-aliasing', '-fPIC', '-
pthread', '-DPYTHONDIR="/usr/local/lib/python2.7/dist-packages"', '-
DPYTHONARCHDIR="[\'/usr/local/lib/python2.7/dist-packages\']"', '-
DNDEBUG', '-DPIC', '-DLITTLE_ENDIAN_BO', '-DHAVE_BFD_H=1', '../
test.cpp', '-c', '-o', 'test.cpp.0.o']
[2/2] [33mcxxprogram:
_build_/.conf_check_030eab487202cf95b4c7e34c2281c8f3/testbuild/
test.cpp.0.o -> _build_/.conf_check_030eab487202cf95b4c7e34c2281c8f3/
testbuild/testprog
[0m
['/usr/bin/g++', 'test.cpp.0.o', '-o', '/home/jana/resp-sim/install/
External_tools/trap-gen/
_build_/.conf_check_030eab487202cf95b4c7e34c2281c8f3/testbuild/
testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/home/jana/resp-sim/
install/External_tools/SystemC/systemc-2.2.0/lib-linux', '-lsystemc',
'-fPIC', '-Wl,-E', '-pthread']
err: /usr/bin/ld: skipping incompatible /home/jana/resp-sim/install/
External_tools/SystemC/systemc-2.2.0/lib-linux/libsystemc.a when
searching for -lsystemc
/usr/bin/ld: cannot find -lsystemc
collect2: ld returned 1 exit status

from /home/jana/resp-sim/install/External_tools/trap-gen: Test does
not build: Traceback (most recent call last):
File "/home/jana/resp-sim/install/External_tools/trap-
gen/.waf-1.6.4-677ad73dd7081a39bf611a8b69cc9a1b/waflib/Tools/
c_config.py", line 434, in run_c_code
bld.compile()
File "/home/jana/resp-sim/install/External_tools/trap-
gen/.waf-1.6.4-677ad73dd7081a39bf611a8b69cc9a1b/waflib/Build.py", line
193, in compile
raise Errors.BuildError(self.producer.error)
BuildError: Build failed
-> task failed (exit status 1):
{task 20321936: cxxprogram test.cpp.0.o -> testprog}
['/usr/bin/g++', 'test.cpp.0.o', '-o', '/home/jana/resp-sim/install/
External_tools/trap-gen/
_build_/.conf_check_030eab487202cf95b4c7e34c2281c8f3/testbuild/
testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/home/jana/resp-sim/
install/External_tools/SystemC/systemc-2.2.0/lib-linux', '-lsystemc',
'-fPIC', '-Wl,-E', '-pthread']

not found, use --with-systemc option
from /home/jana/resp-sim/install/External_tools/trap-gen: The
configuration failed

when i tried to install the systemc by itself it gives me the
following errors :

Assembler messages:
Error: can't open qtmds.s for reading: No such file or directory
make[3]: *** [qtmds.o] Error 1
make[3]: Leaving directory `/home/jana/resp-sim/install/External_tools/
systemc-2.2.0/objdir/src/sysc/qt'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jana/resp-sim/install/External_tools/
systemc-2.2.0/objdir/src/sysc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jana/resp-sim/install/External_tools/
systemc-2.2.0/objdir/src'
make: *** [all-recursive] Error 1
jana@ubuntu:~/resp-sim/install/External_tools/systemc-2.2.0/objdir$
cp ../../ext/systemc/configure.in.patch ./
cp: cannot stat `../../ext/systemc/configure.in.patch': No such file
or directory
jana@ubuntu:~/resp-sim/install/External_tools/systemc-2.2.0/objdir$
patch -p0 -i configure.in.patch
patch: **** Can't open patch file configure.in.patch : No such file or
directory
jana@ubuntu:~/resp-sim/install/External_tools/systemc-2.2.0/objdir$
cd ..
jana@ubuntu:~/resp-sim/install/External_tools/systemc-2.2.0$ cp ../../
ext/systemc/configure.in.patch ./
cp: cannot stat `../../ext/systemc/configure.in.patch': No such file
or directory
jana@ubuntu:~/resp-sim/install/External_tools/systemc-2.2.0$ patch -p0
-i configure.in.patch
patch: **** Can't open patch file configure.in.patch : No such file or
directory

Thanks in advance
Olfat

Luca Fossati

unread,
May 19, 2011, 2:30:40 AM5/19/11
to resp...@googlegroups.com
Hi Olfat,

it is definitely a problem in you systemc setup; I suggest you completely delete the SystemC folder, download
a fresh SystemC release and re-try.
Remember to use the patches and the instructions contained in the ext folder of ReSP to properly patch/install systemc.

Cheers

Luca

As I suggested, 
Reply all
Reply to author
Forward
0 new messages