From owner-freebsd-sparc64@FreeBSD.ORG Tue Apr 15 11:48:41 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96D2B37B401 for ; Tue, 15 Apr 2003 11:48:41 -0700 (PDT) Received: from wall.polstra.com (wall-gw.polstra.com [206.213.73.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 258D743F3F for ; Tue, 15 Apr 2003 11:48:38 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from strings.polstra.com (strings.polstra.com [206.213.73.20]) by wall.polstra.com (8.12.3p2/8.12.3) with ESMTP id h3FImbds017896 for ; Tue, 15 Apr 2003 11:48:37 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.5.1 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Tue, 15 Apr 2003 11:48:37 -0700 (PDT) Organization: Polstra & Co., Inc. From: John Polstra To: sparc64@freebsd.org Subject: Environment-related exec or gmake bug on sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2003 18:48:41 -0000 I have the new ezm3 port all ready to commit, including support for FreeBSD/sparc64. But in testing it on panther.freebsd.org, I've run into a very strange build failure. It happens during the build of the gcc-based M3 code generator, and it looks like this: [gmake ... lots of compiling in gcc/gcc] cc -c -DIN_GCC -O -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include ../../gcc/gcc/ma in.c -o main.o (cd intl && gmake all) gmake[2]: Entering directory `/s/scratch/jdp/ports/lang/ezm3/work/ezm3-1.1/language/modula3/m3compiler/m3cc/FBSD_S PARC64/gcc/in tl' gmake[2]: *** No rule to make target `STAGE_PREFIX'. Stop. gmake[2]: Leaving directory `/s/scratch/jdp/ports/lang/ezm3/work/ezm3-1.1/language/modula3/m3compiler/m3cc/FBSD_S PARC64/gcc/int l' gmake[1]: *** [intl.all] Error 1 gmake[1]: Leaving directory `/s/scratch/jdp/ports/lang/ezm3/work/ezm3-1.1/language/modula3/m3compiler/m3cc/FBSD_S PARC64/gcc' When I build this portion manually (i.e., outside of the ports system) it works OK. Furthermore, the Makefile in question doesn't even contain the string "STAGE_PREFIX" which it is complaining about, and it doesn't have any include directives in it either. After a lot of flailing around, I found that success or failure depends on the size of what is in the environment. If I prune the environment down to 37 variables / 939 characters, it works. If I add the setting "x=y" (arbitrary) to the environment, it fails. Has anybody else seen signs of this problem? John