Discussion:
soya svn not compiling on Archlinux anymore
Fabio Varesano
2012-05-09 11:08:37 UTC
Permalink
Hi guys,

I need your help getting Soya svn to compile on Archlinux.

I downloaded soya from:
svn co svn://svn.gna.org/svn/soya/trunk soya
Pyrex found - compilation enabled
BUILDING True
Sound support (with OpenAL) enabled...
running build
running build_py
running build_ext
pyrexc soya._soya.pyx --> soya._soya.c
/home/fabio/Programs/soya/soya-svn-201205/soya/soya/definitions/model/shader.pxd:8:20: C method '_activate' is declared but not defined
/home/fabio/Programs/soya/soya-svn-201205/soya/soya/definitions/model/shader.pxd:9:22: C method '_inactivate' is declared but not defined
/home/fabio/Programs/soya/soya-svn-201205/soya/soya/definitions/model/shader.pxd:10:29: C method '_set_env_parameter' is declared but not defined
/home/fabio/Programs/soya/soya-svn-201205/soya/soya/definitions/model/shader.pxd:11:31: C method '_set_local_parameter' is declared but not defined
/home/fabio/Programs/soya/soya-svn-201205/soya/soya/base.pyx:77:26: Warning: 'not None' will become the default in a future version of Pyrex. Use 'or None' to allow passing None.
building 'soya._soya' extension
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I. -I/usr/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11/include -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/cal3d -I/usr/local/include/cal3d -I/sw/include -I/opt/local/include -I/opt/local/include/freetype2 -I/usr/include/python2.7 -c soya._soya.c -o build/temp.linux-x86_64-2.7/soya._soya.o -w -fsigned-char
soya._soya.c:1:2: error: #error Do not use this file, it is the result of a failed Pyrex compilation.
error: command 'gcc' failed with exit status 1
Any help appreciated.

Thanks,

Fabio
Guillaume Bouchard
2012-05-09 12:38:59 UTC
Permalink
Hi,
Post by Fabio Varesano
I need your help getting Soya svn to compile on Archlinux.
svn co svn://svn.gna.org/svn/soya/trunk soya
Pyrex found - compilation enabled
Remove pyrex and install cython. Does it fixes the issue ?

Else I'll test soon on my arch box.

Thank for reporting it.
--
G.
Fabio Varesano
2012-05-09 12:50:39 UTC
Permalink
Post by Guillaume Bouchard
Pyrex found - compilation enabled
Remove pyrex and install cython. Does it fixes the issue ?
It doesn't seem to work.. it seems to fail with exactly the same kind
of problems.. something wrong with the code? Below the errors.


Error compiling Cython file:
------------------------------------------------------------
...
cdef class _ARBShaderProgram(_CObj):
cdef readonly GLuint shader_type
cdef readonly GLuint _prog_id
cdef readonly object code
cdef public object _filename
cdef void _activate(self)
^
------------------------------------------------------------

./definitions/model/shader.pxd:8:20: C method '_activate' is declared
but not defined

Error compiling Cython file:
------------------------------------------------------------
...
cdef readonly GLuint shader_type
cdef readonly GLuint _prog_id
cdef readonly object code
cdef public object _filename
cdef void _activate(self)
cdef void _inactivate(self)
^
------------------------------------------------------------

./definitions/model/shader.pxd:9:22: C method '_inactivate' is
declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
cdef readonly GLuint _prog_id
cdef readonly object code
cdef public object _filename
cdef void _activate(self)
cdef void _inactivate(self)
cdef void _set_env_parameter(self, int index, float v0, float
v1, float v2, float v3)
^
------------------------------------------------------------

./definitions/model/shader.pxd:10:29: C method '_set_env_parameter' is
declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
cdef readonly object code
cdef public object _filename
cdef void _activate(self)
cdef void _inactivate(self)
cdef void _set_env_parameter(self, int index, float v0, float
v1, float v2, float v3)
cdef void _set_local_parameter(self, int index, float v0,
float v1, float v2, float v3)
^
------------------------------------------------------------

./definitions/model/shader.pxd:11:31: C method '_set_local_parameter'
is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

glPopAttrib()

