Skip to content

Instantly share code, notes, and snippets.

View wgaylord's full-sized avatar

William Gaylord wgaylord

View GitHub Profile
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveRangeEdit.cpp.o
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/CodeGen -I/data_pool/LLVM/llvm-project/llvm/lib/CodeGen -Iinclude -I/data_pool/LLVM/llvm-project/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fno-exceptions -fno-rtti -std=c++14 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveRangeEdit.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveRangeEdit.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveRangeEdit.cpp.o -c /data_pool/LLVM/llvm-project/llvm/lib/CodeGen/LiveRangeEdit.cpp
In file includ
@wgaylord
wgaylord / gist:55a4eac3e7755d712f9a61115101decc
Created December 19, 2020 15:37
ccpexample usermodule error
chibill@jwg1:/data_pool/micropython/project/micropython/ports/esp32$ make USER_C_MODULES=../../examples/usercmodule/ CFLAGS_EXTRA=-DMODULE_CPPEXAMPLE_ENABLED=1 all
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Including User C Module from ../../examples/usercmodule//cexample
Including User C Module from ../../examples/usercmodule//cppexample
Building with ESP IDF v4
GEN build-GENERIC/genhdr/qstr.i.last
In file included from ../../py/mpconfig.h:62,
from ../../py/mpstate.h:31,
from ../../py/runtime.h:29,
from ../../examples/usercmodule//cppexample/examplemodule.h:2,
chibill@jwg1:/data_pool/ESPRust/xtensa-rust-quickstart$ xargo build --features="xtensa-lx-rt/lx6 xtensa-lx/lx6 esp32-hal"
Downloaded void v1.0.2
Downloaded darling v0.10.2
Downloaded darling_core v0.10.2
Downloaded strsim v0.9.3
Downloaded nb v0.1.3
Downloaded ident_case v1.0.1
Downloaded vcell v0.1.2
Downloaded nb v1.0.0
Downloaded darling_macro v0.10.2
chibill@jwg1:/data_pool/ESPRust/xtensa-rust-quickstart$ xargo build
Compiling r0 v1.0.0
Compiling spin v0.5.2
Compiling mutex-trait v0.2.0
Compiling panic-halt v0.2.0
Compiling xtensa-lx-rt v0.5.0
Compiling rustc_version v0.2.3
Compiling proc-macro2 v1.0.24
error: failed to run custom build command for `xtensa-lx-rt v0.5.0`
@wgaylord
wgaylord / mytypes.py
Last active October 17, 2020 04:53
My hack to get chunks in 1.16.3
from quarry.types.buffer import Buffer
def unpack_chunk(buff):
x, z, full = buff.unpack('ii?') #Get chunk location and if its full
bitmask = buff.unpack_varint() #Bitmask of the chunk sections
heightmap = buff.unpack_nbt() #Get the heightmap?
biomeLength = 0
if full:
biomeLength = buff.unpack_varint() #Get biome length if full
[[4004, 256, 4, [0, 33, 1, 2, 3354, 4, 70, 10, 3886, 6, 69, 9670, 232], [286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286331153, 286335250, 286331169, 286331153, 287379729, 303239457, 286331153, 286331153, 554766610, 286339345, 555815441, 286331667, 286331409, 286331153, 286331409, 554767121, 554766609, 1092686129, 286331425, 286331411, 554766610, 287445265, 287445281, 554832149, 304156961, 286332177, 286331153, 287379729, 286331153, 554766865, 286396689, 286335521, 286331153, 308417041, 554770706, 286462241, 303174162, 303117073, 571543825, 554774817, 304156962, 286462257, 303174162, 555946801, 303174177, 287379729, 286396706, 286331153, 554770961, 1092686129, 303108385, 1091638803, 571609617, 304222481, 28
An error occurred while loading the file, which may indicate that it is invalid. A detailed error report is below:
TypeError: Cannot read property 'dayNumber' of undefined
TypeError: Cannot read property 'dayNumber' of undefined
at Function.Yr.addSeconds (https://cesium.com/cesiumjs/cesium-viewer/CesiumViewer.js:23:144569)
at tY (https://cesium.com/cesiumjs/cesium-viewer/CesiumViewer.js:23:1636077)
at rY (https://cesium.com/cesiumjs/cesium-viewer/CesiumViewer.js:23:1636199)
at oY.addSamplesPackedArray (https://cesium.com/cesiumjs/cesium-viewer/CesiumViewer.js:23:1641789)
at sY.addSamplesPackedArray (https://cesium.com/cesiumjs/cesium-viewer/CesiumViewer.js:23:1644485)
at YY (https://cesium.com/cesiumjs/cesium-viewer/CesiumViewer.js:23:1659496)
This file has been truncated, but you can view the full file.
[
{
"id": "document",
"name": "display",
"version": "1.0",
"clock": {
"interval": "0000-00-00T00:00:00Z/9999-12-31T24:00:00Z",
"step": "SYSTEM_CLOCK"
}
},
import re,sys
start = """
#include <stdio.h>
unsigned char memory[256];
unsigned char X;
"""
charInput = """
char Input(){
unsigned char t;
PS C:\Users\chibi\Desktop\CPP_Programming\PGEHelloWorld> g++ helloworld.cpp -o myProgram.exe -luser32 -lgdi32 -lopengl32 -lgdiplus -lShlwapi -lstdc++fs -std=c++17 >> error.log In file included from C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/filesystem:37,
from olcPixelGameEngine.h:270,
from helloworld.cpp:3:
C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h: In member function 'std::filesystem::__cxx11::path& std::filesystem::__cxx11::path::operator/=(const std::filesystem::__cxx11::path&)':
C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h:237:47: error: no match for 'operator!=' (operand types are 'std::filesystem::__cxx11::path' and 'std::filesystem::__cxx11::path')
|| (__p.has_roo