ports/157512: sysutils/libutempter: setting TARGET_ARCH variable prevents compilation

Carl k0802647 at telus.net
Wed Jun 1 23:50:09 UTC 2011

>Number:         157512
>Category:       ports
>Synopsis:       sysutils/libutempter: setting TARGET_ARCH variable prevents compilation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 01 23:50:09 UTC 2011
>Originator:     Carl
>Release:        FreeBSD-8.2-RELEASE-amd64/i386
FreeBSD xxxxxxxx 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Trying to cross-build /usr/ports/sysutils/libutempter with the following command results in a compilation failure:

env TARGET_ARCH=i386 make

The error message is:

cc: i386: No such file or directory

This is the identical problem documented in all of the following problem reports:


Yes indeed, folks, that's a hint that a widespread problem exists and should be dealt with systematically rather than leaving it to end users to discover and report one at a time. Please assign someone knowledgeable about this problem to the task of searching the entire ports collection for all instances of this same bug.

Carl                                           / K0802647
env TARGET_ARCH=i386 make
The attached patch applied to /usr/ports/sysutils/libutempter/Makefile fixed the problem for me, just as similar patches worked for problem reports ports/147853, ports/151224, ports/156607, ports/157457, and ports/157479. Note that the eventually committed fix for ports/156607 is implemented differently. Since I do not really understand the problem, my patch is not intended to imply an optimal solution.

Patch attached with submission follows:

--- old/Makefile	2011-05-31 15:17:01.000000000 -0700
+++ new/Makefile	2011-05-31 15:18:13.000000000 -0700
@@ -16,6 +16,7 @@
 USE_BZIP2=	yes
 .include <bsd.port.pre.mk>


More information about the freebsd-ports-bugs mailing list