Re: svn commit: r234356 - in head: gnu/lib/csu lib/clang lib/csu/powerpc
On 2012-04-23 02:55, Nathan Whitehorn wrote: On 04/22/12 15:41, Andreas Tobler wrote: On 16.04.12 23:36, Dimitry Andric wrote: Author: dim Date: Mon Apr 16 21:36:55 2012 New Revision: 234356 URL: http://svn.freebsd.org/changeset/base/234356 Log: Work around an issue on 32-bit PowerPC, where clang executable can get too big, causing 'relocation truncated to fit' errors at link time. Reviewed by:nwhitehorn Did you build and boot a 32-bit world with gcc? I get an unusable install with this commit, every command segfaults. This is on a G5 SMP with 32-bit OS, gcc built. 64-bit world/kernel did boot. I hadn't tested it before acking the review request. This does appear to break everything for 32-bit PPC. Have you looked into why? Can this be reverted in the interim? Reverted in r234596. Sorry for the breakage. Now world won't build for powrpc, but WITHOUT_CLANG should solve that. ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org
Re: svn commit: r234356 - in head: gnu/lib/csu lib/clang lib/csu/powerpc
On 16.04.12 23:36, Dimitry Andric wrote: Author: dim Date: Mon Apr 16 21:36:55 2012 New Revision: 234356 URL: http://svn.freebsd.org/changeset/base/234356 Log: Work around an issue on 32-bit PowerPC, where clang executable can get too big, causing 'relocation truncated to fit' errors at link time. Reviewed by: nwhitehorn Did you build and boot a 32-bit world with gcc? I get an unusable install with this commit, every command segfaults. This is on a G5 SMP with 32-bit OS, gcc built. 64-bit world/kernel did boot. Andreas ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org
Re: svn commit: r234356 - in head: gnu/lib/csu lib/clang lib/csu/powerpc
On 04/22/12 15:41, Andreas Tobler wrote: On 16.04.12 23:36, Dimitry Andric wrote: Author: dim Date: Mon Apr 16 21:36:55 2012 New Revision: 234356 URL: http://svn.freebsd.org/changeset/base/234356 Log: Work around an issue on 32-bit PowerPC, where clang executable can get too big, causing 'relocation truncated to fit' errors at link time. Reviewed by:nwhitehorn Did you build and boot a 32-bit world with gcc? I get an unusable install with this commit, every command segfaults. This is on a G5 SMP with 32-bit OS, gcc built. 64-bit world/kernel did boot. I hadn't tested it before acking the review request. This does appear to break everything for 32-bit PPC. Have you looked into why? Can this be reverted in the interim? -Nathan ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org
Re: svn commit: r234356 - in head: gnu/lib/csu lib/clang lib/csu/powerpc
On 23.04.12 02:55, Nathan Whitehorn wrote: On 04/22/12 15:41, Andreas Tobler wrote: On 16.04.12 23:36, Dimitry Andric wrote: Author: dim Date: Mon Apr 16 21:36:55 2012 New Revision: 234356 URL: http://svn.freebsd.org/changeset/base/234356 Log: Work around an issue on 32-bit PowerPC, where clang executable can get too big, causing 'relocation truncated to fit' errors at link time. Reviewed by:nwhitehorn Did you build and boot a 32-bit world with gcc? I get an unusable install with this commit, every command segfaults. This is on a G5 SMP with 32-bit OS, gcc built. 64-bit world/kernel did boot. I hadn't tested it before acking the review request. This does appear to break everything for 32-bit PPC. Have you looked into why? Can this be reverted in the interim? I noticed this last night. It took some time to bisect. And my target is unbootable atm. I will investigate later this evening. Andreas ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org
svn commit: r234356 - in head: gnu/lib/csu lib/clang lib/csu/powerpc
Author: dim Date: Mon Apr 16 21:36:55 2012 New Revision: 234356 URL: http://svn.freebsd.org/changeset/base/234356 Log: Work around an issue on 32-bit PowerPC, where clang executable can get too big, causing 'relocation truncated to fit' errors at link time. Reviewed by: nwhitehorn Modified: head/gnu/lib/csu/Makefile head/lib/clang/clang.build.mk head/lib/csu/powerpc/Makefile Modified: head/gnu/lib/csu/Makefile == --- head/gnu/lib/csu/Makefile Mon Apr 16 21:28:04 2012(r234355) +++ head/gnu/lib/csu/Makefile Mon Apr 16 21:36:55 2012(r234356) @@ -34,6 +34,7 @@ CFLAGS+= -include osreldate.h .if ${MACHINE_CPUARCH} == powerpc TGTOBJS= crtsavres.o SRCS+= crtsavres.asm +CFLAGS+= -mlongcall .endif .if ${MACHINE_CPUARCH} == sparc64 TGTOBJS= crtfastmath.o Modified: head/lib/clang/clang.build.mk == --- head/lib/clang/clang.build.mk Mon Apr 16 21:28:04 2012 (r234355) +++ head/lib/clang/clang.build.mk Mon Apr 16 21:36:55 2012 (r234356) @@ -11,6 +11,12 @@ CFLAGS+=-I${LLVM_SRCS}/include -I${CLANG # LLVM is not strict aliasing safe as of 12/31/2011 CFLAGS+= -fno-strict-aliasing +# Work around an issue on 32-bit PowerPC, where the clang executable can get +# too big, causing 'relocation truncated to fit' errors at link time. +.if ${MACHINE_ARCH} == powerpc +CFLAGS+=-mlongcall +.endif + TARGET_ARCH?= ${MACHINE_ARCH} CFLAGS+=-DLLVM_DEFAULT_TARGET_TRIPLE=\${TARGET_ARCH:C/amd64/x86_64/}-unknown-freebsd10.0\ Modified: head/lib/csu/powerpc/Makefile == --- head/lib/csu/powerpc/Makefile Mon Apr 16 21:28:04 2012 (r234355) +++ head/lib/csu/powerpc/Makefile Mon Apr 16 21:36:55 2012 (r234356) @@ -6,7 +6,8 @@ SRCS= crt1.c crti.S crtn.S OBJS= ${SRCS:N*.h:R:S/$/.o/g} OBJS+= Scrt1.o gcrt1.o CFLAGS+= -I${.CURDIR}/../common \ - -I${.CURDIR}/../../libc/include + -I${.CURDIR}/../../libc/include \ + -mlongcall all: ${OBJS} ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org