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/1m16gz0q4v4j10k52i5q641sz6lvdwha-gcc-cross-aarch64-linux-gnu-7.5.0/bin:/gnu/store/aj1zbw51fvngxrl1r2g6xcxfnlkshr82-binutils-cross-aarch64-linux-gnu-2.34/bin:/gnu/store/v6f44zccwh9z5zk3pjlywjybbi8n2hjh-tar-1.32/bin:/gnu/store/ncydgq2znms5n1d2k5yqshhf58nsixwv-gzip-1.10/bin:/gnu/store/i8h2pcxqdq07ijm3ibkka8f4smn1w48v-bzip2-1.0.8/bin:/gnu/store/9860f1abqj8wjjnwl8a9v54pdcc3bhgf-xz-5.2.4/bin:/gnu/store/60g7r3l01fd7c58yjbm6krgcwj1jkpwg-file-5.38/bin:/gnu/store/n4n560pfvvw50a9369axw5vj5rrqfj1n-diffutils-3.7/bin:/gnu/store/cd5qf3kcnlq35p9k392pjdpdzpsnds70-patch-2.7.6/bin:/gnu/store/hic7snhayfl7m6cpfqqr73nmm19bpqkg-findutils-4.7.0/bin:/gnu/store/swqdvwri9dbv6zssg6v0by7l05hd6wxp-gawk-5.0.1/bin:/gnu/store/ishk7fswcs4gkwcp8mh788z4mvvl9bxh-sed-4.8/bin:/gnu/store/bhs4rj58v8j1narb2454raan2ps38xd8-grep-3.4/bin:/gnu/store/57xj5gcy1jbl9ai2lnrqnpr0dald9i65-coreutils-8.32/bin:/gnu/store/hm40bxnv8jxmbc1lpb7zfimii4xm9m81-make-4.3/bin:/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin:/gnu/store/mpa04aq8lblbcviyxywxcsb1zbi0mf39-ld-wrapper-0/bin:/gnu/store/m1z7cdbqsqyp9xnjw5cvlb4a7gkcg3m4-binutils-2.34/bin:/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/bin:/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/bin:/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/sbin' environment variable `CROSS_LIBRARY_PATH' set to `/gnu/store/bagnrsza99wrrlk5dn6p1m6a65sdawdx-python-3.8.2/lib:/gnu/store/qxbv3y3992whk7hrbbcl391mgnqnyxch-glibc-cross-aarch64-linux-gnu-2.31/lib:/gnu/store/yjnkp7hrrdk5c23ix8l9km1fsrz123br-glibc-cross-aarch64-linux-gnu-2.31-static/lib' environment variable `CROSS_C_INCLUDE_PATH' set to `/gnu/store/bagnrsza99wrrlk5dn6p1m6a65sdawdx-python-3.8.2/include:/gnu/store/1m16gz0q4v4j10k52i5q641sz6lvdwha-gcc-cross-aarch64-linux-gnu-7.5.0/include:/gnu/store/qxbv3y3992whk7hrbbcl391mgnqnyxch-glibc-cross-aarch64-linux-gnu-2.31/include:/gnu/store/m5fz6j9ggx02h3xk97nznkvpxniszwcm-linux-libre-headers-cross-aarch64-linux-gnu-5.4.20/include' environment variable `CROSS_CPLUS_INCLUDE_PATH' set to `/gnu/store/bagnrsza99wrrlk5dn6p1m6a65sdawdx-python-3.8.2/include:/gnu/store/1m16gz0q4v4j10k52i5q641sz6lvdwha-gcc-cross-aarch64-linux-gnu-7.5.0/include/c++:/gnu/store/1m16gz0q4v4j10k52i5q641sz6lvdwha-gcc-cross-aarch64-linux-gnu-7.5.0/include:/gnu/store/qxbv3y3992whk7hrbbcl391mgnqnyxch-glibc-cross-aarch64-linux-gnu-2.31/include:/gnu/store/m5fz6j9ggx02h3xk97nznkvpxniszwcm-linux-libre-headers-cross-aarch64-linux-gnu-5.4.20/include' environment variable `CROSS_OBJC_INCLUDE_PATH' set to `/gnu/store/bagnrsza99wrrlk5dn6p1m6a65sdawdx-python-3.8.2/include:/gnu/store/1m16gz0q4v4j10k52i5q641sz6lvdwha-gcc-cross-aarch64-linux-gnu-7.5.0/include:/gnu/store/qxbv3y3992whk7hrbbcl391mgnqnyxch-glibc-cross-aarch64-linux-gnu-2.31/include:/gnu/store/m5fz6j9ggx02h3xk97nznkvpxniszwcm-linux-libre-headers-cross-aarch64-linux-gnu-5.4.20/include' environment variable `CROSS_OBJCPLUS_INCLUDE_PATH' set to `/gnu/store/bagnrsza99wrrlk5dn6p1m6a65sdawdx-python-3.8.2/include:/gnu/store/1m16gz0q4v4j10k52i5q641sz6lvdwha-gcc-cross-aarch64-linux-gnu-7.5.0/include:/gnu/store/qxbv3y3992whk7hrbbcl391mgnqnyxch-glibc-cross-aarch64-linux-gnu-2.31/include:/gnu/store/m5fz6j9ggx02h3xk97nznkvpxniszwcm-linux-libre-headers-cross-aarch64-linux-gnu-5.4.20/include' environment variable `BASH_LOADABLES_PATH' unset environment variable `C_INCLUDE_PATH' set to `/gnu/store/1m16gz0q4v4j10k52i5q641sz6lvdwha-gcc-cross-aarch64-linux-gnu-7.5.0/include:/gnu/store/aj1zbw51fvngxrl1r2g6xcxfnlkshr82-binutils-cross-aarch64-linux-gnu-2.34/include:/gnu/store/i8h2pcxqdq07ijm3ibkka8f4smn1w48v-bzip2-1.0.8/include:/gnu/store/9860f1abqj8wjjnwl8a9v54pdcc3bhgf-xz-5.2.4/include:/gnu/store/60g7r3l01fd7c58yjbm6krgcwj1jkpwg-file-5.38/include:/gnu/store/swqdvwri9dbv6zssg6v0by7l05hd6wxp-gawk-5.0.1/include:/gnu/store/hm40bxnv8jxmbc1lpb7zfimii4xm9m81-make-4.3/include:/gnu/store/m1z7cdbqsqyp9xnjw5cvlb4a7gkcg3m4-binutils-2.34/include:/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/include:/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/include:/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20/include' environment variable `CPLUS_INCLUDE_PATH' set to `/gnu/store/1m16gz0q4v4j10k52i5q641sz6lvdwha-gcc-cross-aarch64-linux-gnu-7.5.0/include/c++:/gnu/store/1m16gz0q4v4j10k52i5q641sz6lvdwha-gcc-cross-aarch64-linux-gnu-7.5.0/include:/gnu/store/aj1zbw51fvngxrl1r2g6xcxfnlkshr82-binutils-cross-aarch64-linux-gnu-2.34/include:/gnu/store/i8h2pcxqdq07ijm3ibkka8f4smn1w48v-bzip2-1.0.8/include:/gnu/store/9860f1abqj8wjjnwl8a9v54pdcc3bhgf-xz-5.2.4/include:/gnu/store/60g7r3l01fd7c58yjbm6krgcwj1jkpwg-file-5.38/include:/gnu/store/swqdvwri9dbv6zssg6v0by7l05hd6wxp-gawk-5.0.1/include:/gnu/store/hm40bxnv8jxmbc1lpb7zfimii4xm9m81-make-4.3/include:/gnu/store/m1z7cdbqsqyp9xnjw5cvlb4a7gkcg3m4-binutils-2.34/include:/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/include/c++:/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/include:/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/include:/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20/include' environment variable `LIBRARY_PATH' set to `/gnu/store/aj1zbw51fvngxrl1r2g6xcxfnlkshr82-binutils-cross-aarch64-linux-gnu-2.34/lib:/gnu/store/i8h2pcxqdq07ijm3ibkka8f4smn1w48v-bzip2-1.0.8/lib:/gnu/store/9860f1abqj8wjjnwl8a9v54pdcc3bhgf-xz-5.2.4/lib:/gnu/store/60g7r3l01fd7c58yjbm6krgcwj1jkpwg-file-5.38/lib:/gnu/store/swqdvwri9dbv6zssg6v0by7l05hd6wxp-gawk-5.0.1/lib:/gnu/store/m1z7cdbqsqyp9xnjw5cvlb4a7gkcg3m4-binutils-2.34/lib:/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib:/gnu/store/s3dcqzwqaakv1yx37by9chksdbkgih17-glibc-2.31-static/lib:/gnu/store/hwcky7446s952w0mwchhmm211ll07zrq-glibc-utf8-locales-2.31/lib' environment variable `GUIX_LOCPATH' set to `/gnu/store/hwcky7446s952w0mwchhmm211ll07zrq-glibc-utf8-locales-2.31/lib/locale' environment variable `PYTHONPATH' 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' amalgamate-1.1.1-0.c91f07e-checkout/ amalgamate-1.1.1-0.c91f07e-checkout/LICENSE.md amalgamate-1.1.1-0.c91f07e-checkout/README.md amalgamate-1.1.1-0.c91f07e-checkout/amalgamate.py amalgamate-1.1.1-0.c91f07e-checkout/test/ amalgamate-1.1.1-0.c91f07e-checkout/test/include/ amalgamate-1.1.1-0.c91f07e-checkout/test/include/all.h amalgamate-1.1.1-0.c91f07e-checkout/test/include/bar.h amalgamate-1.1.1-0.c91f07e-checkout/test/include/foo.h amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/ amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/baz.h amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/in_nested_dir.h amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/local.h amalgamate-1.1.1-0.c91f07e-checkout/test/include/more/time.h amalgamate-1.1.1-0.c91f07e-checkout/test/include/pragma_once.h amalgamate-1.1.1-0.c91f07e-checkout/test/include/test.h amalgamate-1.1.1-0.c91f07e-checkout/test/include.h.expected amalgamate-1.1.1-0.c91f07e-checkout/test/include.h.json amalgamate-1.1.1-0.c91f07e-checkout/test/include.h.prologue amalgamate-1.1.1-0.c91f07e-checkout/test/source/ amalgamate-1.1.1-0.c91f07e-checkout/test/source/bar.c amalgamate-1.1.1-0.c91f07e-checkout/test/source/foo.c amalgamate-1.1.1-0.c91f07e-checkout/test/source/main.c amalgamate-1.1.1-0.c91f07e-checkout/test/source.c.expected amalgamate-1.1.1-0.c91f07e-checkout/test/source.c.json amalgamate-1.1.1-0.c91f07e-checkout/test/source.c.prologue amalgamate-1.1.1-0.c91f07e-checkout/test.sh 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/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.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/amalgamate-1.1.1-0.c91f07e-checkout/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/amalgamate-1.1.1-0.c91f07e-checkout/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(); -} - command "./test.sh" failed with status 1