Git Product home page Git Product logo

Comments (13)

TurboGit avatar TurboGit commented on June 27, 2024

Should be fixed now, thanks for reporting.

from darktable.

s7habo avatar s7habo commented on June 27, 2024

I'm getting the next one now:

/home/s7habo/darktable/src/common/variables.c: In function ‘_is_number’:
/home/s7habo/darktable/src/common/variables.c:314:37: error: ‘false’ undeclared (first use in this function)
  314 |   if(!g_ascii_isdigit(*str)) return false;  // don't take empty strings
      |                                     ^~~~~
compilation terminated due to -Wfatal-errors.
gmake[2]: *** [bin/CMakeFiles/lib_darktable.dir/build.make:1146: bin/CMakeFiles/lib_darktable.dir/common/variables.c.o] Fehler 1
gmake[2]: *** Auf noch nicht beendete Prozesse wird gewartet …
gmake[1]: *** [CMakeFiles/Makefile2:2431: bin/CMakeFiles/lib_darktable.dir/all] Fehler 2
gmake: *** [Makefile:156: all] Fehler 2

from darktable.

TurboGit avatar TurboGit commented on June 27, 2024

I'm getting the next one now:

Hopefully fixed now...

from darktable.

s7habo avatar s7habo commented on June 27, 2024

Yes, everything went well. Thanks for the quick fix!

from darktable.

kmilos avatar kmilos commented on June 27, 2024

Curious how this got past the CI?

from darktable.

TurboGit avatar TurboGit commented on June 27, 2024

And it was also compiling fine for me.

from darktable.

kmilos avatar kmilos commented on June 27, 2024

I've seen it as well on my Windows machine, while the Windows CI was passing, very strange...

from darktable.

victoryforce avatar victoryforce commented on June 27, 2024

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 -std=gnu99 on the command line of the compiler call. Apparently, for some reason, @s7habo's gcc (which was gcc12, whereas we at CI run newer compilers) started in C90 mode. This seems to be the default gcc12 setting in Ubuntu...

from darktable.

kmilos avatar kmilos commented on June 27, 2024

Mine is GCC 13.2 on Windows. Same as CI. I don't think I do anything differently, no special compiler flags...

from darktable.

parafin avatar parafin commented on June 27, 2024

But C99 standard is enabled in dt's cmake:

set(CMAKE_C_STANDARD 99)

So it's not about C standard version IMHO, but maybe about support of said feature (bool, true and false) by various compiler versions.

from darktable.

parafin avatar parafin commented on June 27, 2024

Or, more likely, it's just about including <stdbool.h>. On some systems it may be included by some other includes, on others - not.

from darktable.

kmilos avatar kmilos commented on June 27, 2024

Still doesn't explain why my local Windows MSYS2 build failed while the (presumably identically set up) CI didn't.

from darktable.

parafin avatar parafin commented on June 27, 2024

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.

from darktable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.