From owner-freebsd-arm@freebsd.org Sun Dec 4 01:54:10 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C79BFC635C2 for ; Sun, 4 Dec 2016 01:54:10 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A93DC1910 for ; Sun, 4 Dec 2016 01:54:10 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Y30iVBmqWe8j1YEUpbxcGn7stuGkIbtgWO/sANvWRfQ=; b=gvbi1Lt7MiAqzyhKnQpki1cFw8 BxckuGh0ssPVusCG8ZWyK8TnpoVDlfGPt+KhpRgWTwbP+e2iPq6BvIEdkLXYcuXQIFlktnfhMHZL3 ViwGvho55Jwpdaox93tYdhyq740Ss3vWyr+aTdn4m2RbcLIiI1WeMlH2zYHCVGVsntiE=; Received: from [114.125.104.72] (port=49899 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cDM0B-002iyX-H3 for freebsd-arm@freebsd.org; Sat, 03 Dec 2016 18:54:04 -0700 Date: Sun, 4 Dec 2016 09:53:56 +0800 From: Erich Dollansky To: freebsd-arm@freebsd.org Subject: problems with tcsh, MACHTYPE on Raspberry Pi 3 Message-ID: <20161204095356.1d370fd8@X220.alogt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Authenticated-Sender: sl-508-2.slc.westdc.net: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2016 01:54:10 -0000 Hi, I gave FreebSD 12 a try on my Raspberry Pi 3 but encountered some strange things. I use this image: FreeBSD-aarch64-12.0-GENERIC-UP-308109M.img.gz It all works until I start to compile programs. The main source of the problem is that echo $MACHTYPE unknown Of course, everything relying on this information fails afterwards. MACHTYPE seems to be hard-coded in tcsh. Setting it in the current shell resets it in a sub-shell. The miracle started when I tried to work with a variable I named MachType. [erich@X220]~ > setenv MachTYpe "local machine type" [erich@X220]~ > echo $MachType [erich@X220]~ > setenv Susie Otto [erich@X220]~ > echo $Susie Otto [erich@X220]~ > When I then use MachType inside a script on the Raspberry, it all works. Is this really expected behaviour? Erich