Skip to content

Instantly share code, notes, and snippets.

@WesternStar
Last active April 24, 2020 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WesternStar/4e0bf6de3ec01b66310f02d27f8c4c1e to your computer and use it in GitHub Desktop.
Save WesternStar/4e0bf6de3ec01b66310f02d27f8c4c1e to your computer and use it in GitHub Desktop.
perl Configure.pl --gen-moar -make-install --prefix ~/rakudo
Configuring and building MoarVM ...
/usr/bin/perl Configure.pl --optimize --prefix=/home/west/rakudo --make-install
Welcome to MoarVM!
Configuring native build environment ...................
trying to compile a simple C program ............... YES
probing support of -Werror=* ....................... YES
Testing pkgconfig .................................. 0.29.1
Adding extra include for libzstd: -I/usr/local/include
Adding extra libs for libzstd: -L/usr/local/lib
OK
probing whether your compiler thinks that it is gcc YES
probing how your compiler does static inline ....... static __inline__
your CPU can read unaligned values for all of int32 int64 num64
probing the size of pointers ....................... 8
probing C type support for: _Bool, bool ............ YES: _Bool,bool
probing computed goto support ...................... YES
probing pthread_yield support ...................... NO
probing existance of optional malloc_trim() ........ YES
probing support of rdtscp intrinsic ................ YES
make: make
compile: gcc -Wextra -Wall -Wno-unused-parameter -Wno-unused-function -Wno-missing-braces -Werror=pointer-arith -O3 -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DMVM_HEAPSNAPSHOT_FORMAT=3
includes: -I/usr/local/include -I3rdparty/libuv/include -I3rdparty/libuv/src -I3rdparty/libatomicops/src -I3rdparty/libtommath -I3rdparty/dyncall/dynload -I3rdparty/dyncall/dyncall -I3rdparty/dyncall/dyncallback
link: gcc -O3 -DNDEBUG -Wl,-rpath,"/@libdir@"
libs: -L/usr/local/lib -lm -lpthread -lrt -ldl -lzstd
byte order: little endian
Configuring 3rdparty libs .............................. OK
3rdparty: 3rdparty/cmp/libcmp.a
3rdparty/dyncall/dyncall/libdyncall_s.a
3rdparty/dyncall/dyncallback/libdyncallback_s.a
3rdparty/dyncall/dynload/libdynload_s.a
3rdparty/libatomicops/src/libatomic_ops.a
3rdparty/libtommath/libtommath.a
3rdparty/libuv/libuv.a
3rdparty/sha1/libsha1.a
3rdparty/tinymt/libtinymt.a
Generating src/gen/config.c ............................ OK
Generating src/gen/config.h ............................ OK
Generating Makefile .................................... OK
Generating tools/check.mk .............................. OK
Generating build/mk-moar-pc.pl ......................... OK
Configuration SUCCESS.
Type 'make' to build and 'make help' to see a list of
available make targets.
compiling src/main.o
compiling src/core/callsite.o
compiling src/core/args.o
compiling src/core/exceptions.o
compiling src/core/interp.o
src/core/interp.c: In function ‘MVM_interp_run’:
src/core/interp.c:142:16: warning: variable ‘backup_interp_cur_op’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
142 | MVMuint8 **backup_interp_cur_op = NULL;
| ^~~~~~~~~~~~~~~~~~~~
src/core/interp.c:143:16: warning: variable ‘backup_interp_bytecode_start’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
143 | MVMuint8 **backup_interp_bytecode_start = NULL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/interp.c:144:19: warning: variable ‘backup_interp_reg_base’ might be clobbered by ‘longjmp’ or ‘vfor ’ [-Wclobbered]
144 | MVMRegister **backup_interp_reg_base = NULL;
| ^~~~~~~~~~~~~~~~~~~~~~
src/core/interp.c:145:19: warning: variable ‘backup_interp_cu’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
145 | MVMCompUnit **backup_interp_cu = NULL;
| ^~~~~~~~~~~~~~~~
compiling src/core/threadcontext.o
compiling src/core/compunit.o
compiling src/core/bytecode.o
compiling src/core/frame.o
compiling src/core/callstack.o
compiling src/core/validation.o
compiling src/core/bytecodedump.o
compiling src/core/threads.o
compiling src/core/ops.o
compiling src/core/hll.o
compiling src/core/loadbytecode.o
compiling src/math/num.o
compiling src/math/grisu.o
compiling src/core/coerce.o
compiling src/core/dll.o
compiling src/core/ext.o
compiling src/core/nativecall.o
compiling src/core/nativecall_dyncall.o
compiling src/core/continuation.o
compiling src/core/intcache.o
compiling src/core/fixedsizealloc.o
compiling src/core/regionalloc.o
compiling src/debug/debugserver.o
compiling src/gen/config.o
compiling src/gc/orchestrate.o
compiling src/gc/allocation.o
compiling src/gc/worklist.o
compiling src/gc/roots.o
compiling src/gc/collect.o
compiling src/gc/gen2.o
compiling src/gc/wb.o
compiling src/gc/objectid.o
compiling src/gc/finalize.o
compiling src/gc/debug.o
compiling src/io/io.o
compiling src/io/eventloop.o
compiling src/io/syncfile.o
compiling src/io/syncsocket.o
compiling src/io/fileops.o
compiling src/io/dirops.o
compiling src/io/procops.o
compiling src/io/timers.o
compiling src/io/filewatchers.o
compiling src/io/signals.o
compiling src/io/asyncsocket.o
compiling src/io/asyncsocketudp.o
compiling src/6model/reprs.o
compiling src/6model/reprconv.o
compiling src/6model/containers.o
compiling src/6model/parametric.o
compiling src/6model/reprs/MVMString.o
compiling src/6model/reprs/VMArray.o
compiling src/6model/reprs/MVMHash.o
compiling src/6model/reprs/MVMCFunction.o
compiling src/6model/reprs/KnowHOWREPR.o
compiling src/6model/reprs/KnowHOWAttributeREPR.o
compiling src/6model/reprs/P6str.o
compiling src/6model/reprs/P6opaque.o
compiling src/6model/reprs/MVMCode.o
compiling src/6model/reprs/MVMOSHandle.o
compiling src/6model/reprs/MVMCompUnit.o
compiling src/6model/reprs/MVMStaticFrame.o
compiling src/6model/reprs/P6int.o
compiling src/6model/reprs/P6num.o
compiling src/6model/reprs/Uninstantiable.o
compiling src/6model/reprs/HashAttrStore.o
compiling src/6model/reprs/MVMThread.o
compiling src/6model/reprs/MVMIter.o
compiling src/6model/reprs/MVMContext.o
compiling src/6model/reprs/SCRef.o
compiling src/6model/reprs/MVMCallCapture.o
compiling src/6model/reprs/P6bigint.o
compiling src/6model/reprs/NFA.o
compiling src/6model/reprs/MVMException.o
compiling src/6model/reprs/MVMDLLSym.o
compiling src/6model/reprs/MVMMultiCache.o
compiling src/6model/reprs/MVMContinuation.o
compiling src/6model/reprs/NativeCall.o
compiling src/6model/reprs/CPointer.o
compiling src/6model/reprs/CStr.o
compiling src/6model/reprs/CArray.o
compiling src/6model/reprs/CStruct.o
compiling src/6model/reprs/CUnion.o
compiling src/6model/reprs/ReentrantMutex.o
compiling src/6model/reprs/ConditionVariable.o
compiling src/6model/reprs/Semaphore.o
compiling src/6model/reprs/ConcBlockingQueue.o
compiling src/6model/reprs/MVMAsyncTask.o
compiling src/6model/reprs/MVMNull.o
compiling src/6model/reprs/CPPStruct.o
compiling src/6model/reprs/NativeRef.o
compiling src/6model/reprs/MultiDimArray.o
compiling src/6model/reprs/Decoder.o
compiling src/6model/reprs/MVMSpeshLog.o
compiling src/6model/reprs/MVMStaticFrameSpesh.o
compiling src/6model/reprs/MVMSpeshPluginState.o
compiling src/6model/6model.o
compiling src/6model/bootstrap.o
compiling src/6model/sc.o
compiling src/6model/serialization.o
compiling src/spesh/dump.o
compiling src/spesh/graph.o
compiling src/spesh/codegen.o
compiling src/spesh/candidate.o
compiling src/spesh/manipulate.o
compiling src/spesh/args.o
compiling src/spesh/usages.o
compiling src/spesh/facts.o
compiling src/spesh/optimize.o
compiling src/spesh/dead_bb_elimination.o
compiling src/spesh/dead_ins_elimination.o
compiling src/spesh/deopt.o
compiling src/spesh/log.o
compiling src/spesh/threshold.o
compiling src/spesh/inline.o
compiling src/spesh/osr.o
compiling src/spesh/lookup.o
compiling src/spesh/iterator.o
compiling src/spesh/worker.o
compiling src/spesh/debug.o
compiling src/spesh/stats.o
compiling src/spesh/plan.o
compiling src/spesh/arg_guard.o
compiling src/spesh/plugin.o
compiling src/spesh/frame_walker.o
compiling src/spesh/pea.o
compiling src/strings/decode_stream.o
compiling src/strings/ascii.o
compiling src/strings/parse_num.o
compiling src/strings/utf8.o
compiling src/strings/utf8_c8.o
compiling src/strings/nfg.o
compiling src/strings/ops.o
compiling src/strings/unicode.o
compiling src/strings/normalize.o
compiling src/strings/latin1.o
compiling src/strings/utf16.o
compiling src/strings/windows1252.o
compiling src/strings/shiftjis.o
compiling src/strings/gb2312.o
compiling src/strings/gb18030.o
compiling src/math/bigintops.o
compiling src/profiler/instrument.o
compiling src/profiler/log.o
compiling src/profiler/profile.o
compiling src/profiler/heapsnapshot.o
src/profiler/heapsnapshot.c: In function ‘serialize_attribute_stream’:
src/profiler/heapsnapshot.c:867:5: error: unknown type name ‘ZSTD_CStream’
867 | ZSTD_CStream *cstream;
| ^~~~~~~~~~~~
src/profiler/heapsnapshot.c:869:22: warning: implicit declaration of function ‘ZSTD_CStreamOutSize’ [-Wimplicit-function-declaration]
869 | size_t outSize = ZSTD_CStreamOutSize();
| ^~~~~~~~~~~~~~~~~~~
src/profiler/heapsnapshot.c:871:5: error: unknown type name ‘ZSTD_outBuffer’
871 | ZSTD_outBuffer outbuf;
| ^~~~~~~~~~~~~~
src/profiler/heapsnapshot.c:884:11: error: request for member ‘dst’ in something not a structure or union
884 | outbuf.dst = out_buffer;
| ^
src/profiler/heapsnapshot.c:885:11: error: request for member ‘pos’ in something not a structure or union
885 | outbuf.pos = 0;
| ^
src/profiler/heapsnapshot.c:886:11: error: request for member ‘size’ in something not a structure or union
886 | outbuf.size = outSize;
| ^
src/profiler/heapsnapshot.c:888:15: warning: implicit declaration of function ‘ZSTD_createCStream’; did you mean ‘ZSTD_createCCtx’? [-Wimplicit-function-declaration]
888 | cstream = ZSTD_createCStream();
| ^~~~~~~~~~~~~~~~~~
| ZSTD_createCCtx
src/profiler/heapsnapshot.c:888:13: warning: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
888 | cstream = ZSTD_createCStream();
| ^
src/profiler/heapsnapshot.c:889:37: warning: implicit declaration of function ‘ZSTD_initCStream’ [-Wimplicit-function-declaration]
889 | if (ZSTD_isError(return_value = ZSTD_initCStream(cstream, ZSTD_COMPRESSION_VALUE))) {
| ^~~~~~~~~~~~~~~~
src/profiler/heapsnapshot.c:911:9: error: unknown type name ‘ZSTD_inBuffer’
911 | ZSTD_inBuffer inbuf;
| ^~~~~~~~~~~~~
src/profiler/heapsnapshot.c:913:14: error: request for member ‘src’ in something not a structure or union
913 | inbuf.src = pointer;
| ^
src/profiler/heapsnapshot.c:914:14: error: request for member ‘pos’ in something not a structure or union
914 | inbuf.pos = 0;
| ^
src/profiler/heapsnapshot.c:915:14: error: request for member ‘size’ in something not a structure or union
915 | inbuf.size = elem_size;
| ^
src/profiler/heapsnapshot.c:918:41: warning: implicit declaration of function ‘ZSTD_compressStream’; did you mean ‘ZSTD_compressCCtx’? [-Wimplicit-function-declaration]
918 | if (ZSTD_isError(return_value = ZSTD_compressStream(cstream, &outbuf, &inbuf))) {
| ^~~~~~~~~~~~~~~~~~~
| ZSTD_compressCCtx
src/profiler/heapsnapshot.c:922:19: error: request for member ‘pos’ in something not a structure or union
922 | if (outbuf.pos) {
| ^
src/profiler/heapsnapshot.c:923:36: error: request for member ‘dst’ in something not a structure or union
923 | written = fwrite(outbuf.dst, sizeof(char), outbuf.pos, fh);
| ^
src/profiler/heapsnapshot.c:923:62: error: request for member ‘pos’ in something not a structure or union
923 | en = fwrite(outbuf.dst, sizeof(char), outbuf.pos, fh);
| ^
src/profiler/heapsnapshot.c:925:19: error: request for member ‘pos’ in something not a structure or union
925 | outbuf.pos = 0;
| ^
src/profiler/heapsnapshot.c:935:41: warning: implicit declaration of function ‘ZSTD_endStream’ [-Wimplicit-function-declaration]
935 | if (ZSTD_isError(return_value = ZSTD_endStream(cstream, &outbuf))) {
| ^~~~~~~~~~~~~~
src/profiler/heapsnapshot.c:939:19: error: request for member ‘pos’ in something not a structure or union
939 | if (outbuf.pos) {
| ^
src/profiler/heapsnapshot.c:940:36: error: request for member ‘dst’ in something not a structure or union
940 | written = fwrite(outbuf.dst, sizeof(char), outbuf.pos, fh);
| ^
src/profiler/heapsnapshot.c:940:62: error: request for member ‘pos’ in something not a structure or union
940 | en = fwrite(outbuf.dst, sizeof(char), outbuf.pos, fh);
| ^
src/profiler/heapsnapshot.c:942:19: error: request for member ‘pos’ in something not a structure or union
942 | outbuf.pos = 0;
| ^
src/profiler/heapsnapshot.c:960:5: warning: implicit declaration of function ‘ZSTD_freeCStream’; did you mean ‘ZSTD_freeCCtx’? [-Wimplicit-function-declaration]
960 | ZSTD_freeCStream(cstream);
| ^~~~~~~~~~~~~~~~
| ZSTD_freeCCtx
src/profiler/heapsnapshot.c: In function ‘string_heap_to_filehandle_ver3’:
src/profiler/heapsnapshot.c:974:5: error: unknown type name ‘ZSTD_CStream’
974 | ZSTD_CStream *cstream;
| ^~~~~~~~~~~~
src/profiler/heapsnapshot.c:976:5: error: unknown type name ‘ZSTD_inBuffer’
976 | ZSTD_inBuffer inbuf;
| ^~~~~~~~~~~~~
src/profiler/heapsnapshot.c:977:5: error: unknown type name ‘ZSTD_outBuffer’
977 | ZSTD_outBuffer outbuf;
| ^~~~~~~~~~~~~~
src/profiler/heapsnapshot.c:1013:13: warning: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1013 | cstream = ZSTD_createCStream();
| ^
src/profiler/heapsnapshot.c:1019:10: error: request for member ‘src’ in something not a structure or union
1019 | inbuf.src = result_buffer;
| ^
src/profiler/heapsnapshot.c:1020:10: error: request for member ‘pos’ in something not a structure or union
1020 | inbuf.pos = 0;
| ^
src/profiler/heapsnapshot.c:1021:10: error: request for member ‘size’ in something not a structure or union
1021 | inbuf.size = result_buffer_insert_pos - result_buffer;
| ^
src/profiler/heapsnapshot.c:1026:11: error: request for member ‘dst’ in something not a structure or union
1026 | outbuf.dst = MVM_malloc(1024 * 10);
| ^
src/profiler/heapsnapshot.c:1028:17: error: request for member ‘pos’ in something not a structure or union
1028 | while (inbuf.pos < inbuf.size) {
| ^
src/profiler/heapsnapshot.c:1028:29: error: request for member ‘size’ in something not a structure or union
1028 | while (inbuf.pos < inbuf.size) {
| ^
src/profiler/heapsnapshot.c:1031:15: error: request for member ‘pos’ in something not a structure or union
1031 | outbuf.pos = 0;
| ^
src/profiler/heapsnapshot.c:1032:15: error: request for member ‘size’ in something not a structure or union
1032 | outbuf.size = 1024 * 10;
| ^
src/profiler/heapsnapshot.c:1040:14: error: request for member ‘src’ in something not a structure or union
1040 | inbuf.src = (char *)inbuf.src + inbuf.pos;
| ^
src/profiler/heapsnapshot.c:1040:34: error: request for member ‘src’ in something not a structure or union
1040 | inbuf.src = (char *)inbuf.src + inbuf.pos;
| ^
src/profiler/heapsnapshot.c:1040:46: error: request for member ‘pos’ in something not a structure or union
1040 | inbuf.src = (char *)inbuf.src + inbuf.pos;
| ^
src/profiler/heapsnapshot.c:1041:14: error: request for member ‘size’ in something not a structure or union
1041 | inbuf.size -= inbuf.pos;
| ^
src/profiler/heapsnapshot.c:1041:28: error: request for member ‘pos’ in something not a structure or union
1041 | inbuf.size -= inbuf.pos;
| ^
src/profiler/heapsnapshot.c:1042:14: error: request for member ‘pos’ in something not a structure or union
1042 | inbuf.pos = 0;
| ^
src/profiler/heapsnapshot.c:1044:32: error: request for member ‘pos’ in something not a structure or union
1044 | while (written < outbuf.pos) {
| ^
src/profiler/heapsnapshot.c:1045:45: error: request for member ‘dst’ in something not a structure or union
1045 | written += fwrite((char *)outbuf.dst + written, sizeof(char), outbuf.pos - written, fh);
| ^
src/profiler/heapsnapshot.c:1045:81: error: request for member ‘pos’ in something not a structure or union
1045 | .dst + written, sizeof(char), outbuf.pos - written, fh);
| ^
src/profiler/heapsnapshot.c:1048:15: error: request for member ‘pos’ in something not a structure or union
1048 | outbuf.pos = 0;
| ^
src/profiler/heapsnapshot.c:1056:22: error: request for member ‘dst’ in something not a structure or union
1056 | fwrite(outbuf.dst, sizeof(char), outbuf.pos, fh);
| ^
src/profiler/heapsnapshot.c:1056:48: error: request for member ‘pos’ in something not a structure or union
1056 | fwrite(outbuf.dst, sizeof(char), outbuf.pos, fh);
| ^
src/profiler/heapsnapshot.c:1058:15: error: request for member ‘pos’ in something not a structure or union
1058 | outbuf.pos = 0;
| ^
src/profiler/heapsnapshot.c:1078:20: error: request for member ‘dst’ in something not a structure or union
1078 | MVM_free(outbuf.dst);
| ^
make: *** [Makefile:660: src/profiler/heapsnapshot.o] Error 1
Command failed (status 512): /usr/bin/perl Configure.pl --optimize --prefix=/home/west/rakudo --make-install
west@west-ThinkPad-T450s:~/rakudo-star-2020.01$ perl -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment