[Bug 227918] [PATCH] remove exists check for CROSS_BINUTILS_PREFIX for external clang builds on secondary arches

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue May 8 01:58:17 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227918

--- Comment #6 from Mark Millard <marklmi26-fbsd at yahoo.com> ---
(In reply to Mark Millard from comment #5)

Ultimately the build failed on assembler notation:
(note the double -B usage and the lib32 context, so
powerpc target locally, instead of powerpc64)

_ERROR_CMD='/usr/local/bin/clang60 -DCOMPAT_32BIT -mcpu=powerpc -m32
-L/usr/obj/powerpc64vtsc_xtoolchain-llvm/powerpc.powerpc64/usr/src/powerpc.powerpc64/obj-lib32/tmp/usr/lib32
--sysroot=/usr/obj/powerpc64vtsc_xtoolchain-llvm/powerpc.powerpc64/usr/src/powerpc.powerpc64/obj-lib32/tmp
-B/usr/local/powerpc64-unknown-freebsd12.0/bin
-B/usr/obj/powerpc64vtsc_xtoolchain-llvm/powerpc.powerpc64/usr/src/powerpc.powerpc64/obj-lib32/tmp/usr/lib32
-O2 -pipe -I/usr/src/lib/csu/common  -I/usr/src/lib/libc/include  -g -std=gnu99
 -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
-Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
-Wold-style-definition -Wno-pointer-sign -Wthread-safety -Wno-empty-body
-Wno-string-plus-int -Wno-unused-const-variable  -Qunused-arguments    -c
/usr/src/lib/csu/powerpc/crtn.S -o crtn.o; ;'

got errors such as:

/usr/src/lib/csu/powerpc/crtn.S:30:11: error: unexpected token in memory
operand
--- lib/libcompiler_rt__L ---
Building
/usr/obj/powerpc64vtsc_xtoolchain-llvm/powerpc.powerpc64/usr/src/powerpc.powerpc64/obj-lib32/lib/libcompiler_rt/ctzsi2.po
--- lib/csu__L ---
 lwz 11,0(1)
          ^
/usr/src/lib/csu/powerpc/crtn.S:31:10: error: unexpected token in memory
operand
 lwz 0,4(11)
         ^
--- crti.o ---
/usr/src/lib/csu/powerpc/crti.S:29:2: warning: DWARF2 only supports one section
per compilation unit
 .section .init,"ax", at progbits
 ^
/usr/src/lib/csu/powerpc/crti.S:34:13: error: unexpected token in memory
operand
--- crtn.o ---
/usr/src/lib/csu/powerpc/crtn.S:32:2: error: invalid instruction mnemonic
'mtlr'
 mtlr 0
 ^~~~
. . .

I've restarted it using WITHOUT_LIB32= to see if the rest works.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list