In file included from /opt/cross/m68k-linux/include/c++/6.3.0/cstdlib:75:0,
from adapter.cpp:9:
/opt/cross/m68k-linux/include/stdlib.h:183:17: error: missing binary operator before token "("
#if __GLIBC_USE (IEC_60559_BFP_EXT)
^
In file included from /usr/include/sys/select.h:30:0,
from /usr/include/sys/types.h:219,
from /opt/cross/m68k-linux/include/stdlib.h:291,
from /opt/cross/m68k-linux/include/c++/6.3.0/cstdlib:75,
from adapter.cpp:9:
adapter.cpp: In function ‘void adapter_loop()’:
adapter.cpp:198:4: error: impossible constraint in ‘asm’
FD_ZERO(set);
^
In file included from /usr/include/sys/select.h:30:0,
from /usr/include/sys/types.h:219,
from /opt/cross/m68k-linux/include/stdlib.h:291,
from /opt/cross/m68k-linux/include/c++/6.3.0/cstdlib:75,
from posix.cpp:7:
posix.cpp: In function ‘bool input_available()’:
posix.cpp:33:4: error: impossible constraint in ‘asm’
FD_ZERO(set);
Looks like your cross compiler is including default system headers from /usr/include/sys/ where it should be looking in /opt/cross/m68k-linux/include/sys/ or so.
syzygy wrote:Looks like your cross compiler is including default system headers from /usr/include/sys/ where it should be looking in /opt/cross/m68k-linux/include/sys/ or so.
I used the -I/opt/cross/m68k-linux/include/ on the c++ command line to prevent reference to /usr/include. But I needed the leveldb includes from there so I created a soft link to the /usr/include/leveldb in /opt/cross/m68k-linux/include.
Don't know if that's entirely kosher. At any rate, I'm getting into this error which is a bit beyond my current expertise.
Which version of Polyglot are you compiling? The one I am used to doesn't contain the symbol 'leveldb' anywhwere in its sources. (And it doesn't have any .cpp files either, btw.)