global _texture_on_depth_buffer_shader
if _texture_on_depth_buffer_shader is None:
_texture_on_depth_buffer_shader =
_ARBShaderProgram(SHADER_TYPE_FRAGMENT, """!!ARBfp1.0

^
------------------------------------------------------------

soya3d/atmosphere.pyx:487:75: undeclared name not builtin:
SHADER_TYPE_FRAGMENT
building 'soya._soya' extension
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2
-pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
-DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I. -I/usr/include
-I/usr/local/include -I/usr/X11R6/include -I/usr/X11/include
-I/usr/include/freetype2 -I/usr/X11/include/freetype2
-I/usr/local/include/freetype2 -I/usr/include/cal3d
-I/usr/local/include/cal3d -I/sw/include -I/opt/local/include
-I/opt/local/include/freetype2 -I/usr/include/python2.7 -c
soya._soya.c -o build/temp.linux-x86_64-2.7/soya._soya.o -w -fsigned-char
soya._soya.c:1:2: error: #error Do not use this file, it is the result
of a failed Cython compilation.
error: command 'gcc' failed with exit status 1
Lamy Jean-Baptiste
2012-05-09 13:01:30 UTC
Permalink
Bonjour,

I usually use Cython 0.16 to compile Soya (and no longer Pyrex).

Can you verify that _activate() is defined (it should be in shader.pyx) ?

I'm currently rewriting the Soya's shading system (and almost all Soya ;) but nothing has been committed yet in the SVN, so it should not be a problem.

Cordialement,
Jean-Baptiste Lamy


Le Wed, 09 May 2012 14:50:39 +0200,
Post by Fabio Varesano
Post by Guillaume Bouchard
Pyrex found - compilation enabled
Remove pyrex and install cython. Does it fixes the issue ?
It doesn't seem to work.. it seems to fail with exactly the same kind
of problems.. something wrong with the code? Below the errors.
------------------------------------------------------------
...
cdef readonly GLuint shader_type
cdef readonly GLuint _prog_id
cdef readonly object code
cdef public object _filename
cdef void _activate(self)
^
------------------------------------------------------------
./definitions/model/shader.pxd:8:20: C method '_activate' is declared
but not defined
------------------------------------------------------------
...
cdef readonly GLuint shader_type
cdef readonly GLuint _prog_id
cdef readonly object code
cdef public object _filename
cdef void _activate(self)
cdef void _inactivate(self)
^
------------------------------------------------------------
./definitions/model/shader.pxd:9:22: C method '_inactivate' is
declared but not defined
------------------------------------------------------------
...
cdef readonly GLuint _prog_id
cdef readonly object code
cdef public object _filename
cdef void _activate(self)
cdef void _inactivate(self)
cdef void _set_env_parameter(self, int index, float v0,
float v1, float v2, float v3)
^
------------------------------------------------------------
./definitions/model/shader.pxd:10:29: C method '_set_env_parameter'
is declared but not defined
------------------------------------------------------------
...
cdef readonly object code
cdef public object _filename
cdef void _activate(self)
cdef void _inactivate(self)
cdef void _set_env_parameter(self, int index, float v0,
float v1, float v2, float v3)
cdef void _set_local_parameter(self, int index, float v0,
float v1, float v2, float v3)
^
------------------------------------------------------------
./definitions/model/shader.pxd:11:31: C method '_set_local_parameter'
is declared but not defined
------------------------------------------------------------
...
glPopAttrib()
global _texture_on_depth_buffer_shader
_texture_on_depth_buffer_shader =
_ARBShaderProgram(SHADER_TYPE_FRAGMENT, """!!ARBfp1.0
^
------------------------------------------------------------
SHADER_TYPE_FRAGMENT
building 'soya._soya' extension
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2
-pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
-DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I.
-I/usr/include -I/usr/local/include -I/usr/X11R6/include
-I/usr/X11/include -I/usr/include/freetype2
-I/usr/X11/include/freetype2 -I/usr/local/include/freetype2
-I/usr/include/cal3d -I/usr/local/include/cal3d -I/sw/include
-I/opt/local/include -I/opt/local/include/freetype2
-I/usr/include/python2.7 -c soya._soya.c -o
build/temp.linux-x86_64-2.7/soya._soya.o -w -fsigned-char
soya._soya.c:1:2: error: #error Do not use this file, it is the
result of a failed Cython compilation. error: command 'gcc' failed
with exit status 1
_______________________________________________
Soya-user mailing list
https://mail.gna.org/listinfo/soya-user
Fabio Varesano
2012-05-09 13:39:56 UTC
Permalink
Ok, I did some hacks and it seems that I've been successful in
compiling.. did a couple of tests from the tutorial and everything
seems to work good.
Post by Fabio Varesano
svn co svn://svn.gna.org/svn/soya/trunk soya
cd soya/soya
python2 setup.py build
OSError: [Errno 2] No such file or directory: 'soya._soya.pyx'
Ok.. looking into the sources... the most similar one seems
Post by Fabio Varesano
cp _soya.pyx soya._soya.pyx
./definitions/model/shader.pxd:8:20: C method '_activate' is
declared but not defined
Post by Fabio Varesano
./definitions/model/shader.pxd:9:22: C method '_inactivate' is
declared but not defined
Post by Fabio Varesano
./definitions/model/shader.pxd:10:29: C method '_set_env_parameter'
is declared but not defined

Then I studied soya._soya.pyx and found out that the include
"shader/shader.pyx" is commented out... WTF?

Uncommenting include "shader/shader.pyx" in soya._soya.pyx
But..
Post by Fabio Varesano
soya._soya.pyx:86:0: 'shader/shader.pyx' not found
Right, it's models/shader.pyx... changing include "shader/shader.pyx"
to include "models/shader.pyx"
Post by Fabio Varesano
In file included from /usr/include/ode/ode.h:30:0,
from ode_check.h:10,
/usr/include/ode/common.h:111:2: error: #error You must #define dSINGLE or dDOUBLE
Ok.. modifying now soya._soya.c so that right before #include
"ode_check.h" there is a #define dSINGLE

Then, soya compile, installs and works just fine..

Wow.. this has been painful.

Hope this helps,

Fabio
Pierre-Yves David
2012-05-09 18:59:13 UTC
Permalink
Post by Lamy Jean-Baptiste
I'm currently rewriting the Soya's shading system (and almost all Soya ;) but nothing has been committed yet in the SVN, so it should not be a problem.
le "je réécrit tout, mais j'ai rien commité me fait dire que tu devrais vraiment passer à mercurial." (et m'irrite un peu)

Tu veux un cours gratos dans mon nouvelle appartement ?
--
Pierre-Yves
deavid
2012-05-10 06:13:24 UTC
Permalink
Post by Lamy Jean-Baptiste
Post by Lamy Jean-Baptiste
I'm currently rewriting the Soya's shading system (and almost all Soya
;) but nothing has been committed yet in the SVN, so it should not be a
problem.
le "je réécrit tout, mais j'ai rien commité me fait dire que tu devrais
vraiment passer à mercurial." (et m'irrite un peu)
Tu veux un cours gratos dans mon nouvelle appartement ?
--
100% agree with that ;-)

Distributed VCS (like HG and GIT) are far better for developing things in
team.

With SVN you're alone rewritting it from scratch, with GIT or HG the
changes would be public and someone could be helping you.

Loading...