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/h7xpr2yzv86qphibb1b0shn1zli9k5dq-gcc-cross-i586-pc-gnu-10.3.0/bin:/gnu/store/aqyaf55vy2kp896hk0mawg17w8qnmaam-binutils-cross-i586-pc-gnu-2.37/bin:/gnu/store/ikc2qn1h260f8mdhjz2cwndv2i7n753z-tar-1.34/bin:/gnu/store/v5l2251ck0r4n3w2rjw3l5dzyqsb9zj1-gzip-1.10/bin:/gnu/store/w6zv2mz56wyxr471q38a3cmzm4iqimy8-bzip2-1.0.8/bin:/gnu/store/72kpdqplq4nc87fm7ch47kxy3nlkzsyx-xz-5.2.5/bin:/gnu/store/jazwfsj2v41yih2yzw5nydqgdz1hgfm4-file-5.39/bin:/gnu/store/s49sxmz9g4xmzz222cay9k04ziy3qgmj-diffutils-3.8/bin:/gnu/store/m96snvbl92ivkd32giqh5f3d21bc2n5x-patch-2.7.6/bin:/gnu/store/l8l2y2dlya5rs9hfypmcb4saay7iwn0q-findutils-4.8.0/bin:/gnu/store/v45pjc1yqmy59j9ff913p3ywn9qk4lqx-gawk-5.1.0/bin:/gnu/store/7cddr79rydhc1m4hxr921mq17pz1jj3z-sed-4.8/bin:/gnu/store/ldkm5jwql0qsrfh3ax6rljjsrk0jzv7z-grep-3.6/bin:/gnu/store/25gv43v5rm05i26z39ajrd6nsxa5r461-coreutils-8.32/bin:/gnu/store/l8kxrs01lll3pzjrd590p45l8k045q6q-make-4.3/bin:/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin:/gnu/store/k452f0r5bk6n0cbsf5ndxbp5qcf6bpfw-ld-wrapper-0/bin:/gnu/store/6mqcv52gwn2dnbislgv9k99525mzmrrs-binutils-2.37/bin:/gnu/store/vakvgvrb839igv16jkif4lmx11d25jqb-gcc-10.3.0/bin:/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/bin:/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/sbin' environment variable `CROSS_LIBRARY_PATH' set to `/gnu/store/qs0lw9lssc8p6saakjcrdcdf8y0za1dg-python-3.9.6/lib:/gnu/store/wipjb74h71gqirk9c0hxv6q0ldgg3024-glibc-cross-i586-pc-gnu-2.33/lib:/gnu/store/q0j5hrn5a3mxbd0qnxws5h3xkpj7b21a-glibc-cross-i586-pc-gnu-2.33-static/lib:/gnu/store/13r1n9xnrldz0ll1rxafv4aihaaz3j86-hurd-core-headers-cross-i586-pc-gnu-0.9-1.91a5167/lib' environment variable `CROSS_C_INCLUDE_PATH' set to `/gnu/store/qs0lw9lssc8p6saakjcrdcdf8y0za1dg-python-3.9.6/include:/gnu/store/h7xpr2yzv86qphibb1b0shn1zli9k5dq-gcc-cross-i586-pc-gnu-10.3.0/include:/gnu/store/wipjb74h71gqirk9c0hxv6q0ldgg3024-glibc-cross-i586-pc-gnu-2.33/include:/gnu/store/13r1n9xnrldz0ll1rxafv4aihaaz3j86-hurd-core-headers-cross-i586-pc-gnu-0.9-1.91a5167/include' environment variable `CROSS_CPLUS_INCLUDE_PATH' set to `/gnu/store/qs0lw9lssc8p6saakjcrdcdf8y0za1dg-python-3.9.6/include:/gnu/store/h7xpr2yzv86qphibb1b0shn1zli9k5dq-gcc-cross-i586-pc-gnu-10.3.0/include/c++:/gnu/store/h7xpr2yzv86qphibb1b0shn1zli9k5dq-gcc-cross-i586-pc-gnu-10.3.0/include:/gnu/store/wipjb74h71gqirk9c0hxv6q0ldgg3024-glibc-cross-i586-pc-gnu-2.33/include:/gnu/store/13r1n9xnrldz0ll1rxafv4aihaaz3j86-hurd-core-headers-cross-i586-pc-gnu-0.9-1.91a5167/include' environment variable `CROSS_OBJC_INCLUDE_PATH' set to `/gnu/store/qs0lw9lssc8p6saakjcrdcdf8y0za1dg-python-3.9.6/include:/gnu/store/h7xpr2yzv86qphibb1b0shn1zli9k5dq-gcc-cross-i586-pc-gnu-10.3.0/include:/gnu/store/wipjb74h71gqirk9c0hxv6q0ldgg3024-glibc-cross-i586-pc-gnu-2.33/include:/gnu/store/13r1n9xnrldz0ll1rxafv4aihaaz3j86-hurd-core-headers-cross-i586-pc-gnu-0.9-1.91a5167/include' environment variable `CROSS_OBJCPLUS_INCLUDE_PATH' set to `/gnu/store/qs0lw9lssc8p6saakjcrdcdf8y0za1dg-python-3.9.6/include:/gnu/store/h7xpr2yzv86qphibb1b0shn1zli9k5dq-gcc-cross-i586-pc-gnu-10.3.0/include:/gnu/store/wipjb74h71gqirk9c0hxv6q0ldgg3024-glibc-cross-i586-pc-gnu-2.33/include:/gnu/store/13r1n9xnrldz0ll1rxafv4aihaaz3j86-hurd-core-headers-cross-i586-pc-gnu-0.9-1.91a5167/include' environment variable `BASH_LOADABLES_PATH' unset environment variable `C_INCLUDE_PATH' set to `/gnu/store/h7xpr2yzv86qphibb1b0shn1zli9k5dq-gcc-cross-i586-pc-gnu-10.3.0/include:/gnu/store/aqyaf55vy2kp896hk0mawg17w8qnmaam-binutils-cross-i586-pc-gnu-2.37/include:/gnu/store/w6zv2mz56wyxr471q38a3cmzm4iqimy8-bzip2-1.0.8/include:/gnu/store/72kpdqplq4nc87fm7ch47kxy3nlkzsyx-xz-5.2.5/include:/gnu/store/jazwfsj2v41yih2yzw5nydqgdz1hgfm4-file-5.39/include:/gnu/store/v45pjc1yqmy59j9ff913p3ywn9qk4lqx-gawk-5.1.0/include:/gnu/store/l8kxrs01lll3pzjrd590p45l8k045q6q-make-4.3/include:/gnu/store/6mqcv52gwn2dnbislgv9k99525mzmrrs-binutils-2.37/include:/gnu/store/vakvgvrb839igv16jkif4lmx11d25jqb-gcc-10.3.0/include:/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/include:/gnu/store/99a2njzz22dkzd8pz75fsi5nbgv9ww0x-linux-libre-headers-5.10.35/include' environment variable `CPLUS_INCLUDE_PATH' set to `/gnu/store/h7xpr2yzv86qphibb1b0shn1zli9k5dq-gcc-cross-i586-pc-gnu-10.3.0/include/c++:/gnu/store/h7xpr2yzv86qphibb1b0shn1zli9k5dq-gcc-cross-i586-pc-gnu-10.3.0/include:/gnu/store/aqyaf55vy2kp896hk0mawg17w8qnmaam-binutils-cross-i586-pc-gnu-2.37/include:/gnu/store/w6zv2mz56wyxr471q38a3cmzm4iqimy8-bzip2-1.0.8/include:/gnu/store/72kpdqplq4nc87fm7ch47kxy3nlkzsyx-xz-5.2.5/include:/gnu/store/jazwfsj2v41yih2yzw5nydqgdz1hgfm4-file-5.39/include:/gnu/store/v45pjc1yqmy59j9ff913p3ywn9qk4lqx-gawk-5.1.0/include:/gnu/store/l8kxrs01lll3pzjrd590p45l8k045q6q-make-4.3/include:/gnu/store/6mqcv52gwn2dnbislgv9k99525mzmrrs-binutils-2.37/include:/gnu/store/vakvgvrb839igv16jkif4lmx11d25jqb-gcc-10.3.0/include/c++:/gnu/store/vakvgvrb839igv16jkif4lmx11d25jqb-gcc-10.3.0/include:/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/include:/gnu/store/99a2njzz22dkzd8pz75fsi5nbgv9ww0x-linux-libre-headers-5.10.35/include' environment variable `LIBRARY_PATH' set to `/gnu/store/aqyaf55vy2kp896hk0mawg17w8qnmaam-binutils-cross-i586-pc-gnu-2.37/lib:/gnu/store/w6zv2mz56wyxr471q38a3cmzm4iqimy8-bzip2-1.0.8/lib:/gnu/store/72kpdqplq4nc87fm7ch47kxy3nlkzsyx-xz-5.2.5/lib:/gnu/store/jazwfsj2v41yih2yzw5nydqgdz1hgfm4-file-5.39/lib:/gnu/store/v45pjc1yqmy59j9ff913p3ywn9qk4lqx-gawk-5.1.0/lib:/gnu/store/6mqcv52gwn2dnbislgv9k99525mzmrrs-binutils-2.37/lib:/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/lib:/gnu/store/3ywv7s8d38rgcq7ljmc1s084358a2m3h-glibc-2.33-static/lib:/gnu/store/0brdikxqk59hdr47qabcm3sya001d8vf-glibc-utf8-locales-2.33/lib' environment variable `GUIX_LOCPATH' set to `/gnu/store/0brdikxqk59hdr47qabcm3sya001d8vf-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/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/amalgamate.py' -> `./amalgamate.py' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/README.md' -> `./README.md' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/LICENSE.md' -> `./LICENSE.md' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test.sh' -> `./test.sh' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/source.c.expected' -> `./test/source.c.expected' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/include.h.expected' -> `./test/include.h.expected' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/source.c.prologue' -> `./test/source.c.prologue' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/include.h.prologue' -> `./test/include.h.prologue' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/include.h.json' -> `./test/include.h.json' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/source.c.json' -> `./test/source.c.json' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/include/bar.h' -> `./test/include/bar.h' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/include/foo.h' -> `./test/include/foo.h' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/include/all.h' -> `./test/include/all.h' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/include/test.h' -> `./test/include/test.h' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/include/pragma_once.h' -> `./test/include/pragma_once.h' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/in_nested_dir.h' -> `./test/include/more/in_nested_dir.h' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/local.h' -> `./test/include/more/local.h' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/time.h' -> `./test/include/more/time.h' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/baz.h' -> `./test/include/more/baz.h' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/source/bar.c' -> `./test/source/bar.c' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-amalgamate-1.1.1-0.c91f07e-checkout/test/source/foo.c' -> `./test/source/foo.c' `/gnu/store/4243gzijjdj88qr22brrk901cajbjqiq-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/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-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.0 seconds command "./test.sh" failed with status 1