[Bug 215107] head -r309656 clang 3.9.0 for TARGET_ARCH=powerpc: -mminimal-toc rejected (missing llvm 19098 ix?)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 7 04:36:10 UTC 2016


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

            Bug ID: 215107
           Summary: head -r309656 clang 3.9.0 for TARGET_ARCH=powerpc:
                    -mminimal-toc rejected (missing llvm 19098 ix?)
           Product: Base System
           Version: CURRENT
          Hardware: powerpc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: markmi at dsl-only.net

llvm 19098 has a comment that says:

-mlongcall added in r280040/r280041

but the original submittal also requested
-mminimal-toc so the Resolved status
of 19098 might be that both were covered.

Another issue might be powerpc-only vs.
both powerpc64 and powerpc.

As for what happened when trying to build
head -309656 (after bypassing the rejection of
of some BOOK E instructions in hwpmc). . .

--- avl.o ---
clang: error: unknown argument: '-mminimal-toc'
*** [avl.o] Error code 1

( sys/modules/zfs/avl.o to be specific)

The metadata content was. . .

# Meta data file
/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/sys/GENERIC64vtsc-NODBG/modules/usr/src/sys/modules/zfs/avl.o.meta
CMD /usr/bin/clang -target powerpc64-unknown-freebsd12.0
--sysroot=/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/tmp
-B/usr/local/powerpc64-freebsd/bin/  -O2 -pipe -DFREEBSD_NAMECACHE
-DBUILDING_ZFS -mminimal-toc  -fno-strict-aliasing -D_KERNEL -DKLD_MODULE
-nostdinc  -I/usr/src/sys/cddl/compat/opensolaris
-I/usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
-I/usr/src/sys/cddl/contrib/opensolaris/uts/common/zmod
-I/usr/src/sys/cddl/contrib/opensolaris/uts/common -I/usr/src/sys
-I/usr/src/sys/cddl/contrib/opensolaris/common/zfs
-I/usr/src/sys/cddl/contrib/opensolaris/common -DHAVE_KERNEL_OPTION_HEADERS
-include
/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/sys/GENERIC64vtsc-NODBG/opt_global.h
-I. -I/usr/src/sys -fno-common -g -fno-omit-frame-pointer
-I/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/sys/GENERIC64vtsc-NODBG
 -mno-altivec -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign
-D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare
-Wno-error-empty-body -Wno-error-parentheses-equality
-Wno-error-unused-function -Wno-error-pointer-sign
-Wno-error-shift-negative-value -Wno-missing-prototypes -Wno-undef
-Wno-strict-prototypes -Wno-cast-qual -Wno-parentheses -Wno-redundant-decls
-Wno-missing-braces -Wno-uninitialized -Wno-unused -Wno-inline -Wno-switch
-Wno-pointer-arith  -msoft-float  -std=iso9899:1999 -include
/usr/src/sys/cddl/compat/opensolaris/sys/debug_compat.h -c
/usr/src/sys/cddl/contrib/opensolaris/common/avl/avl.c -o avl.o
CMD ctfconvert -L VERSION -g avl.o
CWD
/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/sys/GENERIC64vtsc-NODBG/modules/usr/src/sys/modules/zfs
TARGET avl.o
-- command output --
clang: error: unknown argument: '-mminimal-toc'
*** Error code 1

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


More information about the freebsd-bugs mailing list