neoragex2015 / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

Compilation fails using gcc 4.9.1 #215

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure
2. make

What is the expected output? What do you see instead?
Expected - compiled binaries.

What I get:
[  2%] Building CXX object src/nvcore/CMakeFiles/nvcore.dir/Debug.cpp.o
In file included from 
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/Debug.
h:7:0,
                 from /home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/Debug.cpp:3:
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/nvcore
.h:134:35: error: missing binary operator before token "("
 #define NV_CC_CPP11 (__has_feature(cxx_deleted_functions) && __has_feature(cxx_rvalue_references) && __has_feature(cxx_static_assert))
                                   ^
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/nvcore
.h:179:5: note: in expansion of macro ‘NV_CC_CPP11’
 #if NV_CC_CPP11
     ^
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/nvcore
.h:134:35: error: missing binary operator before token "("
 #define NV_CC_CPP11 (__has_feature(cxx_deleted_functions) && __has_feature(cxx_rvalue_references) && __has_feature(cxx_static_assert))
                                   ^
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/nvcore
.h:219:5: note: in expansion of macro ‘NV_CC_CPP11’
 #if NV_CC_CPP11
     ^
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/nvcore
.h:134:35: error: missing binary operator before token "("
 #define NV_CC_CPP11 (__has_feature(cxx_deleted_functions) && __has_feature(cxx_rvalue_references) && __has_feature(cxx_static_assert))
                                   ^
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/Stream
.h:81:22: note: in expansion of macro ‘NV_CC_CPP11’
 #if NV_OS_DARWIN && !NV_CC_CPP11
                      ^
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/nvcore
.h:134:35: error: missing binary operator before token "("
 #define NV_CC_CPP11 (__has_feature(cxx_deleted_functions) && __has_feature(cxx_rvalue_references) && __has_feature(cxx_static_assert))
                                   ^
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/StrLib
.h:372:5: note: in expansion of macro ‘NV_CC_CPP11’
 #if NV_CC_CPP11
     ^
In file included from 
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/Debug.
cpp:3:0:
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/Debug.
cpp: In function ‘void {anonymous}::printStackTrace(void**, int, int)’:
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/Debug.
h:153:49: warning: format not a string literal and no format arguments 
[-Wformat-security]
 #define nvDebug(...)    nvDebugPrint(__VA_ARGS__)
                                                 ^
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/Debug.
cpp:589:13: note: in expansion of macro ‘nvDebug’
             nvDebug(lines[i]);
             ^
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/Debug.
cpp: In function ‘void nv::debug::dumpInfo()’:
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/Debug.
h:153:49: warning: format not a string literal and no format arguments 
[-Wformat-security]
 #define nvDebug(...)    nvDebugPrint(__VA_ARGS__)
                                                 ^
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/nvcore/Debug.
cpp:992:13: note: in expansion of macro ‘nvDebug’
             nvDebug(lines[i]);
             ^
src/nvcore/CMakeFiles/nvcore.dir/build.make:54: recipe for target 
'src/nvcore/CMakeFiles/nvcore.dir/Debug.cpp.o' failed
make[3]: *** [src/nvcore/CMakeFiles/nvcore.dir/Debug.cpp.o] Error 1
CMakeFiles/Makefile2:173: recipe for target 
'src/nvcore/CMakeFiles/nvcore.dir/all' failed
make[2]: *** [src/nvcore/CMakeFiles/nvcore.dir/all] Error 2
Makefile:147: recipe for target 'all' failed
make[1]: *** [all] Error 2
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 2

What version of the product are you using? On what operating system?
Using latest svn trunk. Ubuntu 14.10, gcc 4.9.1

Please provide any additional information below.
I don't think gcc supports clang's __has_feature

Original issue reported on code.google.com by manwiu...@gmail.com on 25 Feb 2015 at 10:00