Mercurial > hg > Members > anatofuz > MoarVM
changeset 43:f750745c94ab
add CbCLLVMMakefile
author | anatofuz |
---|---|
date | Fri, 30 Nov 2018 14:07:07 +0900 |
parents | dc42e7eb1adf |
children | 47f12bb731b8 |
files | 3rdparty/libatomicops/config.log 3rdparty/libatomicops/config.status CbCLLVMMakefile src/core/cbc-interp.cbc |
diffstat | 4 files changed, 851 insertions(+), 117 deletions(-) [+] |
line wrap: on
line diff
--- a/3rdparty/libatomicops/config.log Thu Nov 29 19:43:32 2018 +0900 +++ b/3rdparty/libatomicops/config.log Fri Nov 30 14:07:07 2018 +0900 @@ -28,6 +28,8 @@ /bin/universe = unknown PATH: /mnt/dalmore-home/one/src/kuji-baito2018/anaconda3/bin +PATH: /mnt/dalmore-home/one/src/cross/bin +PATH: /usr/local/x86-cbc/bin PATH: /mnt/dalmore-home//one/bin PATH: /usr/local/cuda/bin PATH: /Library/Developer/CommandLineTools/usr/bin @@ -67,87 +69,88 @@ configure:2858: checking for style of include used by make configure:2886: result: GNU configure:2957: checking for gcc -configure:2984: result: /usr/local/x86-cbc/bin/gcc +configure:2984: result: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang configure:3213: checking for C compiler version -configure:3222: /usr/local/x86-cbc/bin/gcc --version >&5 -gcc (GCC) 8.0.0 20171027 (experimental) -Copyright (C) 2017 Free Software Foundation, Inc. -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - +configure:3222: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang --version >&5 +clang version 7.0.0 +Target: x86_64-unknown-linux-gnu +Thread model: posix +InstalledDir: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin configure:3233: $? = 0 -configure:3222: /usr/local/x86-cbc/bin/gcc -v >&5 -Using built-in specs. -COLLECT_GCC=/usr/local/x86-cbc/bin/gcc -COLLECT_LTO_WRAPPER=/usr/local/x86-cbc/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper -Target: x86_64-pc-linux-gnu -Configured with: /mnt/dalmore-home//one/src/CbC_gcc/configure --prefix=/usr/local/x86-cbc --disable-nls --disable-bootstrap --enable-languages=c --enable-checking=tree,rtl,assert,types +configure:3222: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -v >&5 +clang version 7.0.0 +Target: x86_64-unknown-linux-gnu Thread model: posix -gcc version 8.0.0 20171027 (experimental) (GCC) +InstalledDir: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin +Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.2 +Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5 +Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5 +Candidate multilib: .;@m64 +Candidate multilib: 32;@m32 +Selected multilib: .;@m64 +... rest of stderr output deleted ... configure:3233: $? = 0 -configure:3222: /usr/local/x86-cbc/bin/gcc -V >&5 -gcc: error: unrecognized command line option '-V' -gcc: fatal error: no input files -compilation terminated. +configure:3222: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -V >&5 +clang-7.0: error: argument to '-V' is missing (expected 1 value) +clang-7.0: error: no input files configure:3233: $? = 1 -configure:3222: /usr/local/x86-cbc/bin/gcc -qversion >&5 -gcc: error: unrecognized command line option '-qversion'; did you mean '--version'? -gcc: fatal error: no input files -compilation terminated. +configure:3222: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -qversion >&5 +clang-7.0: error: unknown argument '-qversion', did you mean '--version'? +clang-7.0: error: no input files configure:3233: $? = 1 configure:3253: checking whether the C compiler works -configure:3275: /usr/local/x86-cbc/bin/gcc -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:3275: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:3279: $? = 0 configure:3327: result: yes configure:3330: checking for C compiler default output file name configure:3332: result: a.out configure:3338: checking for suffix of executables -configure:3345: /usr/local/x86-cbc/bin/gcc -o conftest -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:3345: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -o conftest -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:3349: $? = 0 configure:3371: result: configure:3393: checking whether we are cross compiling -configure:3401: /usr/local/x86-cbc/bin/gcc -o conftest -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:3401: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -o conftest -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:3405: $? = 0 configure:3412: ./conftest configure:3416: $? = 0 configure:3431: result: no configure:3436: checking for suffix of object files -configure:3458: /usr/local/x86-cbc/bin/gcc -c -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:3458: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:3462: $? = 0 configure:3483: result: o configure:3487: checking whether we are using the GNU C compiler -configure:3506: /usr/local/x86-cbc/bin/gcc -c -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:3506: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:3506: $? = 0 configure:3515: result: yes -configure:3524: checking whether /usr/local/x86-cbc/bin/gcc accepts -g -configure:3544: /usr/local/x86-cbc/bin/gcc -c -g conftest.c >&5 +configure:3524: checking whether /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang accepts -g +configure:3544: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -g conftest.c >&5 configure:3544: $? = 0 configure:3585: result: yes -configure:3602: checking for /usr/local/x86-cbc/bin/gcc option to accept ISO C89 -configure:3665: /usr/local/x86-cbc/bin/gcc -c -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:3602: checking for /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang option to accept ISO C89 +configure:3665: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:3665: $? = 0 configure:3678: result: none needed -configure:3703: checking whether /usr/local/x86-cbc/bin/gcc understands -c and -o together -configure:3725: /usr/local/x86-cbc/bin/gcc -c conftest.c -o conftest2.o +configure:3703: checking whether /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang understands -c and -o together +configure:3725: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c conftest.c -o conftest2.o configure:3728: $? = 0 -configure:3725: /usr/local/x86-cbc/bin/gcc -c conftest.c -o conftest2.o +configure:3725: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c conftest.c -o conftest2.o configure:3728: $? = 0 configure:3740: result: yes -configure:3759: checking dependency style of /usr/local/x86-cbc/bin/gcc -configure:3870: result: gcc3 -configure:3895: checking dependency style of /usr/local/x86-cbc/bin/gcc -configure:4004: result: gcc3 +configure:3759: checking dependency style of /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang +configure:3870: result: none +configure:3895: checking dependency style of /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang +configure:4004: result: none configure:4062: checking for ranlib configure:4078: found /usr/bin/ranlib configure:4089: result: ranlib configure:4119: checking how to run the C preprocessor -configure:4150: /usr/local/x86-cbc/bin/gcc -E conftest.c +configure:4150: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -E conftest.c configure:4150: $? = 0 -configure:4164: /usr/local/x86-cbc/bin/gcc -E conftest.c -conftest.c:11:10: fatal error: ac_nonexistent.h: No such file or directory - #include <ac_nonexistent.h> - ^~~~~~~~~~~~~~~~~~ -compilation terminated. +configure:4164: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -E conftest.c +conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found +#include <ac_nonexistent.h> + ^~~~~~~~~~~~~~~~~~ +1 error generated. configure:4164: $? = 1 configure: failed program was: | /* confdefs.h */ @@ -161,14 +164,14 @@ | #define VERSION "7.3alpha3" | /* end confdefs.h. */ | #include <ac_nonexistent.h> -configure:4189: result: /usr/local/x86-cbc/bin/gcc -E -configure:4209: /usr/local/x86-cbc/bin/gcc -E conftest.c +configure:4189: result: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -E +configure:4209: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -E conftest.c configure:4209: $? = 0 -configure:4223: /usr/local/x86-cbc/bin/gcc -E conftest.c -conftest.c:11:10: fatal error: ac_nonexistent.h: No such file or directory - #include <ac_nonexistent.h> - ^~~~~~~~~~~~~~~~~~ -compilation terminated. +configure:4223: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -E conftest.c +conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found +#include <ac_nonexistent.h> + ^~~~~~~~~~~~~~~~~~ +1 error generated. configure:4223: $? = 1 configure: failed program was: | /* confdefs.h */ @@ -187,47 +190,47 @@ configure:4315: checking for egrep configure:4377: result: /usr/bin/grep -E configure:4382: checking for ANSI C header files -configure:4402: /usr/local/x86-cbc/bin/gcc -c -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:4402: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:4402: $? = 0 -configure:4475: /usr/local/x86-cbc/bin/gcc -o conftest -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:4475: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -o conftest -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:4475: $? = 0 configure:4475: ./conftest configure:4475: $? = 0 configure:4486: result: yes configure:4499: checking for sys/types.h -configure:4499: /usr/local/x86-cbc/bin/gcc -c -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:4499: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:4499: $? = 0 configure:4499: result: yes configure:4499: checking for sys/stat.h -configure:4499: /usr/local/x86-cbc/bin/gcc -c -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:4499: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:4499: $? = 0 configure:4499: result: yes configure:4499: checking for stdlib.h -configure:4499: /usr/local/x86-cbc/bin/gcc -c -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:4499: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:4499: $? = 0 configure:4499: result: yes configure:4499: checking for string.h -configure:4499: /usr/local/x86-cbc/bin/gcc -c -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:4499: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:4499: $? = 0 configure:4499: result: yes configure:4499: checking for memory.h -configure:4499: /usr/local/x86-cbc/bin/gcc -c -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:4499: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:4499: $? = 0 configure:4499: result: yes configure:4499: checking for strings.h -configure:4499: /usr/local/x86-cbc/bin/gcc -c -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:4499: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:4499: $? = 0 configure:4499: result: yes configure:4499: checking for inttypes.h -configure:4499: /usr/local/x86-cbc/bin/gcc -c -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:4499: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:4499: $? = 0 configure:4499: result: yes configure:4499: checking for stdint.h -configure:4499: /usr/local/x86-cbc/bin/gcc -c -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:4499: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:4499: $? = 0 configure:4499: result: yes configure:4499: checking for unistd.h -configure:4499: /usr/local/x86-cbc/bin/gcc -c -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:4499: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:4499: $? = 0 configure:4499: result: yes configure:4517: checking for stdlib.h @@ -235,15 +238,15 @@ configure:4517: checking for unistd.h configure:4517: result: yes configure:4517: checking for sys/param.h -configure:4517: /usr/local/x86-cbc/bin/gcc -c -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:4517: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:4517: $? = 0 configure:4517: result: yes configure:4537: checking for getpagesize -configure:4537: /usr/local/x86-cbc/bin/gcc -o conftest -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:4537: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -o conftest -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:4537: $? = 0 configure:4537: result: yes configure:4546: checking for working mmap -configure:4693: /usr/local/x86-cbc/bin/gcc -o conftest -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:4693: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -o conftest -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:4693: $? = 0 configure:4693: ./conftest configure:4693: $? = 0 @@ -251,15 +254,15 @@ configure:4716: checking for PIC compiler flag configure:4726: result: -fPIC configure:4729: checking whether gcc -fPIC causes __PIC__ definition -configure:4749: /usr/local/x86-cbc/bin/gcc -c -fPIC -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:4749: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -fPIC -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:4749: $? = 0 configure:4756: result: yes configure:4767: checking for gcc -Wextra -configure:4782: /usr/local/x86-cbc/bin/gcc -c -Wextra -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 +configure:4782: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -c -Wextra -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c >&5 configure:4782: $? = 0 configure:4789: result: yes configure:4869: checking for pthread_self in -lpthread -configure:4894: /usr/local/x86-cbc/bin/gcc -o conftest -Wall -Wextra -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c -lpthread >&5 +configure:4894: /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -o conftest -Wall -Wextra -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1 conftest.c -lpthread >&5 configure:4894: $? = 0 configure:4903: result: yes configure:5072: checking that generated files are newer than configure @@ -299,9 +302,9 @@ ac_cv_env_CCAS_set= ac_cv_env_CCAS_value= ac_cv_env_CC_set=set -ac_cv_env_CC_value=/usr/local/x86-cbc/bin/gcc +ac_cv_env_CC_value=/mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang ac_cv_env_CFLAGS_set=set -ac_cv_env_CFLAGS_value='-Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1' +ac_cv_env_CFLAGS_value='-fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1' ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= @@ -338,15 +341,15 @@ ac_cv_path_mkdir=/usr/bin/mkdir ac_cv_pic_macro=yes ac_cv_prog_AWK=gawk -ac_cv_prog_CPP='/usr/local/x86-cbc/bin/gcc -E' -ac_cv_prog_ac_ct_CC=/usr/local/x86-cbc/bin/gcc +ac_cv_prog_CPP='/mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -E' +ac_cv_prog_ac_ct_CC=/mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_cc_c89= ac_cv_prog_cc_g=yes ac_cv_prog_make_make_set=yes ac_cv_target=x86_64-unknown-linux-gnu -am_cv_CCAS_dependencies_compiler_type=gcc3 -am_cv_CC_dependencies_compiler_type=gcc3 +am_cv_CCAS_dependencies_compiler_type=none +am_cv_CC_dependencies_compiler_type=none am_cv_make_support_nested_variables=yes am_cv_prog_cc_c_o=yes @@ -354,7 +357,7 @@ ## Output variables. ## ## ----------------- ## -ACLOCAL='${SHELL} /mnt/dalmore-home/one/src/Perl6/MoarVM/3rdparty/libatomicops/missing aclocal-1.14' +ACLOCAL='${SHELL} /mnt/dalmore-home/one/src/Perl6/llvm/MoarVM/3rdparty/libatomicops/missing aclocal-1.14' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' @@ -363,17 +366,17 @@ AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_V='$(V)' -AUTOCONF='${SHELL} /mnt/dalmore-home/one/src/Perl6/MoarVM/3rdparty/libatomicops/missing autoconf' -AUTOHEADER='${SHELL} /mnt/dalmore-home/one/src/Perl6/MoarVM/3rdparty/libatomicops/missing autoheader' -AUTOMAKE='${SHELL} /mnt/dalmore-home/one/src/Perl6/MoarVM/3rdparty/libatomicops/missing automake-1.14' +AUTOCONF='${SHELL} /mnt/dalmore-home/one/src/Perl6/llvm/MoarVM/3rdparty/libatomicops/missing autoconf' +AUTOHEADER='${SHELL} /mnt/dalmore-home/one/src/Perl6/llvm/MoarVM/3rdparty/libatomicops/missing autoheader' +AUTOMAKE='${SHELL} /mnt/dalmore-home/one/src/Perl6/llvm/MoarVM/3rdparty/libatomicops/missing automake-1.14' AWK='gawk' -CC='/usr/local/x86-cbc/bin/gcc' -CCAS='/usr/local/x86-cbc/bin/gcc' -CCASDEPMODE='depmode=gcc3' -CCASFLAGS='-Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1' -CCDEPMODE='depmode=gcc3' -CFLAGS='-Wall -Wextra -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1' -CPP='/usr/local/x86-cbc/bin/gcc -E' +CC='/mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang' +CCAS='/mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang' +CCASDEPMODE='depmode=none' +CCASFLAGS='-fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1' +CCDEPMODE='depmode=none' +CFLAGS='-Wall -Wextra -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1' +CPP='/mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -E' CPPFLAGS='' CYGPATH_W='echo' DEFS='-DHAVE_CONFIG_H' @@ -397,7 +400,7 @@ MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' -MAKEINFO='${SHELL} /mnt/dalmore-home/one/src/Perl6/MoarVM/3rdparty/libatomicops/missing makeinfo' +MAKEINFO='${SHELL} /mnt/dalmore-home/one/src/Perl6/llvm/MoarVM/3rdparty/libatomicops/missing makeinfo' MKDIR_P='/usr/bin/mkdir -p' NEED_ASM_FALSE='' NEED_ASM_TRUE='#' @@ -417,13 +420,13 @@ STRIP='' THREADDLLIBS='-lpthread' VERSION='7.3alpha3' -ac_ct_CC='/usr/local/x86-cbc/bin/gcc' +ac_ct_CC='/mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='#' -am__fastdepCCAS_FALSE='#' -am__fastdepCCAS_TRUE='' -am__fastdepCC_FALSE='#' -am__fastdepCC_TRUE='' +am__fastdepCCAS_FALSE='' +am__fastdepCCAS_TRUE='#' +am__fastdepCC_FALSE='' +am__fastdepCC_TRUE='#' am__include='include' am__isrc='' am__leading_dot='.' @@ -450,7 +453,7 @@ htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' -install_sh='${SHELL} /mnt/dalmore-home/one/src/Perl6/MoarVM/3rdparty/libatomicops/install-sh' +install_sh='${SHELL} /mnt/dalmore-home/one/src/Perl6/llvm/MoarVM/3rdparty/libatomicops/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale'
--- a/3rdparty/libatomicops/config.status Thu Nov 29 19:43:32 2018 +0900 +++ b/3rdparty/libatomicops/config.status Fri Nov 30 14:07:07 2018 +0900 @@ -427,7 +427,7 @@ Report bugs to <gc@linux.hpl.hp.com>." -ac_cs_config="'CC=/usr/local/x86-cbc/bin/gcc' 'CFLAGS=-Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1'" +ac_cs_config="'CC=/mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang' 'CFLAGS=-fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1'" ac_cs_version="\ libatomic_ops config.status 7.3alpha3 configured by ./configure, generated by GNU Autoconf 2.69, @@ -437,7 +437,7 @@ This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." -ac_pwd='/mnt/dalmore-home/one/src/Perl6/MoarVM/3rdparty/libatomicops' +ac_pwd='/mnt/dalmore-home/one/src/Perl6/llvm/MoarVM/3rdparty/libatomicops' srcdir='.' INSTALL='/usr/bin/install -c' MKDIR_P='/usr/bin/mkdir -p' @@ -519,7 +519,7 @@ fi if $ac_cs_recheck; then - set X /bin/sh './configure' 'CC=/usr/local/x86-cbc/bin/gcc' 'CFLAGS=-Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1' $ac_configure_extra_args --no-create --no-recursion + set X /bin/sh './configure' 'CC=/mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang' 'CFLAGS=-fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1' $ac_configure_extra_args --no-create --no-recursion shift $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6 CONFIG_SHELL='/bin/sh' @@ -542,7 +542,7 @@ AMDEP_TRUE="" ac_aux_dir="." PICFLAG="-fPIC" -CC="/usr/local/x86-cbc/bin/gcc" +CC="/mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang" DEFS="-DHAVE_CONFIG_H" @@ -632,17 +632,17 @@ S["PICFLAG"]="-fPIC" S["EGREP"]="/usr/bin/grep -E" S["GREP"]="/usr/bin/grep" -S["CPP"]="/usr/local/x86-cbc/bin/gcc -E" +S["CPP"]="/mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang -E" S["RANLIB"]="ranlib" -S["am__fastdepCCAS_FALSE"]="#" -S["am__fastdepCCAS_TRUE"]="" -S["CCASDEPMODE"]="depmode=gcc3" -S["CCASFLAGS"]="-Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO"\ -"=1 -DMVM_RDTSCP=1" -S["CCAS"]="/usr/local/x86-cbc/bin/gcc" -S["am__fastdepCC_FALSE"]="#" -S["am__fastdepCC_TRUE"]="" -S["CCDEPMODE"]="depmode=gcc3" +S["am__fastdepCCAS_FALSE"]="" +S["am__fastdepCCAS_TRUE"]="#" +S["CCASDEPMODE"]="depmode=none" +S["CCASFLAGS"]="-fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMVM_CGOTO=1 -DMV"\ +"M_RDTSCP=1" +S["CCAS"]="/mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang" +S["am__fastdepCC_FALSE"]="" +S["am__fastdepCC_TRUE"]="#" +S["CCDEPMODE"]="depmode=none" S["am__nodep"]="_no" S["AMDEPBACKSLASH"]="\\" S["AMDEP_FALSE"]="#" @@ -652,12 +652,12 @@ S["DEPDIR"]=".deps" S["OBJEXT"]="o" S["EXEEXT"]="" -S["ac_ct_CC"]="/usr/local/x86-cbc/bin/gcc" +S["ac_ct_CC"]="/mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang" S["CPPFLAGS"]="" S["LDFLAGS"]="" -S["CFLAGS"]="-Wall -Wextra -Werror=declaration-after-statement -Werror=pointer-arith -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING"\ -"=0 -DMVM_CGOTO=1 -DMVM_RDTSCP=1" -S["CC"]="/usr/local/x86-cbc/bin/gcc" +S["CFLAGS"]="-Wall -Wextra -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=0 -DMV"\ +"M_CGOTO=1 -DMVM_RDTSCP=1" +S["CC"]="/mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang" S["MAINT"]="#" S["MAINTAINER_MODE_FALSE"]="" S["MAINTAINER_MODE_TRUE"]="#" @@ -675,12 +675,12 @@ S["MKDIR_P"]="/usr/bin/mkdir -p" S["INSTALL_STRIP_PROGRAM"]="$(install_sh) -c -s" S["STRIP"]="" -S["install_sh"]="${SHELL} /mnt/dalmore-home/one/src/Perl6/MoarVM/3rdparty/libatomicops/install-sh" -S["MAKEINFO"]="${SHELL} /mnt/dalmore-home/one/src/Perl6/MoarVM/3rdparty/libatomicops/missing makeinfo" -S["AUTOHEADER"]="${SHELL} /mnt/dalmore-home/one/src/Perl6/MoarVM/3rdparty/libatomicops/missing autoheader" -S["AUTOMAKE"]="${SHELL} /mnt/dalmore-home/one/src/Perl6/MoarVM/3rdparty/libatomicops/missing automake-1.14" -S["AUTOCONF"]="${SHELL} /mnt/dalmore-home/one/src/Perl6/MoarVM/3rdparty/libatomicops/missing autoconf" -S["ACLOCAL"]="${SHELL} /mnt/dalmore-home/one/src/Perl6/MoarVM/3rdparty/libatomicops/missing aclocal-1.14" +S["install_sh"]="${SHELL} /mnt/dalmore-home/one/src/Perl6/llvm/MoarVM/3rdparty/libatomicops/install-sh" +S["MAKEINFO"]="${SHELL} /mnt/dalmore-home/one/src/Perl6/llvm/MoarVM/3rdparty/libatomicops/missing makeinfo" +S["AUTOHEADER"]="${SHELL} /mnt/dalmore-home/one/src/Perl6/llvm/MoarVM/3rdparty/libatomicops/missing autoheader" +S["AUTOMAKE"]="${SHELL} /mnt/dalmore-home/one/src/Perl6/llvm/MoarVM/3rdparty/libatomicops/missing automake-1.14" +S["AUTOCONF"]="${SHELL} /mnt/dalmore-home/one/src/Perl6/llvm/MoarVM/3rdparty/libatomicops/missing autoconf" +S["ACLOCAL"]="${SHELL} /mnt/dalmore-home/one/src/Perl6/llvm/MoarVM/3rdparty/libatomicops/missing aclocal-1.14" S["VERSION"]="7.3alpha3" S["PACKAGE"]="libatomic_ops" S["CYGPATH_W"]="echo"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CbCLLVMMakefile Fri Nov 30 14:07:07 2018 +0900 @@ -0,0 +1,731 @@ +CC = /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang +LD = /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang +AR = ar +MAKE = make +PERL = /usr/bin/perl +RM = rm -f +CAT = cat +SHELL = /bin/sh +CP = $(PERL) -MExtUtils::Command -e cp +MKPATH = $(PERL) -MExtUtils::Command -e mkpath +CHMOD = $(PERL) -MExtUtils::Command -e chmod +RM_RF = $(PERL) -MExtUtils::Command -e rm_rf +RM_F = $(PERL) -MExtUtils::Command -e rm_f + +MINGW_UNICODE = + + +CONFIG = --cc /mnt/dalmore-home//one/src/crosscompilers/cbc_llvm_build/bin/clang --debug --no-optimize --compiler clang --prefix=/mnt/dalmore-home/one/src/Perl6/llvm/build_perl6 +ADDCONFIG = + +TRACING = 0 +CGOTO = 1 +RDTSCP = 1 +NOISY = 0 + +MSG = @: +CMD = +NOOUT = +NOERR = + +ifneq ($(NOISY), 1) +MSG = @echo +CMD = @ +NOOUT = > /dev/null +NOERR = 2> /dev/null +endif + + +PREFIX = /mnt/dalmore-home/one/src/Perl6/llvm/build_perl6 +BINDIR = /mnt/dalmore-home/one/src/Perl6/llvm/build_perl6/bin +LIBDIR = /mnt/dalmore-home/one/src/Perl6/llvm/build_perl6/lib +MASTDIR = /mnt/dalmore-home/one/src/Perl6/llvm/build_perl6/share/nqp/lib/MAST + +PKGCONFIGDIR = /mnt/dalmore-home/one/src/Perl6/llvm/build_perl6/share/pkgconfig + +CFLAGS = -fno-omit-frame-pointer -g3 -Wno-logical-op-parentheses -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG_HELPERS -DMVM_TRACING=$(TRACING) -DMVM_CGOTO=$(CGOTO) -DMVM_RDTSCP=$(RDTSCP) +CINCLUDES = -I3rdparty/libuv/include -I3rdparty/libuv/src -I3rdparty/libatomicops/src -I3rdparty/libtommath -I3rdparty/dyncall/dynload -I3rdparty/dyncall/dyncall -I3rdparty/dyncall/dyncallback \ + -I3rdparty/sha1 \ + -I3rdparty/tinymt \ + -I3rdparty/dynasm \ + -I3rdparty/cmp \ + -I3rdparty \ + -Isrc +LDFLAGS = -g3 -Wl,-rpath,"//mnt/dalmore-home/one/src/Perl6/llvm/build_perl6/lib" +LDLIBS = -lm -lpthread -lrt -ldl +MAIN_LIBS = -L. -lmoar +DLL_LIBS = 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/tinymt/libtinymt.a 3rdparty/sha1/libsha1.a 3rdparty/libtommath/libtommath.a 3rdparty/libuv/libuv.a $(LDLIBS) +ARFLAGS = rcs + +PLATFORM_WIN32 = src/platform/win32/mmap.o \ + src/platform/win32/time.o \ + src/platform/win32/io.o + +PLATFORM_POSIX = src/platform/posix/mmap.o \ + src/platform/posix/time.o \ + src/platform/posix/io.o + +DASM_FLAGS = -D POSIX=1 +JIT_ARCH_X64 = src/jit/x64/emit.o src/jit/x64/arch.o +JIT_STUB = src/jit/stub.o +JIT_OBJECTS = src/jit/graph.o \ + src/jit/label.o \ + src/jit/compile.o \ + src/jit/log.o \ + src/jit/expr.o \ + src/jit/tile.o \ + src/jit/linear_scan.o + +# JIT intermediate files which clean should remove +JIT_INTERMEDIATES = src/jit/x64/emit.c \ + src/jit/x64/tile_pattern.h \ + src/jit/core_templates.h + +MAIN_OBJECTS = src/main.o + + +OBJECTS = src/core/callsite.o \ + src/core/args.o \ + src/core/exceptions.o \ + src/core/cbc-interp.o \ + src/core/threadcontext.o \ + src/core/compunit.o \ + src/core/bytecode.o \ + src/core/frame.o \ + src/core/callstack.o \ + src/core/validation.o \ + src/core/bytecodedump.o \ + src/core/threads.o \ + src/core/ops.o \ + src/core/hll.o \ + src/core/loadbytecode.o \ + src/math/num.o \ + src/math/grisu.o \ + src/core/coerce.o \ + src/core/dll.o \ + src/core/ext.o \ + src/core/nativecall.o \ + src/core/nativecall_dyncall.o \ + src/core/continuation.o \ + src/core/intcache.o \ + src/core/fixedsizealloc.o \ + src/core/regionalloc.o \ + src/debug/debugserver.o \ + src/gen/config.o \ + src/gc/orchestrate.o \ + src/gc/allocation.o \ + src/gc/worklist.o \ + src/gc/roots.o \ + src/gc/collect.o \ + src/gc/gen2.o \ + src/gc/wb.o \ + src/gc/objectid.o \ + src/gc/finalize.o \ + src/gc/debug.o \ + src/io/io.o \ + src/io/eventloop.o \ + src/io/syncfile.o \ + src/io/syncsocket.o \ + src/io/fileops.o \ + src/io/dirops.o \ + src/io/procops.o \ + src/io/timers.o \ + src/io/filewatchers.o \ + src/io/signals.o \ + src/io/asyncsocket.o \ + src/io/asyncsocketudp.o \ + src/6model/reprs.o \ + src/6model/reprconv.o \ + src/6model/containers.o \ + src/6model/parametric.o \ + src/6model/reprs/MVMString.o \ + src/6model/reprs/VMArray.o \ + src/6model/reprs/MVMHash.o \ + src/6model/reprs/MVMCFunction.o \ + src/6model/reprs/KnowHOWREPR.o \ + src/6model/reprs/KnowHOWAttributeREPR.o \ + src/6model/reprs/P6str.o \ + src/6model/reprs/P6opaque.o \ + src/6model/reprs/MVMCode.o \ + src/6model/reprs/MVMOSHandle.o \ + src/6model/reprs/MVMCompUnit.o \ + src/6model/reprs/MVMStaticFrame.o \ + src/6model/reprs/P6int.o \ + src/6model/reprs/P6num.o \ + src/6model/reprs/Uninstantiable.o \ + src/6model/reprs/HashAttrStore.o \ + src/6model/reprs/MVMThread.o \ + src/6model/reprs/MVMIter.o \ + src/6model/reprs/MVMContext.o \ + src/6model/reprs/SCRef.o \ + src/6model/reprs/MVMCallCapture.o \ + src/6model/reprs/P6bigint.o \ + src/6model/reprs/NFA.o \ + src/6model/reprs/MVMException.o \ + src/6model/reprs/MVMDLLSym.o \ + src/6model/reprs/MVMMultiCache.o \ + src/6model/reprs/MVMContinuation.o \ + src/6model/reprs/NativeCall.o \ + src/6model/reprs/CPointer.o \ + src/6model/reprs/CStr.o \ + src/6model/reprs/CArray.o \ + src/6model/reprs/CStruct.o \ + src/6model/reprs/CUnion.o \ + src/6model/reprs/ReentrantMutex.o \ + src/6model/reprs/ConditionVariable.o \ + src/6model/reprs/Semaphore.o \ + src/6model/reprs/ConcBlockingQueue.o \ + src/6model/reprs/MVMAsyncTask.o \ + src/6model/reprs/MVMNull.o \ + src/6model/reprs/CPPStruct.o \ + src/6model/reprs/NativeRef.o \ + src/6model/reprs/MultiDimArray.o \ + src/6model/reprs/Decoder.o \ + src/6model/reprs/MVMSpeshLog.o \ + src/6model/reprs/MVMStaticFrameSpesh.o \ + src/6model/6model.o \ + src/6model/bootstrap.o \ + src/6model/sc.o \ + src/6model/serialization.o \ + src/mast/compiler.o \ + src/mast/driver.o \ + src/spesh/dump.o \ + src/spesh/graph.o \ + src/spesh/codegen.o \ + src/spesh/candidate.o \ + src/spesh/manipulate.o \ + src/spesh/args.o \ + src/spesh/facts.o \ + src/spesh/optimize.o \ + src/spesh/dead_bb_elimination.o \ + src/spesh/deopt.o \ + src/spesh/log.o \ + src/spesh/threshold.o \ + src/spesh/inline.o \ + src/spesh/osr.o \ + src/spesh/lookup.o \ + src/spesh/iterator.o \ + src/spesh/worker.o \ + src/spesh/debug.o \ + src/spesh/stats.o \ + src/spesh/plan.o \ + src/spesh/arg_guard.o \ + src/strings/decode_stream.o \ + src/strings/ascii.o \ + src/strings/parse_num.o \ + src/strings/utf8.o \ + src/strings/utf8_c8.o \ + src/strings/nfg.o \ + src/strings/ops.o \ + src/strings/unicode.o \ + src/strings/normalize.o \ + src/strings/latin1.o \ + src/strings/utf16.o \ + src/strings/windows1252.o \ + src/strings/shiftjis.o \ + src/strings/shiftjis_codeindex.o \ + src/math/bigintops.o \ + src/profiler/instrument.o \ + src/profiler/log.o \ + src/profiler/profile.o \ + src/profiler/heapsnapshot.o \ + src/profiler/telemeh.o \ + src/instrument/crossthreadwrite.o \ + src/instrument/line_coverage.o \ + src/platform/sys.o \ + src/platform/random.o \ + src/moar.o \ + $(PLATFORM_POSIX) \ + $(JIT_OBJECTS) $(JIT_ARCH_X64) + +HEADERS = src/moar.h \ + src/types.h \ + src/bithacks.h \ + src/6model/6model.h \ + src/core/instance.h \ + src/core/threadcontext.h \ + src/core/callsite.h \ + src/core/args.h \ + src/core/exceptions.h \ + src/core/interp.h \ + src/core/alloc.h \ + src/core/vector.h \ + src/core/frame.h \ + src/core/callstack.h \ + src/core/compunit.h \ + src/core/bytecode.h \ + src/core/ops.h \ + src/core/validation.h \ + src/core/bytecodedump.h \ + src/core/threads.h \ + src/core/hll.h \ + src/core/loadbytecode.h \ + src/core/bitmap.h \ + src/math/num.h \ + src/math/grisu.h \ + src/core/coerce.h \ + src/core/dll.h \ + src/core/ext.h \ + src/core/nativecall.h \ + src/core/continuation.h \ + src/core/intcache.h \ + src/core/fixedsizealloc.h \ + src/core/regionalloc.h \ + src/debug/debugserver.h \ + src/io/io.h \ + src/io/eventloop.h \ + src/io/syncfile.h \ + src/io/syncsocket.h \ + src/io/fileops.h \ + src/io/dirops.h \ + src/io/procops.h \ + src/io/timers.h \ + src/io/filewatchers.h \ + src/io/signals.h \ + src/io/asyncsocket.h \ + src/io/asyncsocketudp.h \ + src/gc/orchestrate.h \ + src/gc/allocation.h \ + src/gc/worklist.h \ + src/gc/collect.h \ + src/gc/roots.h \ + src/gc/gen2.h \ + src/gc/wb.h \ + src/gc/objectid.h \ + src/gc/finalize.h \ + src/gc/debug.h \ + src/6model/reprs.h \ + src/6model/reprconv.h \ + src/6model/bootstrap.h \ + src/6model/serialization.h \ + src/6model/containers.h \ + src/6model/parametric.h \ + src/6model/reprs/MVMString.h \ + src/6model/reprs/VMArray.h \ + src/6model/reprs/MVMHash.h \ + src/6model/reprs/MVMCFunction.h \ + src/6model/reprs/KnowHOWREPR.h \ + src/6model/reprs/KnowHOWAttributeREPR.h \ + src/6model/reprs/P6opaque.h \ + src/6model/reprs/MVMCode.h \ + src/6model/reprs/P6str.h \ + src/6model/reprs/MVMOSHandle.h \ + src/6model/reprs/P6int.h \ + src/6model/reprs/P6num.h \ + src/6model/reprs/Uninstantiable.h \ + src/6model/reprs/HashAttrStore.h \ + src/6model/reprs/MVMThread.h \ + src/6model/reprs/MVMIter.h \ + src/6model/reprs/MVMContext.h \ + src/6model/reprs/SCRef.h \ + src/6model/reprs/MVMCallCapture.h \ + src/6model/reprs/P6bigint.h \ + src/6model/reprs/NFA.h \ + src/6model/reprs/MVMException.h \ + src/6model/reprs/MVMCompUnit.h \ + src/6model/reprs/MVMDLLSym.h \ + src/6model/reprs/MVMMultiCache.h \ + src/6model/reprs/MVMContinuation.h \ + src/6model/reprs/NativeCall.h \ + src/6model/reprs/CPointer.h \ + src/6model/reprs/CStr.h \ + src/6model/reprs/CArray.h \ + src/6model/reprs/CStruct.h \ + src/6model/reprs/CUnion.h \ + src/6model/reprs/ReentrantMutex.h \ + src/6model/reprs/ConditionVariable.h \ + src/6model/reprs/Semaphore.h \ + src/6model/reprs/ConcBlockingQueue.h \ + src/6model/reprs/MVMAsyncTask.h \ + src/6model/reprs/MVMNull.h \ + src/6model/reprs/CPPStruct.h \ + src/6model/reprs/NativeRef.h \ + src/6model/reprs/MultiDimArray.h \ + src/6model/reprs/Decoder.h \ + src/6model/reprs/MVMSpeshLog.h \ + src/6model/reprs/MVMStaticFrameSpesh.h \ + src/6model/sc.h \ + src/mast/compiler.h \ + src/mast/driver.h \ + src/mast/nodes.h \ + src/spesh/dump.h \ + src/spesh/debug.h \ + src/spesh/graph.h \ + src/spesh/codegen.h \ + src/spesh/candidate.h \ + src/spesh/manipulate.h \ + src/spesh/args.h \ + src/spesh/facts.h \ + src/spesh/optimize.h \ + src/spesh/dead_bb_elimination.h \ + src/spesh/deopt.h \ + src/spesh/log.h \ + src/spesh/threshold.h \ + src/spesh/inline.h \ + src/spesh/osr.h \ + src/spesh/lookup.h \ + src/spesh/iterator.h \ + src/spesh/worker.h \ + src/spesh/stats.h \ + src/spesh/plan.h \ + src/spesh/arg_guard.h \ + src/strings/unicode_gen.h \ + src/strings/normalize.h \ + src/strings/decode_stream.h \ + src/strings/ascii.h \ + src/strings/parse_num.h \ + src/strings/utf8.h \ + src/strings/utf8_c8.h \ + src/strings/iter.h \ + src/strings/nfg.h \ + src/strings/ops.h \ + src/strings/unicode.h \ + src/strings/latin1.h \ + src/strings/utf16.h \ + src/strings/windows1252.h \ + src/strings/shiftjis_codeindex.h \ + src/math/bigintops.h \ + src/profiler/instrument.h \ + src/profiler/log.h \ + src/profiler/profile.h \ + src/profiler/heapsnapshot.h \ + src/profiler/telemeh.h \ + src/platform/mmap.h \ + src/platform/time.h \ + src/platform/threads.h \ + src/platform/io.h \ + src/platform/sys.h \ + src/platform/setjmp.h \ + src/platform/memmem.h \ + src/platform/random.h \ + src/jit/graph.h \ + src/jit/label.h \ + src/jit/expr.h \ + src/jit/expr_ops.h \ + src/jit/compile.h \ + src/jit/tile.h \ + src/jit/register.h \ + src/jit/log.h \ + src/instrument/crossthreadwrite.h \ + src/instrument/line_coverage.h \ + src/gen/config.h \ + src/debug/debugserver.h \ + 3rdparty/uthash.h \ + 3rdparty/cmp/cmp.h \ + src/core/oplables-cbc-codes.h + +UV_UNIX = 3rdparty/libuv/src/fs-poll.o \ + 3rdparty/libuv/src/inet.o \ + 3rdparty/libuv/src/uv-common.o \ + 3rdparty/libuv/src/version.o \ + 3rdparty/libuv/src/unix/async.o \ + 3rdparty/libuv/src/unix/core.o \ + 3rdparty/libuv/src/unix/dl.o \ + 3rdparty/libuv/src/unix/fs.o \ + 3rdparty/libuv/src/unix/getaddrinfo.o \ + 3rdparty/libuv/src/unix/loop-watcher.o \ + 3rdparty/libuv/src/unix/loop.o \ + 3rdparty/libuv/src/unix/pipe.o \ + 3rdparty/libuv/src/unix/poll.o \ + 3rdparty/libuv/src/unix/process.o \ + 3rdparty/libuv/src/unix/signal.o \ + 3rdparty/libuv/src/unix/stream.o \ + 3rdparty/libuv/src/unix/tcp.o \ + 3rdparty/libuv/src/unix/thread.o \ + 3rdparty/libuv/src/threadpool.o \ + 3rdparty/libuv/src/unix/timer.o \ + 3rdparty/libuv/src/unix/tty.o \ + 3rdparty/libuv/src/unix/udp.o + +UV_LINUX = 3rdparty/libuv/src/unix/linux-core.o \ + 3rdparty/libuv/src/unix/linux-inotify.o \ + 3rdparty/libuv/src/unix/linux-syscalls.o \ + 3rdparty/libuv/src/unix/proctitle.o \ + $(UV_UNIX) + +UV_OPENBSD = 3rdparty/libuv/src/unix/openbsd.o \ + 3rdparty/libuv/src/unix/kqueue.o \ + 3rdparty/libuv/src/unix/posix-hrtime.o \ + $(UV_UNIX) + +UV_NETBSD = 3rdparty/libuv/src/unix/netbsd.o \ + 3rdparty/libuv/src/unix/kqueue.o \ + 3rdparty/libuv/src/unix/posix-hrtime.o \ + $(UV_UNIX) + +UV_FREEBSD = 3rdparty/libuv/src/unix/freebsd.o \ + 3rdparty/libuv/src/unix/kqueue.o \ + 3rdparty/libuv/src/unix/posix-hrtime.o \ + $(UV_UNIX) + +UV_DARWIN = 3rdparty/libuv/src/unix/darwin.o \ + 3rdparty/libuv/src/unix/darwin-proctitle.o \ + 3rdparty/libuv/src/unix/fsevents.o \ + 3rdparty/libuv/src/unix/kqueue.o \ + 3rdparty/libuv/src/unix/proctitle.o \ + $(UV_UNIX) + +UV_SOLARIS = 3rdparty/libuv/src/unix/sunos.o \ + $(UV_UNIX) + +UV_AIX = 3rdparty/libuv/src/unix/aix.o \ + $(UV_UNIX) + +UV_OBJECTS = $(UV_LINUX) + +TOM_OBJECTS = 3rdparty/libtommath/bn_error.o 3rdparty/libtommath/bn_fast_mp_invmod.o 3rdparty/libtommath/bn_fast_mp_montgomery_reduce.o 3rdparty/libtommath/bn_fast_s_mp_mul_digs.o 3rdparty/libtommath/bn_fast_s_mp_mul_high_digs.o 3rdparty/libtommath/bn_fast_s_mp_sqr.o 3rdparty/libtommath/bn_mp_2expt.o 3rdparty/libtommath/bn_mp_abs.o 3rdparty/libtommath/bn_mp_add.o 3rdparty/libtommath/bn_mp_add_d.o 3rdparty/libtommath/bn_mp_addmod.o 3rdparty/libtommath/bn_mp_and.o 3rdparty/libtommath/bn_mp_clamp.o 3rdparty/libtommath/bn_mp_clear.o 3rdparty/libtommath/bn_mp_clear_multi.o 3rdparty/libtommath/bn_mp_cmp.o 3rdparty/libtommath/bn_mp_cmp_d.o 3rdparty/libtommath/bn_mp_cmp_mag.o 3rdparty/libtommath/bn_mp_cnt_lsb.o 3rdparty/libtommath/bn_mp_copy.o 3rdparty/libtommath/bn_mp_count_bits.o 3rdparty/libtommath/bn_mp_div.o 3rdparty/libtommath/bn_mp_div_2.o 3rdparty/libtommath/bn_mp_div_2d.o 3rdparty/libtommath/bn_mp_div_3.o 3rdparty/libtommath/bn_mp_div_d.o 3rdparty/libtommath/bn_mp_dr_is_modulus.o 3rdparty/libtommath/bn_mp_dr_reduce.o 3rdparty/libtommath/bn_mp_dr_setup.o 3rdparty/libtommath/bn_mp_exch.o 3rdparty/libtommath/bn_mp_export.o 3rdparty/libtommath/bn_mp_expt_d.o 3rdparty/libtommath/bn_mp_expt_d_ex.o 3rdparty/libtommath/bn_mp_exptmod.o 3rdparty/libtommath/bn_mp_exptmod_fast.o 3rdparty/libtommath/bn_mp_exteuclid.o 3rdparty/libtommath/bn_mp_fread.o 3rdparty/libtommath/bn_mp_fwrite.o 3rdparty/libtommath/bn_mp_gcd.o 3rdparty/libtommath/bn_mp_get_int.o 3rdparty/libtommath/bn_mp_get_long.o 3rdparty/libtommath/bn_mp_get_long_long.o 3rdparty/libtommath/bn_mp_grow.o 3rdparty/libtommath/bn_mp_import.o 3rdparty/libtommath/bn_mp_init.o 3rdparty/libtommath/bn_mp_init_copy.o 3rdparty/libtommath/bn_mp_init_multi.o 3rdparty/libtommath/bn_mp_init_set.o 3rdparty/libtommath/bn_mp_init_set_int.o 3rdparty/libtommath/bn_mp_init_size.o 3rdparty/libtommath/bn_mp_invmod.o 3rdparty/libtommath/bn_mp_invmod_slow.o 3rdparty/libtommath/bn_mp_is_square.o 3rdparty/libtommath/bn_mp_jacobi.o 3rdparty/libtommath/bn_mp_karatsuba_mul.o 3rdparty/libtommath/bn_mp_karatsuba_sqr.o 3rdparty/libtommath/bn_mp_lcm.o 3rdparty/libtommath/bn_mp_lshd.o 3rdparty/libtommath/bn_mp_mod.o 3rdparty/libtommath/bn_mp_mod_2d.o 3rdparty/libtommath/bn_mp_mod_d.o 3rdparty/libtommath/bn_mp_montgomery_calc_normalization.o 3rdparty/libtommath/bn_mp_montgomery_reduce.o 3rdparty/libtommath/bn_mp_montgomery_setup.o 3rdparty/libtommath/bn_mp_mul.o 3rdparty/libtommath/bn_mp_mul_2.o 3rdparty/libtommath/bn_mp_mul_2d.o 3rdparty/libtommath/bn_mp_mul_d.o 3rdparty/libtommath/bn_mp_mulmod.o 3rdparty/libtommath/bn_mp_n_root.o 3rdparty/libtommath/bn_mp_n_root_ex.o 3rdparty/libtommath/bn_mp_neg.o 3rdparty/libtommath/bn_mp_or.o 3rdparty/libtommath/bn_mp_prime_fermat.o 3rdparty/libtommath/bn_mp_prime_is_divisible.o 3rdparty/libtommath/bn_mp_prime_is_prime.o 3rdparty/libtommath/bn_mp_prime_miller_rabin.o 3rdparty/libtommath/bn_mp_prime_next_prime.o 3rdparty/libtommath/bn_mp_prime_rabin_miller_trials.o 3rdparty/libtommath/bn_mp_prime_random_ex.o 3rdparty/libtommath/bn_mp_radix_size.o 3rdparty/libtommath/bn_mp_radix_smap.o 3rdparty/libtommath/bn_mp_rand.o 3rdparty/libtommath/bn_mp_read_radix.o 3rdparty/libtommath/bn_mp_read_signed_bin.o 3rdparty/libtommath/bn_mp_read_unsigned_bin.o 3rdparty/libtommath/bn_mp_reduce.o 3rdparty/libtommath/bn_mp_reduce_2k.o 3rdparty/libtommath/bn_mp_reduce_2k_l.o 3rdparty/libtommath/bn_mp_reduce_2k_setup.o 3rdparty/libtommath/bn_mp_reduce_2k_setup_l.o 3rdparty/libtommath/bn_mp_reduce_is_2k.o 3rdparty/libtommath/bn_mp_reduce_is_2k_l.o 3rdparty/libtommath/bn_mp_reduce_setup.o 3rdparty/libtommath/bn_mp_rshd.o 3rdparty/libtommath/bn_mp_set.o 3rdparty/libtommath/bn_mp_set_int.o 3rdparty/libtommath/bn_mp_set_long.o 3rdparty/libtommath/bn_mp_set_long_long.o 3rdparty/libtommath/bn_mp_shrink.o 3rdparty/libtommath/bn_mp_signed_bin_size.o 3rdparty/libtommath/bn_mp_sqr.o 3rdparty/libtommath/bn_mp_sqrmod.o 3rdparty/libtommath/bn_mp_sqrt.o 3rdparty/libtommath/bn_mp_sqrtmod_prime.o 3rdparty/libtommath/bn_mp_sub.o 3rdparty/libtommath/bn_mp_sub_d.o 3rdparty/libtommath/bn_mp_submod.o 3rdparty/libtommath/bn_mp_to_signed_bin.o 3rdparty/libtommath/bn_mp_to_signed_bin_n.o 3rdparty/libtommath/bn_mp_to_unsigned_bin.o 3rdparty/libtommath/bn_mp_to_unsigned_bin_n.o 3rdparty/libtommath/bn_mp_toom_mul.o 3rdparty/libtommath/bn_mp_toom_sqr.o 3rdparty/libtommath/bn_mp_toradix.o 3rdparty/libtommath/bn_mp_toradix_n.o 3rdparty/libtommath/bn_mp_unsigned_bin_size.o 3rdparty/libtommath/bn_mp_xor.o 3rdparty/libtommath/bn_mp_zero.o 3rdparty/libtommath/bn_prime_tab.o 3rdparty/libtommath/bn_reverse.o 3rdparty/libtommath/bn_s_mp_add.o 3rdparty/libtommath/bn_s_mp_exptmod.o 3rdparty/libtommath/bn_s_mp_mul_digs.o 3rdparty/libtommath/bn_s_mp_mul_high_digs.o 3rdparty/libtommath/bn_s_mp_sqr.o 3rdparty/libtommath/bn_s_mp_sub.o 3rdparty/libtommath/bncore.o + +THIRDPARTY = 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/tinymt/libtinymt.a 3rdparty/sha1/libsha1.a 3rdparty/libtommath/libtommath.a 3rdparty/libuv/libuv.a + +MINILUA = 3rdparty/dynasm/minilua +DYNASM = $(MINILUA) 3rdparty/dynasm/dynasm.lua +DYNASM_SCRIPTS = 3rdparty/dynasm/dynasm.lua 3rdparty/dynasm/dasm_x86.lua +DYNASM_HEADERS = 3rdparty/dynasm/dasm_proto.h 3rdparty/dynasm/dasm_x86.h + +.SUFFIXES: .c .cbc .o .i .s .dasc .expr .tile + +all: moar pkgconfig/moar.pc + +install: all + $(MKPATH) "$(DESTDIR)$(BINDIR)" + $(CP) moar "$(DESTDIR)$(BINDIR)" + $(CHMOD) 755 "$(DESTDIR)$(BINDIR)/moar" + $(MKPATH) "$(DESTDIR)$(LIBDIR)" + $(RM_F) "$(DESTDIR)$(LIBDIR)/libmoar.so" + $(CP) libmoar.so "$(DESTDIR)$(LIBDIR)" + $(MKPATH) "$(DESTDIR)$(MASTDIR)" + $(CP) lib/MAST/Nodes.nqp "$(DESTDIR)$(MASTDIR)" + $(CP) lib/MAST/Ops.nqp "$(DESTDIR)$(MASTDIR)" + $(MKPATH) "$(DESTDIR)$(PKGCONFIGDIR)" + $(CP) pkgconfig/moar.pc "$(DESTDIR)$(PKGCONFIGDIR)" + $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar" + $(CP) src/gen/config.h "$(DESTDIR)$(PREFIX)/include/moar" + $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/6model/reprs" + $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/core" + $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/gc" + $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/gen" + $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/io" + $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/mast" + $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/math" + $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/platform" + $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/profiler" + $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/spesh" + $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/debug" + $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/strings" + $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/jit" + $(MKPATH) "$(DESTDIR)$(PREFIX)/include/moar/instrument" + $(CP) 3rdparty/*.h "$(DESTDIR)$(PREFIX)/include/moar" + $(CP) src/*.h "$(DESTDIR)$(PREFIX)/include/moar" + $(CP) src/6model/*.h "$(DESTDIR)$(PREFIX)/include/moar/6model" + $(CP) src/6model/reprs/*.h "$(DESTDIR)$(PREFIX)/include/moar/6model/reprs" + $(CP) src/core/*.h "$(DESTDIR)$(PREFIX)/include/moar/core" + $(CP) src/gc/*.h "$(DESTDIR)$(PREFIX)/include/moar/gc" + $(CP) src/gen/*.h "$(DESTDIR)$(PREFIX)/include/moar/gen" + $(CP) src/io/*.h "$(DESTDIR)$(PREFIX)/include/moar/io" + $(CP) src/mast/*.h "$(DESTDIR)$(PREFIX)/include/moar/mast" + $(CP) src/math/*.h "$(DESTDIR)$(PREFIX)/include/moar/math" + $(CP) src/platform/*.h "$(DESTDIR)$(PREFIX)/include/moar/platform" + $(CP) src/profiler/*.h "$(DESTDIR)$(PREFIX)/include/moar/profiler" + $(CP) src/spesh/*.h "$(DESTDIR)$(PREFIX)/include/moar/spesh" + $(CP) src/debug/*.h "$(DESTDIR)$(PREFIX)/include/moar/debug" + $(CP) src/strings/*.h "$(DESTDIR)$(PREFIX)/include/moar/strings" + $(CP) src/jit/*.h "$(DESTDIR)$(PREFIX)/include/moar/jit" + $(CP) src/instrument/*.h "$(DESTDIR)$(PREFIX)/include/moar/instrument" + $(MKPATH) $(DESTDIR)$(PREFIX)/include/libuv + $(CP) 3rdparty/libuv/include/*.h $(DESTDIR)$(PREFIX)/include/libuv + $(MKPATH) $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/armcc + $(MKPATH) $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/gcc + $(MKPATH) $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/hpc + $(MKPATH) $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/ibmc + $(MKPATH) $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/icc + $(MKPATH) $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/loadstore + $(MKPATH) $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/msftc + $(MKPATH) $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/sunc + $(CP) 3rdparty/libatomicops/src/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops + $(CP) 3rdparty/libatomicops/src/atomic_ops/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops + $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps + $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/armcc/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/armcc + $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/gcc/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/gcc + $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/hpc/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/hpc + $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/ibmc/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/ibmc + $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/icc/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/icc + $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/loadstore/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/loadstore + $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/msftc/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/msftc + $(CP) 3rdparty/libatomicops/src/atomic_ops/sysdeps/sunc/*.h $(DESTDIR)$(PREFIX)/include/libatomic_ops/atomic_ops/sysdeps/sunc + $(MKPATH) $(DESTDIR)$(PREFIX)/include/libtommath + $(CP) 3rdparty/libtommath/*.h $(DESTDIR)$(PREFIX)/include/libtommath + $(MKPATH) $(DESTDIR)$(PREFIX)/include/dyncall + $(CP) 3rdparty/dyncall/dynload/*.h $(DESTDIR)$(PREFIX)/include/dyncall + $(CP) 3rdparty/dyncall/dyncall/*.h $(DESTDIR)$(PREFIX)/include/dyncall + $(CP) 3rdparty/dyncall/dyncallback/*.h $(DESTDIR)$(PREFIX)/include/dyncall + + +lib: libmoar.so + +help: + @$(CAT) build/help.txt + +test: + @$(CAT) build/test.txt + +reconfig: realclean + $(MSG) reconfiguring with [ $(CONFIG) $(ADDCONFIG) ] + $(CMD)$(PERL) Configure.pl $(CONFIG) $(ADDCONFIG) + +clangcheck gcccheck: + @$(MAKE) --no-print-directory -f tools/check.mk $@ + +moar: $(MAIN_OBJECTS) libmoar.so + $(MSG) linking $@ + $(CMD)$(LD) -o $@ $(LDFLAGS) $(MINGW_UNICODE) $(MAIN_OBJECTS) $(MAIN_LIBS) + +libmoar.a: $(OBJECTS) $(THIRDPARTY) + $(MSG) linking $@ + $(CMD)$(AR) $(ARFLAGS) $@ $(OBJECTS) $(NOOUT) + +libmoar.so: $(OBJECTS) $(THIRDPARTY) + $(MSG) linking $@ + $(CMD)$(LD) -o $@ $(LDFLAGS) -shared -fPIC $(OBJECTS) $(DLL_LIBS) + +libuv: 3rdparty/libuv/libuv.a + +$(MAIN_OBJECTS) $(OBJECTS): $(HEADERS) + +tracing: + $(MSG) enable tracing dispatch + -$(CMD)$(RM) src/main.o src/core/cbc-interp.o + $(CMD)$(MAKE) TRACING=1 CGOTO=0 NOISY="$(NOISY)" + +cgoto: + $(MSG) enable computed-goto dispatch + -$(CMD)$(RM) src/main.o src/core/cbc-interp.o + $(CMD)$(MAKE) TRACING=0 CGOTO=1 NOISY="$(NOISY)" + +switch no-tracing no-cgoto: + $(MSG) enable regular dispatch + -$(CMD)$(RM) src/main.o src/core/cbc-interp.o + $(CMD)$(MAKE) TRACING=0 CGOTO=0 NOISY="$(NOISY)" + +# objflags can include -DMVM_BUILD_SHARED which affects pre-processed source +.c.i: + $(MSG) pre-processing $@ + $(CMD)$(CC) -E $(CFLAGS) -DMVM_BUILD_SHARED -fPIC $(CINCLUDES) > $@ $*.c + +.c.s: + $(MSG) generating assembler for $@ + $(CMD)$(CC) -S $(CFLAGS) -DMVM_BUILD_SHARED -fPIC $(CINCLUDES) -o $@ $*.c + +.c.o: + $(MSG) compiling $@ + $(CMD)$(CC) -c $(CFLAGS) -DMVM_BUILD_SHARED -fPIC $(CINCLUDES) -o $@ $*.c + +.cbc.o: + $(MSG) compiling $@ + $(CMD)$(CC) -c $(CFLAGS) -DMVM_BUILD_SHARED -fPIC $(CINCLUDES) -o $@ $*.cbc + +src/main.o: src/main.c + $(MSG) compiling $@ + $(CMD)$(CC) -c $(CFLAGS) -DMVM_SHARED $(CINCLUDES) -o $@ $*.c + +src/strings/unicode.c: src/strings/unicode_db.c src/strings/unicode_uca.c src/strings/unicode_ops.c + $(MSG) generating $@ + $(CMD) $(CAT) src/strings/unicode_db.c src/strings/unicode_uca.c src/strings/unicode_ops.c > $@ $(NOERR) + +$(MINILUA): 3rdparty/dynasm/minilua.c + $(CC) $(CFLAGS) $(LDFLAGS) 3rdparty/dynasm/minilua.c -o $@ $(LDLIBS) + +.dasc.c: + $(MSG) preprocessing $< + $(CMD)$(DYNASM) $(DASM_FLAGS) -o $@ $< + +.expr.h: + $(MSG) Precompiling templates from $< + $(CMD)$(PERL) -Itools/ tools/expr-template-compiler.pl -o $@ $< + +.tile.h: + $(MSG) Building tile tables from $< + $(CMD)$(PERL) -Itools/ tools/tiler-table-generator.pl -o $@ $< + +src/jit/x64/emit.o: src/jit/x64/emit.c $(DYNASM_HEADERS) + +src/jit/x64/emit.c: src/jit/x64/emit.dasc src/jit/x64/tiles.dasc $(MINILUA) $(DYNASM_SCRIPTS) + +# Expression list tables +src/jit/core_templates.h: src/jit/core_templates.expr src/jit/macro.expr tools/expr-template-compiler.pl src/core/oplist src/jit/expr_ops.h + +# Architecture-specific tiles +src/jit/x64/tile_pattern.h: src/jit/x64/tile_pattern.tile tools/tiler-table-generator.pl src/jit/expr_ops.h + +src/jit/expr.o: src/jit/core_templates.h +src/jit/tile.o: src/jit/x64/tile_pattern.h src/jit/x64/tile_decl.h + +src/jit/compile.o src/jit/linear_scan.o src/jit/x64/arch.o $(JIT_OBJECTS) $(JIT_ARCH_X64): src/jit/internal.h src/jit/x64/arch.h + + + + +3rdparty/libuv/libuv.a: $(UV_OBJECTS) + $(MSG) linking $@ + $(CMD)$(AR) $(ARFLAGS) $@ $(UV_LINUX) $(NOOUT) + +3rdparty/libatomicops/src/libatomic_ops.a: + $(MSG) linking $@ + $(CMD)cd 3rdparty/libatomicops && CC='$(CC)' CFLAGS='$(CFLAGS)' ./configure && cd src && $(MAKE) && cd .. $(NOOUT) + +3rdparty/libtommath/libtommath.a: $(TOM_OBJECTS) + $(MSG) linking $@ + $(CMD)$(AR) $(ARFLAGS) $@ 3rdparty/libtommath/*.o $(NOOUT) + +3rdparty/sha1/libsha1.a: 3rdparty/sha1/sha1.o + $(MSG) linking $@ + $(CMD)$(AR) $(ARFLAGS) $@ 3rdparty/sha1/*.o $(NOOUT) + +3rdparty/tinymt/libtinymt.a: 3rdparty/tinymt/tinymt64.o + $(MSG) linking $@ + $(CMD)$(AR) $(ARFLAGS) $@ 3rdparty/tinymt/*.o $(NOOUT) + +3rdparty/cmp/libcmp.a: 3rdparty/cmp/cmp.o + $(MSG) linking $@ + $(CMD)$(AR) $(ARFLAGS) $@ 3rdparty/cmp/*.o $(NOOUT) + +3rdparty/dyncall/dyncall/libdyncall_s.a: + $(MSG) building dyncall... + $(CMD)cd 3rdparty/dyncall && ./configure && CC='$(CC)' CFLAGS='-fPIC' $(MAKE) -f Makefile $(NOOUT) + $(MSG) done. + +3rdparty/dyncall/dyncallback/libdyncallback_s.a 3rdparty/dyncall/dynload/libdynload_s.a: 3rdparty/dyncall/dyncall/libdyncall_s.a + +pkgconfig/moar.pc: build/mk-moar-pc.pl + $(PERL) build/mk-moar-pc.pl $@ + +clean: + $(MSG) remove build files + -$(CMD)$(RM) $(MAIN_OBJECTS) $(OBJECTS) $(JIT_INTERMEDIATES) $(NOOUT) $(NOERR) + +realclean: clean + $(MSG) remove auxiliary files + -$(CMD)@: $(NOOUT) $(NOERR) + $(MSG) remove 3rdparty files + -$(CMD)$(RM) 3rdparty/libuv/libuv.a $(UV_LINUX) $(NOOUT) $(NOERR) + -$(CMD)cd 3rdparty/libatomicops/src && $(MAKE) distclean $(NOOUT) $(NOERR) + -$(CMD)$(RM) 3rdparty/libtommath/libtommath.a 3rdparty/libtommath/*.o $(NOOUT) $(NOERR) + -$(CMD)$(RM) 3rdparty/sha1/libsha1.a 3rdparty/sha1/*.o $(NOOUT) $(NOERR) + -$(CMD)$(RM) 3rdparty/tinymt/libtinymt.a 3rdparty/tinymt/*.o $(NOOUT) $(NOERR) + -$(CMD)cd 3rdparty/dyncall && $(MAKE) -f Makefile clean $(NOOUT) $(NOERR) + +distclean: realclean + $(MSG) remove executable and libraries + -$(CMD)$(RM) moar libmoar.a libmoar.so $(NOOUT) $(NOERR) + $(MSG) remove configuration and generated files + -$(CMD)$(RM) Makefile src/gen/config.h src/gen/config.c src/strings/unicode.c \ + tools/check.mk 3rdparty/libatomicops/config.log 3rdparty/libatomicops/config.status $(NOOUT) $(NOERR) + -$(CMD)$(RM_RF) build/mk-moar-pc.pl pkgconfig/ $(NOOUT) $(NOERR) + +release: + [ -n "$(VERSION)" ] || ( echo "\nTry 'make release VERSION=yyyy.mm'\n\n"; exit 1 ) + bash -c 'if [[ $$(git status --untracked=no --porcelain) ]]; then echo "Dirty work trees will make broken releases; maybe git stash?"; exit 1; fi' + ./tools/release.sh $(VERSION) + + +sandwich: + @echo What? Make it yourself.
--- a/src/core/cbc-interp.cbc Thu Nov 29 19:43:32 2018 +0900 +++ b/src/core/cbc-interp.cbc Fri Nov 30 14:07:07 2018 +0900 @@ -60,7 +60,7 @@ __code cbc_next(INTERP i){ __code (*c)(INTERP); - printf("count=%d op=%d\n", op_count++, *i->cur_op); + //printf("count=%d op=%d\n", op_count++, *i->cur_op); c = CODES[NEXT_OP(i)]; i->tc->gc_status=0; goto c(i);