{"action":"created","issue":{"url":"https://api.github.com/repos/ps2dev/ps2toolchain/issues/32","repository_url":"https://api.github.com/repos/ps2dev/ps2toolchain","labels_url":"https://api.github.com/repos/ps2dev/ps2toolchain/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/ps2dev/ps2toolchain/issues/32/comments","events_url":"https://api.github.com/repos/ps2dev/ps2toolchain/issues/32/events","html_url":"https://github.com/ps2dev/ps2toolchain/issues/32","id":272536814,"number":32,"title":"Issue compiling with OSX Sierra/High Sierra","user":{"login":"fjtrujy","id":10010409,"avatar_url":"https://avatars2.githubusercontent.com/u/10010409?v=4","gravatar_id":"","url":"https://api.github.com/users/fjtrujy","html_url":"https://github.com/fjtrujy","followers_url":"https://api.github.com/users/fjtrujy/followers","following_url":"https://api.github.com/users/fjtrujy/following{/other_user}","gists_url":"https://api.github.com/users/fjtrujy/gists{/gist_id}","starred_url":"https://api.github.com/users/fjtrujy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjtrujy/subscriptions","organizations_url":"https://api.github.com/users/fjtrujy/orgs","repos_url":"https://api.github.com/users/fjtrujy/repos","events_url":"https://api.github.com/users/fjtrujy/events{/privacy}","received_events_url":"https://api.github.com/users/fjtrujy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-11-09T11:51:05Z","updated_at":"2017-11-23T03:29:34Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nFirst of all, I say sorry if this question is stupid but I have been trying to solve it myself but there is no way, so for that reason I'm asking you, `the Masters` of the `PS2DEV`.\r\n\r\nI have been days trying to compile the `ps2toolchain` with my MacOS, but I'm stuck on this error:\r\n\r\n```\r\ngcc -DIN_GCC -DCROSS_COMPILE   -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  -o cc1plus \\\r\n\t      cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parse.o cp/ptree.o cp/rtti.o cp/spew.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-lang.o attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o  main.o libbackend.a libcpp.a ./intl/libintl.a  -liconv  ../libiberty/libiberty.a\r\nUndefined symbols for architecture x86_64:\r\n  \"_libc_name_p\", referenced from:\r\n      _nothrow_libfn_p in except.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\nmake[1]: *** [cc1plus] Error 1\r\nmake[1]: *** Waiting for unfinished jobs....\r\nmake: *** [all-gcc] Error 2\r\n../scripts/004-gcc-3.2.3-stage2.sh: Failed.\r\n```\r\n\r\nI have been looking through internet and I have seen people with similar issues, but none of the solutions that they proposed worked to me.\r\n\r\nHere you are more information about my current configuration\r\n\r\nFor instance in that case, I'm trying with \r\n\r\n```\r\nProductName:\tMac OS X\r\nProductVersion:\t10.12.6\r\nBuildVersion:\t16G1036\r\n```\r\n\r\n`gcc -v` returns:\r\n```\r\nConfigured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1\r\nApple LLVM version 9.0.0 (clang-900.0.38)\r\nTarget: x86_64-apple-darwin16.7.0\r\nThread model: posix\r\nInstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin\r\n```\r\n\r\n`make -v` returns:\r\n```\r\nGNU Make 3.81\r\nCopyright (C) 2006  Free Software Foundation, Inc.\r\nThis is free software; see the source for copying conditions.\r\nThere is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\r\nPARTICULAR PURPOSE.\r\n\r\nThis program built for i386-apple-darwin11.3.0\r\n```\r\n\r\n`patch -v` returns:\r\n```\r\npatch 2.5.8\r\nCopyright (C) 1988 Larry Wall\r\nCopyright (C) 2002 Free Software Foundation, Inc.\r\n\r\nThis program comes with NO WARRANTY, to the extent permitted by law.\r\nYou may redistribute copies of this program\r\nunder the terms of the GNU General Public License.\r\nFor more information about these matters, see the file named COPYING.\r\n\r\nwritten by Larry Wall and Paul Eggert\r\n```\r\n\r\nI have tried with `Sierra` and `High Sierra`, with `Case Sensitive` disk and `Case Insensitive` disk and it is always failing in the same step.\r\n\r\nHere you are the whole output.\r\n[output.log](https://github.com/ps2dev/ps2toolchain/files/1457460/output.log)\r\n\r\nWishing your quick response,\r\nThanks in advance.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ps2dev/ps2toolchain/issues/comments/346525280","html_url":"https://github.com/ps2dev/ps2toolchain/issues/32#issuecomment-346525280","issue_url":"https://api.github.com/repos/ps2dev/ps2toolchain/issues/32","id":346525280,"user":{"login":"uyjulian","id":1689374,"avatar_url":"https://avatars2.githubusercontent.com/u/1689374?v=4","gravatar_id":"","url":"https://api.github.com/users/uyjulian","html_url":"https://github.com/uyjulian","followers_url":"https://api.github.com/users/uyjulian/followers","following_url":"https://api.github.com/users/uyjulian/following{/other_user}","gists_url":"https://api.github.com/users/uyjulian/gists{/gist_id}","starred_url":"https://api.github.com/users/uyjulian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uyjulian/subscriptions","organizations_url":"https://api.github.com/users/uyjulian/orgs","repos_url":"https://api.github.com/users/uyjulian/repos","events_url":"https://api.github.com/users/uyjulian/events{/privacy}","received_events_url":"https://api.github.com/users/uyjulian/received_events","type":"User","site_admin":false},"created_at":"2017-11-23T03:29:34Z","updated_at":"2017-11-23T03:29:34Z","author_association":"CONTRIBUTOR","body":"I did some patch in `cp/except.c`; I don't remember exactly what I did (inline -> static?)"}}
{"actor":{"display_login":"uyjulian"}}