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

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

libffi 3.0.10 build error on OpenBSD, NetBSD, Solaris


From: Bruno Haible
Subject: libffi 3.0.10 build error on OpenBSD, NetBSD, Solaris
Date: Sun, 15 Jan 2012 19:15:29 +0100
User-agent: KMail/4.7.4 (Linux/3.1.0-1.2-desktop; KDE/4.7.4; x86_64; ; )

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

Attachment: libffi-bad-generated-makefiles.tar.gz
Description: application/compressed-tar


reply via email to

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