Skip to content

Instantly share code, notes, and snippets.

View advancedwebdeveloper's full-sized avatar

Yan Titarenko advancedwebdeveloper

View GitHub Profile
>cmake -G Ninja -DCMAKE_MAKE_PROGRAM=ninja -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_COMPILER=clang-cl -DCMAKE_C_FLAGS="-fms-compatibility-version=19.00 --target=i686--windows" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_CXX_FLAGS="-fms-compatibility-version=19.00 --target=i686--windows" -DLLVM_PATH="../../llvm-project-master/llvm-project-master/llvm" -DCMAKE_INSTALL_PREFIX="C:\Program Files\LLVM\lib\libcxx" -DLIBCXX_ENABLE_SHARED=YES -DLIBCXX_ENABLE_STATIC=NO -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=NO ../libcxx-10.0.0.src
-- The CXX compiler identification is Clang 10.0.0 with MSVC-like command-line
-- The C compiler identification is Clang 10.0.0 with MSVC-like command-line
-- Check for working CXX compiler: C:/Program Files/LLVM/bin/clang-cl.exe
-- Check for working CXX compiler: C:/Program Files/LLVM/bin/clang-cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: C:/Program
@advancedwebdeveloper
advancedwebdeveloper / gist:cadbdb9590bbd9bc936d2803c6cde91c
Created September 17, 2020 15:37
Bazel fails to build Envoy, cause of zlib's build bottleneck
~/envoy> ../bazelisk-linux-amd64 build -c opt //source/exe:envoy-static
Starting local Bazel server and connecting to it...
INFO: Analyzed target //source/exe:envoy-static (686 packages loaded, 23720 targets configured).
INFO: Found 1 target...
ERROR: /home/oceanfish81/.cache/bazel/_bazel_oceanfish81/576e593554943bd0e96fab8a5f10ec10/external/envoy/bazel/foreign_cc/BUILD:219:21: error executing shell command: '/bin/bash -c #!/usr/bin/env bash
function cleanup_function() {
local ecode=$?
if [ $ecode -eq 0 ]; then
cleanup_on_success
else
@advancedwebdeveloper
advancedwebdeveloper / gist:5f48ca20934f1f68d02487c931edd5cc
Created September 17, 2020 15:57
Python exec. is present - but not found
INFO: Analyzed target //source/exe:envoy-static (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
INFO: From CcCmakeMakeRule external/envoy/bazel/foreign_cc/zlib/include [for host]:
INFO: From Executing genrule @io_opentracing_cpp//:generate_version_h:
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is Clang 11.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
~/other_golang/gvisor$ go mod vendor
go: downloading github.com/containerd/fifo v0.0.0-20191213151349-ff969a566b00
go: downloading github.com/containerd/containerd v1.3.4
go: downloading golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd
go: downloading github.com/containerd/console v0.0.0-20191206165004-02ecf6a7291e
go: downloading golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
go: downloading github.com/containerd/go-runc v0.0.0-20200220073739-7016d3ce2328
go: downloading github.com/containerd/typeurl v0.0.0-20200205145503-b45ef1f1f737
go: downloading github.com/docker/docker v1.4.2-0.20191028175130-9e7d5ac5ea55
go: finding module for package gvisor.dev/gvisor/pkg/sentry/unimpl/unimplemented_syscall_go_proto
WORK=/tmp/go-build171770890
github.com/koblas/impalathing/services/fb303
mkdir -p $WORK/b038/
cd $WORK
/home/oceanfish81/gollvm_dist/bin/llvm-goc -fgo-importcfg=/dev/null -c -x c - -o /dev/null || true
github.com/koblas/impalathing/services/cli_service
mkdir -p $WORK/b038/_importcfgroot_/github.com/apache/thrift/lib/go
mkdir -p $WORK/b041/
ln -s /home/oceanfish81/go/pkg/gccgo_linux_amd64/github.com/apache/thrift/lib/go/libthrift.a $WORK/b038/_importcfgroot_/github.com/apache/thrift/lib/go/libthrift.a
cd /home/oceanfish81/go/src/github.com/koblas/impalathing/services/fb303
DIRS := \
. \
nl
DEPS = \
github.com/vishvananda/netns \
golang.org/x/sys/unix
uniq = $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1)))
testdirs = $(call uniq,$(foreach d,$(1),$(dir $(wildcard $(d)/*_test.go))))
service-catalog-cli/cmd/svcat$ go build -i -v -x
WORK=/tmp/go-build276252258
github.com/Azure/service-catalog-cli/vendor/k8s.io/apimachinery/pkg/util/net
mkdir -p $WORK/b053/
cd $WORK
/home/oceanfish81/gollvm_dist/bin/llvm-goc -fgo-importcfg=/dev/null -c -x c - -o /dev/null || true
mkdir -p $WORK/b053/_importcfgroot_/github.com/golang
mkdir -p $WORK/b053/_importcfgroot_/github.com/Azure/service-catalog-cli/vendor/github.com/golang
ln -s $WORK/b053/_importcfgroot_/github.com/Azure/service-catalog-cli/vendor/github.com/golang/libglog.a $WORK/b053/_importcfgroot_/github.com/golang/libglog.a
mkdir -p $WORK/b053/_importcfgroot_/golang.org/x/net
$ cargo test
Compiling openssl-sys v0.9.58
Compiling openssl v0.10.30
Compiling kube v0.42.0
Compiling kube-runtime v0.42.0
Compiling kubelet v0.5.0 (C:\Users\Worker\Desktop\krustlet\crates\kubelet)
Compiling wasi-provider v0.5.0 (C:\Users\Worker\Desktop\krustlet\crates\wasi-provider)
Compiling wascc-provider v0.5.0 (C:\Users\Worker\Desktop\krustlet\crates\wascc-provider)
Compiling krustlet v0.5.0 (C:\Users\Worker\Desktop\krustlet)
Finished test [unoptimized + debuginfo] target(s) in 2m 25s
@advancedwebdeveloper
advancedwebdeveloper / build.ninja
Created October 15, 2020 14:39
This file is generated by CMake 3.19, as an example of inproperly formed flags, for libc++
# CMAKE generated file: DO NOT EDIT!
# Generated by "Ninja" Generator, CMake Version 3.19
# This file contains all the build statements describing the
# compilation DAG.
# =============================================================================
# Write statements declared in CMakeLists.txt:
#
# Which is the root file.
$ make
rm -f bin/linux_amd64/kubelogin
go build -i -v -x -o bin/linux_amd64/kubelogin -ldflags "-X main.version=master/b9bbbd93e73dc3989f1384b151ea6cac317896a1 -X main.goVersion=go1.15.2 -X main.buildTime=2020-10-16T17:16:19Z"
WORK=/tmp/go-build256089896
go build: when using gccgo toolchain, please pass linker flags using -gccgoflags, not -ldflags
mkdir -p $WORK/b001/
cat >$WORK/b001/importcfg.link << 'EOF' # internal
packagefile github.com/Azure/kubelogin=/home/oceanfish81/.cache/go-build/77/777bdd204911da3bcca94c1fd765f69d718d78409e9c19df3f44b898771e0310-d
packagefile github.com/Azure/kubelogin/pkg/cmd=/home/oceanfish81/.cache/go-build/b3/b326ccbdf92ff42169966e33a434b1b2820d7f51df372fabce7bc91f30b075db-d
packagefile github.com/spf13/pflag=/home/oceanfish81/.cache/go-build/6f/6fb11ea5a9e79afd8938df4dce8693707a78f14a13ffa3feaa1f9e5c0ec17833-d