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

some thing wrong on Windows #1

Closed
hanfengcan opened this issue Dec 8, 2018 · 5 comments
Closed

some thing wrong on Windows #1

hanfengcan opened this issue Dec 8, 2018 · 5 comments

Comments

@hanfengcan
Copy link

I try to build firmware use docker on windows.

it throw error like

tar -xJf /opt/nodemcu-firmware/cache/toolchain-esp8266-linux-x86_64-20181106.0.tar.xz -C /opt/nodemcu-firmware/tools/toolchains/
tar: esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/lib32: Cannot create symlink to 'lib': Read-only file system
tar: esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/lib: Cannot create symlink to 'sysroot/lib': Read-only file system
tar: esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/sysroot/lib32: Cannot create symlink to 'lib': Read-only file system
tar: esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/sysroot/lib/libg.a: Cannot hard link to 'esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/sysroot/lib/libc.a': Operation not permitted
tar: esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/sysroot/usr/lib32: Cannot create symlink to 'lib': Read-only file system
tar: esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/sysroot/usr/lib64: Cannot create symlink to 'lib': Read-only file system
tar: esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/sysroot/lib64: Cannot create symlink to 'lib': Read-only file system
tar: esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/bin/ld.bfd: Cannot hard link to 'esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/bin/ld': Operation not permitted
tar: esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/bin/g++: Cannot hard link to 'esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/bin/c++': Operation not permitted
tar: esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/lib64: Cannot create symlink to 'lib': Read-only file system
tar: esp8266-linux-x86_64-20181106.0/bin/xtensa-lx106-elf-nm: Cannot hard link to 'esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/bin/nm': Operation not permitted
tar: esp8266-linux-x86_64-20181106.0/bin/xtensa-lx106-elf-gcc-4.8.5: Cannot hard link to 'esp8266-linux-x86_64-20181106.0/bin/xtensa-lx106-elf-gcc': Operation not permitted
tar: esp8266-linux-x86_64-20181106.0/bin/xtensa-lx106-elf-cc: Cannot create symlink to 'xtensa-lx106-elf-gcc': Read-only file system
tar: esp8266-linux-x86_64-20181106.0/bin/xtensa-lx106-elf-objdump: Cannot hard link to 'esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/bin/objdump': Operation not permitted
tar: esp8266-linux-x86_64-20181106.0/bin/xtensa-lx106-elf-ar: Cannot hard link to 'esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/bin/ar': Operation not permitted
tar: esp8266-linux-x86_64-20181106.0/bin/xtensa-lx106-elf-strip: Cannot hard link to 'esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/bin/strip': Operation not permitted
tar: esp8266-linux-x86_64-20181106.0/bin/xtensa-lx106-elf-as: Cannot hard link to 'esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/bin/as': Operation not permitted
tar: esp8266-linux-x86_64-20181106.0/bin/xtensa-lx106-elf-objcopy: Cannot hard link to 'esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/bin/objcopy': Operation not permitted
tar: esp8266-linux-x86_64-20181106.0/bin/xtensa-lx106-elf-ld: Cannot hard link to 'esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/bin/ld': Operation not permitted
tar: esp8266-linux-x86_64-20181106.0/bin/xtensa-lx106-elf-ld.bfd: Cannot hard link to 'esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/bin/ld': Operation not permitted
tar: esp8266-linux-x86_64-20181106.0/bin/xtensa-lx106-elf-ranlib: Cannot hard link to 'esp8266-linux-x86_64-20181106.0/xtensa-lx106-elf/bin/ranlib': Operation not permitted
tar: esp8266-linux-x86_64-20181106.0/bin/xtensa-lx106-elf-c++: Cannot hard link to 'esp8266-linux-x86_64-20181106.0/bin/xtensa-lx106-elf-g++': Operation not permitted

I can success build firmwork with previous release.

@hanfengcan
Copy link
Author

hanfengcan commented Dec 8, 2018

Maybe link dont work on windows file system.

I think that it should be copy file and rename instead of link

I use the docker on windows and share the file to linux

@HHHartmann
Copy link

works for me.
Maybe you only have read access to the windows share in the docker image.
Maybe try starting the docker with bash instead of build in the command.
follow the following transcript

root@5bf86173dd80:/opt/nodemcu-firmware# touch testfile
root@5bf86173dd80:/opt/nodemcu-firmware# ls -l testfile
-rwxr-xr-x 1 root root 0 Dec  8 20:01 testfile
root@5bf86173dd80:/opt/nodemcu-firmware#

If you get any errors they might be a clue

@hanfengcan
Copy link
Author

@HHHartmann I try to use the cmder and git-bash. but error.

my docker is docker toolbox

@HHHartmann
Copy link

@hanfengcan when you start the docker build there is a command like

docker run --rm -it  -v C:/Development/nodemcu-firmware:/opt/nodemcu-firmware marcelstoer/nodemcu-build build

replace the last build by bash and try then. To exit use the command exit

At some point you configured the shared drive for docker to use. Make sure the user can write to the network share.

@hanfengcan
Copy link
Author

@HHHartmann

I login the vm and cp the firmware to vm file system.

and everything is OK

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

2 participants