# \`make\` error while building the latest (as of today) version of Julia

**URL:** <https://discourse.julialang.org/t/make-error-while-building-the-latest-as-of-today-version-of-julia/11006>\
**Category:** General Usage\
**Tags:** build\
**Created:** [May 18, 2018, 11:36pm UTC](https://discourse.julialang.org/t/make-error-while-building-the-latest-as-of-today-version-of-julia/11006 "2018-05-18T23:36:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Honig](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/robert_honig/32/4930_2.png) [@Robert\_Honig](https://discourse.julialang.org/u/Robert_Honig)\
**Post date:** [May 18, 2018, 11:36pm UTC](https://discourse.julialang.org/t/make-error-while-building-the-latest-as-of-today-version-of-julia/11006/1 "2018-05-18T23:36:20Z")

</div>

I want to build Julia on my own. I cloned the latest Julia repo from git and installed the required dependencies. On running `make`, I get the following error:

```julia
robert@robhoenig:~/git/julia$ make
make: /home/robert/git/julia/contrib/relative_path.sh: Command not found
make: /home/robert/git/julia/contrib/relative_path.sh: Command not found
make: /home/robert/git/julia/contrib/relative_path.sh: Command not found
make: /home/robert/git/julia/contrib/relative_path.sh: Command not found
make: /home/robert/git/julia/contrib/relative_path.sh: Command not found
make: /home/robert/git/julia/contrib/relative_path.sh: Command not found
make: /home/robert/git/julia/contrib/relative_path.sh: Command not found
make: /home/robert/git/julia/contrib/relative_path.sh: Command not found
/bin/sh: 1: /home/robert/git/julia/contrib/relative_path.sh: not found
make[1]: /home/robert/git/julia/contrib/relative_path.sh: Command not found
make[1]: /home/robert/git/julia/contrib/relative_path.sh: Command not found
make[1]: /home/robert/git/julia/contrib/relative_path.sh: Command not found
make[1]: /home/robert/git/julia/contrib/relative_path.sh: Command not found
make[1]: /home/robert/git/julia/contrib/relative_path.sh: Command not found
make[1]: /home/robert/git/julia/contrib/relative_path.sh: Command not found
make[1]: /home/robert/git/julia/contrib/relative_path.sh: Command not found
make[1]: /home/robert/git/julia/contrib/relative_path.sh: Command not found
make[1]: /home/robert/git/julia/contrib/relative_path.sh: Command not found
make[1]: /home/robert/git/julia/deps/tools/jldownload: Command not found
/home/robert/git/julia/deps/suitesparse.mk:28: recipe for target '/home/robert/git/julia/deps/srccache/SuiteSparse-4.4.5.tar.gz' failed
make[1]: *** [/home/robert/git/julia/deps/srccache/SuiteSparse-4.4.5.tar.gz] Error 127
Makefile:60: recipe for target 'julia-deps' failed
make: *** [julia-deps] Error 2
robert@robhoenig:~/git/julia$ ls -l /home/robert/git/julia//contrib/relative_path.sh 
-rwxrwxr-x 1 robert robert 981 Feb 23 19:42 /home/robert/git/julia//contrib/relative_path.sh

```

I find this particularly strange because the file `/home/robert/git/julia//contrib/relative_path.sh` does in fact exist and is marked as executable.

---

<div class="post-metadata">

**Author:** ![nalimilan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nalimilan/32/147_2.png) [@nalimilan](https://discourse.julialang.org/u/nalimilan)\
**Post date:** [May 19, 2018, 9:09pm UTC](https://discourse.julialang.org/t/make-error-while-building-the-latest-as-of-today-version-of-julia/11006/2 "2018-05-19T21:09:45Z")

</div>

That’s weird indeed. What happens if you try to run the script with e.g. `/home/robert/git/julia/contrib/relative_path.sh /home/robert /home/robert/test`? Also, what’s your OS?

---

<div class="post-metadata">

**Author:** ![Robert\_Honig](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/robert_honig/32/4930_2.png) [@Robert\_Honig](https://discourse.julialang.org/u/Robert_Honig)\
**Post date:** [May 20, 2018, 9:55am UTC](https://discourse.julialang.org/t/make-error-while-building-the-latest-as-of-today-version-of-julia/11006/3 "2018-05-20T09:55:15Z")

</div>

Thanks for leading me on the right path @nalimilan! My OS is

```julia
robert@robhoenig:~/git/julia$ lsb_release -a
LSB Version:	core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:printing-9.20160110ubuntu0.2-amd64:printing-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.4 LTS
Release:	16.04
Codename:	xenial

```

After trying to manually execute `relative_path.sh`, I got an error message saying

> /bin/bash^M: bad interpreter

For some reason, git had `core.autocrlf` set to true - meaning that on cloning, all line endings where converted to crlf. This caused the ^M on my Linux machine and also a bunch of other funny errors.

For reference, I now converted the repo back to lf with

```julia
git ls-files | xargs dos2unix

```

`make` is building now. Fingers crossed 🙂
