svn commit: r333461 - head/sys/amd64/amd64

Konstantin Belousov kostikbel at gmail.com
Fri May 11 10:07:25 UTC 2018


On Thu, May 10, 2018 at 07:57:03PM -0700, Conrad Meyer wrote:
> On Thu, May 10, 2018 at 8:01 AM, Konstantin Belousov <kib at freebsd.org> wrote:
> > Author: kib
> > Date: Thu May 10 15:01:43 2018
> > New Revision: 333461
> > URL: https://svnweb.freebsd.org/changeset/base/333461
> >
> > Log:
> >   Make fpusave() and fpurestore() on amd64 ifuncs.
> >
> >   From now on, linking amd64 kernel requires either lld or newer ld.bfd.
> 
> Hi,
> 
> This commit seems to break amd64-gcc cross toolchain build (note, this
> is a cc error, not ld):
> 
> In file included from /usr/src/sys/amd64/amd64/fpu.c:64:0:
> /usr/src/sys/amd64/amd64/fpu.c:195:22: error: ifunc is not supported
> on this target
>  DEFINE_IFUNC(, void, fpusave, (void *), static)
>                       ^
> ./x86/ifunc.h:55:19: note: in definition of macro 'DEFINE_IFUNC'
>      qual ret_type name args __attribute__((ifunc(#name "_resolver"))); \
>                    ^~~~
> /usr/src/sys/amd64/amd64/fpu.c:202:22: error: ifunc is not supported
> on this target
>  DEFINE_IFUNC(, void, fpurestore, (void *), static)
>                       ^
> ./x86/ifunc.h:55:19: note: in definition of macro 'DEFINE_IFUNC'
>      qual ret_type name args __attribute__((ifunc(#name "_resolver"))); \
>                    ^~~~
> --- fpu.o ---
> *** [fpu.o] Error code 1

On FreeBSD, gcc configuration requires explicit --enable-gnu-indirect-function
option.  I see it in e.g. lang/gcc7 port Makefile.

On the other hand, I do not understand how devel/amd64-xtoolchain-gcc
and devel/powerpc64-xtoolchain-gcc are build, so cannot see whether the
switch is added to the configure invocation.  But I suspect that it is
not.

In other words, most likely the problem is due to the port itself.


More information about the svn-src-all mailing list