Проблемы с установкой CilkPlus

Я пытаюсь установить Cilk-5.4.6 в моей ОС Ubuntu. Я уже выполнил команду./configure для настройки, но когда я пытаюсь запустить make в cilk-5.4.6, возникают некоторые ошибки.

    output.o: In function `output_constant':
    /home/papanasm/Desktop/cilk-5.4.6/cilk2c/output.c:629: undefine reference to `PrintChar'
    collect2: error: ld returned 1 exit status
    Makefile:287: recipe for target 'cilk2c' failed
    make[2]: *** [cilk2c] Error 1
    make[2]: Leaving directory '/home/papanasm/Desktop/cilk-5.4.6/cilk2c'
    Makefile:263: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/home/papanasm/Desktop/cilk-5.4.6'
    Makefile:193: recipe for target 'all' failed
    make: *** [all] Error 2

Я посмотрел в файле output.c, чтобы исправить то, что не так с функцией "PrintChar", но я ничего не мог сделать, что могло бы помочь.

это функция, в которой используется функция PrintChar.

   PRIVATE void output_constant(OutputContext *out, Node *c, Bool with_name)
   {
        if (with_name)
        switch (c->u.Const.type->typ) {
            case Prim:
               output_prim_type(out, c->u.Const.type, NULL, TRUE);
               OutS(out, " ");
               OutOffset(out, 1);
               break;
              /* Used for strings */
            case Adcl:
               assert(c->u.Const.type->u.adcl.type->typ == Prim);
               OutS(out, "array of ");
               OutOffset(out, 9);
               output_prim_type(out, c->u.Const.type->u.adcl.type,  0, TRUE);
               OutS(out, " ");
               OutOffset(out, 1);
               break;
               default:
               OutS(out, "??? ");
        }
        switch (c->u.Const.type->typ) {
         case Prim:
                switch (c->u.Const.type->u.prim.basic) {
                case Sint:
                OutOffset(out, gbprintf(out->gb, "%d", c->u.Const.value.i));
                return;
                /*Manish 2/3 hack to print pointer constants */
                case Uint:
                  OutOffset(out, gbprintf(out->gb, "%uU", c->u.Const.value.u));
                  return;
                case Slong:
                  OutOffset(out, gbprintf(out->gb, "%ldL", c->u.Const.value.l));
                  return;
                case Ulong:
                  OutOffset(out, gbprintf(out->gb, "%luUL", c->u.Const.value.ul));
                  return;
                case Float:
                  OutOffset(out, print_float(out->gb, c->u.Const.value.f));
                  return;
                case Double:
                  OutOffset(out, print_double(out->gb, c->u.Const.value.d));
                  return;
                case Char:
                case Schar:
                case Uchar:
                    OutOffset(out, PrintChar(out->gb, c->u.Const.value.i));
                    return;
                default:
                Fail(__FILE__, __LINE__, "");
                    return;
              }

               /* Manish 2/3  Print Constant Pointers */
                case Ptr:
                   OutOffset(out, gbprintf(out->gb, "%u", c->u.Const.value.u));
                    return;
               /* Used for strings */
                case Adcl:
                   OutOffset(out, PrintString(out->gb, c->u.Const.value.s));
                   return;

                default:
                FAIL("Unrecognized constant type");
               }
           }

Я не знаю, что еще я могу сделать, пожалуйста, помогите мне, я новичок в такого рода вещах.

0 ответов

Другие вопросы по тегам