well, that fixes the issue for you but that's not a real answer to the
problem... we need to understand what's going on so we can fix it for good.

so disabling ccache doesn't help, your compiler is gcc and it doesn't
understand the unused attribute

there is something fishy here. "unused" is a very old and well known gcc
attribute and all versions of gcc which we can reasonably expect should
support it

could you double check all my assumptions please ?

* ccache is properly disable
* you are really using gcc

one of this is probably not true but I need to know which to understand
what's going on


On Wed, Jul 16, 2014 at 7:47 PM, Kasun Chathuranga <[email protected]> wrote:

>  Thanks ahill.
> It worked.
>
>
> On Tue, 2014-07-15 at 21:44 +0200, ahill wrote:
>
> Hi
>
> I had exactly the same issue on debian WHEEZY (7.0).
>
> Unfortunatly cleanning the cache, and/or downloading a new source
> tareball did not change anything..
>
> I had to comment out those line in darktable.c - But that's just a
> dirty workaround
>
> line 462:
>   //Patch AH char *lua_command  __attribute__((unused))= NULL;
> line 563 to 566
>       // patch AH else if(!strcmp(argv[k], "--luacmd"))
>       //{
>       //  lua_command = argv[++k];
>       //}
>
> it seems that the compilator doesnt like the "unused" lua_command if
> it doens't go in the if command
>
> After commenting out thoses lines, the compilation is OK.
>
> Cheers
>
> ah
>
> 2014-07-15 8:02 GMT+02:00 Roman Lebedev <[email protected]>:
> > Hi.> Try building without ccache.>>> On Sat, Jul 12, 2014 at 10:23 PM, 
> > Kasun Chathuranga <[email protected]> wrote:>>>> Hello,>> I am using Fedora 20 
> > x64 version.>>>> It was not possible built dt due to>>>> 
> > /media/M-Drive/Software/Source/darktable/src/common/darktable.c: In>> 
> > function ‘dt_init’:>> 
> > /media/M-Drive/Software/Source/darktable/src/common/darktable.c:462:9:>> 
> > error: variable ‘lua_command’ set but not used>> 
> > [-Werror=unused-but-set-variable]>>    char *lua_command  
> > __attribute__((unused))= NULL;>>          ^>> cc1: all warnings being 
> > treated as errors>> make[2]: *** 
> > [src/CMakeFiles/lib_darktable.dir/common/darktable.c.o] Error>> 1>> 
> > make[2]: *** Waiting for unfinished jobs....>> make[1]: *** 
> > [src/CMakeFiles/lib_darktable.dir/all] Error 2>> make: *** [all] Error 
> > 2>>>> Full console log attached.>>>> Could any one help me to build it?>>>> 
> > Thank You.>>>> Best Regards,>> Kasun Chathuranga>>>>>>>>>>>> 
> > ------------------------------------------------------------------------------>>>>
> >  _______________________________________________>> Darktable-users mailing 
> > list>> [email protected]>> 
> > https://lists.sourceforge.net/lists/listinfo/darktable-users>>>>
> > ------------------------------------------------------------------------------>
> >  Want fast and easy access to all the code in your enterprise? Index and> 
> > search up to 200,000 lines of code with a free copy of Black Duck> Code 
> > Sight - the same software that powers the world's largest code> search on 
> > Ohloh, the Black Duck Open Hub! Try it now.> http://p.sf.net/sfu/bds
> > _______________________________________________> Darktable-users mailing 
> > list> [email protected]> 
> > https://lists.sourceforge.net/lists/listinfo/darktable-users>
>
>
>
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> Darktable-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/darktable-users
>
>
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Darktable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-users

Reply via email to