lintran2013 / pyv8

Automatically exported from code.google.com/p/pyv8
0 stars 0 forks source link

Compile Error on Mac OS #205

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
While trying to compile on Mac OS, I receive the following error:

 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/Wrapper.cpp -o build/temp.macosx-10.6-intel-2.7/src/Wrapper.o -g -O3
src/Wrapper.cpp: In static member function ‘static void 
CPythonObject::NamedEnumerator(const v8::PropertyCallbackInfo<v8::Array>&)’:
src/Wrapper.cpp:457: error: #pragma GCC diagnostic not allowed inside functions
src/Wrapper.cpp:458: error: #pragma GCC diagnostic not allowed inside functions
src/Wrapper.cpp:459: warning: deprecated conversion from string constant to 
‘char*’
src/Wrapper.cpp:460: error: #pragma GCC diagnostic not allowed inside functions
error: command 'gcc-4.2' failed with exit status 1

Original issue reported on code.google.com by artlo...@gmail.com on 18 Sep 2013 at 2:39

GoogleCodeExporter commented 9 years ago
Please verify the fix with SVN trunk code after r539

Original comment by flier...@gmail.com on 24 Sep 2013 at 6:45

GoogleCodeExporter commented 9 years ago
I am still receiving a warning:

src/Wrapper.cpp:438: warning: expected [error|warning|ignored] after ‘#pragma 
GCC diagnostic’
src/Wrapper.cpp:507: warning: expected [error|warning|ignored] after ‘#pragma 
GCC diagnostic’

but it compiles and runs just fine.  Thanks!

Original comment by artlo...@gmail.com on 24 Sep 2013 at 6:03

GoogleCodeExporter commented 9 years ago
It seems XCode 5 upgrade clang and LLVM caused the warning :)

Original comment by flier...@gmail.com on 25 Sep 2013 at 1:56