-
Notifications
You must be signed in to change notification settings - Fork 121
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
Cannot Make #67
Comments
you should provide the OS gcc version etc... |
This happens at least on macOS Sonoma (14.x) with Xcode 15.
|
Seems to be a GCC extension to allow this. |
I have also encountered this problem recently. Is there any way to solve it? OS : Apple M1 Pro. macos sonoma 14.1 ` $ uname -a |
I went back to a really old version from 2016 or so that I had used before and which worked well for my simple needs. Back then it still compiled ok on other compilers. |
The commit in question is 5394b2c. It replaced literals by expressions for initialization of some values. Gcc includes builtin functions for Could you rename the issue to »Fails to build with CLang«? Maybe it's possible to move all these initialization values to a file that can be generated with a little tool. Possibly with a configure option |
V.150.1 has moved forward, but is still a work in progress. The various modules using Goertzel filters were not using a harmonised approach to setting thresholds and measuring power levels. This has been improved.
ademco_contactid.c:452:51: error: initializer element is not a compile-time constant static const float detection_threshold = goertzel_threshold_dbm0(GOERTZEL_SAMPLES_PER_BLOCK, -42.0f); ./spandsp/tone_detect.h:66:49: note: expanded from macro 'goertzel_threshold_dbm0' #define goertzel_threshold_dbm0(len,thresh) (float) ((len*len*32768.0*32768.0/2.0)*pow(10.0, (thresh - DBM0_MAX_SINE_POWER)/10.0)) ademco_contactid.c:453:77: error: initializer element is not a compile-time constant static const float tone_to_total_energy = GOERTZEL_SAMPLES_PER_BLOCK*db_to_power_ratio(-0.85f);
The text was updated successfully, but these errors were encountered: