fastflow icon indicating copy to clipboard operation
fastflow copied to clipboard

cmake build failed

Open tsung-wei-huang opened this issue 4 years ago • 2 comments

Followed the instruction:

~$ cd build
~$ cmake ../ 
~$ make

...
[ 13%] Building CXX object tests/CMakeFiles/test_all-to-all7_NONBLOCKING.dir/test_all-to-all7.cpp.o
/home/tsung-wei/Code/fastflow/tests/test_multi_output.cpp: In function ‘int main()’:
/home/tsung-wei/Code/fastflow/tests/test_multi_output.cpp:113:13: error: missing template arguments before ‘pipe1’
     ff_Pipe pipe1(a, b);
             ^~~~~
/home/tsung-wei/Code/fastflow/tests/test_multi_output.cpp:114:5: error: ‘pipe1’ was not declared in this scope
     pipe1.wrap_around();
     ^~~~~
/home/tsung-wei/Code/fastflow/tests/test_multi_output.cpp:114:5: note: suggested alternative: ‘pipe2’
     pipe1.wrap_around();
     ^~~~~
     pipe2
/home/tsung-wei/Code/fastflow/tests/test_multi_output.cpp:115:13: error: missing template arguments before ‘pipe’
     ff_Pipe pipe(pipe1, c);
             ^~~~
/home/tsung-wei/Code/fastflow/tests/test_multi_output.cpp:116:14: error: request for member ‘run_and_wait_en’ in ‘pipe’, which is of non-class type ‘int(int*) throw ()’ {aka ‘int(int*)’}
     if (pipe.run_and_wait_end()<0) {
              ^~~~~~~~~~~~~~~~
make[2]: *** [tests/CMakeFiles/test_multi_output_BLOCKING.dir/build.make:63: tests/CMakeFiles/test_multi_output_BLOCKING.dir/test_multi_output.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2166: tests/CMakeFiles/test_multi_output_BLOCKING.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

tsung-wei-huang avatar Mar 30 '20 16:03 tsung-wei-huang

We found a temporary workaround for this failing build: use cmake ../ -DBUILD_TESTS=OFF instead of just cmake ../

dbarasti avatar Apr 22 '20 16:04 dbarasti

Change: ff_Pipe pipe1(a, b); to: ff_Pipe<> pipe1(a, b);

keith-dev avatar Jun 17 '20 03:06 keith-dev