Project

General

Profile

Actions

Bug #9297

open

Ошибка сборки cpptesk-toolkit-src-1.0.24-beta-140522

Added by Nikita Chertok about 6 years ago.

Status:
New
Priority:
Normal
Target version:
-
Start date:
10/04/2018
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Linux x64
Published in build:

Description

При запуске скрипта сборки install.sh обнаруживаются ошибки в файле ./cpptesk/cpplib/utils/utils.hpp в строках 22, 29, 36, 43.

Версия gcc:
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609

Для исправления ошибок достаточно в файле заменить строки

  typedef struct { static const int value = 0; } type;

на

  typedef struct type { static const int value = 0; } type;

Лог сборки:

tput is /home/chert/anaconda3/bin/tput
[INFO] C++TESK Testing ToolKit installation started. Please, wait...
tput is /home/chert/anaconda3/bin/tput
chmod +x ctesk/bin/*.sh ctesk/bin/secc
cd ctesk/lib/src; make all
make[1]: Entering directory '/home/chert/ispras/cpptesk-toolkit-src-1.0.24-beta-140522/ctesk/lib/src'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/chert/ispras/cpptesk-toolkit-src-1.0.24-beta-140522/ctesk/lib/src'
tput is /home/chert/anaconda3/bin/tput
[INFO] Component named CTESK has been compiled. Work in progress...
tput is /home/chert/anaconda3/bin/tput
export CTESK_HOME="`pwd`/ctesk"; export ASPECTRACE_HOME="`pwd`/netfsm/aspectrace/src/c"; cd cpptesk/cpplib; make all
make[1]: Entering directory '/home/chert/ispras/cpptesk-toolkit-src-1.0.24-beta-140522/cpptesk/cpplib'
g++ -I. -I/home/chert/ispras/cpptesk-toolkit-src-1.0.24-beta-140522/ctesk/lib/ -I/home/chert/ispras/cpptesk-toolkit-src-1.0.24-beta-140522/ctesk/lib/src -I/home/chert/ispras/cpptesk-toolkit-src-1.0.24-beta-140522/netfsm/aspectrace/src/c -g3 -Wall   -DATL_CLONE_DISABLE -DUSE_FOPEN64 -DCPPTESK_BUILD_WITH_OLD_ASPECTRACE_PATH -fPIC -c tracer/tracer.cpp -o tracer/tracer.o
In file included from ./ts/coverage.hpp:6:0,
                 from ./tracer/tracer.hpp:2,
                 from tracer/tracer.cpp:1:
./utils/utils.hpp:22:36: error: static data member cpptesk::utils::_iterator_helper::iterator_category_order<std::input_iterator_tag>::<anonymous struct>::value in unnamed class [-fpermissive]
  typedef struct { static const int value = 0; } type;
                                    ^
./utils/utils.hpp:22:17: note: unnamed class defined here
  typedef struct { static const int value = 0; } type;
                 ^
./utils/utils.hpp:29:36: error: static data member cpptesk::utils::_iterator_helper::iterator_category_order<std::forward_iterator_tag>::<anonymous struct>::value in unnamed class [-fpermissive]
  typedef struct { static const int value = 1; } type;
                                    ^
./utils/utils.hpp:29:17: note: unnamed class defined here
  typedef struct { static const int value = 1; } type;
                 ^
./utils/utils.hpp:36:36: error: static data member cpptesk::utils::_iterator_helper::iterator_category_order<std::bidirectional_iterator_tag>::<anonymous struct>::value in unnamed class [-fpermissive]
  typedef struct { static const int value = 2; } type;
                                    ^
./utils/utils.hpp:36:17: note: unnamed class defined here
  typedef struct { static const int value = 2; } type;
                 ^
./utils/utils.hpp:43:36: error: static data member cpptesk::utils::_iterator_helper::iterator_category_order<std::random_access_iterator_tag>::<anonymous struct>::value in unnamed class [-fpermissive]
  typedef struct { static const int value = 3; } type;
                                    ^
./utils/utils.hpp:43:17: note: unnamed class defined here
  typedef struct { static const int value = 3; } type;
                 ^
GNUmakefile:50: recipe for target 'tracer/tracer.o' failed
make[1]: *** [tracer/tracer.o] Error 1
make[1]: Leaving directory '/home/chert/ispras/cpptesk-toolkit-src-1.0.24-beta-140522/cpptesk/cpplib'
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
[FAILED] C++TESK Testing ToolKit has NOT been compiled correctly. It might be connected with its dependencies.

No data to display

Actions

Also available in: Atom PDF