Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 2016 23:07:59 -0800
From:      Mark Millard <markmi@dsl-only.net>
To:        FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   -mllvm -disable-ppc-float-in-variadic=true not recognized by clang 3.8.0; used in kern.mk for TARGET_ARCH=powerpc; more
Message-ID:  <8100D2B8-175D-4372-AEFB-6DF25889BD20@dsl-only.net>

next in thread | raw e-mail | index | archive | help
At least for amd64 clang 3.8.0 -> powerpc via TARGET_ARCH=3Dpowerpc =
buildkernel I get the following clang command line options that stop the =
build attempt. . .


In sys/conf/kern.mk :

The "CFLAGS.clang+=3D  -mllvm -disable-ppc-float-in-variadic=3Dtrue" =
line in

> .if ${MACHINE_CPUARCH} =3D=3D "powerpc"
> CFLAGS+=3D        -mno-altivec
> CFLAGS.clang+=3D  -mllvm -disable-ppc-float-in-variadic=3Dtrue
> CFLAGS.gcc+=3D    -msoft-float
> INLINE_LIMIT?=3D  15000
> .endif

results in:

> --- genassym.o ---
> clang (LLVM option parsing): Unknown command line argument =
'-disable-ppc-float-in-variadic=3Dtrue'.  Try: 'clang (LLVM option =
parsing) -help'
> clang (LLVM option parsing): Did you mean =
'-disable-ppc-ctrloop-analysis=3Dtrue'?


(The above one is the main reason why I's also sending to toolchain: it =
suggests some sort of change to earlier clang-specific command line =
options.)


In sys/conf/Makefile.powerpc :

> CFLAGS+=3D -msoft-float -Wa,-many

results in:

> --- genassym.o ---
> cc: error: unsupported argument '-many' to option 'Wa,'
> *** [genassym.o] Error code 1



In sys/conf/kmod.mk :

> .if ${MACHINE_CPUARCH} =3D=3D powerpc
> CFLAGS+=3D        -mlongcall -fno-omit-frame-pointer
> .endif

results in:

> --- depend_subdir_dtrace ---
> cc: error: unknown argument: '-mlongcall'
. . .
> --- depend_subdir_dtrace ---
> *** [genassym.o] Error code 1

(no surprise).


I stopped experimenting with this area after those 3. (They are not =
listed in the order discovered.)

=3D=3D=3D
Mark Millard
markmi at dsl-only.net




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8100D2B8-175D-4372-AEFB-6DF25889BD20>