ZFS hanging

Dennis Glatting freebsd at pki2.com
Sat Jul 14 18:50:11 UTC 2012


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"





More information about the freebsd-fs mailing list