Closed ghost closed 9 years ago
I haven't tried building pyston recently but I'm familiar with similar error messages when the libstd++ from gcc 4.9 is used (e.g. ubuntu 14.10). What version of gcc do you have installed on your system?
gcc version 4.9.1 (Ubuntu 4.9.1-16ubuntu6)
you asked for a solution without messing with the source but I don't have one, instead I may have a temporary workaround until there is a configure script:
change in include/object.h
char _dep_getattrs[56];
to char _dep_getattrs[56 + 8];
. I haven't tried it recently but this worked few days ago.
I tried to set my gcc
to gcc-4.8
and it does not work either, so I guess it is not gcc-4.9
's fault.
Also your solution works :+1:
I think it's even clang which is complaining: it's picking up the newest libstdc++ and there AFAIK unordered_map has a slightly different size.
Later I will try to check the version with the __GLIBCXX__
macro for a fix which does not require a configure script.
I can look into getting the size with cmake at configure time. Alternatively, why not just use sizeof within Pyston?
The problem is that we need to know the size C extension module headers. That's why we can't use sizeof our c++ class or the class directly because a C compiler must understand it. The same problem exists with the GLIBCXX define which will only be set when the libstdc++ is included.
Hi, I am trying to use the new cmake build system and I have encountered this error when I was using
ninja check-pyston
:Do you know how can I fix this without messing up the source files?