{"action":"created","issue":{"url":"https://api.github.com/repos/openwrt/packages/issues/5310","repository_url":"https://api.github.com/repos/openwrt/packages","labels_url":"https://api.github.com/repos/openwrt/packages/issues/5310/labels{/name}","comments_url":"https://api.github.com/repos/openwrt/packages/issues/5310/comments","events_url":"https://api.github.com/repos/openwrt/packages/issues/5310/events","html_url":"https://github.com/openwrt/packages/issues/5310","id":283869903,"number":5310,"title":"ptyhon-2.7.14: Compile Python 2.7.14 error macOS 10.13.2 ","user":{"login":"kholisrag","id":4683704,"avatar_url":"https://avatars3.githubusercontent.com/u/4683704?v=4","gravatar_id":"","url":"https://api.github.com/users/kholisrag","html_url":"https://github.com/kholisrag","followers_url":"https://api.github.com/users/kholisrag/followers","following_url":"https://api.github.com/users/kholisrag/following{/other_user}","gists_url":"https://api.github.com/users/kholisrag/gists{/gist_id}","starred_url":"https://api.github.com/users/kholisrag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kholisrag/subscriptions","organizations_url":"https://api.github.com/users/kholisrag/orgs","repos_url":"https://api.github.com/users/kholisrag/repos","events_url":"https://api.github.com/users/kholisrag/events{/privacy}","received_events_url":"https://api.github.com/users/kholisrag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-21T12:40:11Z","updated_at":"2018-02-20T10:17:04Z","closed_at":null,"author_association":"NONE","body":"Maintainer: @commodo \r\nEnvironment: LEDE, branch master\r\nPackage: python2\r\nDescription:\r\nCompile for python 2.7.14 error macOS 10.13.2 High Sierra\r\n\r\nI'm using this tutorial for macos, brew and case-sensitive : https://wiki.openwrt.org/doc/howto/buildroot.exigence.macosx\r\n\r\nhere the terminal stderr: \r\n\r\n> (cd /Volumes/Lede/Lede/build_dir/hostpkg/Python-2.7.14/; if [ -x configure ]; then cp -fpR /Volumes/Lede/Lede/scripts/config.{guess,sub} /Volumes/Lede/Lede/build_dir/hostpkg/Python-2.7.14// && CC=\"gcc\" CFLAGS=\"-O2 -I/Volumes/Lede/Lede/staging_dir/host/include -I/Volumes/Lede/Lede/staging_dir/host/usr/include -I/Volumes/Lede/Lede/staging_dir/hostpkg/include -I/Volumes/Lede/Lede/staging_dir/target-mips_24kc_musl/host/include\" CPPFLAGS=\"-I/Volumes/Lede/Lede/staging_dir/host/include -I/Volumes/Lede/Lede/staging_dir/host/usr/include -I/Volumes/Lede/Lede/staging_dir/hostpkg/include -I/Volumes/Lede/Lede/staging_dir/target-mips_24kc_musl/host/include\" LDFLAGS=\"-L/Volumes/Lede/Lede/staging_dir/host/lib -L/Volumes/Lede/Lede/staging_dir/host/usr/lib -L/Volumes/Lede/Lede/staging_dir/hostpkg/lib -L/Volumes/Lede/Lede/staging_dir/target-mips_24kc_musl/host/lib -Wl,--no-as-needed -lrt $(pkg-config --static --libs libcrypto libssl)\" CONFIG_SHELL=\"/usr/bin/env bash\"  bash ./configure --target=x86_64-apple-darwin17.3.0 --host=x86_64-apple-darwin17.3.0 --build=x86_64-apple-darwin17.3.0 --program-prefix=\"\" --program-suffix=\"\" --prefix=/Volumes/Lede/Lede/staging_dir/hostpkg --exec-prefix=/Volumes/Lede/Lede/staging_dir/hostpkg --sysconfdir=/Volumes/Lede/Lede/staging_dir/hostpkg/etc --localstatedir=/Volumes/Lede/Lede/staging_dir/hostpkg/var --sbindir=/Volumes/Lede/Lede/staging_dir/hostpkg/bin --without-cxx-main --without-pymalloc --with-threads --prefix=/Volumes/Lede/Lede/staging_dir/hostpkg --exec-prefix=/Volumes/Lede/Lede/staging_dir/hostpkg --with-system-expat=/Volumes/Lede/Lede/staging_dir/hostpkg --with-system-ffi=no --with-ensurepip=install CONFIG_SITE= ; fi )\r\nchecking build system type... x86_64-apple-darwin17.3.0\r\nchecking host system type... x86_64-apple-darwin17.3.0\r\nchecking for python2.7... python2.7\r\nchecking for --enable-universalsdk... no\r\nchecking for --with-universal-archs... 32-bit\r\nchecking MACHDEP... darwin\r\nchecking EXTRAPLATDIR... $(PLATMACDIRS)\r\nchecking for --without-gcc... no\r\nchecking for --with-icc... no\r\nchecking for x86_64-apple-darwin17.3.0-gcc... gcc\r\nchecking whether the C compiler works... no\r\nconfigure: error: in `/Volumes/Lede/Lede/build_dir/hostpkg/Python-2.7.14':\r\nconfigure: error: C compiler cannot create executables\r\nSee `config.log' for more details\r\nmake[3]: *** [/Volumes/Lede/Lede/build_dir/hostpkg/Python-2.7.14/.configured] Error 77\r\nmake[3]: Leaving directory `/Volumes/Lede/Lede/feeds/packages/lang/python/python'\r\nmake[2]: *** [package/feeds/packages/python/python/host/compile] Error 2\r\nmake[2]: Leaving directory `/Volumes/Lede/Lede'\r\nmake[1]: *** [/Volumes/Lede/Lede/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2\r\nmake[1]: Leaving directory `/Volumes/Lede/Lede'\r\nmake: *** [world] Error 2\r\n\r\nthis is the log for complete detail...\r\n\r\n[config.log](https://github.com/openwrt/packages/files/1579195/config.log)\r\n\r\nThanks for the respond...\r\n"},"comment":{"url":"https://api.github.com/repos/openwrt/packages/issues/comments/366931195","html_url":"https://github.com/openwrt/packages/issues/5310#issuecomment-366931195","issue_url":"https://api.github.com/repos/openwrt/packages/issues/5310","id":366931195,"user":{"login":"jpc","id":107984,"avatar_url":"https://avatars2.githubusercontent.com/u/107984?v=4","gravatar_id":"","url":"https://api.github.com/users/jpc","html_url":"https://github.com/jpc","followers_url":"https://api.github.com/users/jpc/followers","following_url":"https://api.github.com/users/jpc/following{/other_user}","gists_url":"https://api.github.com/users/jpc/gists{/gist_id}","starred_url":"https://api.github.com/users/jpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpc/subscriptions","organizations_url":"https://api.github.com/users/jpc/orgs","repos_url":"https://api.github.com/users/jpc/repos","events_url":"https://api.github.com/users/jpc/events{/privacy}","received_events_url":"https://api.github.com/users/jpc/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T10:17:04Z","updated_at":"2018-02-20T10:17:04Z","author_association":"NONE","body":"This was caused by 1c54e2b0fbe2e9a7dfb050b45ff79a0f72b8582f which added `-Wl,--no-as-needed` to build flags on all platforms. This flag is not supported by the macOS linker.\r\nReverting that commit helps a bit but unfortunately I have further problems with the _ctypes module: #5638"}}
{"actor":{"display_login":"jpc"}}