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

Error while building using Docker #20

Closed
hosseinabdinf opened this issue Dec 20, 2023 · 3 comments
Closed

Error while building using Docker #20

hosseinabdinf opened this issue Dec 20, 2023 · 3 comments
Assignees

Comments

@hosseinabdinf
Copy link

Hi,

I got following error while trying to build repo using Docker:

=> ERROR [11/13] RUN .circleci/clone_libs.sh                                                                      0.3s
------
 > [11/13] RUN .circleci/clone_libs.sh:
0.246 + .circleci/clone_libs.sh
0.246 /bin/bash: .circleci/clone_libs.sh: /bin/bash^M: bad interpreter: No such file or directory
------
Dockerfile:23
--------------------
  21 |
  22 |     # Clone HE libraries
  23 | >>> RUN .circleci/clone_libs.sh
  24 |
  25 |     # Build HE libraries
--------------------
ERROR: failed to solve: process "/bin/bash -exo pipefail -c .circleci/clone_libs.sh" did not complete successfully: exit code: 126

Here is my current configuration:

Docker version: 4.26.1
WSL version: 2.0.9.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.2861

Thanks

@jimouris
Copy link
Collaborator

jimouris commented Dec 20, 2023

Hey! I see that you are trying to build on Windows. We've mostly tested on Linux-based distributions. We might look at adding Windows support in the future but I'm unsure if all underlying HE libs support that.

@cgouert
Copy link
Collaborator

cgouert commented Dec 20, 2023

The issue lies in the line ending formats between Unix and Windows. I was able to successfully build the docker on Windows by downloading dos2unix and then running dos2unix.exe .\.circleci\build_libs.sh and dos2unix.exe .\.circleci\clone_libs.sh before running the Docker build step.

@cgouert cgouert closed this as completed Dec 20, 2023
@hosseinabdinf
Copy link
Author

@cgouert dos2unix worked. Thanks!

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