Skip to content

Instantly share code, notes, and snippets.

@wiggin15
wiggin15 / gist:12900e64a3dd5711cd3a05f1f975825d
Last active February 24, 2020 10:24
zsh commit 50df0e0bb compilation on AIX 7.1
# ./Util/preconfig && CC="gcc -maix64" ./configure && make
cd . && ./.preconfig
configuring for zsh 5.8.0.1-dev
checking build system type... powerpc-ibm-aix7.1.5.0
checking host system type... powerpc-ibm-aix7.1.5.0
checking for gcc... gcc -maix64
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
@wiggin15
wiggin15 / gist:4e6e0f256fd4e616dcac3c884f86bd80
Created February 24, 2020 10:17
zsh commit 50df0e0bb compilation on AIX 7.1
# autoreconf --install && CC="gcc -maix64" ./configure && make
configuring for zsh 5.8.0.1-dev
checking build system type... powerpc-ibm-aix7.1.5.0
checking host system type... powerpc-ibm-aix7.1.5.0
checking for gcc... gcc -maix64
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
@wiggin15
wiggin15 / gist:ebcd239f7a858ed09ac54d23e188e279
Last active January 9, 2019 09:43
Solaris build of PyNaCl 1.3.0
root@host-ci037 (SunOS 5.11) ➜ ~ wget https://files.pythonhosted.org/packages/61/ab/2ac6dea8489fa713e2b4c6c5b549cc962dd4a842b5998d9e80cf8440b7cd/PyNaCl-1.3.0.tar.gz
--2019-01-09 09:18:58-- https://files.pythonhosted.org/packages/61/ab/2ac6dea8489fa713e2b4c6c5b549cc962dd4a842b5998d9e80cf8440b7cd/PyNaCl-1.3.0.tar.gz
Resolving files.pythonhosted.org (files.pythonhosted.org)... 151.101.113.63, 2a04:4e42:1b::319
Connecting to files.pythonhosted.org (files.pythonhosted.org)|151.101.113.63|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3351016 (3.2M) [binary/octet-stream]
Saving to: ‘PyNaCl-1.3.0.tar.gz’
100%[====================================================================================================================================================================================================================================>] 3,351,016 2.10MB/s in 1.5s
root@host-vplinux06 (Redhat 7.3) ➜ greenlet git:(master) python setup.py install
running install
running build
running build_ext
building 'greenlet' extension
gcc -pthread -fno-strict-aliasing -I/root/python/include -I/root/python/include/gnutls -I/root/python/include/graphviz -I/root/python/include/libexslt -I/root/python/include/libxml2 -I/root/python/include/libxslt -I/root/python/include/ncurses -I/root/python/include/openssl -I/root/python/include/readline -I/root/python/include/sasl -I/root/python/lib64/libffi-3.2.1/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/python/include/python2.7 -c greenlet.c -o build/temp.linux-ppc64-2.7/greenlet.o
In file included from slp_platformselect.h:16:0,
from greenlet.c:343:
platform/switch_ppc64_linux.h: In function ‘slp_switch’:
platform/switch_ppc64_linux.h:80:5: error: PIC register clobbered by ‘r30’ in ‘asm’
@wiggin15
wiggin15 / a.c
Created July 29, 2018 12:08
vm_region_recurse_64 / proc_regionfilename
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <libproc.h>
#include <mach/mach.h>
#include <CoreFoundation/CoreFoundation.h>
int main(void)
{
➜ ./smc
Num: b0=0 b1=0 b2=2 b3=3b size=4
#KEY [ui32] 59 (bytes 00 00 02 3b)
$Adr [ui32] 0 (bytes 00 00 03 00)
$Num [ui8 ] 1 (bytes 01)
+LKS [flag] (bytes 01)
ACCL [ui8 ] 2 (bytes 02)
ACEN [ui8 ] 1 (bytes 01)
ACFP [flag] (bytes 01)
ACIC [ui16] 128 (bytes 0d 80)
@wiggin15
wiggin15 / gist:d1054f0a4a172a572dd610aad649dfa7
Created September 14, 2017 15:10
psutil aix test results
root@host-vaix09 (AIX 7.2) > psutil make test 17-09-14 17:58
make install
make[1]: Entering directory '/root/psutil'
make build
make[2]: Entering directory '/root/psutil'
# make sure setuptools is installed (needed for 'develop' / edit mode)
python -c "import setuptools"
PYTHONWARNINGS=all python setup.py build
running build
running build_py
@wiggin15
wiggin15 / gist:1d76d1dc1ad50e6665fe4dc5c6fa898a
Created September 12, 2017 09:56
psutil aix test results
root@host-vaix07 (AIX 7.2) > psutil python setup.py test
running test
Searching for ipaddress
Reading https://pypi.infinidat.com/simple/ipaddress/
Downloading https://pypi.infinidat.com/media/dists/ipaddress-1.0.18.tar.gz#md5=310c2dfd64eb6f0df44aa8c59f2334a7
Best match: ipaddress 1.0.18
Processing ipaddress-1.0.18.tar.gz
Writing /tmp/easy_install-6VwFKk/ipaddress-1.0.18/setup.cfg
Running ipaddress-1.0.18/setup.py -q bdist_egg --dist-dir /tmp/easy_install-6VwFKk/ipaddress-1.0.18/egg-dist-tmp-FflYxX
zip_safe flag not set; analyzing archive contents...
@wiggin15
wiggin15 / gist:52ecddd4a9729ca187fe2ac76bb39c2a
Created September 5, 2017 08:29
psutil nosetest output
root@host-vaix01 (AIX 7.1) > psutil git:(aix) * python setup.py test
running test
Searching for ipaddress
Best match: ipaddress 1.0.18
Processing ipaddress-1.0.18-py2.7.egg
Using /root/psutil/.eggs/ipaddress-1.0.18-py2.7.egg
running egg_info
writing requirements to psutil.egg-info/requires.txt
writing psutil.egg-info/PKG-INFO
root@host-vaix01 (AIX 7.1) > psutil git:(aix) make test
python setup.py build
running build
running build_py
running build_ext
python setup.py build_ext -i
running build_ext
copying build/lib.aix-7.1-2.7/psutil/_psutil_aix.so -> psutil
copying build/lib.aix-7.1-2.7/psutil/_psutil_posix.so -> psutil
rm -rf tmp