Date: Fri, 11 May 2018 22:27:20 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 227918] [PATCH] remove exists check for CROSS_BINUTILS_PREFIX for external clang builds on secondary arches Message-ID: <bug-227918-227-TZBN8U25YC@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-227918-227@https.bugs.freebsd.org/bugzilla/> References: <bug-227918-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227918 --- Comment #13 from Mark Millard <marklmi26-fbsd@yahoo.com> --- (In reply to Mark Millard from comment #12) Use of -v with the erring command reported in comment 6 shows that it tries to run the i386 assembler (based on the -triple it uses to run the assembler and the -target-cpu that it specifies as well): . . .=20 "/usr/local/llvm60/bin/clang-6.0" -cc1as -triple i386-portbld-freebsd12.0 -filetype obj -main-file-name crtn.S -target-cpu i486 -I /usr/src/lib/csu/common -I /usr/src/lib/libc/include -fdebug-compilation-dir /usr/src -dwarf-debug-producer clang version 6.0.0 (tags/RELEASE_600/final)= -I /usr/src/lib/csu/common -I /usr/src/lib/libc/include -debug-info-kind=3Dlim= ited -dwarf-version=3D2 -mrelocation-model static -o crtn.o /tmp/crtn-d80df9.s /usr/src/lib/csu/powerpc/crtn.S:29:2: warning: DWARF2 only supports one sec= tion per compilation unit .section .init,"ax",@progbits ^ /usr/src/lib/csu/powerpc/crtn.S:30:11: error: unexpected token in memory operand lwz 11,0(1) ^ /usr/src/lib/csu/powerpc/crtn.S:31:10: error: unexpected token in memory operand lwz 0,4(11) ^ /usr/src/lib/csu/powerpc/crtn.S:32:2: error: invalid instruction mnemonic 'mtlr' mtlr 0 . . . So -mcpu=3Dpowerpc -m32 on the clang60 command line was not enough to cause targeting of powerpc for the assembler. May be a -triple is required on the command line as well? --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227918-227-TZBN8U25YC>