{"action":"created","issue":{"url":"https://api.github.com/repos/kripken/emscripten/issues/4561","repository_url":"https://api.github.com/repos/kripken/emscripten","labels_url":"https://api.github.com/repos/kripken/emscripten/issues/4561/labels{/name}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/4561/comments","events_url":"https://api.github.com/repos/kripken/emscripten/issues/4561/events","html_url":"https://github.com/kripken/emscripten/issues/4561","id":177367936,"number":4561,"title":"Can't configure erlang/otp, size of short/int/long/... == 0","user":{"login":"ivan","id":4458,"avatar_url":"https://avatars.githubusercontent.com/u/4458?v=3","gravatar_id":"","url":"https://api.github.com/users/ivan","html_url":"https://github.com/ivan","followers_url":"https://api.github.com/users/ivan/followers","following_url":"https://api.github.com/users/ivan/following{/other_user}","gists_url":"https://api.github.com/users/ivan/gists{/gist_id}","starred_url":"https://api.github.com/users/ivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivan/subscriptions","organizations_url":"https://api.github.com/users/ivan/orgs","repos_url":"https://api.github.com/users/ivan/repos","events_url":"https://api.github.com/users/ivan/events{/privacy}","received_events_url":"https://api.github.com/users/ivan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-16T08:12:46Z","updated_at":"2016-09-16T08:26:59Z","closed_at":null,"body":"When running under emconfigure, configuring [otp](https://github.com/erlang/otp) fails with:\r\n\r\n```\r\nchecking size of short... 0\r\nchecking size of int... 0\r\nchecking size of long... 0\r\nchecking size of long long... 0\r\nchecking size of __int128_t... 0\r\nconfigure: error: No 32-bit type found\r\n```\r\n\r\nThe checks in the top-level `configure` script work and output:\r\n\r\n```\r\nchecking size of short... 2\r\nchecking size of int... 4\r\nchecking size of long... 8\r\nchecking size of void *... 8\r\nchecking size of long long... 8\r\n```\r\n\r\nwhile the errors come from `erts/configure` script that `configure` calls.  I've tried running `erts/configure` by itself with `emconfigure` as well, but I see the same configure errors.\r\n\r\nRepro steps are:\r\n\r\n```\r\n# wget https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz\r\n# tar -xf emsdk-portable.tar.gz\r\n# cd emsdk_portable\r\n# ./emsdk install sdk-incoming-64bit\r\n# . ./emsdk_env.sh \r\nAdding directories to PATH:\r\nPATH += /home/build-otp/emsdk_portable\r\nPATH += /home/build-otp/emsdk_portable/clang/fastcomp/build_incoming_64/bin\r\nPATH += /home/build-otp/emsdk_portable/node/4.1.1_64bit/bin\r\nPATH += /home/build-otp/emsdk_portable/emscripten/incoming\r\n\r\nSetting environment variables:\r\nEM_CONFIG = /home/build-otp/.emscripten\r\nEMSCRIPTEN = /home/build-otp/emsdk_portable/emscripten/incoming\r\n\r\n# emsdk activate sdk-incoming-64bit\r\n\r\n# cd ~/\r\n# git clone -b master --depth=100 https://github.com/erlang/otp\r\n# cd otp\r\n# ./otp_build autoconf\r\n# emconfigure ./configure --without-termcap --without-javac --without-ssl --disable-threads --disable-smp-support --disable-kernel-poll --disable-sctp --disable-hipe\r\n```\r\n\r\nThis might be the same issue as #264, but I haven't found a workaround.  I see the same results when running emconfigure with `EMCONFIGURE_JS=1`, and there is no `-O20` (or similar) in the configure scripts.\r\n\r\nI also see the same with emscripten sdk-master-64bit and with the `maint` branch of otp.\r\n\r\nAny suggestions would be appreciated, because I don't know my way around autoconf and configure."},"comment":{"url":"https://api.github.com/repos/kripken/emscripten/issues/comments/247546004","html_url":"https://github.com/kripken/emscripten/issues/4561#issuecomment-247546004","issue_url":"https://api.github.com/repos/kripken/emscripten/issues/4561","id":247546004,"user":{"login":"ivan","id":4458,"avatar_url":"https://avatars.githubusercontent.com/u/4458?v=3","gravatar_id":"","url":"https://api.github.com/users/ivan","html_url":"https://github.com/ivan","followers_url":"https://api.github.com/users/ivan/followers","following_url":"https://api.github.com/users/ivan/following{/other_user}","gists_url":"https://api.github.com/users/ivan/gists{/gist_id}","starred_url":"https://api.github.com/users/ivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivan/subscriptions","organizations_url":"https://api.github.com/users/ivan/orgs","repos_url":"https://api.github.com/users/ivan/repos","events_url":"https://api.github.com/users/ivan/events{/privacy}","received_events_url":"https://api.github.com/users/ivan/received_events","type":"User","site_admin":false},"created_at":"2016-09-16T08:26:59Z","updated_at":"2016-09-16T08:26:59Z","body":"Possibly caused by a linker failure; I'll go investigate:\r\n\r\n```\r\nconfigure:9842: checking size of long\r\nconfigure:9847: /home/build-otp/emsdk_portable/emscripten/incoming/emcc -o conftest  -I/home/build-otp/otp/erts/x86_64-unknown-linux-gnu    -D_GNU_SOURCE  -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTI\r\nONS -D_GNU_SOURCE   conftest.c -lutil -linet -lm   -lpthread  -lrt >&5\r\n/usr/bin/ld: cannot find -linet\r\nclang-3.9: error: linker command failed with exit code 1 (use -v to see invocation)\r\nconfigure:9847: $? = 1\r\nconfigure: program exited with status 1\r\nconfigure: failed program was:\r\n[...]\r\nconfigure:9861: result: 0\r\n```"}}
{"actor":{"display_login":"ivan"}}