#18 make error

closed-works-for-me
nobody
None
1
2006-10-02
2006-08-12
Allar Õunapuu
No

command 'make' gives error message:

In file included from matrix.h:37,
from stat.h:1,
from declick.c:27:
machine.h:33: error: syntax error before
"VE_PROTOTYPES_IN_STRUCT"
In file included from machine.h:75,
from matrix.h:37,
from stat.h:1,
from declick.c:27:
/usr/include/malloc.h:118: error: syntax error before
"extern"
In file included from matrix.h:37,
from stat.h:1,
from declick.c:27:
machine.h:225: error: syntax error before "extern"
make: *** [declick.o] Error 1

file machine.h line 33 is:
/* #undef HA */VE_PROTOTYPES_IN_STRUCT
i found also in same file line18:
/* #undef cons */t
line60
/* #undef COMPLE */X
line65:
/* #undef M */UNROLL

It's erroneus commenting, but I have no idea how to get
rid of it.

Discussion

  • Allar Õunapuu
    Allar Õunapuu
    2006-08-12

    machine.h

     
    Attachments
  • Allar Õunapuu
    Allar Õunapuu
    2006-08-12

    • priority: 5 --> 9
     
  • Allar Õunapuu
    Allar Õunapuu
    2006-08-15

    Logged In: YES
    user_id=1427901

    One solution is to use debian binary. But I'ld like to
    compile my own 686-version instead.

     
  • Jeff Welty
    Jeff Welty
    2006-10-01

    • status: open --> closed
     
  • Jeff Welty
    Jeff Welty
    2006-10-01

    Logged In: YES
    user_id=269392

    The version of machine.h you referenced is not directly from
    the gwc.sourceforge.net archives. Perhaps a packager
    (debian?) modified the file?

    You should get the code directly from gwc.sourceforge.net
    and retry.

    Cheers,
    Jeff Welty

     
  • Allar Õunapuu
    Allar Õunapuu
    2006-10-02

    • priority: 9 --> 1
    • status: closed --> closed-works-for-me
     
  • Allar Õunapuu
    Allar Õunapuu
    2006-10-02

    Logged In: YES
    user_id=1427901

    I'm using Gentoo system. GWC isn't in official portage. The
    changes to source files are made during compilation. Even If
    I fix those erors manually, they are back again and giving
    same errors in compilation time. So actually It's not GWC's
    problem at all.

    I usedd 'dpkg-deb -x' for extracting debian binary and
    copied gwc binary into /usr/bin directory. It works fine.