Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

browse.cc:1:0: internal compiler error: Segmentation fault #85

Open
503612068 opened this issue Mar 26, 2018 · 2 comments
Open

browse.cc:1:0: internal compiler error: Segmentation fault #85

503612068 opened this issue Mar 26, 2018 · 2 comments

Comments

@503612068
Copy link

Hi @rbgirshick ,
When I compiled ninja with ./configure.py an error report.....(enviroment:linux aarch64,python2.7)
pi@raspberrypi:~/ninja$ ./configure.py --bootstrap
bootstrapping ninja...
./src/browse.cc:1:0: internal compiler error: Segmentation fault
// Copyright 2011 Google Inc. All Rights Reserved.

g++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-6/README.Bugs for instructions.
when running: g++ -MMD -MT build/browse.o -MF build/browse.o.d -g -Wall -Wextra -Wno-deprecated -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fno-exceptions -fvisibility=hidden -pipe '-DNINJA_PYTHON="python"' -O2 -DNDEBUG -DUSE_PPOLL -DNINJA_HAVE_BROWSE -I. -c ./src/browse.cc -o build/browse.o
Traceback (most recent call last):
File "./configure.py", line 456, in
objs += cxx('browse', order_only=built('browse_py.h'))
File "./configure.py", line 282, in cxx
return n.build(built(name + objext), 'cxx', src(name + '.cc'), **kwargs)
File "./configure.py", line 164, in build
self._run_command(self._expand(cmd, local_vars))
File "./configure.py", line 189, in _run_command
subprocess.check_call(cmdline, shell=True)
File "/usr/lib/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'g++ -MMD -MT build/browse.o -MF build/browse.o.d -g -Wall -Wextra -Wno-deprecated -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fno-exceptions -fvisibility=hidden -pipe '-DNINJA_PYTHON="python"' -O2 -DNDEBUG -DUSE_PPOLL -DNINJA_HAVE_BROWSE -I. -c ./src/browse.cc -o build/browse.o' returned non-zero exit status 4

@503612068
Copy link
Author

I also used python3.5,the error is still occured.

@503612068
Copy link
Author

503612068 commented Mar 30, 2018

Lastly,i found my gcc version was 6.3.I downgraded it to 4.9.2.The error was fixed.I think gcc-4.9.2 isn't supported by most os in the fulture,right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant