Skip to content

Instantly share code, notes, and snippets.

💭
:shipit:

William Lachance wlach

💭
:shipit:
Block or report user

Report or block wlach

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:01e8727f2aba66af613400156a3825ec
1
2
3
*** Reading local file: /app/logs/missioncontrol/missioncontrol_etl/2020-01-15T22:40:35/3.log
[2020-01-15 23:14:06,576] {models.py:1359} INFO - Dependencies all met for <TaskInstance: missioncontrol.missioncontrol_etl 2020-01-15T22:40:35.339783+00:00 [queued]>
[2020-01-15 23:14:06,579] {models.py:1359} INFO - Dependencies all met for <TaskInstance: missioncontrol.missioncontrol_etl 2020-01-15T22:40:35.339783+00:00 [queued]>
[2020-01-15 23:14:06,580] {models.py:1571} INFO -
--------------------------------------------------------------------------------
View buildf2c.sh
#!/bin/sh
# Based on http://hpc.sourceforge.net/buildf2c with curl replaced by wget
############################################################
# This UNIX script builds the f2c FORTRAN --> C translator #
# under Mac OS X. #
View buildf2c.sh
#!/bin/sh
############################################################
# This UNIX script builds the f2c FORTRAN --> C translator #
# under Mac OS X. #
# Make this script executable with "chmod +x buildf2c" #
View gist:c72498a875772b37778e946a54b0d286
(module
(type (;0;) (func (param i32 i32 i32) (result i32)))
(type (;1;) (func (param i32) (result i32)))
(type (;2;) (func (param i32)))
(type (;3;) (func (param i32 i32) (result i32)))
(type (;4;) (func (result i32)))
(type (;5;) (func (param i32 i32)))
(type (;6;) (func))
(type (;7;) (func (param i32 i32 i32 i32) (result i32)))
(import "env" "abortStackOverflow" (func (;0;) (type 2)))
View gist:fc26467202b69a7e6d7714564925b2d2
f2c: source not found, skipping: gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops -print-libgcc-file-name
Traceback (most recent call last):
File "/Users/wlach/src/pyodide-native-mac/cpython/build/3.7.0/host/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/Users/wlach/src/pyodide-native-mac/cpython/build/3.7.0/host/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/wlach/src/pyodide-native-mac/pyodide_build/__main__.py", line 32, in <module>
main()
File "/Users/wlach/src/pyodide-native-mac/pyodide_build/__main__.py", line 26, in main
args.func(args)
View gist:7338f76c78939f08f91df7fd31e7f1b8
diff --git a/cpython/Makefile b/cpython/Makefile
index 357d152..72ae284 100644
--- a/cpython/Makefile
+++ b/cpython/Makefile
@@ -6,6 +6,8 @@ ROOT=$(abspath .)
HOSTINSTALL=$(ROOT)/build/$(PYVERSION)/host
HOSTBUILD=$(HOSTINSTALL)/Python-$(PYVERSION)
HOSTPYTHON=$(HOSTINSTALL)/bin/python3$(EXE)
+HOSTPYTHON_CPPFLAGS="-I/usr/local/opt/openssl/include"
+HOSTPYTHON_LDFLAGS="-L/usr/local/opt/openssl/lib"
View gist:ac1dda9ddc5c128f439fd43e39f6a9fe
/src/emsdk/emsdk/emscripten/tag-1.38.30/emcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -I. -I./Include -I/src/cpython/build/sqlite-autoconf-3270200 -I/src/cpython/build/bzip2-1.0.2 -I -c ./Modules/_sqlite/cache.c -o Modules/cache.o
./Modules/_sqlite/cache.c:260:9: error: use of undeclared identifier 'MODULE_NAME'
MODULE_NAME "Node", /* tp_name */
^
./Modules/_sqlite/cache.c:302:9: error: use of undeclared identifier 'MODULE_NAME'
MODULE_NAME ".Cache", /* tp_name */
^
2 errors generated.
shared:ERROR: compiler frontend failed to generate LLVM bitcode, halting
Makefile:1851: recipe for target 'Modules/cache.o' failed
View gist:6ce457c1d26b548d3d9a8f650538c715
root@c258949061a4:/src# make
emcc -o src/main.bc -c src/main.c -O3 -g -I/src/cpython/installs/python-3.7.0/include/python3.7 -Wno-warn-absolute-paths
ccache: error: Could not find compiler "emcc" in PATH
Makefile:153: recipe for target 'src/main.bc' failed
make: *** [src/main.bc] Error 1
View error
Hammersmith:ingestion-beam wlach$ ./bin/mvn compile exec:java -Dexec.args="\
--inputType=heka \
--input=1567279450_36_ip-172-31-23-39.gz \
--outputFileFormat=text \
--outputType=stdout \
> "
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
View gist:30988b55c1b99b15e09371d4975866f0
Hammersmith:ingestion-beam wlach$ ./bin/mvn compile exec:java -Dexec.args="\
--inputType=heka \
--input=ingestion-beam/tmp/cheezburger.bad.heka \
--outputFileFormat=text \
--outputType=stdout \
--errorOutputType=stderr"
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
You can’t perform that action at this time.