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

Build problem on Ubuntu #31

Closed
jdeisenberg opened this issue Apr 29, 2013 · 5 comments
Closed

Build problem on Ubuntu #31

jdeisenberg opened this issue Apr 29, 2013 · 5 comments

Comments

@jdeisenberg
Copy link

Attempting to do a mix compile, and get this:

david@ubuntu:~/ex_doc$ mix compile
git submodule update --init
Submodule 'sundown' () registered for path 'sundown'
From git://github.com/vmg/sundown
 * [new branch]      gh-pages   -> origin/gh-pages
 * [new branch]      master     -> origin/master
Submodule path 'sundown': checked out '975df6267cbc798ecfcb6948364cd978dc2bf36f'
cd sundown && make
make[1]: Entering directory `/home/david/ex_doc/sundown'
gcc -c -g -O3 -fPIC -Wall -Werror -Wsign-compare -Isrc -Ihtml   -c -o src/markdown.o src/markdown.c
gcc -c -g -O3 -fPIC -Wall -Werror -Wsign-compare -Isrc -Ihtml   -c -o src/stack.o src/stack.c
gcc -c -g -O3 -fPIC -Wall -Werror -Wsign-compare -Isrc -Ihtml   -c -o src/buffer.o src/buffer.c
gcc -c -g -O3 -fPIC -Wall -Werror -Wsign-compare -Isrc -Ihtml   -c -o src/autolink.o src/autolink.c
gcc -c -g -O3 -fPIC -Wall -Werror -Wsign-compare -Isrc -Ihtml   -c -o html/html.o html/html.c
gcc -c -g -O3 -fPIC -Wall -Werror -Wsign-compare -Isrc -Ihtml   -c -o html/html_smartypants.o html/html_smartypants.c
gcc -c -g -O3 -fPIC -Wall -Werror -Wsign-compare -Isrc -Ihtml   -c -o html/houdini_html_e.o html/houdini_html_e.c
gcc -c -g -O3 -fPIC -Wall -Werror -Wsign-compare -Isrc -Ihtml   -c -o html/houdini_href_e.o html/houdini_href_e.c
gcc -g -O3 -Wall -Werror  -shared -Wl src/markdown.o src/stack.o src/buffer.o src/autolink.o html/html.o html/html_smartypants.o html/houdini_html_e.o html/houdini_href_e.o -o libsundown.so.1
gcc: error: unrecognized command line option ‘-Wl’
make[1]: *** [libsundown.so.1] Error 1
make[1]: Leaving directory `/home/david/ex_doc/sundown'
make: *** [sundown/libsundown.so] Error 2

gcc -version gives me this:

gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
@ericmj
Copy link
Member

ericmj commented Apr 29, 2013

Related to vmg/sundown#133 ?

@jdeisenberg
Copy link
Author

Yes. It apparently only happens after sundown is downloaded from github, so it's not something that I can put into the ex_doc repository to fix. The workaround is to do the compile, let it fail, then go in and manually correct the Makefile.

@alco
Copy link
Member

alco commented May 16, 2013

@josevalim Is there a way to add a paragraph about this workaround to mix? Kind of like what Homebrew does when it mentions caveats.

λ brew info ruby  
ruby: stable 2.0.0-p0, HEAD
http://www.ruby-lang.org/en/
Not installed
https://github.com/mxcl/homebrew/commits/master/Library/Formula/ruby.rb
==> Dependencies
...
==> Options
...
==> Caveats
NOTE: By default, gem installed binaries will be placed into:
  /usr/local/opt/ruby/bin

You may want to add this to your PATH.

@josevalim
Copy link
Member

Let's just print something before we compile the C code in the mix task?

josevalim pushed a commit that referenced this issue May 16, 2013
Print some hints if sundown build fails. Related: #31
@kitofr kitofr mentioned this issue Jun 3, 2013
@josevalim
Copy link
Member

I have forked the sundown repository and changed ex_doc to point to my fork without the -Wl option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants