[Bug 195934] clang350-import branch not working on sparc64

[email protected]
Newsgroups gmane.os.freebsd.devel.sparc
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195934

--- Comment #15 from Dimitry Andric <[email protected]> ---
It actually helped to disable the -g flag used while building libzpool.  I
think compiling with debug info is out of the question for now...

The diff I'm using now is this:

Index: cddl/lib/libzpool/Makefile
===================================================================
--- cddl/lib/libzpool/Makefile  (revision 285803)
+++ cddl/lib/libzpool/Makefile  (working copy)
@@ -68,6 +68,7 @@
 # Since there are many asserts in this library, it makes no sense to compile
 # it without debugging.

-CFLAGS+=       -g -DDEBUG=1
+#CFLAGS+=      -g
+CFLAGS+=       -DDEBUG=1

 .include <bsd.lib.mk>
Index: share/mk/bsd.sys.mk
===================================================================
--- share/mk/bsd.sys.mk (revision 285803)
+++ share/mk/bsd.sys.mk (working copy)
@@ -137,7 +137,7 @@
 CFLAGS.clang+=  -Qunused-arguments
 .if ${MACHINE_CPUARCH} == "sparc64"
 # Don't emit .cfi directives, since we must use GNU as on sparc64, for now.
-CFLAGS.clang+=  -fno-dwarf2-cfi-asm
+CFLAGS.clang+=  -fno-dwarf2-cfi-asm -no-integrated-as
 .endif # SPARC64
 # The libc++ headers use c++11 extensions.  These are normally silenced
because
 # they are treated as system headers, but we explicitly disable that warning

It's still building, I'll see tomorrow how it has fared.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-sparc64
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.