From owner-freebsd-current@freebsd.org Sun Jun 4 12:51:58 2017 Return-Path: Delivered-To: freebsd-current@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 01A48B7B6E1 for ; Sun, 4 Jun 2017 12:51:58 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from dec.sakura.ne.jp (dec.sakura.ne.jp [210.188.226.8]) (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 96FD375BE2 for ; Sun, 4 Jun 2017 12:51:56 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from fortune.joker.local (124-18-21-125.dz.commufa.jp [124.18.21.125]) (authenticated bits=0) by dec.sakura.ne.jp (8.15.2/8.15.2/[SAKURA-WEB]/20080708) with ESMTPA id v54CprX1035977; Sun, 4 Jun 2017 21:51:53 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Sun, 4 Jun 2017 21:51:53 +0900 From: Tomoaki AOKI To: freebsd-current@freebsd.org Cc: Alexander Leidinger Subject: Re: zfsloader and compiler options/version? Message-Id: <20170604215153.962478860d60be4be699f951@dec.sakura.ne.jp> In-Reply-To: <20170604142809.Horde.fwk20aBDjbwJYjG3hhX43yk@webmail.leidinger.net> References: <20170604142809.Horde.fwk20aBDjbwJYjG3hhX43yk@webmail.leidinger.net> Organization: Junchoon corps X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; amd64-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jun 2017 12:51:58 -0000 Hi. Possibly setting CPUTYPE in make.conf (or src.conf) can cause problem for loaders. I have below in make.conf. (amd64) .if !${.CURDIR:M/usr/src/sys/boot*} CPUTYPE?= corei7-avx .endif Additionally, for something above doesn't work: .if ${.CURDIR:M/usr/ports/games/rubix} CPUTYPE= core .endif .if ${.CURDIR:M/usr/ports/lang/gcc} CPUTYPE= core2 .endif Possibly lang/gcc can handle corei7-avx now, but not yet tested. On Sun, 04 Jun 2017 14:28:09 +0200 Alexander Leidinger wrote: > Hi, > > I have a zfsloader which hangs directly after "Booting". First I > attributed it to maybe a bug in meta-mode/ccache + ino64 (easy > assumption without knowing if ino64 is involved in zfsloader), but > after ccache -C, removing /usr/obj and running 2x "make cleanworld" > and 2x "make clean" before a buildworld I now get some kind of a > loader-dump (BTX halted) message. The zfsloader binary from a > downloaded release-snapshot (r318945) after ino64 update doesn't > exhibit this issue. > > Has someone seen something similar? So far I assume this is something > with the compiler flags... > > I have the broken zfsloader (r319541) available at > http://www.leidinger.net/FreeBSD/zfsloader.nok > if someone wants to play around with it. > > Here the settings I used to compile it: > > dmesg: > FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on > LLVM 4.0.0) > CPU: Intel(R) Xeon(R) CPU L5630 @ 2.13GHz (2133.35-MHz > K8-class CPU) > > /etc/src-env.conf > WITH_META_MODE=yes > > /etc/src.conf > WITH_IDEA=yes > WITHOUT_PROFILE=yes > CFLAGS+=-DFTP_COMBINE_CWDS > MALLOC_PRODUCTION=yes > LOADER_FIREWIRE_SUPPORT=yes > #WITH_FAST_DEPEND=yes > KERNCONF=ANDROMEDA > > /etc/make.conf > CFLAGS+= -O2 -pipe #-mfpmath=sse -msse2 > COPTFLAGS= -O2 -pipe > CPUTYPE?=native > WITH_CCACHE_BUILD=yes > > Bye, > Alexander. > > -- > http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF > http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF -- Tomoaki AOKI