{"action":"created","issue":{"url":"https://api.github.com/repos/python/cpython/issues/4184","repository_url":"https://api.github.com/repos/python/cpython","labels_url":"https://api.github.com/repos/python/cpython/issues/4184/labels{/name}","comments_url":"https://api.github.com/repos/python/cpython/issues/4184/comments","events_url":"https://api.github.com/repos/python/cpython/issues/4184/events","html_url":"https://github.com/python/cpython/pull/4184","id":269820598,"number":4184,"title":"bpo-31904 : Add support for VxWorks RTOS","user":{"login":"kuhlenough","id":4749722,"avatar_url":"https://avatars2.githubusercontent.com/u/4749722?v=4","gravatar_id":"","url":"https://api.github.com/users/kuhlenough","html_url":"https://github.com/kuhlenough","followers_url":"https://api.github.com/users/kuhlenough/followers","following_url":"https://api.github.com/users/kuhlenough/following{/other_user}","gists_url":"https://api.github.com/users/kuhlenough/gists{/gist_id}","starred_url":"https://api.github.com/users/kuhlenough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuhlenough/subscriptions","organizations_url":"https://api.github.com/users/kuhlenough/orgs","repos_url":"https://api.github.com/users/kuhlenough/repos","events_url":"https://api.github.com/users/kuhlenough/events{/privacy}","received_events_url":"https://api.github.com/users/kuhlenough/received_events","type":"User","site_admin":false},"labels":[{"id":666979821,"url":"https://api.github.com/repos/python/cpython/labels/awaiting%20review","name":"awaiting review","color":"fbca04","default":false},{"id":536945472,"url":"https://api.github.com/repos/python/cpython/labels/CLA%20signed","name":"CLA signed","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-31T03:13:37Z","updated_at":"2017-12-28T03:49:17Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/python/cpython/pulls/4184","html_url":"https://github.com/python/cpython/pull/4184","diff_url":"https://github.com/python/cpython/pull/4184.diff","patch_url":"https://github.com/python/cpython/pull/4184.patch"},"body":"This pull request enables cpython to cross-build on **VxWorks** (the world’s leading RTOS and the only interplanetary OS)   \r\n\r\nThis does not provide complete configuration of all target systems possible. It's assumed that the user is familiar with **automake** cross-builds and has called **./configure** with the appropriate environment (CFLAGS,LDFLAGS, CC,CCP, etc) and appropriate site.config and configuration arguments.   \r\n\r\nVxWorks 7 currently supports Intel, ARM and PowerPC processors running in 32bit and 64bit mode compiled with GCC, ICC, a llvm/clang variant, or Wind River’s Diab compiler. So the verification matrix is large and subsequent pull requests will address the various variants as they are validated.   \r\n\r\n\r\n--------------------------------------------------------------------------------------------------------------\r\nValidated with GCC 4.8.1.10 as provided with VxWorks 7 \r\n\r\n```\r\n. ./vxworks_env.sh && \\\r\n./configure --host=x86-wrs-vxworks --prefix=/yow-build40-lx1/bkuhl/workspace/vsbSim/usr/root \\\r\n--bindir=/yow-build40-lx1/bkuhl/workspace/vsbSim/usr/root/gnu/bin --includedir=/yow-build40-lx1/bkuhl/workspace/vsbSim/usr/h/public \\\r\n--libdir=/yow-build40-lx1/bkuhl/workspace/vsbSim/usr/lib/common  --build=i686-linux-gnu  --cache-file=config.vx.app --with-libm=no --with-ensurepip=no --with-suffix=.vxe\r\n```\r\n------------------------------------------------------------------------------------------------------------\r\n.. and an appropriate site.config\r\n```\r\n#! /bin/sh\r\n# config.vx.app - autoconf configuration file for VxWorks\r\n#\r\n# Copyright (c) 2017  Wind River Systems, Inc.\r\n#\r\n# This software is released under the terms of the \r\n# Python Software Foundation License Version 2\r\n# included in this repository in the LICENSE file\r\n# or at https://docs.python.org/3/license.html\r\n#\r\n# modification history\r\n# -------------------- \r\n# 23sep17,brk  create\r\n\t\r\n\r\n\t#defined in UNIX layer, but just a wrapper to select()\r\n\tac_cv_func_poll=no\r\n\t \r\n\t# forces define of PY_FORMAT_LONG_LONG (Python)\r\n\tac_cv_have_long_long_format=yes\r\n\r\n\t#Python wants these explicit when cross compiling\r\n\t\r\n\tac_cv_file__dev_ptmx=no\r\n\tac_cv_file__dev_ptc=no\r\n\t\r\n\tac_cv_buggy_getaddrinfo=no\r\n\t\r\n\tac_cv_func_gettimeofday=yes\r\n\t\r\n\t#ignore empty header in UNIX layer\r\n\tac_cv_header_langinfo_h=no\r\n\r\n        #avoid not finding pthread in various extra libs, \r\n        ac_cv_pthread_is_default=yes\r\n\r\n        #gcc fails to compile endian test\r\n        case $host in \r\n                 ppc*-vxworks )\r\n                        ac_cv_c_bigendian=yes ;;\r\n                 arm*-vxworks )\r\n                        ac_cv_c_bigendian=no ;;\r\n                 x86*-vxworks )\r\n                        ac_cv_c_bigendian=no ;;\r\n                 mips*-vxworks )\r\n                        ac_cv_c_bigendian=yes ;;\r\n        esac\r\n```\r\n\r\n\r\n<!-- issue-number: bpo-31904 -->\r\nhttps://bugs.python.org/issue31904\r\n<!-- /issue-number -->\r\n"},"comment":{"url":"https://api.github.com/repos/python/cpython/issues/comments/354223608","html_url":"https://github.com/python/cpython/pull/4184#issuecomment-354223608","issue_url":"https://api.github.com/repos/python/cpython/issues/4184","id":354223608,"user":{"login":"kuhlenough","id":4749722,"avatar_url":"https://avatars2.githubusercontent.com/u/4749722?v=4","gravatar_id":"","url":"https://api.github.com/users/kuhlenough","html_url":"https://github.com/kuhlenough","followers_url":"https://api.github.com/users/kuhlenough/followers","following_url":"https://api.github.com/users/kuhlenough/following{/other_user}","gists_url":"https://api.github.com/users/kuhlenough/gists{/gist_id}","starred_url":"https://api.github.com/users/kuhlenough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuhlenough/subscriptions","organizations_url":"https://api.github.com/users/kuhlenough/orgs","repos_url":"https://api.github.com/users/kuhlenough/repos","events_url":"https://api.github.com/users/kuhlenough/events{/privacy}","received_events_url":"https://api.github.com/users/kuhlenough/received_events","type":"User","site_admin":false},"created_at":"2017-12-28T03:49:17Z","updated_at":"2017-12-28T03:49:17Z","author_association":"NONE","body":"How do you get Travis to regenerate the **clinic** parameter **checksum** when your commit affects a file that uses clinic?  "}}
{"actor":{"display_login":"kuhlenough"}}