LINUX.ORG.RU

У кого-нибудь mclinker собирается?

 , , , ,


0

1

Это.

clang 3.6:

LD/IdenticalCodeFolding.cpp:237:13: error: no member named 'format_object' in namespace 'llvm'
      llvm::format_object<Relocation::Type,
      ~~~~~~^
LD/IdenticalCodeFolding.cpp:237:43: error: expected '(' for function-style cast or type construction
      llvm::format_object<Relocation::Type,
                          ~~~~~~~~~~~~~~~~^
LD/IdenticalCodeFolding.cpp:246:7: error: use of undeclared identifier 'rel_info'
      rel_info.print(rel_str, sizeof(rel_str));
      ^
LD/IdenticalCodeFolding.cpp:290:11: error: no member named 'format_object' in namespace 'llvm'
    llvm::format_object<size_t> kept_info("%x", (*it).second.second);
    ~~~~~~^
LD/IdenticalCodeFolding.cpp:290:25: error: unexpected type name 'size_t': expected expression
    llvm::format_object<size_t> kept_info("%x", (*it).second.second);
                        ^
LD/IdenticalCodeFolding.cpp:290:33: error: use of undeclared identifier 'kept_info'
    llvm::format_object<size_t> kept_info("%x", (*it).second.second);
                                ^
LD/IdenticalCodeFolding.cpp:292:5: error: use of undeclared identifier 'kept_info'
    kept_info.print(kept_str, sizeof(kept_str));
    ^
7 errors generated.
clang 3.8:
LD/IdenticalCodeFolding.cpp:237:43: error: expected '(' for function-style cast or type construction
      llvm::format_object<Relocation::Type,
                          ~~~~~~~~~~~~~~~~^
LD/IdenticalCodeFolding.cpp:237:13: error: no member named 'format_object' in namespace 'llvm'
      llvm::format_object<Relocation::Type,
      ~~~~~~^
LD/IdenticalCodeFolding.cpp:246:7: error: use of undeclared identifier 'rel_info'
      rel_info.print(rel_str, sizeof(rel_str));
      ^
LD/IdenticalCodeFolding.cpp:290:25: error: unexpected type name 'size_t': expected expression
    llvm::format_object<size_t> kept_info("%x", (*it).second.second);
                        ^
LD/IdenticalCodeFolding.cpp:290:11: error: no member named 'format_object' in namespace 'llvm'
    llvm::format_object<size_t> kept_info("%x", (*it).second.second);
    ~~~~~~^
LD/IdenticalCodeFolding.cpp:290:33: error: use of undeclared identifier 'kept_info'
    llvm::format_object<size_t> kept_info("%x", (*it).second.second);
                                ^
LD/IdenticalCodeFolding.cpp:292:5: error: use of undeclared identifier 'kept_info'
    kept_info.print(kept_str, sizeof(kept_str));
    ^
7 errors generated.

★★★★★

Последнее исправление: CYB3R (всего исправлений: 1)

Ответ на: комментарий от CYB3R

Это делается

#include<llvm/Support/Format.h>
в начало проблемного файла (LD/IdenticalCodeFolding.cpp).

Если заработает, шли патч :)

staseg ★★★★★
()
Ответ на: комментарий от staseg

Там этот заголовок уже есть.

CYB3R ★★★★★
() автор топика
Ответ на: комментарий от staseg

Вообще спасибо. Я посмотрел в этот файл, увидел там такое:

format_object1<T>
format_object2<T1, T2>
format_object3<T1, T2, T3>
format_object4<T1, T2, T3, T4>
format_object5<T1, T2, T3, T4, T5>
format_object6<T1, T2, T3, T4, T5, T6>
Поправил код соответственным образом.

CYB3R ★★★★★
() автор топика
Ответ на: комментарий от CYB3R

А в 3.8 есть только format_object.

CYB3R ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.