mad
mad copied to clipboard
Spaces in path names cause errors
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
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
Please setup PATH to clang
error,<<"clang: error: no such file or directory:
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.
That's bad. Need a fix.