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/cd9b80i9xvfpzl6x0fd5l161ci1wqx0j-gcc-cross-powerpc64-linux-gnu-11.3.0/bin:/gnu/store/x8qjabgp5pl885swjlkhly3i6dh8hlgm-binutils-cross-powerpc64-linux-gnu-2.38/bin:/gnu/store/sxx22f98vfbavcqmdksm6as8fvskpxiw-tar-1.34/bin:/gnu/store/x24bm49ag5dvki72mjdz195bfb89nrnb-gzip-1.12/bin:/gnu/store/j8wlfmlmfvpbza6is9wv9xsd8psrxn00-bzip2-1.0.8/bin:/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/bin:/gnu/store/zmcf5kpqiighkbh7wslf91qdjwj06yr1-diffutils-3.8/bin:/gnu/store/210yfax18r2g2inxrml9435ikhfcca6m-patch-2.7.6/bin:/gnu/store/c8jyph2lxw0m9na34fg8h70n4nnnz7is-findutils-4.9.0/bin:/gnu/store/hc05d76f1j3iz3v2bs5jz4fpljl1r4dj-gawk-5.2.1/bin:/gnu/store/xxcfsimvxz7z4dj593gnqbkzc6picwzq-sed-4.8/bin:/gnu/store/yrv5f70mn83a876b78i5s79dd2hsh0zf-grep-3.8/bin:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/bin:/gnu/store/a5i8avx826brw5grn3n4qv40g514505c-coreutils-9.1/bin:/gnu/store/wj7casda7rb55rvqjnpm0bm7a2zm6618-make-4.3/bin:/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin:/gnu/store/na1dpbbcxjaa3n8wkwrfpch476f90hlf-ld-wrapper-0/bin:/gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/bin:/gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/bin:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/bin:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/sbin' environment variable `CROSS_LIBRARY_PATH' set to `/gnu/store/4b0qsr824cimvyf0za6apik9k4fvr721-python-3.10.7/lib:/gnu/store/ac6zjnbz837j1z1h0ry4ranxirr61gsl-glibc-cross-powerpc64-linux-gnu-2.35/lib:/gnu/store/miqhry4w46g99x9nrldy1kg9277h530p-glibc-cross-powerpc64-linux-gnu-2.35-static/lib' environment variable `CROSS_C_INCLUDE_PATH' set to `/gnu/store/4b0qsr824cimvyf0za6apik9k4fvr721-python-3.10.7/include:/gnu/store/cd9b80i9xvfpzl6x0fd5l161ci1wqx0j-gcc-cross-powerpc64-linux-gnu-11.3.0/include:/gnu/store/ac6zjnbz837j1z1h0ry4ranxirr61gsl-glibc-cross-powerpc64-linux-gnu-2.35/include:/gnu/store/n0gm6rr5zaabyfvnc0j6vc10l4rvmqzl-linux-libre-headers-cross-powerpc64-linux-gnu-5.15.49/include' environment variable `CROSS_CPLUS_INCLUDE_PATH' set to `/gnu/store/4b0qsr824cimvyf0za6apik9k4fvr721-python-3.10.7/include:/gnu/store/cd9b80i9xvfpzl6x0fd5l161ci1wqx0j-gcc-cross-powerpc64-linux-gnu-11.3.0/include/c++:/gnu/store/cd9b80i9xvfpzl6x0fd5l161ci1wqx0j-gcc-cross-powerpc64-linux-gnu-11.3.0/include:/gnu/store/ac6zjnbz837j1z1h0ry4ranxirr61gsl-glibc-cross-powerpc64-linux-gnu-2.35/include:/gnu/store/n0gm6rr5zaabyfvnc0j6vc10l4rvmqzl-linux-libre-headers-cross-powerpc64-linux-gnu-5.15.49/include' environment variable `CROSS_OBJC_INCLUDE_PATH' set to `/gnu/store/4b0qsr824cimvyf0za6apik9k4fvr721-python-3.10.7/include:/gnu/store/cd9b80i9xvfpzl6x0fd5l161ci1wqx0j-gcc-cross-powerpc64-linux-gnu-11.3.0/include:/gnu/store/ac6zjnbz837j1z1h0ry4ranxirr61gsl-glibc-cross-powerpc64-linux-gnu-2.35/include:/gnu/store/n0gm6rr5zaabyfvnc0j6vc10l4rvmqzl-linux-libre-headers-cross-powerpc64-linux-gnu-5.15.49/include' environment variable `CROSS_OBJCPLUS_INCLUDE_PATH' set to `/gnu/store/4b0qsr824cimvyf0za6apik9k4fvr721-python-3.10.7/include:/gnu/store/cd9b80i9xvfpzl6x0fd5l161ci1wqx0j-gcc-cross-powerpc64-linux-gnu-11.3.0/include:/gnu/store/ac6zjnbz837j1z1h0ry4ranxirr61gsl-glibc-cross-powerpc64-linux-gnu-2.35/include:/gnu/store/n0gm6rr5zaabyfvnc0j6vc10l4rvmqzl-linux-libre-headers-cross-powerpc64-linux-gnu-5.15.49/include' environment variable `BASH_LOADABLES_PATH' unset environment variable `C_INCLUDE_PATH' set to `/gnu/store/cd9b80i9xvfpzl6x0fd5l161ci1wqx0j-gcc-cross-powerpc64-linux-gnu-11.3.0/include:/gnu/store/x8qjabgp5pl885swjlkhly3i6dh8hlgm-binutils-cross-powerpc64-linux-gnu-2.38/include:/gnu/store/j8wlfmlmfvpbza6is9wv9xsd8psrxn00-bzip2-1.0.8/include:/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/include:/gnu/store/hc05d76f1j3iz3v2bs5jz4fpljl1r4dj-gawk-5.2.1/include:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/include:/gnu/store/wj7casda7rb55rvqjnpm0bm7a2zm6618-make-4.3/include:/gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/include:/gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/include:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/include:/gnu/store/5iklcps70c0sfkxvlrhg8jhf3q4h18bj-linux-libre-headers-5.15.49/include' environment variable `CPLUS_INCLUDE_PATH' set to `/gnu/store/cd9b80i9xvfpzl6x0fd5l161ci1wqx0j-gcc-cross-powerpc64-linux-gnu-11.3.0/include/c++:/gnu/store/cd9b80i9xvfpzl6x0fd5l161ci1wqx0j-gcc-cross-powerpc64-linux-gnu-11.3.0/include:/gnu/store/x8qjabgp5pl885swjlkhly3i6dh8hlgm-binutils-cross-powerpc64-linux-gnu-2.38/include:/gnu/store/j8wlfmlmfvpbza6is9wv9xsd8psrxn00-bzip2-1.0.8/include:/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/include:/gnu/store/hc05d76f1j3iz3v2bs5jz4fpljl1r4dj-gawk-5.2.1/include:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/include:/gnu/store/wj7casda7rb55rvqjnpm0bm7a2zm6618-make-4.3/include:/gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/include:/gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/include/c++:/gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/include:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/include:/gnu/store/5iklcps70c0sfkxvlrhg8jhf3q4h18bj-linux-libre-headers-5.15.49/include' environment variable `LIBRARY_PATH' set to `/gnu/store/x8qjabgp5pl885swjlkhly3i6dh8hlgm-binutils-cross-powerpc64-linux-gnu-2.38/lib:/gnu/store/j8wlfmlmfvpbza6is9wv9xsd8psrxn00-bzip2-1.0.8/lib:/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/lib:/gnu/store/hc05d76f1j3iz3v2bs5jz4fpljl1r4dj-gawk-5.2.1/lib:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/lib:/gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/lib:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib:/gnu/store/l0yryi5jsa1grnvw01c9nkz9c81cv224-glibc-2.35-static/lib:/gnu/store/visfdda934gvivwihwhlm63fdqhhcc8a-glibc-utf8-locales-2.35/lib' environment variable `GUIX_LOCPATH' set to `/gnu/store/visfdda934gvivwihwhlm63fdqhhcc8a-glibc-utf8-locales-2.35/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/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/LICENSE.md' -> `./LICENSE.md' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test.sh' -> `./test.sh' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/README.md' -> `./README.md' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/amalgamate.py' -> `./amalgamate.py' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/source.c.json' -> `./test/source.c.json' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/source.c.prologue' -> `./test/source.c.prologue' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/include.h.json' -> `./test/include.h.json' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/include.h.expected' -> `./test/include.h.expected' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/source.c.expected' -> `./test/source.c.expected' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/include.h.prologue' -> `./test/include.h.prologue' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/include/pragma_once.h' -> `./test/include/pragma_once.h' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/include/test.h' -> `./test/include/test.h' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/include/all.h' -> `./test/include/all.h' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/include/foo.h' -> `./test/include/foo.h' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/include/bar.h' -> `./test/include/bar.h' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/in_nested_dir.h' -> `./test/include/more/in_nested_dir.h' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/baz.h' -> `./test/include/more/baz.h' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/local.h' -> `./test/include/more/local.h' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/time.h' -> `./test/include/more/time.h' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/source/foo.c' -> `./test/source/foo.c' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/source/bar.c' -> `./test/source/bar.c' `/gnu/store/as1wb9wh9kxp4k55yfjzn14cjc1xhkgn-amalgamate-1.1.1-0.c91f07e-checkout/test/source/main.c' -> `./test/source/main.c' 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/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/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.0 seconds command "./test.sh" failed with status 1