Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake build failed #29

Open
tsung-wei-huang opened this issue Mar 30, 2020 · 2 comments
Open

cmake build failed #29

tsung-wei-huang opened this issue Mar 30, 2020 · 2 comments

Comments

@tsung-wei-huang
Copy link

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....
@dbarasti
Copy link

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

@keith-dev
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants