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

Fedora: Build failure #24

Open
darrylb123 opened this issue Jun 19, 2023 · 7 comments
Open

Fedora: Build failure #24

darrylb123 opened this issue Jun 19, 2023 · 7 comments

Comments

@darrylb123
Copy link

This is my first attempt to compile Tasmota. I believe I have followed the documentation.
I tried both grabbing the pre-built blakadder docker container and building my own. With the same result.

$ cd /var/tmp
$ git clone https://github.com/tasmota/docker-tasmota
$ cd docker-tasmota
$ docker build -t docker-tasmota .
$ cd ..
$ git clone https://github.com/arendst/Tasmota.git
$ docker run -ti --rm -v $(pwd)/Tasmota:/tasmota -u $UID:$GID docker-tasmota -e tasmota-minimal
Compiling Tasmota...
Usage: pio run [OPTIONS]
Try 'pio run -h' for help.

Error: Invalid value for '-d' / '--project-dir': Path '/tasmota' is not readable.
All done! Find your builds in Tasmota/build_output/firmware/

@barbudor
Copy link
Contributor

Are $UID and $GID variable correctly set on your system?

@darrylb123
Copy link
Author

darrylb123 commented Jun 19, 2023 via email

@barbudor
Copy link
Contributor

barbu@mini-server:~/tasmota/build$ docker run -ti --rm -v $(pwd)/Tasmota:/tasmota -u $UID:$GID docker-tasmota -e tasmota-minimal
Compiling Tasmota...
Processing tasmota-minimal (platform: https://github.com/tasmota/platform-espressif8266/releases/download/2023.04.00/platform-espressif8266.zip; framework: arduino; board: esp8266_1M)
....
========================================================= [SUCCESS] Took 64.77 seconds =========================================================

Environment      Status    Duration
---------------  --------  ------------
tasmota-minimal  SUCCESS   00:01:04.771
========================================================== 1 succeeded in 00:01:04.771 ==========================================================

@blakadder
Copy link
Contributor

this is a file permission issue... try building it in your users home dir first

@barbudor
Copy link
Contributor

I agree it is a persmission issue but works like a charm in /var/tmp too:

barbu@mini-server:/var/tmp$ docker run -ti --rm -v $(pwd)/Tasmota:/tasmota -u $UID:$GID docker-tasmota -e tasmota-minimal
Compiling Tasmota...
Processing tasmota-minimal (platform: https://github.com/tasmota/platform-espressif8266/releases/download/2023.04.00/platform-espressif8266.zip; framework: arduino; board: esp8266_1M)
-------------------------------------------------------------------------------------------------------------------------------------------------
Platform Manager: Installing https://github.com/tasmota/platform-espressif8266/releases/download/2023.04.00/platform-espressif8266.zip
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Platform Manager: espressif8266@2023.4.0 has been installed!
Tool Manager: Installing platformio/toolchain-xtensa @ ~2.40802.0
Downloading  [####################################]  100%

I believe that he is not executing the docker with the same user that did the git clone

@darrylb123
Copy link
Author

darrylb123 commented Jun 19, 2023 via email

@darrylb123
Copy link
Author

darrylb123 commented Jun 20, 2023 via email

@Jason2866 Jason2866 changed the title Build failure Fedora: Build failure Oct 1, 2023
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

3 participants