Gernby/raspberry-pilot

build_all.sh error

LOVECHEN opened this issue · 8 comments

boardd.cc:21:10: fatal error: 'cereal/gen/cpp/log.capnp.h' file not found

Thanks for the report, but could you provide more details? What step are you at in the script when that occurred?

If that was during the build_all step, would you try doing this instead?
cd ~/raspilot && pipenv run bash build_all.sh

thanks Gernby , get i checked problem from

ubuntu@ubuntu:~/raspilot$ pipenv install
Creating a virtualenv for this project[39m
Pipfile: /home/ubuntu/raspilot/Pipfile
Using /usr/local/bin/python3.7 (3.7.3) to create virtualenv[39m
[0m Creating virtual environment...created virtual environment CPython3.7.3.final.0-64 in 1205ms
creator CPython3Posix(dest=/home/ubuntu/.local/share/virtualenvs/raspilot-oXJWCHvG, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/home/ubuntu/.local/share/virtualenv/seed-v1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator

Successfully created virtual environment!
Virtualenv location: /home/ubuntu/.local/share/virtualenvs/raspilot-oXJWCHvG
Pipfile.lock (0b058d) out of date, updating to (58be34)[39m
Locking [dev-packages] dependencies[39m
Locking [packages] dependencies[39m
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/packaging/specifiers.py", line 601, in init
parsed.add(Specifier(specifier))
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/packaging/specifiers.py", line 85, in init
raise InvalidSpecifier("Invalid specifier: '{0}'".format(spec))
packaging.specifiers.InvalidSpecifier: Invalid specifier: '0.21.3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/requirementslib/models/utils.py", line 196, in validate_specifiers
SpecifierSet(value)
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/packaging/specifiers.py", line 603, in init
parsed.add(LegacySpecifier(specifier))
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/packaging/specifiers.py", line 85, in init
raise InvalidSpecifier("Invalid specifier: '{0}'".format(spec))
packaging.specifiers.InvalidSpecifier: Invalid specifier: '0.21.3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ubuntu/.local/bin/pipenv", line 11, in
sys.exit(cli())
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/cli/command.py", line 254, in install
editable_packages=state.installstate.editables,
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/core.py", line 1874, in do_install
keep_outdated=keep_outdated
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/core.py", line 1221, in do_init
pypi_mirror=pypi_mirror,
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/core.py", line 1055, in do_lock
packages, project, r=False, include_index=True
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/utils.py", line 829, in convert_deps_to_pip
new_dep = Requirement.from_pipfile(dep_name, dep)
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 1187, in from_pipfile
r = NamedRequirement.from_pipfile(name, pipfile)
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 112, in from_pipfile
return cls(**creation_args)
File "<attrs generated init 5e6d3c0fa399095af538ba7c45b1038624f380d0>", line 14, in init
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/attr/validators.py", line 106, in call
self.validator(inst, attr, value)
File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/vendor/requirementslib/models/utils.py", line 198, in validate_specifiers
raise ValueError("Invalid Specifiers {0}".format(value))
ValueError: Invalid Specifiers 0.21.3

i'll do this progress more than 10 times always get that error

and follow the process

ubuntu@ubuntu:~/raspilot$ pipenv run bash build_all.sh
Removing cereal/gen/
Removing selfdrive/can/obj/
rm -f boardd libcan_list_to_can_capnp.a boardd_api_impl.so boardd.o can_list_to_can_capnp.o ../common/swaglog.o ../common/params.o ../common/util.o ../../phonelibs/json/src/json.o ../../cereal/gen/c/log.capnp.o ../../cereal/gen/c/car.capnp.o boardd.d can_list_to_can_capnp.d ../common/swaglog.d ../common/params.d ../common/util.d ../../phonelibs/json/src/json.d ../../cereal/gen/c/log.capnp.d ../../cereal/gen/c/car.capnp.d
[ CXX ] boardd.o
clang++ -std=c++11 -g -fPIC -I../ -I../../ -O2 -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=return-type -Werror=format-extra-args -mcpu=cortex-a57 -I/usr/include/libusb-1.0 -MMD
-I../../phonelibs/capnp-c/include
-I../../phonelibs/capnp-cpp/include
-I../../phonelibs/zmq/aarch64/include
-I../
-I../../
-c -o 'boardd.o' 'boardd.cc'
boardd.cc:21:10: fatal error: 'cereal/gen/cpp/log.capnp.h' file not found
#include "cereal/gen/cpp/log.capnp.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Makefile:73: recipe for target 'boardd.o' failed
make: *** [boardd.o] Error 1
rm -rf libdbc.so*
rm -f dbc_out/.cc
rm -f dbcs.txt
rm -f dbcs.csv
rm -rf obj/

mkdir -p obj
cd ../../cereal && make
make[1]: Entering directory '/home/ubuntu/raspilot/cereal'
[ CAPNPC C++ ] gen/cpp/car.capnp.c++

rming commented

cd ~/raspilot/cereal && make
maybe help

My PR #5 fixes the illegal specifier error. The file ~/Pipfile has two components with their required level specified illegally. I added "==" before the required version and was able to clear that error.

The two lines missing "==" are scikit-learn and joblib. Add "==" before their values and the compile will continue.

Thanks guys! Please do a pull to get the fix