ichi4096 / vivado-on-silicon-mac

Installs Vivado on M1/M2 macs
Creative Commons Zero v1.0 Universal
217 stars 26 forks source link

Bind mount does not provide the required permissions for the installer #29

Open davidchisnall opened 8 months ago

davidchisnall commented 8 months ago

The installer needs to be able to chown files in the working directory. This is not possible with a bind mount from the host. Copying files into the container in the first step of docker.sh avoids this problem.

riccardilorenzo commented 8 months ago

Hi! I'm facing this same issue. Can you better explain how to solve this issue please?

davidchisnall commented 8 months ago

I will try to write up what I did, but unfortunately I worked with a download (as recommended in the README) not a git clone, so it's going to take a while to figure out what I changed.

I ended up running the installer in graphical mode, but that also required fixing things because bind mounting the UNIX domain socket didn't work and I needed to use TCP.

For the Arty A7, the shipped version of xvcd didn't work either, but I have managed to patch that to make it work.

DaryaGolovko commented 7 months ago

Hi, I have the same problem. Can you please write how you fixed it?

NelsonDane commented 7 months ago

@DaryaGolovko If you take a look at my fork, I solved this issue by extracting and taking ownership of the files in an internal docker directory before moving them to the mountpoint

tachsin commented 7 months ago

@DaryaGolovko If you take a look at my fork, I solved this issue by extracting and taking ownership of the files in an internal docker directory before moving them to the mountpoint

That solved my problem as well !!

NelsonDane commented 6 months ago

Awesome, I created a PR with my changes

VladBara commented 6 months ago

OMG, it works. Be blessed !!! This fix should be added to the main branch and also mentioned in the description.

mohay3069 commented 5 months ago

@DaryaGolovko If you take a look at my fork, I solved this issue by extracting and taking ownership of the files in an internal docker directory before moving them to the mountpoint

doesnt worK:

errors: 1)ERROR - There was an error executing: [/bin/sh, -c, echo $TMPDIR]

2)ProcessBuilder.start() or Runtime.exec() in a java application Copyright (c) 1986-2022 Xilinx, Inc. All rights reserved. Copyright (c) 2022-2024 Advanced Micro Devices, Inc. All rights reserved. INFO - User has accepted the EULAs. ERROR - There is not enough disk space on /home/user/Xilinx to install.

Generating App icon ./install.sh:73: no matches found: Xilinx/Vivado/*/doc/images/vivado_logo.png Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping icon.iconset:Failed to generate ICNS. mv: rename icon.icns to Launch_Vivado.app/Contents/Resources/icon.icns: No such file or directory

NelsonDane commented 5 months ago

It says you don't have enough disk space @mohay3069

mohay3069 commented 5 months ago

It says you don't have enough disk space @mohay3069 INFO - User has accepted the EULAs. ERROR - There is not enough disk space on /home/user/Xilinx to install.

Generating App icon ./install.sh:73: no matches found: Xilinx/Vivado/*/doc/images/vivado_logo.png Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping icon.iconset:Failed to generate ICNS. mv: rename icon.icns to Launch_Vivado.app/Contents/Resources/icon.icns: No such file or directory i have 100 gibabytes of space how much more do i need?

mohay3069 commented 5 months ago

It says you don't have enough disk space @mohay3069

is this it?

is this it:{ "builder": { "gc": { "defaultKeepStorage": "20GB", "enabled": true } }, "experimental": false }

ichi4096 commented 3 months ago

Isn't all data not within a bind mount lost anyway? How could you do an install to a directory in the container that is not a bind mount and have it be permanent?

davidchisnall commented 3 months ago

No, a bind mount is a host directory that is mounted into the container. The scripts install into that directory. It is not ephemeral.

ichi4096 commented 3 months ago

Exactly, so you still need to install into the bind mound for the installation to be non-volatile.

sapertuz commented 2 months ago

I pulled @NelsonDane 's for but I still ge the same error... I already set the settings in docker to include both the /tmp and git repo folders... I get:

Drag and drop the installation binary into this terminal window and press Enter: 
path-to-bin/FPGAs_AdaptiveSoCs_Unified_2023.2_1013_2256_Lin64.bin 
Launching Docker container and installation script
docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /tmp/.X11-unix.
See 'docker run --help'.
Generating App icon
./install.sh:73: no matches found: Xilinx/Vivado/*/doc/images/vivado_logo.png
Warning:  not a valid file - skipping
Warning:  not a valid file - skipping
Warning:  not a valid file - skipping
Warning:  not a valid file - skipping
Warning:  not a valid file - skipping
Warning:  not a valid file - skipping
Warning:  not a valid file - skipping
Warning:  not a valid file - skipping
Warning:  not a valid file - skipping
icon.iconset:Failed to generate ICNS.
mv: rename icon.icns to Launch_Vivado.app/Contents/Resources/icon.icns: No such file or directory