pkgsrc-Bugs archive

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

pkg/49545: cross/avr-gcc failure on OSX



	Note: There was a bad value `' for the field `Class'.
	It was set to the default value of `sw-bug'.

>Number:         49545
>Category:       pkg
>Synopsis:       cross/avr-gcc failure on OSX
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 07 13:15:00 +0000 2015
>Originator:     Edgar FuÃ?
>Release:        pkgsrc-2014Q4
>Organization:
>Description:
	At least on OSX 10.10, devel/avr-gcc fails in the stage-install phase:

	/usr/bin/install -c -o ef -g staff -m 644 unwind.h [...]/cross/avr-gcc/work/.destdir/usr/pkg/lib/gcc/avr/4.8.3/include
	(cd [...]/cross/avr-gcc/work/.destdir/usr/pkg/lib;  /bin/mv libiberty.a gcc/avr/ )
	mv: rename libiberty.a to gcc/avr/libiberty.a: No such file or directory
	*** Error code 1

	Stop.
	bmake: stopped in [...]/cross/avr-gcc
	*** Error code 1

	Stop.
	bmake: stopped in [...]/cross/avr-gcc
>How-To-Repeat:
	cd devel/avr-gcc; bmake stage-install
>Fix:
	I don't know what the point of installing a build-system library 
	into the cross package is, but libiberty is actually built into
	a directory with a name derived from calling the C compiler with 
	-print-multi-os-directory (whatever that is, actually).
	On NetBSD, that directory is simply ".", while on my OSX system, 
	it's "x86_64". So the pkgsrc Makefile needs to use that name, too:

	Index: Makefile
	===================================================================
	RCS file: /cvsroot/pkgsrc/cross/avr-gcc/Makefile,v
	retrieving revision 1.36
	diff -u -r1.36 Makefile
	--- Makefile	19 Sep 2014 08:30:52 -0000	1.36
	+++ Makefile	7 Jan 2015 11:58:20 -0000
	@@ -47,7 +47,7 @@
	 # To avoid the conflict with other cross and native compiler
	 post-install:
		(cd ${DESTDIR}${PREFIX}/lib; \
	-	 ${MV} libiberty.a gcc/avr/ )
	+	 ${MV} $$(${CC} -print-multi-os-directory)/libiberty.a gcc/avr/ )
	 
	 CONFIGURE_DIRS=		${WRKDIR}/obj
	 CONFIGURE_SCRIPT=	${WRKSRC}/configure



Home | Main Index | Thread Index | Old Index