From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Build of attr fails with non-bash shell Date: Thu, 20 Dec 2012 23:34:34 +0100 Message-ID: <201212202334.35082.andreas@enge.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-01=_6J50Q5ABtBu8Psw" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlohT-0006NL-Ss for bug-guix@gnu.org; Thu, 20 Dec 2012 17:34:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlohP-0005uN-S2 for bug-guix@gnu.org; Thu, 20 Dec 2012 17:34:47 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:62833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlohP-0005sw-2Q for bug-guix@gnu.org; Thu, 20 Dec 2012 17:34:43 -0500 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: bug-guix@gnu.org --Boundary-01=_6J50Q5ABtBu8Psw Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --Boundary-01=_6J50Q5ABtBu8Psw Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit

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

 

--Boundary-01=_6J50Q5ABtBu8Psw--