Menu

#8 callgrind-0.9.10 will not compile

open
nobody
None
5
2004-12-06
2004-12-06
Juan
No

Trying to compile callgrind-0.9.10 but get the error listed
below:

sim.c: In function `cachesim_post_clo_init':
sim.c:696: error: can't find a register in class `BREG'
while reloading `asm'
sim.c:696: error: can't find a register in class `BREG'
while reloading `asm'
sim.c:696: error: can't find a register in class `BREG'
while reloading `asm'
sim.c:696: error: can't find a register in class `BREG'
while reloading `asm'
sim.c:696: error: can't find a register in class `BREG'
while reloading `asm'
sim.c:696: error: can't find a register in class `BREG'
while reloading `asm'
make[2]: *** [sim.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/storage/portage/tmp/portage/callgrind-0.9.10/work/callgrind-0.9
.10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/storage/portage/tmp/portage/callgrind-0.9.10/work/callgrind-0.9
.10/src'
make: *** [all-recursive] Error 1

Help? I need to install kdesdk to use kbabel.....

Gracias.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    compile sim.c with -fno-pic

     
  • Gregorio Guidi

    Gregorio Guidi - 2005-06-08

    Logged In: YES
    user_id=1218440

    FYI: this issue can be solved with the followng patch:

    --- callgrind-0.9.11.orig/src/sim.c 2005-04-02
    02:31:04.000000000 +0200
    +++ callgrind-0.9.11/src/sim.c 2005-06-08
    19:52:09.000000000 +0200
    @@ -1177,11 +1177,22 @@

    static __inline__ void cpuid(Int n, UInt *a, UInt *b, UInt
    *c, UInt *d)
    {
    +#ifdef __PIC__
    + __asm__ __volatile__ (
    + "pushl %%ebx\n\t"\
    + "cpuid\n\t"\
    + "movl %%ebx,%1\n\t"\
    + "popl %%ebx"
    + : "=a" (*a), "=r" (*b), "=c" (*c), "=d" (*d) /*
    output */
    + : "0" (n) /* input */
    + );
    +#else
    __asm__ __volatile__ (
    "cpuid"
    "=a" (*a), "=b" (*b), "=c" (*c), "=d" (*d) /*
    output */
    "0" (n) /* input */
    );
    +#endif
    }

    static void micro_ops_warn(Int actual_size, Int
    used_size, Int line_size)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.