Port-macppc archive

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

devel/libffi build fails on macppc-current



So, I gave up trying to update packages and instead wiped everything
out and am starting from scratch.

"devel/libffi" is being a problem as it immediately fails building with:

[...]
===> Building for libffi-3.3nb4
MAKE powerpc-unknown-netbsd9.99 :        0 * all
gmake: *** [Makefile:592: all] Error 1
*** Error code 2

Stop.
make[1]: stopped in /x/pkgsrc/devel/libffi
*** Error code 1

Stop.
make: stopped in /x/pkgsrc/devel/libffi


Line 592 of the Makefile is the "all all-all" target and is mostly
a shell script fragment.  I slipped in a 'set -x' to see what might
be going on, but I can't spot anything.

As it appears in the Makefile:

all all-all:
        @ HOST="$(HOST)" \
        ; test ".$$HOST" = "." && HOST=` sh /var/tmp/pkgsrc/devel/libffi/work/li
bffi-3.3/config.guess ` \
        ; BUILD=` grep "^#### $$HOST " Makefile | sed -e 's/.*|//' ` \
        ; use=` basename "$@" -all `; n=` echo $$BUILD | wc -w ` \
        ; echo "MAKE $$HOST : $$n * $@"; if test "$$n" -eq "0" ; then : \
        ; BUILD=` grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' ` ; fi \
        ; test ".$$BUILD" = "." && BUILD="." \
        ; test "$$use" = "$@" && BUILD=` echo "$$BUILD" | tail -1 ` \
        ; for i in $$BUILD ; do test ".$$i" = "." && continue \
        ; (cd "$$i" && test ! -f configure && $(MAKE) $$use) || exit; done


The output with 'set -x' added:

===> Building for libffi-3.3nb4
+ HOST=''
+ test . = .
+ sh /var/tmp/pkgsrc/devel/libffi/work/libffi-3.3/config.guess
+ HOST=powerpc-unknown-netbsd9.99
+ + grepsed '^#### powerpc-unknown-netbsd9.99 ' -e 's/.*|//'
 Makefile
+ BUILD=''
+ basename all -all
+ use=all
+ + echowc
 -w
+ n='       0'
+ echo 'MAKE powerpc-unknown-netbsd9.99 :        0 * all'
MAKE powerpc-unknown-netbsd9.99 :        0 * all
+ test '       0' -eq 0
+ ':'
+ + + greptailsed '^####.*|' -1 -e Makefile
 's/.*|//'

+ BUILD=''
+ test . = .
+ BUILD=.
+ test all = all
+ + echotail . -1

+ BUILD=.
+ for i=.
+ test .. = .
+ cd .
+ test '!' -f configure
+ exit
gmake: *** [Makefile:592: all] Error 1
*** Error code 2

I suspect something went wrong during the configure phase and lines
containing $HOST are not present in the Makefile, so $BUILD defaults
to the top-level directory which contains "configure" and thus fails.

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645


Home | Main Index | Thread Index | Old Index