Project

General

Profile

Bug #11000

Compilation error nargs undeclared

Added by Licaon Kter about 4 years ago. Updated over 3 years ago.

Status:
Fixed
Priority:
Low
Category:
Lua
Target version:
Start date:
04/21/2016
Due date:
% Done:

100%

Estimated time:
Affected Version:
git development version
System:
Debian
bitness:
64-bit
hardware architecture:
amd64/x86

Description

After https://github.com/darktable-org/darktable/commit/7e90eac7537bf23db9157d7b215cbb2574f54c15

[ 37%] Building C object src/CMakeFiles/lib_darktable.dir/lua/cairo.c.o
[ 38%] Building C object src/CMakeFiles/lib_darktable.dir/lua/call.c.o
[ 38%] Building C object src/CMakeFiles/lib_darktable.dir/lua/configuration.c.o
darktable/src/lua/call.c: In function ‘dt_lua_async_call_string_internal’:
darktable/src/lua/call.c:550:101: error: ‘nargs’ undeclared (first use in this function)
   dt_print(DT_DEBUG_LUA,"LUA DEBUG : %s called from %s %d, nargs : %d\n",__FUNCTION__,function,line,nargs);
                                                                                                     ^
darktable/src/lua/call.c:550:101: note: each undeclared identifier is reported only once for each function it appears in
src/CMakeFiles/lib_darktable.dir/build.make:2380: recipe for target 'src/CMakeFiles/lib_darktable.dir/lua/call.c.o' failed
make[2]: *** [src/CMakeFiles/lib_darktable.dir/lua/call.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:1368: recipe for target 'src/CMakeFiles/lib_darktable.dir/all' failed
make[1]: *** [src/CMakeFiles/lib_darktable.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
[1]    4942 exit 2     ./build.sh --prefix /opt/darktable --buildtype Debug

Am I missing any new dependency or?

History

#1 Updated by Roman Lebedev about 4 years ago

  • % Done changed from 0 to 10
  • Assignee set to Jérémy Rosen
  • Status changed from New to Confirmed
  • Category changed from Buildsystem to Lua

Why are you building in debug build mode? (with -D_DEBUG)

And no, that is a bug.

#2 Updated by Licaon Kter about 4 years ago

Roman Lebedev wrote:

Why are you building in debug build mode? (with -D_DEBUG)

Not sure, guess that was the way I got the instructions a long time ago.
I'll switch to Release.

#3 Updated by Licaon Kter about 4 years ago

Oh, ok, now I get it.
It's a bug that appears only when building the Debug version.
Also, running the Debug version was the reason I saw a performance drop compared to the PPA version.
( I switched to compiled version since I hit https://redmine.darktable.org/issues/10898 )

#4 Updated by Jérémy Rosen about 4 years ago

  • % Done changed from 10 to 100
  • Status changed from Confirmed to Fixed

#5 Updated by Roman Lebedev over 3 years ago

  • Target version set to 2.2.0

Also available in: Atom PDF

Go to top