From owner-freebsd-questions@FreeBSD.ORG Mon Jul 9 04:44:09 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8F89A16A421 for ; Mon, 9 Jul 2007 04:44:09 +0000 (UTC) (envelope-from backyard1454-bsd@yahoo.com) Received: from web83107.mail.mud.yahoo.com (web83107.mail.mud.yahoo.com [216.252.101.36]) by mx1.freebsd.org (Postfix) with SMTP id 62B7113C448 for ; Mon, 9 Jul 2007 04:44:09 +0000 (UTC) (envelope-from backyard1454-bsd@yahoo.com) Received: (qmail 35912 invoked by uid 60001); 9 Jul 2007 04:17:27 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=c/80DxoBYWGE8g5qLxTdxu6ZfijudDu+eTxCv6mml6e1IiHMn5qsAvyLxP3NQmS78Q2sUByP8S2LYkayCD4CEqo/ooXa9YtTeVKIeWDpewZqBlaOZ/U7H8pS0JrHK1YnZGG+8tAISLkBsBV/zg+Dg9oDv1xI+YkLMmPnfxQUHQM=; X-YMail-OSG: C7pTKJ4VM1kPrwgvobih_sfYc6YhbJ_a5A8MhyuAOr9bh3TWE86YSgI26qNPs3D98BzuDg6OeEAB3cdL9KE0b8AX4G6Xf1SKE4tdcieNu8StHjX41UTWnf2FnNcyT3VNHp24UkoBdkiI Received: from [75.19.98.178] by web83107.mail.mud.yahoo.com via HTTP; Sun, 08 Jul 2007 21:17:27 PDT Date: Sun, 8 Jul 2007 21:17:27 -0700 (PDT) From: backyard To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <465042.30173.qm@web83107.mail.mud.yahoo.com> Subject: Odd Multi-User Mode BUILD Error: lang/gnat; why is it attempting to use csh??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: backyard1454-bsd@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2007 04:44:09 -0000 Please CC me on a response as I am not a member of freebsd-questions Here it is: gmake[2]: Entering directory `/usr/ports/lang/gnat/work/gcc-34/gcc/fixinc' /bin/csh ./genfixes machname.h SHELL=/bin/sh: Command not found. export: Command not found. if: Expression Syntax. gmake[2]: *** [machname.h] Error 1 gmake[2]: Leaving directory `/usr/ports/lang/gnat/work/gcc-34/gcc/fixinc' gmake[1]: *** [fixinc.sh] Error 2 gmake[1]: Leaving directory `/usr/ports/lang/gnat/work/gcc-34/gcc' gmake: *** [all-gcc] Error 2 *** Error code 2 ------------ this is obviously caused by the build attempting to run the sh script with (t)csh instead causing a basic syntax error to occur because of the incompatible script syntax and puking the make. I say obviously because dropping to single user mode and choosing /bin/sh as my shell allowed the build to occur without error. I think the problem lies in lang/gnat/work/gcc-34/gcc/fixinc/Makefile.in referencing the variable SHELL=@SHELL@ and using it genrally like cd $(srcdir) ; $(SHELL) ./genfixes $@ I don't know much about Makefile syntax but I know changing every reference of SHELL to DINGLESHELL made no difference. I attempted to force SHELL=/bin/sh to no avail it was ignored and still ran /bin/csh ./genfixes machname.h SHELL=/bin/sh:Command not found I even reset MAKE_SHELL=/bin/sh in make.conf and forced the above Makefile.in to use SHELL=${MAKE_SHELL} as a last resort but neither futile attempts worked. I believe the error is that the Makefile is ignoring the setting of SHELL and using the environment SHELL variable which is by default /bin/csh. Under Linux this wouldn't be an error because as I recall they use bash for everyone, even the big wheels... but for a BSD this is an error, because root runs csh My question is should SHELL=@SHELL@ pickup the proper /bin/sh and build things correctly, or is using SHELL in the makefile in this manner an error under a BSD that should be fixed by a patch worked out with the maintainer. I don't know if this is an configure error, or a one in a bluemoon thing. I am thoroughly confused by this. I guess I am wondering if anyone else has had similar issues with the port as a search on google didn't seem to find much. I need the GPL version so I can use tasking, as my reason for using Ada needs the intrinsic support for threading to be functional. This also allows me to try out the adacore compile prior to dropping whatever sum of money they want for GNAT-Pro... If I have to go single user to update the port I will. I don't want to run /bin/sh as my root shell i suppose i could try bash. which as an exercise i set as the root shell and all went perfectly fine through the build. I don't want to leave things this way because a simple issue of deleting my ports will make logging in as root require remembering to boot single user... my build env: 2x 2800+ athlon-mp 1284M Ram (1gig + 256M registered ECC scrubbing on) FreeBSD 6.2-p5 CFLAGS=-O2 -pipe COPTFLAGS=-pipe -O CPUTYPE?=athlon-mp NO_RCMDS=YES NO_PROFILE=YES MAKE_IDEA=yes WITH_OPENSSL_BASE=YES X_WINDOW_SYSTEM=xorg SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2 SENDMAIL_LDFLAGS=-L/usr/local/lib SENDMAIL_LDADD=-lsasl2 thanks for any help, and thanks to the FreeBSD team, I can't wait for 7.0 to be released, I think my LH6000 is going to love the optimized SMP routines... as will the above machine, of course. brian again, Please CC me on a response as I am not a member of freebsd-questions