-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
BUILD.sh script failing #4
Comments
Maybe something went wrong when cloning the repository. Try to clone again, after finiched check your local directory, it should have the same structure and files as in the repository. I've tested with fresh repository clone, and no errors were reported:
|
I tried again: There might be something in your env that i don´t have and would explain why it fails. Otherwise I have no clue why those micropython headers are not properly included. |
I've tried the build on the fresh install of Fedora 30 Workstation in virtual machine and I've been able to reproduce he issue. |
Here is a copy of my env: Would you post yours from Ubuntu 18.04 ? |
Hello, I was able to build the repo on my very first try (and ever since) using Ubuntu 19.04. here are my details: uname -a gcc -v |
I think the issue has nothing to do with the local environment. If you are familiar with Docker, I've created a Docker image which includes everything needed to build the MicroPython image and works well on Fedora. The image runs as user
|
My working machine is Ubuntu 18.04, but I've tried also on Ubuntu 19.04 and couldn't get any errors: boris@UbuntuMate-VirtualBox:~/MicroPython_K210_LoBo/k210-freertos$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco
boris@UbuntuMate-VirtualBox:~/MicroPython_K210_LoBo/k210-freertos$
boris@UbuntuMate-VirtualBox:~/MicroPython_K210_LoBo/k210-freertos$ uname -a
Linux UbuntuMate-VirtualBox 5.0.0-21-generic #22-Ubuntu SMP Tue Jul 2 13:27:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
boris@UbuntuMate-VirtualBox:~/MicroPython_K210_LoBo/k210-freertos$
boris@UbuntuMate-VirtualBox:~$ git clone https://github.com/loboris/MicroPython_K210_LoBo.git
Kloniranje u 'MicroPython_K210_LoBo'...
remote: Enumerating objects: 112, done.
remote: Counting objects: 100% (112/112), done.
remote: Compressing objects: 100% (103/103), done.
remote: Total 2232 (delta 9), reused 53 (delta 6), pack-reused 2120
Primanje objekata: 100% (2232/2232), 36.72 MiB | 7.66 MiB/s, završeno.
Razrješavanja delta: 100% (812/812), završeno.
boris@UbuntuMate-VirtualBox:~$ cd MicroPython_K210_LoBo/k210-freertos
boris@UbuntuMate-VirtualBox:~/MicroPython_K210_LoBo/k210-freertos$ ./BUILD.sh
Downloading kendryte-toolchain, please wait ...
Unpacking kendryte-toolchain
'kendryte-toolchain' prepared, ready to build
===[ 'mklfs' created ]===
===[ BUILDING MicroPython FIRMWARE ]===
.
.
===[ Creating 'MaixPy.kfpkg' ]===
===[ kfpkg created ]===
------------------------------------------------
text data bss dec hex filename
1400494 45745 4007272 5453511 5336c7 MaixPy
------------------------------------------------
============================
====== Build finished ======
version: 1.11.5
Firmware file size: 1454080
Flash FS starts at: 4194304
============================
boris@UbuntuMate-VirtualBox:~/MicroPython_K210_LoBo/k210-freertos$ There is a I'll fix it tommorow. |
It did not help. I'll reinstall the linux virtual machine and check again. Do you have any guides on how to setup Eclipse? It complains about the kendryte toolchain not found in the PATH, that I could solve by adding the toolchain/bin folder to the PATH environment variable. But there tons of error regarding the MP_QSTR_chdir and the other strings. As far as I know there would be a build step that would generate a file that I should include. I just can't start a build from inside Eclipse. The Eclipse run and debug profiles are all empty. When I go to Project/Build I get an error message: "No rule to make target 'all'. Stop". I had to install the PyDev Eclipse module from the marketplace. Are there other prerequisites? |
Eclipse project files are included in the repository and contains all needed configuration. To include The MicroPython project into Eclipse just goto (in Eclipse): Tested and works. |
QSTRINGS will often be unrecognized by Eclipse after clean and fresh build. In that case just execute |
On a brand new Ubuntu 19.04 with the same commands, same setup I was able to build this repo. The problem must have been in my environment, but I am unsure what that was. Good now. Thanks for the Eclipse tips. I read them in the readme.md as well... the index rebuild and including the project. But Eclipse somehow could not recognize stuff and index rebuilding did nothing. I'll try it again later. Might have been an installation fault that caused the seg faults as well or I don't know. |
You must use Index -> |
As for the initial build failure (basically no include files are found on non-Ubuntu-18.04 platforms), this seems to be caused by incompatiblities between |
@domschl I've basically only replaced the The update will be commited later today or tommorow. |
BUILD.sh fails when compiling kendrite SDK:
===[ 'mklfs' created ]===
===[ BUILDING MicroPython FIRMWARE ]===
.
.
-----[ source k210_env ... ]-----
-----[ k210_env export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/username/micropython/MAIX/MicroPython_K210_LoBo/k210-freertos/../kendryte-toolchain/bin/ ... ]---
=====[ PLATFORM_MK ./mpy_support/k210.mk ./platform/drivers/k210.mk ./third_party/k210.mk ./third_party/spiffs/k210.mk ./k210.mk ]=====
=====[ Compiling mpy_support docs platform third_party ... ]=====
=====[ compile mpy_support docs platform third_party . ]=====
=====[ AllDirs ... ]======
=====[ drivers/ ]======
=====[ sdk/ ]======
w25qxx.c:44:10: fatal error: devices.h: No such file or directory
#include <devices.h>
^~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:74: w25qxx.o] Error 1
make[1]: *** [Makefile:59: compile] Error 2
GEN build/genhdr/qstr.i.last
../../micropython/py/mpstate.c:27:10: fatal error: py/mpstate.h: No such file or directory
#include "py/mpstate.h"
^~~~~~~~~~~~~~
compilation terminated.
../../micropython/py/malloc.c:31:10: fatal error: py/mpconfig.h: No such file or directory
#include "py/mpconfig.h"
^~~~~~~~~~~~~~~
compilation terminated.
../../micropython/py/gc.c:33:10: fatal error: py/gc.h: No such file or directory
#include "py/gc.h"
^~~~~~~~~
compilation terminated.
../../micropython/py/pystack.c:30:10: fatal error: py/runtime.h: No such file or directory
#include "py/runtime.h"
^~~~~~~~~~~~~~
compilation terminated.
../../micropython/py/qstr.c:31:10: fatal error: py/mpstate.h: No such file or directory
#include "py/mpstate.h"
The text was updated successfully, but these errors were encountered: