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

error: call to non-‘constexpr’ function ‘long int sysconf(int)’ #27

Open
Mukesh-yadav-AI opened this issue Mar 10, 2022 · 0 comments

Comments

@Mukesh-yadav-AI
Copy link

I was trying to install conky-lua and getting the below error. please help me with this.

command: yaourt -S conky-lua

error: call to non-‘constexpr’ function ‘long int sysconf(int)’
8351 | 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
| ^~~~~~~~~~~
In file included from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /tmp/yaourt-tmp-mukesh/aur-conky-lua/src/conky-1.11.5/tests/catch2/catch.hpp:5730,
from /tmp/yaourt-tmp-mukesh/aur-conky-lua/src/conky-1.11.5/tests/test-common.cc:32:
/usr/include/unistd.h:640:17: note: ‘long int sysconf(int)’ declared here
640 | extern long int sysconf (int __name) __THROW;
| ^~~~~~~
In file included from /tmp/yaourt-tmp-mukesh/aur-conky-lua/src/conky-1.11.5/tests/test-common.cc:32:
/tmp/yaourt-tmp-mukesh/aur-conky-lua/src/conky-1.11.5/tests/catch2/catch.hpp:8409:41: error: size of array ‘altStackMem’ is not an integral constant-expression
8409 | char FatalConditionHandler::altStackMem[sigStackSize] = {};
| ^~~~~~~~~~~~
make[2]: *** [tests/CMakeFiles/test-conky.dir/build.make:76: tests/CMakeFiles/test-conky.dir/test-common.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1253: tests/CMakeFiles/test-conky.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build conky-lua.

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

1 participant