Skip to content

Instantly share code, notes, and snippets.

@stevieb9
Created June 6, 2016 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevieb9/6e8afa08c10409f921b5335d4bfac03b to your computer and use it in GitHub Desktop.
Save stevieb9/6e8afa08c10409f921b5335d4bfac03b to your computer and use it in GitHub Desktop.
$ perl6 -v
This is Rakudo version 2016.05-35-gef376d1 built on MoarVM version 2016.05-17-g6075599
implementing Perl 6.c.
$ python
Python 3.4.4 (default, May 19 2016, 01:24:12)
[GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)] on freebsd10
$ panda install Inline::Python
==> Fetching Inline::Python
==> Building Inline::Python
clang pyhelper.c -Wall -I"/usr/local/include/python3.4m" -L"/usr/local/lib/python3.4/config-3.4m" -lpython3.4m -shared -o /usr/home/ec2-user/.panda-work/1465231650_1/resources/libraries/libpyhelper.so -fPIC -g
pyhelper.c:18:23: warning: incompatible pointer types passing 'char [7]' to parameter of type 'wchar_t *' (aka 'int *') [-Wincompatible-pointer-types]
Py_SetProgramName("python");
^~~~~~~~
/usr/local/include/python3.4m/pythonrun.h:25:45: note: passing argument to parameter here
PyAPI_FUNC(void) Py_SetProgramName(wchar_t *);
^
pyhelper.c:23:33: warning: incompatible pointer types passing 'char *[1]' to parameter of type 'wchar_t **' (aka 'int **') [-Wincompatible-pointer-types]
PySys_SetArgv(_python_argc, _python_argv); /* Tk needs this */
^~~~~~~~~~~~
/usr/local/include/python3.4m/sysmodule.h:17:47: note: passing argument to parameter here
PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
^
pyhelper.c:58:63: warning: implicit declaration of function 'PyInstance_Check' is invalid in C99 [-Wimplicit-function-declaration]
return ((obj->ob_type->tp_flags & Py_TPFLAGS_HEAPTYPE) || PyInstance_Check(obj));
^
pyhelper.c:66:12: warning: implicit declaration of function 'PyInt_Check' is invalid in C99 [-Wimplicit-function-declaration]
return PyInt_Check(obj);
^
pyhelper.c:78:12: warning: implicit declaration of function 'PyString_Check' is invalid in C99 [-Wimplicit-function-declaration]
return PyString_Check(obj);
^
pyhelper.c:98:12: warning: implicit declaration of function 'PyInt_AsLong' is invalid in C99 [-Wimplicit-function-declaration]
return PyInt_AsLong(obj);
^
pyhelper.c:106:12: warning: implicit declaration of function 'PyInt_FromLong' is invalid in C99 [-Wimplicit-function-declaration]
return PyInt_FromLong(num);
^
pyhelper.c:106:12: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'PyObject *' (aka 'struct _object *') [-Wint-conversion]
return PyInt_FromLong(num);
^~~~~~~~~~~~~~~~~~~
pyhelper.c:118:12: warning: implicit declaration of function 'PyString_FromStringAndSize' is invalid in C99 [-Wimplicit-function-declaration]
return PyString_FromStringAndSize(buf, len);
^
pyhelper.c:118:12: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'PyObject *' (aka 'struct _object *') [-Wint-conversion]
return PyString_FromStringAndSize(buf, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pyhelper.c:126:12: warning: implicit declaration of function 'PyString_AsString' is invalid in C99 [-Wimplicit-function-declaration]
return PyString_AsString(obj);
^
pyhelper.c:126:12: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'char *' [-Wint-conversion]
return PyString_AsString(obj);
^~~~~~~~~~~~~~~~~~~~~~
pyhelper.c:131:5: warning: implicit declaration of function 'PyString_AsStringAndSize' is invalid in C99 [-Wimplicit-function-declaration]
PyString_AsStringAndSize(obj, buf, &length);
^
pyhelper.c:221:15: warning: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion]
char *c_class_name = PyString_AsString(class_name);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pyhelper.c:236:9: warning: variable 'py_retval' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (method == NULL) {
^~~~~~~~~~~~~~
pyhelper.c:246:12: note: uninitialized use occurs here
return py_retval;
^~~~~~~~~
pyhelper.c:236:5: note: remove the 'if' if its condition is always false
if (method == NULL) {
^~~~~~~~~~~~~~~~~~~~~
pyhelper.c:240:5: note: variable 'py_retval' is declared here
PyObject *py_retval = PyObject_CallObject(method, args);
^
pyhelper.c:251:9: warning: variable 'py_retval' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (method == NULL) {
^~~~~~~~~~~~~~
pyhelper.c:261:12: note: uninitialized use occurs here
return py_retval;
^~~~~~~~~
pyhelper.c:251:5: note: remove the 'if' if its condition is always false
if (method == NULL) {
^~~~~~~~~~~~~~~~~~~~~
pyhelper.c:255:5: note: variable 'py_retval' is declared here
PyObject *py_retval = PyObject_CallObject(method, args);
^
pyhelper.c:301:16: error: conflicting types for 'initperl6'
PyMODINIT_FUNC initperl6(void){
^
pyhelper.c:3:6: note: previous declaration is here
void initperl6(void);
^
16 warnings and 1 error generated.
*** Error code 1
Stop.
make: stopped in /usr/home/ec2-user/.panda-work/1465231650_1
The spawned process exited unsuccessfully (exit code: 1)
in method build at /usr/home/ec2-user/.panda-work/1465231650_1/Build.pm line 27
in block at /usr/home/ec2-user/.rakudobrew/moar-nom/install/share/perl6/site/sources/9661E79563A62B3ABD3CB5E61B41BB801509267A (Panda::Builder) line 11
in sub indir at /usr/home/ec2-user/.rakudobrew/moar-nom/install/share/perl6/site/sources/24811C576EF8F85E7672B26955C802BB2FC94675 (Panda::Common) line 20
in method build at /usr/home/ec2-user/.rakudobrew/moar-nom/install/share/perl6/site/sources/9661E79563A62B3ABD3CB5E61B41BB801509267A (Panda::Builder) line 7
in method install at /usr/home/ec2-user/.rakudobrew/moar-nom/install/share/perl6/site/sources/582CB7486602954A4601BDCE5A0EAC54B05DA58A (Panda) line 148
in method resolve at /usr/home/ec2-user/.rakudobrew/moar-nom/install/share/perl6/site/sources/582CB7486602954A4601BDCE5A0EAC54B05DA58A (Panda) line 234
in sub MAIN at /usr/home/ec2-user/.rakudobrew/moar-nom/install/share/perl6/site/resources/E0D978079BB5081DE986D058BB8AB08252F05CC8 line 18
in block <unit> at /usr/home/ec2-user/.rakudobrew/moar-nom/install/share/perl6/site/resources/E0D978079BB5081DE986D058BB8AB08252F05CC8 line 152
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment