I’m trying to diagnose this but I don’t really understand the issues with multi 
arch.

As you can see from the first line, gcc compiles this code OK. rumprun-xen-cc 
does not.

What is it that I need to understand better to be able to resolve these issues? 
 

thanks

(venv3.4)root@contiki:/home/ubuntu/pycy# gcc $CFLAGS -I/usr/include/python3.4m 
-o hw hw.c -lpython3.4m -lpthread -lm -lutil -ldl
(venv3.4)root@contiki:/home/ubuntu/pycy# rumprun-xen-cc $CFLAGS 
-I/usr/include/python3.4m -o hw hw.c -lpython3.4m -lpthread -lm -lutil
In file included from hw.c:8:0:
/usr/include/python3.4m/pyconfig.h:78:5: error: #error unknown multiarch 
location for pyconfig.h
 #   error unknown multiarch location for pyconfig.h
     ^
In file included from /usr/include/python3.4m/Python.h:8:0,
                 from hw.c:16:
/usr/include/python3.4m/pyconfig.h:78:5: error: #error unknown multiarch 
location for pyconfig.h
 #   error unknown multiarch location for pyconfig.h
     ^
In file included from /usr/include/python3.4m/pyport.h:4:0,
                 from /usr/include/python3.4m/Python.h:50,
                 from hw.c:16:
/usr/include/python3.4m/pyconfig.h:78:5: error: #error unknown multiarch 
location for pyconfig.h
 #   error unknown multiarch location for pyconfig.h
     ^
In file included from /usr/include/python3.4m/Python.h:50:0,
                 from hw.c:16:
/usr/include/python3.4m/pyport.h:814:2: error: #error "LONG_BIT definition 
appears wrong for platform (bad gcc/glibc config?)."
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc 
config?)."
  ^
In file included from /usr/include/python3.4m/pymath.h:4:0,
                 from /usr/include/python3.4m/Python.h:64,
                 from hw.c:16:
/usr/include/python3.4m/pyconfig.h:78:5: error: #error unknown multiarch 
location for pyconfig.h
 #   error unknown multiarch location for pyconfig.h
     ^
In file included from /usr/include/python3.4m/pytime.h:5:0,
                 from /usr/include/python3.4m/Python.h:65,
                 from hw.c:16:
/usr/include/python3.4m/pyconfig.h:78:5: error: #error unknown multiarch 
location for pyconfig.h
 #   error unknown multiarch location for pyconfig.h
     ^
In file included from /usr/include/python3.4m/Python.h:77:0,
                 from hw.c:16:
/usr/include/python3.4m/unicodeobject.h:68:2: error: #error Must define 
SIZEOF_WCHAR_T
 #error Must define SIZEOF_WCHAR_T
  ^
/usr/include/python3.4m/unicodeobject.h:125:2: error: #error "Could not find a 
proper typedef for Py_UCS4"
 #error "Could not find a proper typedef for Py_UCS4"
  ^
/usr/include/python3.4m/unicodeobject.h:131:2: error: #error "Could not find a 
proper typedef for Py_UCS2"
 #error "Could not find a proper typedef for Py_UCS2"
  ^
(venv3.4)root@contiki:/home/ubuntu/pycy#

Reply via email to