WARNING: (guile-user): imported module (guix build utils) overrides core binding `delete' starting phase `set-SOURCE-DATE-EPOCH' phase `set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds starting phase `set-paths' environment variable `PATH' set to `/gnu/store/niim0yxfg2nmgap4f6i23wajyh20yjps-gcc-cross-mips64el-linux-gnu-10.3.0/bin:/gnu/store/rcyxm3kwh8lgqz7dn7r80hp86m7rx12m-binutils-cross-mips64el-linux-gnu-2.37/bin:/gnu/store/g2ajyl8xk9aarxrgjbng2hkj3qm2v0z2-tar-1.34/bin:/gnu/store/iixwcv3k49ks1rf34pjgfzmzyhhgwng3-gzip-1.10/bin:/gnu/store/s3hl12jxz9ybs7nsy7kq7ybzz7qnzmsg-bzip2-1.0.8/bin:/gnu/store/c8isj4jq6knv0icfgr43di6q3nvdzkx7-xz-5.2.5/bin:/gnu/store/4ic6244i3ca4b4rxc2wnrgllsidyishv-file-5.39/bin:/gnu/store/ahmmvw21p11ik80lg1f953y7fd8bqkjm-diffutils-3.8/bin:/gnu/store/z39hnrwds1dgcbpfgj8dnv2cngjb2xbl-patch-2.7.6/bin:/gnu/store/39rsx3nl4c31952jybbjb8d6idr5hx7r-findutils-4.8.0/bin:/gnu/store/690qz3fg334dpwn3pn6k59n4wc943p2b-gawk-5.1.0/bin:/gnu/store/wxgv6i8g0p24q5gcyzd0yr07s8kn9680-sed-4.8/bin:/gnu/store/xjwp2hsd9256icjjybfrmznppjicywf6-grep-3.6/bin:/gnu/store/d251rfgc9nm2clzffzhgiipdvfvzkvwi-coreutils-8.32/bin:/gnu/store/55cbpsi18mahg131nmiya6km5b4mscfa-make-4.3/bin:/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin:/gnu/store/s2pg5k98fl2g2szg9dykxyd9zl3xihv9-ld-wrapper-0/bin:/gnu/store/rc781v4k0drhaqn90xfwwpspki5x0bvf-binutils-2.37/bin:/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/bin:/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/bin:/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/sbin' environment variable `CROSS_LIBRARY_PATH' set to `/gnu/store/v5lb1v85ahwfch9fcs4zgzv26dxm912a-python-3.9.9/lib:/gnu/store/2w65xlaa38h856djxb2lqck4drbh3x5l-glibc-cross-mips64el-linux-gnu-2.33/lib:/gnu/store/3gw835lfbggn7jqkfq8agss0dxpvz2c9-glibc-cross-mips64el-linux-gnu-2.33-static/lib' environment variable `CROSS_C_INCLUDE_PATH' set to `/gnu/store/v5lb1v85ahwfch9fcs4zgzv26dxm912a-python-3.9.9/include:/gnu/store/niim0yxfg2nmgap4f6i23wajyh20yjps-gcc-cross-mips64el-linux-gnu-10.3.0/include:/gnu/store/2w65xlaa38h856djxb2lqck4drbh3x5l-glibc-cross-mips64el-linux-gnu-2.33/include:/gnu/store/5wxj5a1imgx4gm50frnsri7v10lm139a-linux-libre-headers-cross-mips64el-linux-gnu-5.10.35/include' environment variable `CROSS_CPLUS_INCLUDE_PATH' set to `/gnu/store/v5lb1v85ahwfch9fcs4zgzv26dxm912a-python-3.9.9/include:/gnu/store/niim0yxfg2nmgap4f6i23wajyh20yjps-gcc-cross-mips64el-linux-gnu-10.3.0/include/c++:/gnu/store/niim0yxfg2nmgap4f6i23wajyh20yjps-gcc-cross-mips64el-linux-gnu-10.3.0/include:/gnu/store/2w65xlaa38h856djxb2lqck4drbh3x5l-glibc-cross-mips64el-linux-gnu-2.33/include:/gnu/store/5wxj5a1imgx4gm50frnsri7v10lm139a-linux-libre-headers-cross-mips64el-linux-gnu-5.10.35/include' environment variable `CROSS_OBJC_INCLUDE_PATH' set to `/gnu/store/v5lb1v85ahwfch9fcs4zgzv26dxm912a-python-3.9.9/include:/gnu/store/niim0yxfg2nmgap4f6i23wajyh20yjps-gcc-cross-mips64el-linux-gnu-10.3.0/include:/gnu/store/2w65xlaa38h856djxb2lqck4drbh3x5l-glibc-cross-mips64el-linux-gnu-2.33/include:/gnu/store/5wxj5a1imgx4gm50frnsri7v10lm139a-linux-libre-headers-cross-mips64el-linux-gnu-5.10.35/include' environment variable `CROSS_OBJCPLUS_INCLUDE_PATH' set to `/gnu/store/v5lb1v85ahwfch9fcs4zgzv26dxm912a-python-3.9.9/include:/gnu/store/niim0yxfg2nmgap4f6i23wajyh20yjps-gcc-cross-mips64el-linux-gnu-10.3.0/include:/gnu/store/2w65xlaa38h856djxb2lqck4drbh3x5l-glibc-cross-mips64el-linux-gnu-2.33/include:/gnu/store/5wxj5a1imgx4gm50frnsri7v10lm139a-linux-libre-headers-cross-mips64el-linux-gnu-5.10.35/include' environment variable `BASH_LOADABLES_PATH' unset environment variable `C_INCLUDE_PATH' set to `/gnu/store/niim0yxfg2nmgap4f6i23wajyh20yjps-gcc-cross-mips64el-linux-gnu-10.3.0/include:/gnu/store/rcyxm3kwh8lgqz7dn7r80hp86m7rx12m-binutils-cross-mips64el-linux-gnu-2.37/include:/gnu/store/s3hl12jxz9ybs7nsy7kq7ybzz7qnzmsg-bzip2-1.0.8/include:/gnu/store/c8isj4jq6knv0icfgr43di6q3nvdzkx7-xz-5.2.5/include:/gnu/store/4ic6244i3ca4b4rxc2wnrgllsidyishv-file-5.39/include:/gnu/store/690qz3fg334dpwn3pn6k59n4wc943p2b-gawk-5.1.0/include:/gnu/store/55cbpsi18mahg131nmiya6km5b4mscfa-make-4.3/include:/gnu/store/rc781v4k0drhaqn90xfwwpspki5x0bvf-binutils-2.37/include:/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/include:/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/include:/gnu/store/6mjww4iz4xdan74d5bbjfh7il8rngfkk-linux-libre-headers-5.10.35/include' environment variable `CPLUS_INCLUDE_PATH' set to `/gnu/store/niim0yxfg2nmgap4f6i23wajyh20yjps-gcc-cross-mips64el-linux-gnu-10.3.0/include/c++:/gnu/store/niim0yxfg2nmgap4f6i23wajyh20yjps-gcc-cross-mips64el-linux-gnu-10.3.0/include:/gnu/store/rcyxm3kwh8lgqz7dn7r80hp86m7rx12m-binutils-cross-mips64el-linux-gnu-2.37/include:/gnu/store/s3hl12jxz9ybs7nsy7kq7ybzz7qnzmsg-bzip2-1.0.8/include:/gnu/store/c8isj4jq6knv0icfgr43di6q3nvdzkx7-xz-5.2.5/include:/gnu/store/4ic6244i3ca4b4rxc2wnrgllsidyishv-file-5.39/include:/gnu/store/690qz3fg334dpwn3pn6k59n4wc943p2b-gawk-5.1.0/include:/gnu/store/55cbpsi18mahg131nmiya6km5b4mscfa-make-4.3/include:/gnu/store/rc781v4k0drhaqn90xfwwpspki5x0bvf-binutils-2.37/include:/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/include/c++:/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/include:/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/include:/gnu/store/6mjww4iz4xdan74d5bbjfh7il8rngfkk-linux-libre-headers-5.10.35/include' environment variable `LIBRARY_PATH' set to `/gnu/store/rcyxm3kwh8lgqz7dn7r80hp86m7rx12m-binutils-cross-mips64el-linux-gnu-2.37/lib:/gnu/store/s3hl12jxz9ybs7nsy7kq7ybzz7qnzmsg-bzip2-1.0.8/lib:/gnu/store/c8isj4jq6knv0icfgr43di6q3nvdzkx7-xz-5.2.5/lib:/gnu/store/4ic6244i3ca4b4rxc2wnrgllsidyishv-file-5.39/lib:/gnu/store/690qz3fg334dpwn3pn6k59n4wc943p2b-gawk-5.1.0/lib:/gnu/store/rc781v4k0drhaqn90xfwwpspki5x0bvf-binutils-2.37/lib:/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib:/gnu/store/4jdghmc65q7i7ib89zmvq66l0ghf7jc4-glibc-2.33-static/lib:/gnu/store/fnr1z6xsan0437r0yg48d0y8k32kqxby-glibc-utf8-locales-2.33/lib' environment variable `GUIX_LOCPATH' set to `/gnu/store/fnr1z6xsan0437r0yg48d0y8k32kqxby-glibc-utf8-locales-2.33/lib/locale' environment variable `GUIX_PYTHONPATH' unset environment variable `PYTHONTZPATH' unset phase `set-paths' succeeded after 0.0 seconds starting phase `install-locale' using 'en_US.utf8' locale for category "LC_ALL" phase `install-locale' succeeded after 0.0 seconds starting phase `unpack' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/LICENSE.md' -> `./LICENSE.md' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/README.md' -> `./README.md' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/amalgamate.py' -> `./amalgamate.py' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test.sh' -> `./test.sh' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/include.h.expected' -> `./test/include.h.expected' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/include.h.json' -> `./test/include.h.json' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/include.h.prologue' -> `./test/include.h.prologue' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/source.c.expected' -> `./test/source.c.expected' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/source.c.json' -> `./test/source.c.json' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/source.c.prologue' -> `./test/source.c.prologue' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/source/bar.c' -> `./test/source/bar.c' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/source/foo.c' -> `./test/source/foo.c' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/source/main.c' -> `./test/source/main.c' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/include/all.h' -> `./test/include/all.h' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/include/bar.h' -> `./test/include/bar.h' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/include/foo.h' -> `./test/include/foo.h' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/include/pragma_once.h' -> `./test/include/pragma_once.h' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/include/test.h' -> `./test/include/test.h' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/baz.h' -> `./test/include/more/baz.h' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/in_nested_dir.h' -> `./test/include/more/in_nested_dir.h' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/local.h' -> `./test/include/more/local.h' `/gnu/store/x7g6pjknp5qwqhn1zp0zynrw8h5h84yx-amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/time.h' -> `./test/include/more/time.h' phase `unpack' succeeded after 0.0 seconds starting phase `bootstrap' no 'configure.ac' or anything like that, doing nothing phase `bootstrap' succeeded after 0.0 seconds starting phase `patch-usr-bin-file' phase `patch-usr-bin-file' succeeded after 0.0 seconds starting phase `patch-source-shebangs' patch-shebang: ./amalgamate.py: warning: no binary for interpreter `python' found in $PATH patch-shebang: ./test.sh: changing `/bin/bash' to `/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash' phase `patch-source-shebangs' succeeded after 0.0 seconds starting phase `patch-generated-file-shebangs' patch-shebang: ./amalgamate.py: warning: no binary for interpreter `python' found in $PATH phase `patch-generated-file-shebangs' succeeded after 0.0 seconds starting phase `check' test_amalgamation "source.c"... ./test.sh: /tmp/guix-build-amalgamate-1.1.1-0.c91f07e.drv-0/source/amalgamate.py: /usr/bin/env: bad interpreter: No such file or directory *** TEST FAILURE *** Unexpected diff: --- /tmp/guix-build-amalgamate-1.1.1-0.c91f07e.drv-0/source/test/source.c.expected 1970-01-01 00:00:01.000000000 +0000 +++ source.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,117 +0,0 @@ -/** - * This is a test source prologue file. - */ - -#include -#include - -char quote = '"'; - -const char* empty = ""; -const char* wrap_begin = "begin"; - -// #include "bar.h" -#ifndef BAR_H -#define BAR_H - -// #include "foo.h" -#ifndef FOO_H -#define FOO_H - -// #include "bar.h" -// #include -/* #include "bar.h" */ -/* #include */ - -int foo(); - -#endif // FOO_H - - -// #include "pragma_once.h" - - -int pragma_once(); - - -int bar(); - -#endif // BAR_H - - -// #include "test.h" -#ifndef TEST_H -#define TEST_H - -#undef NDEBUG -#include - -#endif // TEST_H - - -// #include "pragma_once.h" - -// #include "more/in_nested_dir.h" -#include -// #include "local.h" -#ifndef LOCAL_H -#define LOCAL_H - -int local(); - -#endif // LOCAL_H - - - -int in_nested_dir = 0; - - -const char* wrap_end = "end"; - -/* " */ // #include -int baz = 0; - // " - -const char* include_foo1 = "#include \"foo.h\""; -const char* include_bar1 = "#include \"bar.h\""; -const char* include_test1 = "\"#include \"test.h\"\""; - -const char* include_foo2 = "#include "; -const char* include_bar2 = "#include "; -const char* include_test2 = "\"#include \""; - -const char* include_multiple = "\ -#include \ -#include \ -\"#include \" \ -"; - -const char* include_concat = """#include "; - -int main(int argc, char* argv[]) -{ - (void)argc; - printf("%s\n", argv[0]); - assert(foo() == 1); - assert(bar() == 2); - return EXIT_SUCCESS; -} - - -// #include "foo.h" - - -int foo() -{ - return 1; -} - - -// #include "bar.h" - - -int bar() -{ - return 1 + foo(); -} - error: in phase 'check': uncaught exception: %exception #<&invoke-error program: "./test.sh" arguments: () exit-status: 1 term-signal: #f stop-signal: #f> phase `check' failed after 0.1 seconds command "./test.sh" failed with status 1