From owner-freebsd-sparc64@freebsd.org Tue Apr 12 05:58:04 2016 Return-Path: Delivered-To: freebsd-sparc64@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 3DB74B0D0A0 for ; Tue, 12 Apr 2016 05:58:04 +0000 (UTC) (envelope-from j@uriah.heep.sax.de) Received: from uriah.heep.sax.de (uriah.heep.sax.de [IPv6:2a01:170:1047::9]) by mx1.freebsd.org (Postfix) with ESMTP id 036881AAC; Tue, 12 Apr 2016 05:58:04 +0000 (UTC) (envelope-from j@uriah.heep.sax.de) Received: by uriah.heep.sax.de (Postfix, from userid 107) id C9459CD1; Tue, 12 Apr 2016 07:58:01 +0200 (CEST) Date: Tue, 12 Apr 2016 07:58:01 +0200 From: Joerg Wunsch To: freebsd-sparc64@freebsd.org Cc: Shigeharu TAKENO , gabor@FreeBSD.org, Marius Strobl Subject: Re: /usr/bin/sort may be incorrect Message-ID: <20160412055801.GV10729@uriah.heep.sax.de> Reply-To: Joerg Wunsch References: <201603250229.u2P2TVLp003567@pc98tak.iee.niit.ac.jp> <201603310446.u2V4kLGM003303@pc98tak.iee.niit.ac.jp> <20160331072303.GP53011@uriah.heep.sax.de> <201603311122.u2VBMPam007017@pc98tak.iee.niit.ac.jp> <20160411215734.GA2101@alchemy.franken.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160411215734.GA2101@alchemy.franken.de> X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-GPG-Fingerprint: 5E84 F980 C3CA FD4B B584 1070 F48C A81B 69A8 5873 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2016 05:58:04 -0000 As Marius Strobl wrote: > AFAICT is sort(1) relying on undefined behavior. That matches my observation: on FreeBSD 9 (which is still installed on my sparc64 box), I could successfully build zsh without problems. Since the major difference from there to current FreeBSD/sparc64 is the change of the compiler (GCC vs. Clang), this is also a strong indication of undefined behaviour effects (I think). Alas, my attempt to install FreeBSD 10.2 on a second disk on that machine ended up with a kernel that stalled at mounting the root FS, that's why I didn't investigate further by that time. -- cheers, Joerg .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)