Hi! > Le 22 nov. 2019 à 13:49, 马俊 <[email protected]> a écrit : > > Dear scientist, > Here is a problem when I installed bison-3.0.5(./configure > --prefix=/home/shenhf/majun/setup/bison-3.0.5 make&make check &make install) > When I excute make check, it shows:
> ./c++.at:992: $CXX $CXXFLAGS $CPPFLAGS $LDFLAGS -o input input.cc $LIBS > stderr: > In file included from /usr/local/include/c++/8.3.0/ios:39, > from /usr/local/include/c++/8.3.0/ostream:38, > from /usr/local/include/c++/8.3.0/iostream:39, > from input.yy:17: > ./exception:1:1: error: stray '\177' in program > ELF > Ü > ^ > ./exception:1:5: error: stray '\2' in program > ELF > Ü > ^ > ./exception:1:6: error: stray '\1' in program > ELF > Ü > ^ > ./exception:1:7: error: stray '\1' in program > ELF > Ü > ^ > ./exception:1:17: error: stray '\2' in program > ELF > Ü > ^ Your problem appears to be that you have a file named 'exception' which is an ELF executable, in your compiler's include path. It seems to be in the directory of the test, which is weird. But the result is that the compiler uses this file when it compiles "#include <exception>", instead of the "real" 'exception' file coming from your standard C++ library. So find that file, and move it elsewhere. Cheers!
