The build phase of attr fails in my setting:

guix-daemon --build-users-group=nixbld --chroot-directory=/bin --chroot-directory=/lib64 --chroot-directory=/lib

 

with

make[2]: Entering directory `/tmp/nix-build-attr-2.4.46.drv-0/attr-2.4.46/libmisc'

/bin/sh ../libtool --mode=compile gcc -g -O2 -DDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.4.46\" -DLOCALEDIR=\"/nix/store/s1y8llipcivyf07j53lkg8v21y4yjazg-attr-2.4.46/share/locale\" -DPACKAGE=\"attr\" -I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -c quote.c

make[2]: Entering directory `/tmp/nix-build-attr-2.4.46.drv-0/attr-2.4.46/m4'

make[2]: Nothing to be done for `default'.

make[2]: Leaving directory `/tmp/nix-build-attr-2.4.46.drv-0/attr-2.4.46/m4'

/nix/store/vphh2xg6ky5xi31f683adsmzwxy6qymw-make-3.82/bin/make -C po

make[2]: Entering directory `/tmp/nix-build-attr-2.4.46.drv-0/attr-2.4.46/man'

/nix/store/vphh2xg6ky5xi31f683adsmzwxy6qymw-make-3.82/bin/make -C man1

make[2]: Entering directory `/tmp/nix-build-attr-2.4.46.drv-0/attr-2.4.46/doc'

/nix/store/a1br58c1z6az38wljw4i45qxgcfsx06a-gzip-1.5/bin/gzip --best -c < CHANGES > CHANGES.gz

../libtool: 1: eval: base_compile+= gcc: not found

../libtool: 1: eval: base_compile+= -g: not found

../libtool: 1: eval: base_compile+= -O2: not found

../libtool: 1: eval: base_compile+= -DDEBUG: not found

../libtool: 1: eval: base_compile+= -funsigned-char: not found

../libtool: 1: eval: base_compile+= -fno-strict-aliasing: not found

../libtool: 1: eval: base_compile+= -Wall: not found

make[2]: Entering directory `/tmp/nix-build-attr-2.4.46.drv-0/attr-2.4.46/po'

/nix/store/6kljhmv1m0r8vvdlqr5vz7rjgpdhi0wc-gettext-0.18.1.1/bin/msgfmt -o cs.mo cs.po

make[3]: Entering directory `/tmp/nix-build-attr-2.4.46.drv-0/attr-2.4.46/man/man1'

make[3]: Nothing to be done for `default'.

make[3]: Leaving directory `/tmp/nix-build-attr-2.4.46.drv-0/attr-2.4.46/man/man1'

/nix/store/vphh2xg6ky5xi31f683adsmzwxy6qymw-make-3.82/bin/make -C man2

make[2]: Leaving directory `/tmp/nix-build-attr-2.4.46.drv-0/attr-2.4.46/doc'

/nix/store/vphh2xg6ky5xi31f683adsmzwxy6qymw-make-3.82/bin/make -C man3

../libtool: 1: eval: base_compile+= -DVERSION=\"2.4.46\": not found

../libtool: 1: eval: base_compile+= -DLOCALEDIR=\"/nix/store/s1y8llipcivyf07j53lkg8v21y4yjazg-attr-2.4.46/share/locale\": not found

/nix/store/6kljhmv1m0r8vvdlqr5vz7rjgpdhi0wc-gettext-0.18.1.1/bin/msgfmt -o de.mo de.po

../libtool: 1: eval: base_compile+= -DPACKAGE=\"attr\": not found

../libtool: 1: eval: base_compile+= -I../include: not found

make[3]: Entering directory `/tmp/nix-build-attr-2.4.46.drv-0/attr-2.4.46/man/man3'

../libtool: 1: eval: base_compile+= -D_GNU_SOURCE: not found

make[3]: Nothing to be done for `default'.

make[3]: Leaving directory `/tmp/nix-build-attr-2.4.46.drv-0/attr-2.4.46/man/man3'

../libtool: 1: eval: base_compile+= -D_FILE_OFFSET_BITS=64: not found

../libtool: 1: eval: base_compile+= -c: not found

/nix/store/6kljhmv1m0r8vvdlqr5vz7rjgpdhi0wc-gettext-0.18.1.1/bin/msgfmt -o es.mo es.po

make[3]: Entering directory `/tmp/nix-build-attr-2.4.46.drv-0/attr-2.4.46/man/man2'

make[3]: Nothing to be done for `default'.

make[3]: Leaving directory `/tmp/nix-build-attr-2.4.46.drv-0/attr-2.4.46/man/man2'

/nix/store/vphh2xg6ky5xi31f683adsmzwxy6qymw-make-3.82/bin/make -C man5

libtool: compile: you must specify a compilation command

libtool: compile: Try `libtool --help --mode=compile' for more information.

make[2]: *** [quote.lo] Error 1

make[2]: Leaving directory `/tmp/nix-build-attr-2.4.46.drv-0/attr-2.4.46/libmisc'

make[1]: *** [libmisc] Error 2

make[1]: *** Waiting for unfinished jobs....

 

A web search leads me to

http://trac.osgeo.org/gdal/ticket/4102

It looks as if bash is needed, whereas my /bin/sh is (a symbolic link to)

dash. And indeed compilation succeeds after replacing it by a symbolic link

to bash.

 

Do you see another way of fixing this problem?

 

Andreas