Topic
1 reply Latest Post - ‏2010-09-02T23:01:24Z by SystemAdmin
SystemAdmin
SystemAdmin
277 Posts
ACCEPTED ANSWER

Pinned topic Compiling the PPC ISS wrapper.c for SystemC on linux

‏2010-09-02T01:56:22Z |
Hi,
Has anyone compiled the PCC ISS
(iss_ppc/model/wrapper.c)
on linux?
If you have, please share the Makefile you used.
I am having troubles with the functions like

./linux/liblib/librwif.a(rwprobe.o): In function `_ippc_ProbeGetVersion(probe*)':
rwprobe.c:(.text+0x4d36): undefined reference to `_ippc_version(char*, unsigned int)'

Which seems to suggest it cannot find the library files,
although with an objdump, I can 'see' that they are there:

For example:
./linux/lib/callin.a: U _Z13_ippc_versionPcj
./linux/lib/rwif.a: U _Z13_ippc_versionPcj

The problem occurs during linking, when I have compiled my object and add the
archive files.
Thanks,
Dave
Updated on 2010-09-02T23:01:24Z at 2010-09-02T23:01:24Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    277 Posts
    ACCEPTED ANSWER

    Re: Compiling the PPC ISS wrapper.c for SystemC on linux

    ‏2010-09-02T23:01:24Z  in response to SystemAdmin
    With several experiments, coupled with using nm and objdump, I have a theory:
    These functions:
    _ippc_version
    _ippc_initialize_405_default_options
    _ippc_initialize_440_default_options
    _ippc_initialize_460_default_options

    do not exist in the linux/lib/*.a
    library files.

    Now, the library file 'rwif.a' does require the '_ippc_version' function to exist,
    so it may wreck the theory.
    Unless, it opens the door to having the user of the libraries supply this function.
    Although, this function '_ippc_version' is described in the user guide, so
    I am not sure why it is not written.

    Also, something that may kill the theory is that the user guide says it is in 'callin'.
    However nm and objdump specify that the function is 'U' or UND which
    I am taking to be 'UNDEFINED'.

    If anyone has a suggestion, pointer, or the answer, I would appreciate the myth busting.
    Regards.