autoconf-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libffi 3.0.10 build error on OpenBSD, NetBSD, Solaris


From: Anthony Green
Subject: Re: libffi 3.0.10 build error on OpenBSD, NetBSD, Solaris
Date: Mon, 23 Jan 2012 13:22:26 -0500

Thanks Bruno.  There's a fix in the libffi git tree that will go out in 3.0.11.

AG



On Sun, Jan 15, 2012 at 1:15 PM, Bruno Haible <address@hidden> wrote:
Hi,

libffi-3.0.10 fails to build on several platforms, when configured with
 $ ./configure --prefix=/some/dir

This violates the GNU Coding Standards.

On OpenBSD 4.6/SPARC64:

 $ ./configure --prefix=$HOME/prefix-openbsd-sparc64
 ...
 config.status: executing depfiles commands
 config.status: executing libtool commands
 config.status: executing include commands
 config.status: executing src commands
 $ gmake
 MAKE sparc64-unknown-openbsd4.6 :        0 * all-all
 *** Error code 1

On NetBSD 5.1/x86:

 $ ./configure --prefix=$HOME/prefix-netbsd51-x86_64
 ...
 config.status: executing depfiles commands
 config.status: executing libtool commands
 config.status: executing include commands
 config.status: executing src commands
 $ make
 MAKE x86_64-unknown-netbsd5.1 :        0 * all-all
 *** Error code 1

On Solaris 11:

 $ ./configure --prefix=$HOME/prefix-solaris11-i386
 ...
 config.status: executing depfiles commands
 config.status: executing libtool commands
 config.status: executing include commands
 config.status: executing src commands
 $ make
 MAKE i386-pc-solaris2.11 :        0 * all-all
 *** Error code 1
 The following command caused the error:
 HOST="" \
 ; test ".$HOST" = "." && HOST=` sh /home/bruno/multibuild-1591/solaris11x8632/libffi-3.0.10/config.guess ` \
 ; BUILD=` grep "^#### $HOST " Makefile | sed -e 's/.*|//' ` \
 ; use=` basename "all-all" -all `; n=` echo $BUILD | wc -w ` \
 ; echo "MAKE $HOST : $n * all-all"; if test "$n" = "0" ; then : \
 ; BUILD=` grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' ` ; fi \
 ; test ".$BUILD" = "." && BUILD="." \
 ; test "$use" = "all-all" && BUILD=` echo "$BUILD" | tail -1 ` \
 ; for i in $BUILD ; do test ".$i" = "." && continue \
 ; (cd "$i" && test ! -f configure && make $use) || exit; done
 make: Fatal error: Command failed for target `all-all'
 $ gmake
 MAKE x86_64-pc-solaris2.11 :        0 * all-all
 gmake: *** [all-all] Error 1


The workaround is to pass the option --disable-builddir.

Apparently this is a bug in the ax_enable_builddir.m4 file that libffi
has imported from the autoconf-archive.

Find attached the top-level Makefiles that were generated on the various
platforms.

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]