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

Using make.inc.serial got error msg: ‘syscall’ was not declared in this scope #44

Open
abitofalchemy opened this issue Mar 4, 2016 · 1 comment

Comments

@abitofalchemy
Copy link

Hello All,
I did not see this error show up in earlier issues, does any one have a suggestion? I tried compiling on an Ubuntu system.

src/count-tri.cpp: In function ‘int main(int, char*)’:
src/count-tri.cpp:76:66: error: ‘syscall’ was not declared in this scope
printf("My TID: %ld running on CPU: %d\n", syscall(SYS_gettid), sched_getcpu());
make[1]: *
* [src/count-tri.o] Error 1
make[1]: Leaving directory `/home/saguinag/Software/INDDGO/util'

@mxmerz
Copy link

mxmerz commented Jul 22, 2016

I have encountered the same problem when trying to follow the instructions in ./INSTALL (using make.inc.serial, SuiteSparse and metis):

$ make
[...]
g++  -O3 -DHAS_METIS -D_FILE_OFFSET_BITS=64 -DHAS_SUITESPARSE  -c -I./inc -I/home/mxmerz/INDDGO/lib_graphd/inc -I/home/mxmerz/INDDGO/lib_treed/inc -I/home/mxmerz/metis-5.0.2/include -I/home/mxmerz/metis-5.0.2/libmetis -I/home/mxmerz/metis-5.0.2/GKlib -I/home/mxmerz/metis-5.0.2/programs -I/home/mxmerz/SuiteSparse/CHOLMOD/Include -I/home/mxmerz/SuiteSparse/COLAMD/Include -I/home/mxmerz/SuiteSparse/AMD/Include -I/home/mxmerz/SuiteSparse/SuiteSparse_config -I/home/mxmerz/INDDGO/uthash-1.9.3/src       src/count-tri.cpp -o src/count-tri.o
src/count-tri.cpp: In function 'int main(int, char**)':
src/count-tri.cpp:76:66: error: 'syscall' was not declared in this scope
     printf("My TID: %ld running on CPU: %d\n", syscall(SYS_gettid), sched_getcpu());
                                                                  ^
Makefile:44: recipe for target 'src/count-tri.o' failed
make[1]: *** [src/count-tri.o] Error 1
make[1]: Leaving directory '/home/mxmerz/INDDGO/util'
Makefile:101: recipe for target 'util' failed
make: *** [util] Error 2

After commenting line 76, util/src/count-tri.cpp compiled without problems.

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

2 participants