{"action":"created","issue":{"url":"https://api.github.com/repos/baidu/rust-sgx-sdk/issues/15","repository_url":"https://api.github.com/repos/baidu/rust-sgx-sdk","labels_url":"https://api.github.com/repos/baidu/rust-sgx-sdk/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/baidu/rust-sgx-sdk/issues/15/comments","events_url":"https://api.github.com/repos/baidu/rust-sgx-sdk/issues/15/events","html_url":"https://github.com/baidu/rust-sgx-sdk/issues/15","id":320159246,"number":15,"title":"undefined reference to `posix_memalign`","user":{"login":"chuanbowen","id":2097545,"avatar_url":"https://avatars1.githubusercontent.com/u/2097545?v=4","gravatar_id":"","url":"https://api.github.com/users/chuanbowen","html_url":"https://github.com/chuanbowen","followers_url":"https://api.github.com/users/chuanbowen/followers","following_url":"https://api.github.com/users/chuanbowen/following{/other_user}","gists_url":"https://api.github.com/users/chuanbowen/gists{/gist_id}","starred_url":"https://api.github.com/users/chuanbowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuanbowen/subscriptions","organizations_url":"https://api.github.com/users/chuanbowen/orgs","repos_url":"https://api.github.com/users/chuanbowen/repos","events_url":"https://api.github.com/users/chuanbowen/events{/privacy}","received_events_url":"https://api.github.com/users/chuanbowen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-04T05:43:27Z","updated_at":"2018-05-04T07:12:12Z","closed_at":"2018-05-04T07:12:12Z","author_association":"NONE","body":"Hi,\r\n   I'm trying to run the sample code using `make SGX_MODE=SIM`. Then errors:\r\n\r\nmake -C ../../sgx_ustdc/ 2> /dev/null\r\nmake[1]: Entering directory `/root/sgx/rust-sgx-sdk/sgx_ustdc'\r\nmake[1]: Nothing to be done for `all'.\r\nmake[1]: Leaving directory `/root/sgx/rust-sgx-sdk/sgx_ustdc'\r\ncp ../../sgx_ustdc/libsgx_ustdc.a ./lib\r\nLINK =>  bin/app\r\nmake -C ./enclave/\r\nmake[1]: Entering directory `/root/sgx/rust-sgx-sdk/samplecode/helloworld/enclave'\r\ncargo build --release\r\n    Finished release [optimized] target(s) in 0.0 secs\r\ncp ./target/release/libhelloworldsampleenclave.a ../lib/libenclave.a\r\nmake[1]: Leaving directory `/root/sgx/rust-sgx-sdk/samplecode/helloworld/enclave'\r\nmake -C ../../compiler-rt/ 2> /dev/null\r\nmake[1]: Entering directory `/root/sgx/rust-sgx-sdk/compiler-rt'\r\nmake[1]: Nothing to be done for `all'.\r\nmake[1]: Leaving directory `/root/sgx/rust-sgx-sdk/compiler-rt'\r\ncp ../../compiler-rt/libcompiler-rt-patch.a ./lib\r\nFuck Fucker\r\n./lib/libenclave.a(sgx_tstd-47265592e650a341.sgx_tstd2-8794749acdeababf8ded62cd435a787f.rs.rcgu.o): In function `__rg_alloc':\r\nsgx_tstd2-8794749acdeababf8ded62cd435a787f.rs:(.text.__rg_alloc+0x41): undefined reference to `posix_memalign'\r\n./lib/libenclave.a(sgx_tstd-47265592e650a341.sgx_tstd2-8794749acdeababf8ded62cd435a787f.rs.rcgu.o): In function `__rg_realloc':\r\nsgx_tstd2-8794749acdeababf8ded62cd435a787f.rs:(.text.__rg_realloc+0x83): undefined reference to `posix_memalign'\r\ncollect2: error: ld returned 1 exit status\r\n\r\n\r\n\r\nrust version:\r\n`rustc 1.26.0-nightly (392645394 2018-03-15)`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/baidu/rust-sgx-sdk/issues/comments/386521732","html_url":"https://github.com/baidu/rust-sgx-sdk/issues/15#issuecomment-386521732","issue_url":"https://api.github.com/repos/baidu/rust-sgx-sdk/issues/15","id":386521732,"user":{"login":"dingelish","id":1870436,"avatar_url":"https://avatars3.githubusercontent.com/u/1870436?v=4","gravatar_id":"","url":"https://api.github.com/users/dingelish","html_url":"https://github.com/dingelish","followers_url":"https://api.github.com/users/dingelish/followers","following_url":"https://api.github.com/users/dingelish/following{/other_user}","gists_url":"https://api.github.com/users/dingelish/gists{/gist_id}","starred_url":"https://api.github.com/users/dingelish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dingelish/subscriptions","organizations_url":"https://api.github.com/users/dingelish/orgs","repos_url":"https://api.github.com/users/dingelish/repos","events_url":"https://api.github.com/users/dingelish/events{/privacy}","received_events_url":"https://api.github.com/users/dingelish/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T07:12:12Z","updated_at":"2018-05-04T07:12:12Z","author_association":"COLLABORATOR","body":"grep 'USE_MALLOC_DEPRECATED' in the tlibc's source codes\r\nfor some reason Intel disabled some APIs in their sdk. maybe Intel believes some APIs should be deprecated."}}
{"actor":{"display_login":"dingelish"}}