Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jun 2017 21:51:53 +0900
From:      Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
To:        freebsd-current@freebsd.org
Cc:        Alexander Leidinger <Alexander@leidinger.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <Alexander@leidinger.net> 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    <junchoon@dec.sakura.ne.jp>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170604215153.962478860d60be4be699f951>