Skip to content

(Mix) Could not compile dependency hoedown #11

Description

@dlcmh

Faced issue mentioned in the title - please help, thanks!

Machine is MacBook Air running Yosemite.

Elixir 1.0.5 & Erlang/OTP 18 installed.

Added {:markdown, github: "devinus/markdown"} to deps in mix.exs in a Phoenix project.

Ran mix deps.get -> no issues.

Ran mix phoenix.server and mix eps.compile hoedown several times -> here's what appeared:

mix phoenix.server
==> hoedown
cc -g -O3 -ansi -pedantic -Wall -Wextra -Wno-unused-parameter -Isrc -fPIC -c -o src/autolink.o src/autolink.c
cc -g -O3 -ansi -pedantic -Wall -Wextra -Wno-unused-parameter -Isrc -fPIC -c -o src/buffer.o src/buffer.c
cc -g -O3 -ansi -pedantic -Wall -Wextra -Wno-unused-parameter -Isrc -fPIC -c -o src/document.o src/document.c
cc -g -O3 -ansi -pedantic -Wall -Wextra -Wno-unused-parameter -Isrc -fPIC -c -o src/escape.o src/escape.c
cc -g -O3 -ansi -pedantic -Wall -Wextra -Wno-unused-parameter -Isrc -fPIC -c -o src/html.o src/html.c
cc -g -O3 -ansi -pedantic -Wall -Wextra -Wno-unused-parameter -Isrc -fPIC -Wno-static-in-inline -c -o src/html_blocks.o src/html_blocks.c
cc -g -O3 -ansi -pedantic -Wall -Wextra -Wno-unused-parameter -Isrc -fPIC -c -o src/html_smartypants.o src/html_smartypants.c
cc -g -O3 -ansi -pedantic -Wall -Wextra -Wno-unused-parameter -Isrc -fPIC -c -o src/stack.o src/stack.c
cc -g -O3 -ansi -pedantic -Wall -Wextra -Wno-unused-parameter -Isrc -fPIC -c -o src/version.o src/version.c
cc -Wl,-soname,libhoedown.so.3 -shared src/autolink.o src/buffer.o src/document.o src/escape.o src/html.o src/html_blocks.o src/html_smartypants.o src/stack.o src/version.o  -o libhoedown.so.3
ld: unknown option: -soname
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libhoedown.so.3] Error 1
==> hello_phoenix
** (Mix) Could not compile dependency hoedown, make command failed. If you want to recompile this dependency, please run: mix deps.compile hoedown
mylaptop:hello_phoenix$ mix deps.compile hoedown
==> hoedown
cc -Wl,-soname,libhoedown.so.3 -shared src/autolink.o src/buffer.o src/document.o src/escape.o src/html.o src/html_blocks.o src/html_smartypants.o src/stack.o src/version.o  -o libhoedown.so.3
ld: unknown option: -soname
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libhoedown.so.3] Error 1
==> hello_phoenix
** (Mix) Could not compile dependency hoedown, make command failed. If you want to recompile this dependency, please run: mix deps.compile hoedown

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions