Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Dec 2016 04:36:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 215107] head -r309656 clang 3.9.0 for TARGET_ARCH=powerpc: -mminimal-toc rejected (missing llvm 19098 ix?)
Message-ID:  <bug-215107-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215107

            Bug ID: 215107
           Summary: head -r309656 clang 3.9.0 for TARGET_ARCH=3Dpowerpc:
                    -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@FreeBSD.org
          Reporter: markmi@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/s=
ys/GENERIC64vtsc-NODBG/modules/usr/src/sys/modules/zfs/avl.o.meta
CMD /usr/bin/clang -target powerpc64-unknown-freebsd12.0
--sysroot=3D/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc=
64/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/s=
ys/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__=3D__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-comp=
are
-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=3Diso9899: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/s=
ys/GENERIC64vtsc-NODBG/modules/usr/src/sys/modules/zfs
TARGET avl.o
-- command output --
clang: error: unknown argument: '-mminimal-toc'
*** Error code 1

--=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-215107-8>