grendizerufo / nvidia-texture-tools

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

Linux build failed : __SSE__ not declared and __declspec #181

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to build on linux

I get this:
/usr/lib/gcc/i686-pc-linux-gnu/4.7.2/include/xmmintrin.h:32:3: error: #error 
"SSE instruction set not enabled"

If I manually add SSE flags I reach another problem:
/src/nvmath/Half.cpp:500:5: error: ISO C++ forbids declaration of 
‘__declspec’ with no type [-fpermissive]

So it seems that __declspec is used on Linux.

gcc version 4.7.2 (GCC)
nvtt svn r1357

Original issue reported on code.google.com by gogop...@gmail.com on 9 Nov 2012 at 12:57

GoogleCodeExporter commented 9 years ago
> I get this:
> /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/include/xmmintrin.h:32:3: error: #error 
"SSE instruction set not enabled"
I think it's a problem in CMAKE_CXX_FLAGS variable coming from 
OptimalOptions.cmake. (fix_cxx_flags.patch).
> If I manually add SSE flags I reach another problem:
> /src/nvmath/Half.cpp:500:5: error: ISO C++ forbids declaration of 
‘__declspec’ with no type [-fpermissive]
In this part of code it's forgotten about gcc (fix_declspec.patch).

gcc version: gcc (SUSE Linux) 4.7.1 20120723 [gcc-4_7-branch revision 189773]
architecture: x86_64

svn revision: r1358

Original comment by vovanhood on 1 Feb 2013 at 3:55

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, for the bug reports and the patches! 

Original comment by cast...@gmail.com on 1 Feb 2013 at 11:20

GoogleCodeExporter commented 9 years ago
Fixed in revision 1359.

Original comment by cast...@gmail.com on 1 Feb 2013 at 11:22