Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jul 2012 11:50:04 -0700
From:      Dennis Glatting <freebsd@pki2.com>
To:        freebsd-fs@freebsd.org
Subject:   Re: ZFS hanging
Message-ID:  <1342291804.30589.3.camel@btw.pki2.com>
In-Reply-To: <500099C6.6020400@FreeBSD.org>
References:  <1341864787.32803.43.camel@btw.pki2.com> <4FFFE82B.6010109@gmail.com> <1342187238.60733.27.camel@btw.pki2.com> <500099C6.6020400@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 2012-07-13 at 23:57 +0200, Dimitry Andric wrote:
> On 2012-07-13 15:47, Dennis Glatting wrote:
> ...
> > I am using clang except on my CVS mirrors.
> > 
> > I found on the mirrors that the mirror itself cannot update from itself
> > but other hosts can update from the mirror. Somewhere in that
> > M3/assembly muck something crashes in the process. The only way around
> > the problem is to compile the /OS/ using GCC.
> 
> This is a known problem with ezm3, it aligns the stack incorrectly on
> amd64.  See also bin/162588.  Possible workarounds are:
> 
> - Compiling libz with clang, but with SSE disabled
> - Compiling the whole system with clang, but with SSE disabled

I considered this, tried it, and "make buildworld" returned:

clang++  -O2 -pipe -mno-sse -mno-sse2 -mno-sse3 -mno-sse -mno-sse2
-mno-sse3
-I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include
-I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support -I. -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd9.0\" -DDEFAULT_SYSROOT=\"\" -I/usr/obj/usr/src/tmp/legacy/usr/include -fno-exceptions -c /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/DAGDeltaAlgorithm.cpp -o DAGDeltaAlgorithm.o
fatal error: error in backend: SSE register return with SSE disabled
*** [APFloat.o] Error code 1
fatal error: error in backend: SSE register return with SSE disabled
*** [APInt.o] Error code 1
fatal error: error in backend: SSE register return with SSE disabled
*** [CommandLine.o] Error code 1
3 errors
*** [bootstrap-tools] Error code 2
1 error
*** [_bootstrap-tools] Error code 2
1 error
*** [buildworld] Error code 2
1 error


Perhaps My simple approach was wrong?

	CFLAGS+= -mno-sse -mno-sse2 -mno-sse3




> - Fixing ezm3 so it aligns the stack to 16 bytes (left as exercise for
>   the reader ;)
> - Rewriting cvsup in C (another nice exercise...)
> _______________________________________________
> freebsd-fs@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"






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