nixbot

builds

succeeded mes-src-0.27.1 checks.x86_64-linux.devshell-default · build #127 · raw

1 +> ungz --file /nix/store/8yysw5ksd347yvdpakb5998qbkgzn4ly-mes-0.27.1.tar.gz --output mes.tar 2/nix/store/8yysw5ksd347yvdpakb5998qbkgzn4ly-mes-0.27.1.tar.gz => mes.tar: succeeded uncompressing 5447680 bytes3 +> mkdir /nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1 4 +> cd /nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1 5 +> untar --non-strict --file /build/mes.tar 6non-strict mode enabled, preparing for chaos7The extraction of /build/mes.tar was successful8 +> MES_PREFIX=/nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1/mes-0.27.1 9 +> cd /nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1/mes-0.27.1 10 +> cp /nix/store/c5j9vs12r91gg1vm7yzsjq8wf75yx84x-config.h include/mes/config.h 11 +> exit_c=lib/linux/x86_64-mes-gcc/_exit.c 12 +> replace --file lib/linux/x86_64-mes-gcc/_exit.c --output lib/linux/x86_64-mes-gcc/_exit.c --match-on (code) --replace-with (code) : "rax", "rdi" 13 +> cp /nix/store/i3jn2ygdzlj9dj3ypxn9my64dy3ykzhi-setjmp_x86_64.c lib/x86_64-mes-gcc/setjmp.c 14 +> link_c=lib/linux/link.c 15 +> replace --file lib/linux/link.c --output lib/linux/link.c --match-on _sys_call4 --replace-with _sys_call5 16 +> replace --file lib/linux/link.c --output lib/linux/link.c --match-on AT_FDCWD, (long) new_name --replace-with AT_FDCWD, (long) new_name, 0 17 +> amd64_syscall_h=include/linux/x86_64/syscall.h 18 +> replace --file include/linux/x86_64/syscall.h --output include/linux/x86_64/syscall.h --match-on SYS_nanosleep 0x33 --replace-with SYS_nanosleep 0x23 19 +> strpbrk_c=lib/string/strpbrk.c 20 +> replace --file lib/string/strpbrk.c --output lib/string/strpbrk.c --match-on return p; --replace-with return 0; 21 +> replace --file lib/string/strpbrk.c --output lib/string/strpbrk.c --match-on break; --replace-with return p; 22 +> ntoab=lib/mes/ntoab.c 23 +> replace --file lib/mes/ntoab.c --output lib/mes/ntoab.c --match-on size_t --replace-with unsigned long 24 +> ioctl=lib/linux/ioctl3.c 25 +> replace --file lib/linux/ioctl3.c --output lib/linux/ioctl3.c --match-on size_t --replace-with unsigned long 26 +> lib_h=include/mes/lib.h 27 +> replace --file include/mes/lib.h --output include/mes/lib.h --match-on size_t command --replace-with unsigned long command 28 +> vfprintf_c=lib/stdio/vfprintf.c 29 +> replace --file lib/stdio/vfprintf.c --output lib/stdio/vfprintf.c --match-on int count = 0; --replace-with int count = 0; int has_l = 0; 30 +> replace --file lib/stdio/vfprintf.c --output lib/stdio/vfprintf.c --match-on long d = va_arg (ap, long); --replace-with 31 long d;32 if (has_l) {33 has_l = 0;34 d = va_arg (ap, long);35 } else if (c != 'd' && c != 'i') {36 d = (long) (va_arg (ap, unsigned int));37 } else {38 d = (long) (va_arg (ap, int));39 }40 41 +> replace --file lib/stdio/vfprintf.c --output lib/stdio/vfprintf.c --match-on if (c == 'l') --replace-with 42 if (c == 'l') {43 /* this is annoying to patch... */44 has_l = 1;45 c = *++p;46 } else if (0) 47 +> replace --file lib/stdio/vfprintf.c --output lib/stdio/vfprintf.c --match-on va_arg8 --replace-with va_arg 48 +> vsnprintf_c=lib/stdio/vsnprintf.c 49 +> replace --file lib/stdio/vsnprintf.c --output lib/stdio/vsnprintf.c --match-on int count = 0; --replace-with int count = 0; int has_l = 0; 50 +> replace --file lib/stdio/vsnprintf.c --output lib/stdio/vsnprintf.c --match-on long d = va_arg (ap, long); --replace-with 51 long d;52 if (has_l) {53 has_l = 0;54 d = va_arg (ap, long);55 } else if (c != 'd' && c != 'i') {56 d = (long) (va_arg (ap, unsigned int));57 } else {58 d = (long) (va_arg (ap, int));59 }60 61 +> replace --file lib/stdio/vsnprintf.c --output lib/stdio/vsnprintf.c --match-on if (c == 'l') --replace-with 62 if (c == 'l') {63 /* this is annoying to patch... */64 has_l = 1;65 c = *++p;66 } else if (0) 67 +> replace --file lib/stdio/vsnprintf.c --output lib/stdio/vsnprintf.c --match-on va_arg8 --replace-with va_arg 68 +> mkdir include/arch 69 +> cp include/linux/x86_64/kernel-stat.h include/arch/kernel-stat.h 70 +> cp include/linux/x86_64/signal.h include/arch/signal.h 71 +> cp include/linux/x86_64/syscall.h include/arch/syscall.h 72 +> rm mes/module/mes/psyntax.pp mes/module/mes/psyntax.pp.header 73 +> cp mes/module/srfi/srfi-9-struct.mes mes/module/srfi/srfi-9.mes 74 +> cp mes/module/srfi/srfi-9/gnu-struct.mes mes/module/srfi/srfi-9/gnu.mes 75 +> __GUILE_LOAD_PATH="/nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1/mes-0.27.1/mes/module:/nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1/mes-0.27.1/module:/nix/store/d2sn1b4i5r4hlz0sy039cb2y88pr7ga5-nyacc-1.09.1/share/nyacc-1.09.1/module" 76 +> guile_module_scm=mes/module/mes/guile-module.mes 77 +> guile_mes=mes/module/mes/guile.mes 78 +> replace --file mes/module/mes/guile-module.mes --output mes/module/mes/guile-module.mes --match-on (getenv "GUILE_LOAD_PATH") --replace-with "/nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1/mes-0.27.1/mes/module:/nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1/mes-0.27.1/module:/nix/store/d2sn1b4i5r4hlz0sy039cb2y88pr7ga5-nyacc-1.09.1/share/nyacc-1.09.1/module" 79 +> replace --file mes/module/mes/guile.mes --output mes/module/mes/guile.mes --match-on (getenv "GUILE_LOAD_PATH") --replace-with "/nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1/mes-0.27.1/mes/module:/nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1/mes-0.27.1/module:/nix/store/d2sn1b4i5r4hlz0sy039cb2y88pr7ga5-nyacc-1.09.1/share/nyacc-1.09.1/module" 80 +> module_mescc_scm=module/mescc/mescc.scm 81 +> replace --file module/mescc/mescc.scm --output module/mescc/mescc.scm --match-on (getenv "M1") --replace-with "/nix/store/53zd871rgpcvi7qmqkffxhzaiq0is7k4-mescc-tools-1.9.1/bin/M1" 82 +> replace --file module/mescc/mescc.scm --output module/mescc/mescc.scm --match-on (getenv "HEX2") --replace-with "/nix/store/53zd871rgpcvi7qmqkffxhzaiq0is7k4-mescc-tools-1.9.1/bin/hex2" 83 +> replace --file module/mescc/mescc.scm --output module/mescc/mescc.scm --match-on (getenv "BLOOD_ELF") --replace-with "/nix/store/53zd871rgpcvi7qmqkffxhzaiq0is7k4-mescc-tools-1.9.1/bin/blood-elf" 84 +> replace --file module/mescc/mescc.scm --output module/mescc/mescc.scm --match-on (getenv "srcdest") --replace-with "/nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1/mes-0.27.1" 85 +> mes_c=src/mes.c 86 +> replace --file src/mes.c --output src/mes.c --match-on getenv ("MES_PREFIX") --replace-with "/nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1/mes-0.27.1" 87 +> replace --file src/mes.c --output src/mes.c --match-on getenv ("srcdest") --replace-with "/nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1/mes-0.27.1" 88 +> gc_c=src/gc.c 89 +> replace --file src/gc.c --output src/gc.c --match-on getenv ("MES_ARENA") --replace-with "100000000" 90 +> replace --file src/gc.c --output src/gc.c --match-on getenv ("MES_MAX_ARENA") --replace-with "100000000" 91 +> replace --file src/gc.c --output src/gc.c --match-on getenv ("MES_STACK") --replace-with "6000000" 92 +> mescc_in=scripts/mescc.scm.in 93 +> replace --file scripts/mescc.scm.in --output scripts/mescc.scm.in --match-on (getenv "MES_PREFIX") --replace-with "/nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1/mes-0.27.1" 94 +> replace --file scripts/mescc.scm.in --output scripts/mescc.scm.in --match-on (getenv "includedir") --replace-with "/nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1/mes-0.27.1/include" 95 +> replace --file scripts/mescc.scm.in --output scripts/mescc.scm.in --match-on (getenv "libdir") --replace-with "/nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1/mes-0.27.1/lib" 96 +> replace --file scripts/mescc.scm.in --output scripts/mescc.scm.in --match-on @prefix@ --replace-with /nix/store/vhbf57apsjqv01fnvhavm6iyk91m91si-mes-src-0.27.1/mes-0.27.1 97 +> replace --file scripts/mescc.scm.in --output scripts/mescc.scm.in --match-on @VERSION@ --replace-with 0.27.1 98 +> replace --file scripts/mescc.scm.in --output scripts/mescc.scm.in --match-on @mes_cpu@ --replace-with x86_64 99 +> replace --file scripts/mescc.scm.in --output scripts/mescc.scm.in --match-on @mes_kernel@ --replace-with linux 100 +> mkdir -p /nix/store/n9mj1f0ipsva4vyd2llpdgv3wyrcmsm1-mes-src-0.27.1-bin/bin 101 +> cp scripts/mescc.scm.in /nix/store/n9mj1f0ipsva4vyd2llpdgv3wyrcmsm1-mes-src-0.27.1-bin/bin/mescc.scm 102 +> kaem --verbose --strict --file kaem.x86_64 103 +> cc_cpu=x86_64 104 +> mes_cpu=x86_64 105 +> stage0_cpu=amd64 106 +> blood_elf_flag=--64 107 +> kaem --verbose --strict 108 +> cc_cpu=x86_64 109 +> mes_cpu=x86_64 110 +> stage0_cpu=amd64 111 +> blood_elf_flag=--64 112 +> mkdir -p m2 113 +> M2-Planet --debug --architecture amd64 -D __x86_64__=1 -D __linux__=1 -f include/mes/config.h -f include/mes/lib-mini.h -f include/mes/lib.h -f lib/linux/x86_64-mes-m2/crt1.c -f lib/mes/__init_io.c -f lib/linux/x86_64-mes-m2/_exit.c -f lib/linux/x86_64-mes-m2/_write.c -f lib/mes/globals.c -f lib/m2/cast.c -f lib/stdlib/exit.c -f lib/mes/write.c -f include/linux/x86_64/syscall.h -f lib/linux/x86_64-mes-m2/syscall.c -f lib/stub/__raise.c -f lib/linux/brk.c -f lib/linux/malloc.c -f lib/string/memset.c -f lib/linux/read.c -f lib/mes/fdgetc.c -f lib/stdio/getchar.c -f lib/stdio/putchar.c -f lib/stub/__buffered_read.c -f include/errno.h -f include/fcntl.h -f lib/linux/_open3.c -f lib/linux/open.c -f lib/mes/mes_open.c -f lib/string/strlen.c -f lib/mes/eputs.c -f lib/mes/fdputc.c -f lib/mes/eputc.c -f include/time.h -f include/sys/time.h -f include/m2/types.h -f include/sys/types.h -f include/sys/utsname.h -f include/mes/mes.h -f include/mes/builtins.h -f include/mes/constants.h -f include/mes/symbols.h -f lib/mes/__assert_fail.c -f lib/mes/assert_msg.c -f lib/mes/fdputc.c -f lib/string/strncmp.c -f lib/posix/getenv.c -f lib/mes/fdputs.c -f lib/mes/ntoab.c -f lib/ctype/isdigit.c -f lib/ctype/isxdigit.c -f lib/ctype/isspace.c -f lib/ctype/isnumber.c -f lib/mes/abtol.c -f lib/stdlib/atoi.c -f lib/string/memcpy.c -f lib/stdlib/free.c -f lib/stdlib/realloc.c -f lib/string/strcpy.c -f lib/mes/itoa.c -f lib/mes/ltoa.c -f lib/mes/fdungetc.c -f lib/posix/setenv.c -f lib/linux/access.c -f include/linux/m2/kernel-stat.h -f include/sys/stat.h -f lib/linux/chmod.c -f lib/linux/ioctl3.c -f include/sys/ioctl.h -f lib/m2/isatty.c -f include/signal.h -f lib/linux/fork.c -f lib/m2/execve.c -f lib/m2/execv.c -f include/sys/resource.h -f lib/linux/wait4.c -f lib/linux/waitpid.c -f lib/linux/gettimeofday.c -f lib/linux/clock_gettime.c -f lib/m2/time.c -f lib/linux/_getcwd.c -f include/limits.h -f lib/m2/getcwd.c -f lib/linux/dup.c -f lib/linux/dup2.c -f lib/string/strcmp.c -f lib/string/memcmp.c -f lib/linux/uname.c -f lib/linux/unlink.c -f src/builtins.c -f src/core.c -f src/display.c -f src/eval-apply.c -f src/gc.c -f src/hash.c -f src/lib.c -f src/m2.c -f src/math.c -f src/mes.c -f src/module.c -f src/posix.c -f src/reader.c -f src/stack.c -f src/string.c -f src/struct.c -f src/symbol.c -f src/variable.c -f src/vector.c -o m2/mes.M1 114 +> blood-elf --64 --little-endian -f m2/mes.M1 -o m2/mes.blood-elf-M1 115 +> M1 --architecture amd64 --little-endian -f lib/m2/x86_64/x86_64_defs.M1 -f lib/x86_64-mes/x86_64.M1 -f lib/linux/x86_64-mes-m2/crt1.M1 -f m2/mes.M1 -f m2/mes.blood-elf-M1 -o m2/mes.hex2 116 +> mkdir -p bin 117 +> hex2 --architecture amd64 --little-endian --base-address 0x1000000 -f lib/m2/x86_64/ELF-x86_64.hex2 -f m2/mes.hex2 -o bin/mes-m2 118 +> echo Running mes-m2 119Running mes-m2120 +> GUILE_LOAD_PATH=mes/module:module 121 +> ./bin/mes-m2 -c (display 'Hello,M2-mes!) (newline) 122Hello,M2-mes!123 +> GUILE_LOAD_PATH=/fubar 124 +> cp bin/mes-m2 bin/mes 125 +> cp bin/mes-m2 /nix/store/n9mj1f0ipsva4vyd2llpdgv3wyrcmsm1-mes-src-0.27.1-bin/bin/mes-m2 126 +> chmod 555 /nix/store/n9mj1f0ipsva4vyd2llpdgv3wyrcmsm1-mes-src-0.27.1-bin/bin/mes-m2