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

Spaces in path names cause errors #98

Open
etxemag75 opened this issue May 13, 2019 · 4 comments
Open

Spaces in path names cause errors #98

etxemag75 opened this issue May 13, 2019 · 4 comments
Assignees

Comments

@etxemag75
Copy link

Trying to build this with latest SW incl Xcode on Mac

After cloning and then try to make it, it fails:

make
echo "-define(VERSION,"git describe --tags")." > include/mad.hrl
erlc -o ebin deps/ling/bc/.erl || true
deps/ling/bc/
.erl: no such file or directory
./mad cle dep com str bun mad
OK
==> dependency: "git://github.com/synrc/sh" tag: {branch,"master"}
==> "sh"
cc -c -Wno-deprecated-declarations -g -Wall -fPIC -MMD -I/Users/etxemag/Library/Application Support/ErlangInstaller/21.0/lib/erl_interface-3.10.3/include -I/Users/etxemag/Library/Application Support/ErlangInstaller/21.0/erts-10.0/include /Users/etxemag/Projects/test/mad/deps/sh/c_src/fdlink.c -o /Users/etxemag/Projects/test/mad/deps/sh/c_src/fdlink.o
Port Compilation Error:[{error,<<"clang: error: no such file or directory: 'Support/ErlangInstaller/21.0/lib/erl_interface-3.10.3/include'\nclang: error: no such file or directory: 'Support/ErlangInstaller/21.0/erts-10.0/include'\n">>}]
ERROR
OK
OK
sh
make: *** [Makefile:4: default] Error 1

@etxemag75
Copy link
Author

rebar compile seems to work

rebar compile
==> sh (compile)
Compiling c_src/fdlink.c
==> mad (compile)
Compiled src/mad_local.erl
Compiled src/mad_man.erl
Compiled src/mad.erl
src/provide/mad_run.erl:25: Warning: variable 'Params' is unused
Compiled src/provide/mad_run.erl
Compiled src/package/mad_escript.erl
Compiled src/package/mad_systools.erl
Compiled src/compile/mad_compile.erl
Compiled src/compile/mad_port.erl
Compiled src/compile/mad_script.erl
Compiled src/compile/mad_peg.erl
Compiled src/compile/mad_none.erl
Compiled src/provide/mad_repl.erl
Compiled src/compile/mad_erl.erl
Compiled src/compile/mad_dtl.erl
Compiled src/compile/mad_cubical.erl
Compiled src/compile/mad_leex.erl
Compiled src/compile/mad_yecc.erl
Compiled src/compile/mad_app.erl
Compiled src/mad_utils.erl
Compiled src/mad_hooks.erl
Compiled src/mad_eunit.erl
Compiled src/mad_static.erl
Compiled src/mad_git.erl
Compiled src/mad_release.erl

@5HT
Copy link
Member

5HT commented May 13, 2019

Please setup PATH to clang

error,<<"clang: error: no such file or directory:

@5HT 5HT closed this as completed May 13, 2019
@etxemag75
Copy link
Author

The issue is not PATH to clang, but that the script does not support white space in the directory names, such as:
/Users/etxemag/Library/Application Support/ErlangInstaller/21.0/lib/erl_interface-3.10.3/include

When I changed the path to the Erlang installation to exclude white space, it worked fine.

@5HT 5HT reopened this May 14, 2019
@5HT
Copy link
Member

5HT commented May 14, 2019

That's bad. Need a fix.

@5HT 5HT self-assigned this May 14, 2019
@5HT 5HT changed the title Make on Mac fails Spaces in path names cause errors May 14, 2019
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