Hopefully can save others a little time.
The PATH to the gcc executables can't end with a '/' character or you
will get an error like "riscv32-unknown-elf-ld: cannot find -lgcc" (see
get_lib_path in vendor/hisi/hi3861/hi3861/build/scripts/scons_env_cfg.py).
eg. PATH=/gcc_riscv32/bin not PATH=/gcc_riscv32/bin/
Other requirements: the PATH to the executables must contain gcc_riscv32
and end with bin, and libgcc.a must be in the directory
../lib/gcc/riscv32-unknown-elf/<gcc version number>/ relative to the
executables directory. (ie. must be a relatively standard directory
structure). Might be relevant for those thinking of putting the
executables in $HOME/bin.
The scons_env_param_check in scons_utils.py performs the same check as
get_lib_path and supports ending with '/' so it may be fair to ask
HiSilicon to call this function instead.
I also needed to install the scons, pycrypto, and ecdsa packages for the
HiSilicon hi3861 build (available through pip).
Welcome to the "dev" mailing list!
To post to this list, send your email to:
You can unsubscribe or make adjustments to your options via email by
sending a message to:
with the word 'help' in the subject or body (don't include the
quotes), and you will get back a message with instructions. You will
need your password to change your options, but for security purposes,
this password is not included here. If you have forgotten your
password you will need to reset it via the web UI.
Tel : +86 18709251268
Email : neen.yang(a)huawei.com
This e-mail and its attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!