Created
January 31, 2019 19:09
-
-
Save mortdeus/2a5b9708e08ec4a8df6ab070b6f41203 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to Cloud Shell! Type "help" to get started. | |
Your Cloud Platform project in this session is set to spring-nova-229819. | |
Use “gcloud config set project [PROJECT_ID]” to change to a different project. | |
mortdeus@cloudshell:~ (spring-nova-229819)$ go test | |
can't load package: package .: no Go files in /home/mortdeus | |
mortdeus@cloudshell:~ (spring-nova-229819)$ sudo apt-get install libgmp-dev libssl-dev | |
******************************************************************************** | |
You are running apt-get inside of Cloud Shell. Note that your Cloud Shell | |
machine is ephemeral and no system-wide change will persist beyond session end. | |
You can customize your environment to permanently include this package by | |
updating your environment at https://cloud.google.com/console/cloudshell/environment/view. | |
******************************************************************************** | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
libssl-dev is already the newest version (1.1.0j-1~deb9u1). | |
Suggested packages: | |
gmp-doc libgmp10-doc libmpfr-dev | |
The following NEW packages will be installed: | |
libgmp-dev libgmpxx4ldbl | |
0 upgraded, 2 newly installed, 0 to remove and 14 not upgraded. | |
Need to get 653 kB of archives. | |
After this operation, 1,971 kB of additional disk space will be used. | |
Get:1 http://deb.debian.org/debian stretch/main amd64 libgmpxx4ldbl amd64 2:6.1.2+dfsg-1 [22.2 kB] | |
Get:2 http://deb.debian.org/debian stretch/main amd64 libgmp-dev amd64 2:6.1.2+dfsg-1 [631 kB] | |
Fetched 653 kB in 0s (6,841 kB/s) | |
ldebconf: delaying package configuration, since apt-utils is not installed | |
Selecting previously unselected package libgmpxx4ldbl:amd64. | |
(Reading database ... 46599 files and directories currently installed.) | |
Preparing to unpack .../libgmpxx4ldbl_2%3a6.1.2+dfsg-1_amd64.deb ... | |
Unpacking libgmpxx4ldbl:amd64 (2:6.1.2+dfsg-1) ... | |
Selecting previously unselected package libgmp-dev:amd64. | |
Preparing to unpack .../libgmp-dev_2%3a6.1.2+dfsg-1_amd64.deb ... | |
Unpacking libgmp-dev:amd64 (2:6.1.2+dfsg-1) ... | |
Processing triggers for libc-bin (2.24-11+deb9u3) ... | |
Setting up libgmpxx4ldbl:amd64 (2:6.1.2+dfsg-1) ... | |
Setting up libgmp-dev:amd64 (2:6.1.2+dfsg-1) ... | |
Processing triggers for libc-bin (2.24-11+deb9u3) ... | |
mortdeus@cloudshell:~ (spring-nova-229819)$ ls | |
a.out bin gopath include lib README-cloudshell.txt share work | |
mortdeus@cloudshell:~ (spring-nova-229819)$ cd work/ | |
mortdeus@cloudshell:~/work (spring-nova-229819)$ ls | |
bls mcl | |
mortdeus@cloudshell:~/work (spring-nova-229819)$ cd mcl/ | |
mortdeus@cloudshell:~/work/mcl (spring-nova-229819)$ ls | |
bench.txt CMakeLists.txt common.props debug.props include Makefile misc mklib.bat readme.md result.txt setvar.bat test | |
bin common.mk COPYRIGHT ffi lib mcl.sln mk.bat obj release.props sample src | |
mortdeus@cloudshell:~/work/mcl (spring-nova-229819)$ make install | |
mkdir -p /usr/local/include/mcl | |
mkdir: cannot create directory ‘/usr/local/include/mcl’: Permission denied | |
Makefile:345: recipe for target 'install' failed | |
make: *** [install] Error 1 | |
mortdeus@cloudshell:~/work/mcl (spring-nova-229819)$ sudo make install | |
mkdir -p /usr/local/include/mcl | |
cp -a include/mcl/ /usr/local/include/ | |
cp -a include/cybozu/ /usr/local/include/ | |
mkdir -p /usr/local/lib | |
cp -a lib/libmcl.a lib/libmcl.so /usr/local/lib/ | |
mortdeus@cloudshell:~/work/mcl (spring-nova-229819)$ cd ../ | |
bls/ mcl/ | |
mortdeus@cloudshell:~/work/mcl (spring-nova-229819)$ cd ../bls/ | |
mortdeus@cloudshell:~/work/bls (spring-nova-229819)$ ls | |
bin bls_smpl.py common.props ffi lib mk.bat mklib.bat readme.md result.txt setvar.bat test | |
bls.sln CMakeLists.txt debug.props include Makefile mkdll.bat obj release.props sample src | |
mortdeus@cloudshell:~/work/bls (spring-nova-229819)$ vim | |
mortdeus@cloudshell:~/work/bls (spring-nova-229819)$ vim re | |
readme.md release.props result.txt | |
mortdeus@cloudshell:~/work/bls (spring-nova-229819)$ vim readme.md | |
mortdeus@cloudshell:~/work/bls (spring-nova-229819)$ BLS_SWAP_G=1 make go_test_swap | |
make: *** No rule to make target 'go_test_swap'. Stop. | |
mortdeus@cloudshell:~/work/bls (spring-nova-229819)$ BLS_SWAP_G=1 make test_go_swap | |
make test_go256 | |
make[1]: Entering directory '/home/mortdeus/work/bls' | |
cd ffi/go/bls && env PATH=$PATH:"../../../lib:../../../../mcl/lib" LD_LIBRARY_PATH="../../../lib:../../../../mcl/lib" DYLD_LIBRARY_PATH="../../../lib:../../../../mcl/lib" CGO_LDFLAGS="-L../../../lib" CGO_CFLAGS="-I/home/mortdeus/work/bls/include -I/home/mortdeus/work/bls/../mcl/include" go test -tags bn256 . | |
# _/home/mortdeus/work/bls/ffi/go/bls | |
In file included from /home/mortdeus/work/bls/include/bls/bls.h:9:0, | |
from bls.go:15, | |
home/mortdeus/work/bls/../mcl/include/mcl/bn.h:18:0: warning: "MCLBN_COMPILED_TIME_VAR" redefined | |
#define MCLBN_COMPILED_TIME_VAR ((MCLBN_FR_UNIT_SIZE) * 10 + (MCLBN_FP_UNIT_SIZE)) | |
<command-line>:0:0: note: this is the location of the previous definition | |
# _/home/mortdeus/work/bls/ffi/go/bls | |
In file included from /home/mortdeus/work/bls/include/bls/bls.h:9:0, | |
from ./bls.go:15: | |
/home/mortdeus/work/bls/../mcl/include/mcl/bn.h:18:0: warning: "MCLBN_COMPILED_TIME_VAR" redefined | |
#define MCLBN_COMPILED_TIME_VAR ((MCLBN_FR_UNIT_SIZE) * 10 + (MCLBN_FP_UNIT_SIZE)) | |
<command-line>:0:0: note: this is the location of the previous definition | |
# _/home/mortdeus/work/bls/ffi/go/bls | |
In file included from /home/mortdeus/work/bls/include/bls/bls.h:9:0, | |
from ./gdef.go:16: | |
/home/mortdeus/work/bls/../mcl/include/mcl/bn.h:18:0: warning: "MCLBN_COMPILED_TIME_VAR" redefined | |
#define MCLBN_COMPILED_TIME_VAR ((MCLBN_FR_UNIT_SIZE) * 10 + (MCLBN_FP_UNIT_SIZE)) | |
<command-line>:0:0: note: this is the location of the previous definition | |
# _/home/mortdeus/work/bls/ffi/go/bls | |
In file included from ./mcl.go:9:0: | |
/home/mortdeus/work/bls/../mcl/include/mcl/bn.h:18:0: warning: "MCLBN_COMPILED_TIME_VAR" redefined | |
#define MCLBN_COMPILED_TIME_VAR ((MCLBN_FR_UNIT_SIZE) * 10 + (MCLBN_FP_UNIT_SIZE)) | |
<command-line>:0:0: note: this is the location of the previous definition | |
--- FAIL: TestMain (0.00s) | |
bls_test.go:512: GetMaxOpUnitSize() = 4 | |
bls_test.go:513: curve = 1 | |
bls_test.go:490: ERR Init curve=0 | |
FAIL | |
FAIL _/home/mortdeus/work/bls/ffi/go/bls 0.012s | |
Makefile:121: recipe for target 'test_go256' failed | |
make[1]: *** [test_go256] Error 1 | |
make[1]: Leaving directory '/home/mortdeus/work/bls' | |
Makefile:138: recipe for target 'test_go_swap' failed | |
make: *** [test_go_swap] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment