{"action":"created","comment":{"url":"https://api.github.com/repos/MariaDB/server/pulls/comments/61597162","id":61597162,"diff_hunk":"@@ -0,0 +1,62 @@\n+#!/usr/bin/ksh\n+\n+if [ \"$1\" = \"-c\" ] ; then\n+\tDO_CMAKE=1\n+fi\n+\n+\n+\n+export MALLOCALIGN=64\n+\n+export LANG=EN_US\n+export APPATH=\"/usr/local/itsvbuild/64\"\n+export INSTPATH=\"/usr/local/mariadb\"\n+export CC=xlc_r\n+export CXX=xlC_r\n+export OBJECT_MODE=64\n+export CFLAGS=\"-q64 -qmaxmem=-1 -qcpluscmt -DNDEBUG -DSYSV -D_AIX -D_AIX64 -D_AIX51 -D_AIX61 -D_AIX71 -DDBUG_OFF -D_ALL_SOURCE -DUNIX -O2\"\n+export CFLAGS=\"$CFLAGS -qarch=pwr7 -qtune=pwr7 -qcache=auto\"\n+# export CFLAGS=\"$CFLAGS -qalloca\"\n+export CFLAGS=\"$CFLAGS -Dalloca=__alloca -D_H_ALLOCA\"\n+export CFLAGS=\"$CFLAGS -qdirectstorage\"\n+export CFLAGS=\"$CFLAGS -qstaticinline\"\n+export CFLAGS=\"$CFLAGS -qnoproto\"\n+export CFLAGS=\"$CFLAGS -qobjmodel=ibm\"\n+export CFLAGS=\"$CFLAGS -qnokeepinlines\"\n+\n+# export CFLAGS=\"$CFLAGS -DFUNCPROTO=15\"\n+# export CFLAGS=\"$CFLAGS -DNO_CPLUSPLUS_ALLOCA\"\n+# export CFLAGS=\"$CFLAGS -qnamemangling=v5\"\n+# export CFLAGS=\"$CFLAGS -qnoguards\"\n+# export CFLAGS=\"$CFLAGS -qnoroconst\"\n+# export CFLAGS=\"$CFLAGS -qlanglvl=extended0x\"\n+\n+export CXXFLAGS=\"$CFLAGS\"\n+export CXXFLAGS=\"$CXXFLAGS -qlanglvl=extended0x\"\n+# export CXXFLAGS=\"$CXXFLAGS -qlanglvl=compatrvaluebinding\"\n+export CXXFLAGS=\"$CXXFLAGS -qnoweaksymbol\"\n+\n+export LDFLAGS=\"-L$APPATH/lib -L/opt/freeware/lib64 -L/opt/freeware/lib -Wl,-blibpath:$INSTPATH/lib:$APPATH/lib:/usr/lib:/lib -Wl,-b64 -Wl,-bexpall -Wl,-bexpfull -Wl,-bnoipath -Wl,-bbigtoc -Wl,-lxlsmp\"\n+# export LDFLAGS=\"$LDFLAGS -bmaxdata:0x80000000000\"\n+\n+export PATH=\"$APPATH/bin:$PATH\"\n+export LIBPATH=\"$APPATH/lib:/usr/lib:/lib:/opt/freeware/lib64:/opt/freeware/lib\"\n+export LD_LIBRARY_PATH=\"$APPATH/lib:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib\"\n+\n+\n+export CMAKE_ARGS=\"-DCMAKE_INSTALL_PREFIX=$INSTPATH -DWITH_UNIT_TESTS=OFF -DWITH_JEMALLOC=NO -DWITH_EXTRA_CHARSETS=complex -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_SSL=bundled -DWITH_WSREP=OFF \" \n+\n+\n+if [ \"$DO_CMAKE\" = \"1\" ] ; then\n+\tmake clean\n+\tsh BUILD/cleanup\n+\t/bin/rm -f CMakeCache.txt\n+\tfind $PWD -name CMakeFiles -exec rm -rf {} \\; 2>/dev/null\n+\tfind $PWD -name CMakeCache.txt -exec rm -rf {} \\; 2>/dev/null\n+#\tcmake . $CMAKE_ARGS || exit 1\n+#\t/usr/local/src/walzjo/cmake-3.4.3/bin/cmake . $CMAKE_ARGS || exit 1\n+\t/home/walzjo/source/cmake-3.5.2/bin/cmake . $CMAKE_ARGS || exit 1\n+fi\n+\n+\n+# gmake","path":"build_mariadb.sh","position":62,"original_position":62,"commit_id":"fccddf08d622eb56b565ecc8dd72f46f64c6ac7e","original_commit_id":"fccddf08d622eb56b565ecc8dd72f46f64c6ac7e","user":{"login":"vaintroub","id":1708204,"avatar_url":"https://avatars.githubusercontent.com/u/1708204?v=3","gravatar_id":"","url":"https://api.github.com/users/vaintroub","html_url":"https://github.com/vaintroub","followers_url":"https://api.github.com/users/vaintroub/followers","following_url":"https://api.github.com/users/vaintroub/following{/other_user}","gists_url":"https://api.github.com/users/vaintroub/gists{/gist_id}","starred_url":"https://api.github.com/users/vaintroub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaintroub/subscriptions","organizations_url":"https://api.github.com/users/vaintroub/orgs","repos_url":"https://api.github.com/users/vaintroub/repos","events_url":"https://api.github.com/users/vaintroub/events{/privacy}","received_events_url":"https://api.github.com/users/vaintroub/received_events","type":"User","site_admin":false},"body":"This should be done in cmake files. There is a dedicated OS specific hacks. In this case, it is cmake/os/AIX.cmake (it already contains some of the old workarounds for xlc). But please to not add non compiler specific hacks there (like, CMAKE_INSTALL_PREFIX). If you want to maintain a specific build configuration, the place is cmake/build_configurations","created_at":"2016-04-29T15:36:33Z","updated_at":"2016-04-29T15:36:33Z","html_url":"https://github.com/MariaDB/server/pull/171#discussion_r61597162","pull_request_url":"https://api.github.com/repos/MariaDB/server/pulls/171","_links":{"self":{"href":"https://api.github.com/repos/MariaDB/server/pulls/comments/61597162"},"html":{"href":"https://github.com/MariaDB/server/pull/171#discussion_r61597162"},"pull_request":{"href":"https://api.github.com/repos/MariaDB/server/pulls/171"}}},"pull_request":{"url":"https://api.github.com/repos/MariaDB/server/pulls/171","id":68337675,"html_url":"https://github.com/MariaDB/server/pull/171","diff_url":"https://github.com/MariaDB/server/pull/171.diff","patch_url":"https://github.com/MariaDB/server/pull/171.patch","issue_url":"https://api.github.com/repos/MariaDB/server/issues/171","number":171,"state":"open","locked":false,"title":"MDEV-8791 - AIX Changes","user":{"login":"flynn1973","id":14803546,"avatar_url":"https://avatars.githubusercontent.com/u/14803546?v=3","gravatar_id":"","url":"https://api.github.com/users/flynn1973","html_url":"https://github.com/flynn1973","followers_url":"https://api.github.com/users/flynn1973/followers","following_url":"https://api.github.com/users/flynn1973/following{/other_user}","gists_url":"https://api.github.com/users/flynn1973/gists{/gist_id}","starred_url":"https://api.github.com/users/flynn1973/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flynn1973/subscriptions","organizations_url":"https://api.github.com/users/flynn1973/orgs","repos_url":"https://api.github.com/users/flynn1973/repos","events_url":"https://api.github.com/users/flynn1973/events{/privacy}","received_events_url":"https://api.github.com/users/flynn1973/received_events","type":"User","site_admin":false},"body":"This should lead to a working AIX build with the IBM XLC compiler. Please review/discuss.\r\nRelated Issues: \r\nhttps://jira.mariadb.org/browse/MDEV-8791\r\nhttps://jira.mariadb.org/browse/MDEV-8721\r\nhttps://jira.mariadb.org/browse/MDEV-8119","created_at":"2016-04-29T08:17:28Z","updated_at":"2016-04-29T15:36:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a9b9f90a98ffc5f596f17d92f3a9a1360889e33","assignee":{"login":"janlindstrom","id":6338705,"avatar_url":"https://avatars.githubusercontent.com/u/6338705?v=3","gravatar_id":"","url":"https://api.github.com/users/janlindstrom","html_url":"https://github.com/janlindstrom","followers_url":"https://api.github.com/users/janlindstrom/followers","following_url":"https://api.github.com/users/janlindstrom/following{/other_user}","gists_url":"https://api.github.com/users/janlindstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/janlindstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janlindstrom/subscriptions","organizations_url":"https://api.github.com/users/janlindstrom/orgs","repos_url":"https://api.github.com/users/janlindstrom/repos","events_url":"https://api.github.com/users/janlindstrom/events{/privacy}","received_events_url":"https://api.github.com/users/janlindstrom/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/MariaDB/server/pulls/171/commits","review_comments_url":"https://api.github.com/repos/MariaDB/server/pulls/171/comments","review_comment_url":"https://api.github.com/repos/MariaDB/server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MariaDB/server/issues/171/comments","statuses_url":"https://api.github.com/repos/MariaDB/server/statuses/fccddf08d622eb56b565ecc8dd72f46f64c6ac7e","head":{"label":"flynn1973:10.1","ref":"10.1","sha":"fccddf08d622eb56b565ecc8dd72f46f64c6ac7e","user":{"login":"flynn1973","id":14803546,"avatar_url":"https://avatars.githubusercontent.com/u/14803546?v=3","gravatar_id":"","url":"https://api.github.com/users/flynn1973","html_url":"https://github.com/flynn1973","followers_url":"https://api.github.com/users/flynn1973/followers","following_url":"https://api.github.com/users/flynn1973/following{/other_user}","gists_url":"https://api.github.com/users/flynn1973/gists{/gist_id}","starred_url":"https://api.github.com/users/flynn1973/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flynn1973/subscriptions","organizations_url":"https://api.github.com/users/flynn1973/orgs","repos_url":"https://api.github.com/users/flynn1973/repos","events_url":"https://api.github.com/users/flynn1973/events{/privacy}","received_events_url":"https://api.github.com/users/flynn1973/received_events","type":"User","site_admin":false},"repo":{"id":57362194,"name":"mariadb-aix","full_name":"flynn1973/mariadb-aix","owner":{"login":"flynn1973","id":14803546,"avatar_url":"https://avatars.githubusercontent.com/u/14803546?v=3","gravatar_id":"","url":"https://api.github.com/users/flynn1973","html_url":"https://github.com/flynn1973","followers_url":"https://api.github.com/users/flynn1973/followers","following_url":"https://api.github.com/users/flynn1973/following{/other_user}","gists_url":"https://api.github.com/users/flynn1973/gists{/gist_id}","starred_url":"https://api.github.com/users/flynn1973/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flynn1973/subscriptions","organizations_url":"https://api.github.com/users/flynn1973/orgs","repos_url":"https://api.github.com/users/flynn1973/repos","events_url":"https://api.github.com/users/flynn1973/events{/privacy}","received_events_url":"https://api.github.com/users/flynn1973/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/flynn1973/mariadb-aix","description":"MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.","fork":true,"url":"https://api.github.com/repos/flynn1973/mariadb-aix","forks_url":"https://api.github.com/repos/flynn1973/mariadb-aix/forks","keys_url":"https://api.github.com/repos/flynn1973/mariadb-aix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flynn1973/mariadb-aix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flynn1973/mariadb-aix/teams","hooks_url":"https://api.github.com/repos/flynn1973/mariadb-aix/hooks","issue_events_url":"https://api.github.com/repos/flynn1973/mariadb-aix/issues/events{/number}","events_url":"https://api.github.com/repos/flynn1973/mariadb-aix/events","assignees_url":"https://api.github.com/repos/flynn1973/mariadb-aix/assignees{/user}","branches_url":"https://api.github.com/repos/flynn1973/mariadb-aix/branches{/branch}","tags_url":"https://api.github.com/repos/flynn1973/mariadb-aix/tags","blobs_url":"https://api.github.com/repos/flynn1973/mariadb-aix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flynn1973/mariadb-aix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flynn1973/mariadb-aix/git/refs{/sha}","trees_url":"https://api.github.com/repos/flynn1973/mariadb-aix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flynn1973/mariadb-aix/statuses/{sha}","languages_url":"https://api.github.com/repos/flynn1973/mariadb-aix/languages","stargazers_url":"https://api.github.com/repos/flynn1973/mariadb-aix/stargazers","contributors_url":"https://api.github.com/repos/flynn1973/mariadb-aix/contributors","subscribers_url":"https://api.github.com/repos/flynn1973/mariadb-aix/subscribers","subscription_url":"https://api.github.com/repos/flynn1973/mariadb-aix/subscription","commits_url":"https://api.github.com/repos/flynn1973/mariadb-aix/commits{/sha}","git_commits_url":"https://api.github.com/repos/flynn1973/mariadb-aix/git/commits{/sha}","comments_url":"https://api.github.com/repos/flynn1973/mariadb-aix/comments{/number}","issue_comment_url":"https://api.github.com/repos/flynn1973/mariadb-aix/issues/comments{/number}","contents_url":"https://api.github.com/repos/flynn1973/mariadb-aix/contents/{+path}","compare_url":"https://api.github.com/repos/flynn1973/mariadb-aix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flynn1973/mariadb-aix/merges","archive_url":"https://api.github.com/repos/flynn1973/mariadb-aix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flynn1973/mariadb-aix/downloads","issues_url":"https://api.github.com/repos/flynn1973/mariadb-aix/issues{/number}","pulls_url":"https://api.github.com/repos/flynn1973/mariadb-aix/pulls{/number}","milestones_url":"https://api.github.com/repos/flynn1973/mariadb-aix/milestones{/number}","notifications_url":"https://api.github.com/repos/flynn1973/mariadb-aix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flynn1973/mariadb-aix/labels{/name}","releases_url":"https://api.github.com/repos/flynn1973/mariadb-aix/releases{/id}","deployments_url":"https://api.github.com/repos/flynn1973/mariadb-aix/deployments","created_at":"2016-04-29T06:57:08Z","updated_at":"2016-04-29T06:58:55Z","pushed_at":"2016-04-29T07:45:27Z","git_url":"git://github.com/flynn1973/mariadb-aix.git","ssh_url":"git@github.com:flynn1973/mariadb-aix.git","clone_url":"https://github.com/flynn1973/mariadb-aix.git","svn_url":"https://github.com/flynn1973/mariadb-aix","homepage":"","size":460663,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"10.1"}},"base":{"label":"MariaDB:10.1","ref":"10.1","sha":"d5822a3ad0657040114cdc185c6387b9eb3a12b2","user":{"login":"MariaDB","id":4739304,"avatar_url":"https://avatars.githubusercontent.com/u/4739304?v=3","gravatar_id":"","url":"https://api.github.com/users/MariaDB","html_url":"https://github.com/MariaDB","followers_url":"https://api.github.com/users/MariaDB/followers","following_url":"https://api.github.com/users/MariaDB/following{/other_user}","gists_url":"https://api.github.com/users/MariaDB/gists{/gist_id}","starred_url":"https://api.github.com/users/MariaDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MariaDB/subscriptions","organizations_url":"https://api.github.com/users/MariaDB/orgs","repos_url":"https://api.github.com/users/MariaDB/repos","events_url":"https://api.github.com/users/MariaDB/events{/privacy}","received_events_url":"https://api.github.com/users/MariaDB/received_events","type":"Organization","site_admin":false},"repo":{"id":19816070,"name":"server","full_name":"MariaDB/server","owner":{"login":"MariaDB","id":4739304,"avatar_url":"https://avatars.githubusercontent.com/u/4739304?v=3","gravatar_id":"","url":"https://api.github.com/users/MariaDB","html_url":"https://github.com/MariaDB","followers_url":"https://api.github.com/users/MariaDB/followers","following_url":"https://api.github.com/users/MariaDB/following{/other_user}","gists_url":"https://api.github.com/users/MariaDB/gists{/gist_id}","starred_url":"https://api.github.com/users/MariaDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MariaDB/subscriptions","organizations_url":"https://api.github.com/users/MariaDB/orgs","repos_url":"https://api.github.com/users/MariaDB/repos","events_url":"https://api.github.com/users/MariaDB/events{/privacy}","received_events_url":"https://api.github.com/users/MariaDB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MariaDB/server","description":"MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.","fork":false,"url":"https://api.github.com/repos/MariaDB/server","forks_url":"https://api.github.com/repos/MariaDB/server/forks","keys_url":"https://api.github.com/repos/MariaDB/server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MariaDB/server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MariaDB/server/teams","hooks_url":"https://api.github.com/repos/MariaDB/server/hooks","issue_events_url":"https://api.github.com/repos/MariaDB/server/issues/events{/number}","events_url":"https://api.github.com/repos/MariaDB/server/events","assignees_url":"https://api.github.com/repos/MariaDB/server/assignees{/user}","branches_url":"https://api.github.com/repos/MariaDB/server/branches{/branch}","tags_url":"https://api.github.com/repos/MariaDB/server/tags","blobs_url":"https://api.github.com/repos/MariaDB/server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MariaDB/server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MariaDB/server/git/refs{/sha}","trees_url":"https://api.github.com/repos/MariaDB/server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MariaDB/server/statuses/{sha}","languages_url":"https://api.github.com/repos/MariaDB/server/languages","stargazers_url":"https://api.github.com/repos/MariaDB/server/stargazers","contributors_url":"https://api.github.com/repos/MariaDB/server/contributors","subscribers_url":"https://api.github.com/repos/MariaDB/server/subscribers","subscription_url":"https://api.github.com/repos/MariaDB/server/subscription","commits_url":"https://api.github.com/repos/MariaDB/server/commits{/sha}","git_commits_url":"https://api.github.com/repos/MariaDB/server/git/commits{/sha}","comments_url":"https://api.github.com/repos/MariaDB/server/comments{/number}","issue_comment_url":"https://api.github.com/repos/MariaDB/server/issues/comments{/number}","contents_url":"https://api.github.com/repos/MariaDB/server/contents/{+path}","compare_url":"https://api.github.com/repos/MariaDB/server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MariaDB/server/merges","archive_url":"https://api.github.com/repos/MariaDB/server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MariaDB/server/downloads","issues_url":"https://api.github.com/repos/MariaDB/server/issues{/number}","pulls_url":"https://api.github.com/repos/MariaDB/server/pulls{/number}","milestones_url":"https://api.github.com/repos/MariaDB/server/milestones{/number}","notifications_url":"https://api.github.com/repos/MariaDB/server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MariaDB/server/labels{/name}","releases_url":"https://api.github.com/repos/MariaDB/server/releases{/id}","deployments_url":"https://api.github.com/repos/MariaDB/server/deployments","created_at":"2014-05-15T10:58:50Z","updated_at":"2016-04-29T14:05:53Z","pushed_at":"2016-04-29T14:52:15Z","git_url":"git://github.com/MariaDB/server.git","ssh_url":"git@github.com:MariaDB/server.git","clone_url":"https://github.com/MariaDB/server.git","svn_url":"https://github.com/MariaDB/server","homepage":"","size":1037995,"stargazers_count":816,"watchers_count":816,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":257,"mirror_url":null,"open_issues_count":16,"forks":257,"open_issues":16,"watchers":816,"default_branch":"10.1"}},"_links":{"self":{"href":"https://api.github.com/repos/MariaDB/server/pulls/171"},"html":{"href":"https://github.com/MariaDB/server/pull/171"},"issue":{"href":"https://api.github.com/repos/MariaDB/server/issues/171"},"comments":{"href":"https://api.github.com/repos/MariaDB/server/issues/171/comments"},"review_comments":{"href":"https://api.github.com/repos/MariaDB/server/pulls/171/comments"},"review_comment":{"href":"https://api.github.com/repos/MariaDB/server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MariaDB/server/pulls/171/commits"},"statuses":{"href":"https://api.github.com/repos/MariaDB/server/statuses/fccddf08d622eb56b565ecc8dd72f46f64c6ac7e"}}}}