Opened 16 years ago

Closed 16 years ago

#7 closed defect (fixed)

installation fails

Reported by: turbo07 Owned by: somebody
Priority: major Component: component1
Keywords: Cc:

Description

Hi,

I reinstalled soclib from scratch on a new computer following the installation note page.

SystemC is installed and $SYSTEMC is set. The cross compilers are installed for both mipsel and powerpc target. They are installed in a $CXTOOL directory and the $PATH variable is correctly set.

When performing the Testing part of my new installation, the make command fails:

make

soclib-cc -P -p platform_desc -o simulation.x [========================W + ] 18 left /home.local/soclib/Soclib/soclib/lib/elf_loader/src/elf_loader.cpp:28:17: error: bfd.h: Aucun fichier ou répertoire de ce type

After investigation, bfd.h can be found into $CXTOOL/i686-pc-linux-gnu/{mipsel|powerpc}-unknown-elf/include

As indicating, I tried to modify my ~/.soclib/global.conf configuration file in order to specify the correct toolchain. I think the SoclibConf page is not quite clear: my configuration file looks like

" config.mipsel = Config(

base = config.toolchain, prefix = "i686-pc-linux-gnu/mipsel-unknown-elf" )

config.use_mipsel = Config(

base = config.default, toolchain = config.mipsel )

"

then, the following command line soclib-cc -t mipsel -P -p platform_desc -o simulation.x* gets the following answer: Traceback (most recent call last):

File "/home.local/soclib/Soclib/utils/lib/python/soclib-cc-main.py", line 237, in ?

sys.exit(main())

File "/home.local/soclib/Soclib/utils/lib/python/soclib-cc-main.py", line 113, in main

change_config(opts.type)

File "/usr/lib/python2.4/site-packages/cairo/init.py", line 107, in change_config

AttributeError: Config instance has no attribute 'doConfigure'

My questions are:

  • how can I tell to soclib-cc the correct path to find the appropriate missing header file?
  • how shall a correct toolchain be declared in a global.conf configuration file?

Thank for your help

Christophe

PS: In the Installation Notes, I would suggest to add an external link for SystemCass in order to directly access the trac pages for systemcass (www-asim.lip6.fr/trac/systemcass/)

Change History (2)

comment:1 Changed 16 years ago by Joel Porquet

If I'm not mistaken, all the soclib component are compiled with the regular gcc of your host (eg x86). The missing bfd.h is thus not the one provided by the mipsel toolchain. The mipsel/powerpc toolchain is only used for compiling the binary that will run on the systemc platform and not for compiling the systemc platorm itself. Well, you only need the binutils-dev packet of your linux distribution (eg ubuntu).

comment:2 Changed 16 years ago by turbo07

Resolution: fixed
Status: newclosed

Note: See TracTickets for help on using tickets.