Hello, I used same OS version and same compiler in a VM and I was not possible to reproduce the bug. :( :( :( In the VM (in KVM), it complies both with and without ccache. I still could not find out what is going on.
Even I wrote small C program like this.
#include <stdio.h>
int main(int argc, char** argv)
{
char *kitty __attribute__((unused))= NULL;
char *puppy;
return 0;
}
And complied as follows.
[kasun@localhost]$ cc main.c -Wall -Werror
main.c: In function ‘main’:
main.c:6:9: error: unused variable ‘puppy’ [-Werror=unused-variable]
char *puppy;
^
cc1: all warnings being treated as errors
[kasun@localhost ]$
It only alert about puppy and not kitty. But it makes crazy in
src/common/darktable.c
:-Q:-Q:-Q:-Q:-Q
On Thu, 2014-07-17 at 15:58 +0530, Kasun Chathuranga wrote:
> Hello,
> I even uninstall the ccache.
> Then during start of build script following output was obtained.
>
> =========================================================================
> -- The CXX compiler identification is GNU 4.8.3
> -- The C compiler identification is GNU 4.8.3
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> ===========================================================================
>
> So it is clear it was using cc as compiler. Then I search which
> package provides the cc. It was gcc and cc was a soft link to gcc.
>
> ===========================================================================
> [kasun@localhost]$ which cc
> /bin/cc
> [kasun@localhost ~]$ ls -al /bin/cc
> lrwxrwxrwx. 1 root root 3 Jun 29 00:11 /bin/cc -> gcc
> [kasun@localhost ~]$ rpm -qf /bin/cc
> gcc-4.8.3-1.fc20.x86_64
> ===========================================================================
>
> After that crazy work around, DT was able to compile with ccache. I
> think it might be issue introduce with gcc version 4.8.3 which was
> installed on end of June. Previously I was using gcc 4.8.2.
>
> Therefore try to build it with gcc 4.8.3.
>
> Let me know if you need any more information.
>
> ------------------------------------------------------------------------------
> 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
>
--
Best Regards,
Kasun Chathuranga
http://kasunc.blogspot.com
"What you are is
what you have been.
What you'll be is
what you do now."
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ 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
