-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
latest Master compiling error: "unknown type name ‘bool’" #16157
Comments
Should be fixed now, thanks for reporting. |
I'm getting the next one now:
|
Hopefully fixed now... |
Yes, everything went well. Thanks for the quick fix! |
Curious how this got past the CI? |
And it was also compiling fine for me. |
I've seen it as well on my Windows machine, while the Windows CI was passing, very strange... |
There's nothing strange. C90 does not support the boolean data type. C99 does. If you look at the build logs on all CI platforms, you will see |
Mine is GCC 13.2 on Windows. Same as CI. I don't think I do anything differently, no special compiler flags... |
But C99 standard is enabled in dt's cmake: Line 229 in 267142e
So it's not about C standard version IMHO, but maybe about support of said feature (bool, true and false) by various compiler versions. |
Or, more likely, it's just about including <stdbool.h>. On some systems it may be included by some other includes, on others - not. |
Still doesn't explain why my local Windows MSYS2 build failed while the (presumably identically set up) CI didn't. |
Well, there I can’t help, obviously they are different. E.g. enabled features and dependencies (and their versions) can affect includes, not just base build environment. |
Describe the bug
When compiling the latest version of Master just now, I get the following error message:
Steps to reproduce
cd darktable
sudo git clean -d -f -x
rm -rf ~/.cache/darktable/cached_kernels*
git pull --rebase
git submodule update
sudo su
export CC=gcc-12
export CXX=g++-12
./build.sh --prefix /opt/darktable-test --build-type Release --install --sudo
Expected behavior
No response
Logfile | Screenshot | Screencast
No response
Commit
No response
Where did you obtain darktable from?
self compiled
darktable version
lastest Master
What OS are you using?
Linux
What is the version of your OS?
Ubuntu Studio 22.04
Describe your system?
Operating System: Ubuntu Studio 22.04
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.19.0-1028-lowlatency (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-7700K CPU @ 4.20GHz
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070/PCIe/SSE2
G Driver 535.129.03
Are you using OpenCL GPU in darktable?
Yes
If yes, what is the GPU card and driver?
NVIDIA GeForce GTX 1070/PCIe/SSE2 G Driver 535.129.03
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
No response
The text was updated successfully, but these errors were encountered: