{"action":"created","issue":{"url":"https://api.github.com/repos/goertzenator/rust.mk/issues/1","repository_url":"https://api.github.com/repos/goertzenator/rust.mk","labels_url":"https://api.github.com/repos/goertzenator/rust.mk/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/goertzenator/rust.mk/issues/1/comments","events_url":"https://api.github.com/repos/goertzenator/rust.mk/issues/1/events","html_url":"https://github.com/goertzenator/rust.mk/issues/1","id":158867521,"number":1,"title":"Doesn't build on OS X","user":{"login":"developerworks","id":725190,"avatar_url":"https://avatars.githubusercontent.com/u/725190?v=3","gravatar_id":"","url":"https://api.github.com/users/developerworks","html_url":"https://github.com/developerworks","followers_url":"https://api.github.com/users/developerworks/followers","following_url":"https://api.github.com/users/developerworks/following{/other_user}","gists_url":"https://api.github.com/users/developerworks/gists{/gist_id}","starred_url":"https://api.github.com/users/developerworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developerworks/subscriptions","organizations_url":"https://api.github.com/users/developerworks/orgs","repos_url":"https://api.github.com/users/developerworks/repos","events_url":"https://api.github.com/users/developerworks/events{/privacy}","received_events_url":"https://api.github.com/users/developerworks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-07T08:32:40Z","updated_at":"2016-06-08T01:26:35Z","closed_at":null,"body":"What version of rust you use, I get the following errors by `make` in `tests/rustmk_demo` directory:\r\n\r\n```\r\n➜  rustmk_demo git:(master) make\r\n DEP    find_crate\r\nfor dep in  ; do \\\r\n\t\tmkdir -p $dep/ebin; \\\r\n\tdone\r\nfor dep in  ; do \\\r\n\t\tmkdir -p $dep/ebin; \\\r\n\tdone\r\n DEPEND find_crate.d\r\n ERLC   find_crate.erl\r\n APP    find_crate\r\n DEPEND rustmk_demo.d\r\n ERLC   complex1.erl ruster_unsafe_demo.erl\r\n APP    rustmk_demo\r\n CARGO  erl_comm\r\n CARGO  ruster_unsafe_demo\r\nerror: linking with `cc` failed: exit code: 1\r\nnote: \"cc\" \"-m64\" \"-L\" \"/Users/hezhiqiang/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib\" \"/Users/hezhiqiang/RustProjects/rust.mk/tests/rustmk_demo/crates/ruster_unsafe_demo/target/release/ruster_unsafe_demo.0.o\" \"-o\" \"/Users/hezhiqiang/RustProjects/rust.mk/tests/rustmk_demo/crates/ruster_unsafe_demo/target/release/libruster_unsafe_demo.dylib\" \"/Users/hezhiqiang/RustProjects/rust.mk/tests/rustmk_demo/crates/ruster_unsafe_demo/target/release/ruster_unsafe_demo.metadata.o\" \"-Wl,-dead_strip\" \"-nodefaultlibs\" \"-L\" \"/Users/hezhiqiang/RustProjects/rust.mk/tests/rustmk_demo/crates/ruster_unsafe_demo/target/release\" \"-L\" \"/Users/hezhiqiang/RustProjects/rust.mk/tests/rustmk_demo/crates/ruster_unsafe_demo/target/release/deps\" \"-L\" \"/Users/hezhiqiang/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib\" \"-Wl,-force_load,/var/folders/m3/vn1yyrfx7l36cq6p8msc6wt80000gn/T/rustc.baCXp1mKElZd/libruster_unsafe-badf32d60ecc0604.rlib\" \"-Wl,-force_load,/var/folders/m3/vn1yyrfx7l36cq6p8msc6wt80000gn/T/rustc.baCXp1mKElZd/liblibc-38919d24e617a235.rlib\" \"-Wl,-force_load,/var/folders/m3/vn1yyrfx7l36cq6p8msc6wt80000gn/T/rustc.baCXp1mKElZd/libstd-d16b8f0e.rlib\" \"-Wl,-force_load,/var/folders/m3/vn1yyrfx7l36cq6p8msc6wt80000gn/T/rustc.baCXp1mKElZd/libcollections-d16b8f0e.rlib\" \"-Wl,-force_load,/var/folders/m3/vn1yyrfx7l36cq6p8msc6wt80000gn/T/rustc.baCXp1mKElZd/librustc_unicode-d16b8f0e.rlib\" \"-Wl,-force_load,/var/folders/m3/vn1yyrfx7l36cq6p8msc6wt80000gn/T/rustc.baCXp1mKElZd/librand-d16b8f0e.rlib\" \"-Wl,-force_load,/var/folders/m3/vn1yyrfx7l36cq6p8msc6wt80000gn/T/rustc.baCXp1mKElZd/liballoc-d16b8f0e.rlib\" \"-Wl,-force_load,/var/folders/m3/vn1yyrfx7l36cq6p8msc6wt80000gn/T/rustc.baCXp1mKElZd/liballoc_system-d16b8f0e.rlib\" \"-Wl,-force_load,/var/folders/m3/vn1yyrfx7l36cq6p8msc6wt80000gn/T/rustc.baCXp1mKElZd/liblibc-d16b8f0e.rlib\" \"-Wl,-force_load,/var/folders/m3/vn1yyrfx7l36cq6p8msc6wt80000gn/T/rustc.baCXp1mKElZd/libcore-d16b8f0e.rlib\" \"-l\" \"System\" \"-l\" \"pthread\" \"-l\" \"c\" \"-l\" \"m\" \"-dynamiclib\" \"-Wl,-dylib\" \"-l\" \"compiler-rt\"\r\nnote: Undefined symbols for architecture x86_64:\r\n  \"_enif_get_ulong\", referenced from:\r\n      ruster_unsafe::enif_get_uint64::h84c88c1e02aa4f6b in libruster_unsafe-badf32d60ecc0604.rlib(ruster_unsafe-badf32d60ecc0604.0.o)\r\n  \"_enif_make_atom\", referenced from:\r\n      ruster_unsafe_demo::load::hd7ee4ce1f3930938 in ruster_unsafe_demo.0.o\r\n  \"_enif_get_long\", referenced from:\r\n      ruster_unsafe::enif_get_int64::hfa5611b090fa7114 in libruster_unsafe-badf32d60ecc0604.rlib(ruster_unsafe-badf32d60ecc0604.0.o)\r\n  \"_enif_get_tuple\", referenced from:\r\n      ruster_unsafe_demo::tuple_add::hbffd5e5909b3abd6 in ruster_unsafe_demo.0.o\r\n  \"_enif_get_int\", referenced from:\r\n      ruster_unsafe_demo::native_add::h7ad592db04cbbd9b in ruster_unsafe_demo.0.o\r\n      ruster_unsafe_demo::tuple_add::hbffd5e5909b3abd6 in ruster_unsafe_demo.0.o\r\n  \"_enif_make_int\", referenced from:\r\n      ruster_unsafe_demo::native_add::h7ad592db04cbbd9b in ruster_unsafe_demo.0.o\r\n      ruster_unsafe_demo::tuple_add::hbffd5e5909b3abd6 in ruster_unsafe_demo.0.o\r\n  \"_enif_make_ulong\", referenced from:\r\n      ruster_unsafe::enif_make_uint64::h3d5f5def6c89f123 in libruster_unsafe-badf32d60ecc0604.rlib(ruster_unsafe-badf32d60ecc0604.0.o)\r\n  \"_enif_make_long\", referenced from:\r\n      ruster_unsafe::enif_make_int64::hf48b56b9d1478290 in libruster_unsafe-badf32d60ecc0604.rlib(ruster_unsafe-badf32d60ecc0604.0.o)\r\n  \"_enif_make_badarg\", referenced from:\r\n      ruster_unsafe_demo::native_add::h7ad592db04cbbd9b in ruster_unsafe_demo.0.o\r\n      ruster_unsafe_demo::tuple_add::hbffd5e5909b3abd6 in ruster_unsafe_demo.0.o\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n\r\nerror: aborting due to previous error\r\nerror: Could not compile `ruster_unsafe_demo`.\r\n\r\nTo learn more, run the command again with --verbose.\r\nmake: *** [/Users/hezhiqiang/RustProjects/rust.mk/tests/rustmk_demo/crates/ruster_unsafe_demo] Error 101\r\n```"},"comment":{"url":"https://api.github.com/repos/goertzenator/rust.mk/issues/comments/224462155","html_url":"https://github.com/goertzenator/rust.mk/issues/1#issuecomment-224462155","issue_url":"https://api.github.com/repos/goertzenator/rust.mk/issues/1","id":224462155,"user":{"login":"developerworks","id":725190,"avatar_url":"https://avatars.githubusercontent.com/u/725190?v=3","gravatar_id":"","url":"https://api.github.com/users/developerworks","html_url":"https://github.com/developerworks","followers_url":"https://api.github.com/users/developerworks/followers","following_url":"https://api.github.com/users/developerworks/following{/other_user}","gists_url":"https://api.github.com/users/developerworks/gists{/gist_id}","starred_url":"https://api.github.com/users/developerworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developerworks/subscriptions","organizations_url":"https://api.github.com/users/developerworks/orgs","repos_url":"https://api.github.com/users/developerworks/repos","events_url":"https://api.github.com/users/developerworks/events{/privacy}","received_events_url":"https://api.github.com/users/developerworks/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T01:26:35Z","updated_at":"2016-06-08T01:26:35Z","body":"```\r\n➜  rustmk_demo git:(osx) ✗ make V=1 tests\r\nfor dep in  ; do \\\r\n\t\tmkdir -p $dep/ebin; \\\r\n\tdone\r\nfor dep in  ; do \\\r\n\t\t/Applications/Xcode.app/Contents/Developer/usr/bin/make -C $dep IS_APP=1 || exit $?; \\\r\n\tdone\r\nrm -f /Users/hezhiqiang/RustProjects/rust.mk/tests/rustmk_demo/.erlang.mk/deps.log\r\nmkdir -p /Users/hezhiqiang/RustProjects/rust.mk/tests/rustmk_demo/.erlang.mk\r\nfor dep in /Users/hezhiqiang/RustProjects/rust.mk/tests/rustmk_demo/deps/find_crate ; do \\\r\n\t\tif grep -qs ^$dep$ /Users/hezhiqiang/RustProjects/rust.mk/tests/rustmk_demo/.erlang.mk/deps.log; then \\\r\n\t\t\t:; \\\r\n\t\telse \\\r\n\t\t\techo $dep >> /Users/hezhiqiang/RustProjects/rust.mk/tests/rustmk_demo/.erlang.mk/deps.log; \\\r\n\t\t\tif [ -f $dep/GNUmakefile ] || [ -f $dep/makefile ] || [ -f $dep/Makefile ]; then \\\r\n\t\t\t\t/Applications/Xcode.app/Contents/Developer/usr/bin/make -C $dep IS_DEP=1 || exit $?; \\\r\n\t\t\telse \\\r\n\t\t\t\techo \"Error: No Makefile to build dependency $dep.\"; \\\r\n\t\t\t\texit 2; \\\r\n\t\t\tfi \\\r\n\t\tfi \\\r\n\tdone\r\nfor dep in  ; do \\\r\n\t\tmkdir -p $dep/ebin; \\\r\n\tdone\r\nfor dep in  ; do \\\r\n\t\t/Applications/Xcode.app/Contents/Developer/usr/bin/make -C $dep IS_APP=1 || exit $?; \\\r\n\tdone\r\nmkdir -p /Users/hezhiqiang/RustProjects/rust.mk/tests/rustmk_demo/.erlang.mk\r\nfor dep in  ; do \\\r\n\t\tif grep -qs ^$dep$ /Users/hezhiqiang/RustProjects/rust.mk/tests/rustmk_demo/.erlang.mk/deps.log; then \\\r\n\t\t\t:; \\\r\n\t\telse \\\r\n\t\t\techo $dep >> /Users/hezhiqiang/RustProjects/rust.mk/tests/rustmk_demo/.erlang.mk/deps.log; \\\r\n\t\t\tif [ -f $dep/GNUmakefile ] || [ -f $dep/makefile ] || [ -f $dep/Makefile ]; then \\\r\n\t\t\t\t/Applications/Xcode.app/Contents/Developer/usr/bin/make -C $dep IS_DEP=1 || exit $?; \\\r\n\t\t\telse \\\r\n\t\t\t\techo \"Error: No Makefile to build dependency $dep.\"; \\\r\n\t\t\t\texit 2; \\\r\n\t\t\tfi \\\r\n\t\tfi \\\r\n\tdone\r\n/Applications/Xcode.app/Contents/Developer/usr/bin/make --no-print-directory app-build\r\n:\r\n:\r\nfor dep in  ; do /Applications/Xcode.app/Contents/Developer/usr/bin/make -C $dep IS_DEP=1; done\r\n/Applications/Xcode.app/Contents/Developer/usr/bin/make --no-print-directory app-build test-dir ERLC_OPTS=\"+debug_info +warn_export_vars +warn_shadow_vars +warn_obsolete_guard -DTEST=1\"\r\n:\r\nmake[1]: Nothing to be done for `test-dir'.\r\ncd /Users/hezhiqiang/RustProjects/rust.mk/tests/rustmk_demo/crates/erl_comm && cargo build -q --release -- --codegen link-args='-flat_namespace -undefined suppress'\r\nerror: Invalid arguments.\r\n\r\nUsage:\r\n    cargo build [options]\r\nmake: *** [/Users/hezhiqiang/RustProjects/rust.mk/tests/rustmk_demo/crates/erl_comm] Error 1\r\n```"}}
{"actor":{"display_login":"developerworks"}}