You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was unable to build from source on my RHEL 9 using make and gcc. Adding "#include <math.h>" to the top of src/ast/sls/sls_arith_lookahead.h fixed the issue for me.
gcc version: gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)
make version: GNU Make 4.3 Built for x86_64-redhat-linux-gnu
I'm wondering if this is the correct fix, or if it will cause subtle and hard to diagnose issues later?
Here's the full error I saw:
src/ast/sls/sls_arith_lookahead.cpp
../src/ast/sls/sls_arith_lookahead.cpp: In member function‘expr*sls::arith_lookahead<num_t>::get_candidate_unsat()’:
../src/ast/sls/sls_arith_lookahead.cpp:723:51: error: ‘::sqrt’ has not been declared; did you mean ‘sort’?
723 | + a.m_config.ucb_constant * ::sqrt(log((double)m_touched) / get_touched(f))| ^~~~
| sort
../src/ast/sls/sls_arith_lookahead.cpp:723:56: error: there are no arguments to ‘log’ that depend on a template parameter, so a declaration of ‘log’ must be available [-fpermissive]
723 | + a.m_config.ucb_constant * ::sqrt(log((double)m_touched) / get_touched(f))| ^~~
../src/ast/sls/sls_arith_lookahead.cpp:723:56: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make: *** [Makefile:1538: ast/sls/sls_arith_lookahead.o] Error 1
I was unable to build from source on my RHEL 9 using make and gcc. Adding "#include <math.h>" to the top of src/ast/sls/sls_arith_lookahead.h fixed the issue for me.
gcc version: gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)
make version: GNU Make 4.3 Built for x86_64-redhat-linux-gnu
I'm wondering if this is the correct fix, or if it will cause subtle and hard to diagnose issues later?
Here's the full error I saw:
And here's the diff of my workaround:
The text was updated successfully, but these errors were encountered: