... Darktable's build.sh still managed to find (and reject) the old
GCC 11.
On Mon, 03 Aug 2026 06:05:43 GMT, Charlie Gibbs wrote:
... Darktable's build.sh still managed to find (and reject) the old
GCC 11.
Looking at the package source (on Debian), it looks like Darktable
uses CMake to drive its builds. That build.sh is little more than a
wrapper around CMake, and in particular it allows you to pass custom
options to CMake.
I'm currently helping a friend upgrade his copy of Darktable.
The latest snag is that the build process wants GCC 12, while
his machine, running Mint 21, only has GCC 11. After scanning
the web for advice, I've tried to upgrade the compiler. At
best I got to where typing "gcc --version" on the command line
reports version 12, but Darktable's build.sh still managed to
find (and reject) the old GCC 11. Any ideas, short of doing
a dist-upgrade to Mint 22?
I'm currently helping a friend upgrade his copy of Darktable.
The latest snag is that the build process wants GCC 12, while
his machine, running Mint 21, only has GCC 11. After scanning
the web for advice, I've tried to upgrade the compiler. At
best I got to where typing "gcc --version" on the command line
reports version 12, but Darktable's build.sh still managed to
find (and reject) the old GCC 11. Any ideas, short of doing
a dist-upgrade to Mint 22?
On 2026-08-03, Lawrence DrCOOliveiro wrote:
On Mon, 03 Aug 2026 06:05:43 GMT, Charlie Gibbs wrote:
... Darktable's build.sh still managed to find (and reject) the old
GCC 11.
Looking at the package source (on Debian), it looks like Darktable
uses CMake to drive its builds. That build.sh is little more than a
wrapper around CMake, and in particular it allows you to pass custom
options to CMake.
There's no configure script?
Charlie Gibbs <cgibbs@kltpzyxm.invalid> writes:
I'm currently helping a friend upgrade his copy of Darktable.
The latest snag is that the build process wants GCC 12, while
his machine, running Mint 21, only has GCC 11. After scanning
the web for advice, I've tried to upgrade the compiler. At
best I got to where typing "gcc --version" on the command line
reports version 12, but Darktable's build.sh still managed to
find (and reject) the old GCC 11. Any ideas, short of doing
a dist-upgrade to Mint 22?
The build system should ask which compiler to use. You can set it either
via envars (like CC), switches to the build system, or by editing the
build system files (like Makefile). If it's Cmake, there's a 'ccmake' something something (read the manual for it). You could install, for
example, /opt/gcc-15/bin and then tell it /opt/gcc-15/bin/gcc for the compiler.
You might also try temporarily hiding your system compiler, but that's
kind of hacky.
You sure this won't work? https://github.com/darktable-org/darktable/releases/download/release-5.6.0/Darktable-5.6.0-x86_64.AppImage
There is, however, a file called ConfigureChecks.cmake.
I've an old-school guy who's comfortable enough with make that I've
never found a reason to get into the complexities of cmake.
Update: my buddy did the upgrade and now has GCC 12. That
should enable us to continue with the project, so I'll
consider the matter closed. Trying to substitute a compiler
that's not part of a given release sounds like too much
work and potential hassle - I've heard horror stories about
"Frankendebian", etc. - so in future I'll just do the full
upgrade (after taking comprehensivce backups, of course).
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 74 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 50:08:00 |
| Calls: | 1,100 |
| Files: | 1,339 |
| Messages: | 275,859 |