Code Monkey home page Code Monkey logo

mc-fastflow's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mc-fastflow's Issues

Build without examples fails on Gentoo with "error: ‘syscall’ was not declared in this scope" (multiple times)

After the default build failed I tried building fastflow without the examples as described in the Build.me file.
But the make command failed with the following errors:

[ 12%] Building CXX object tests/CMakeFiles/perf_test_noalloc.dir/perf_test_noalloc.cpp.o
In file included from /home/students/slaufmann/Software/mc-fastflow/tests/perf_test_noalloc.cpp:34:0:
/home/students/slaufmann/Software/mc-fastflow/ff/mapping_utils.hpp: In function ‘long int ff_getThreadID()’:
/home/students/slaufmann/Software/mc-fastflow/ff/mapping_utils.hpp:37:37: error: ‘syscall’ was not declared in this scope
 #define gettid() syscall(__NR_gettid)
                                     ^
/home/students/slaufmann/Software/mc-fastflow/ff/mapping_utils.hpp:57:13: note: in expansion of macro ‘gettid’
     return  gettid();
             ^~~~~~
/home/students/slaufmann/Software/mc-fastflow/ff/mapping_utils.hpp: In function ‘int ff_setPriority(int)’:
/home/students/slaufmann/Software/mc-fastflow/ff/mapping_utils.hpp:37:37: error: ‘syscall’ was not declared in this scope
 #define gettid() syscall(__NR_gettid)
                                     ^
/home/students/slaufmann/Software/mc-fastflow/ff/mapping_utils.hpp:123:39: note: in expansion of macro ‘gettid’
         if (setpriority(PRIO_PROCESS, gettid(),priority_level) != 0) {
                                       ^~~~~~
/home/students/slaufmann/Software/mc-fastflow/ff/mapping_utils.hpp: In function ‘int ff_mapThreadToCpu(int, int)’:
/home/students/slaufmann/Software/mc-fastflow/ff/mapping_utils.hpp:37:37: error: ‘syscall’ was not declared in this scope
 #define gettid() syscall(__NR_gettid)
                                     ^
/home/students/slaufmann/Software/mc-fastflow/ff/mapping_utils.hpp:174:27: note: in expansion of macro ‘gettid’
     if (sched_setaffinity(gettid(), sizeof(mask), &mask) != 0)
                           ^~~~~~
make[2]: *** [tests/CMakeFiles/perf_test_noalloc.dir/build.make:63: tests/CMakeFiles/perf_test_noalloc.dir/perf_test_noalloc.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:281: tests/CMakeFiles/perf_test_noalloc.dir/all] Error 2
make: *** [Makefile:139: all] Error 2

My kernel version and system information as of uname -a is:
4.9.16-gentoo #1 SMP PREEMPT Fri Apr 21 13:14:04 CEST 2017 x86_64 Intel(R) Core(TM) i5-6260U CPU @ 1.80GHz GenuineIntel GNU/Linux

A full log of the terminal output can be found on this gist: https://gist.github.com/slaufmann/d8ddc91d9897fb8c629adecca6b4bd00#file-buildloggentoo_2

If I could help with providing any additional information please let me know.

Thanks.

Build fails on Gentoo with "undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'"

I tried building as described in the Build.me file.
While running make the following error occured:

[ 21%] Linking CXX executable mandelbrot_ff
/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/mandelbrot_ff.dir/renderthread.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [examples/qt-mandelbrot/fastflow/CMakeFiles/mandelbrot_ff.dir/build.make:211: examples/qt-mandelbrot/fastflow/mandelbrot_ff] Error 1
make[1]: *** [CMakeFiles/Makefile2:599: examples/qt-mandelbrot/fastflow/CMakeFiles/mandelbrot_ff.dir/all] Error 2
make: *** [Makefile:139: all] Error 2

My kernel version and system information as of uname -a is:
4.9.16-gentoo #1 SMP PREEMPT Fri Apr 21 13:14:04 CEST 2017 x86_64 Intel(R) Core(TM) i5-6260U CPU @ 1.80GHz GenuineIntel GNU/Linux

A full log of the terminal output can be found on this gist: https://gist.github.com/slaufmann/3a0d1c6209f921264f098b7c4a794308#file-buildloggentoo

If I could help with providing any additional information please let me know.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.