-STABLE can no longer build -CURRENT kernel, linker missing ifunc

2018-07-25 Thread Ulrich Spörlein
Hey all, as of a couple of weeks ago, neither 11.2-RELEASE nor a recent
11-STABLE can buildkernel from head.

This has stopped the Coverity Scan runs dead in its track and I wonder how
anyone would boostrap a move from 11.x to 12.0 then.

% env __MAKE_CONF=/dev/null make buildkernel
make[1]: "/data/freebsd.work/Makefile.inc1" line 343: SYSTEM_COMPILER:
libclang will be built for bootstrapping a cross-compiler.
make[1]: "/data/freebsd.work/Makefile.inc1" line 348: SYSTEM_LINKER:
libclang will be built for bootstrapping a cross-linker.

--
>>> Kernel build for GENERIC started on Wed Jul 25 14:34:46 CEST 2018
--
===> GENERIC
mkdir -p /usr/obj/data/freebsd.work/amd64.amd64/sys

--
>>> stage 1: configuring the kernel
--
cd /data/freebsd.work/sys/amd64/conf;  PATH=/usr/obj/data/
freebsd.work/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/legacy/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/sbin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin
config  -d /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC  -I '/data/
freebsd.work/sys/amd64/conf' '/data/freebsd.work/sys/amd64/conf/GENERIC'
Kernel build directory is /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC
Don't forget to do ``make cleandepend && make depend''

--
>>> stage 2.1: cleaning up the object tree
--
cd /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC; MACHINE_ARCH=amd64
MACHINE=amd64 CPUTYPE= CC="cc -target x86_64-unknown-freebsd12.0
--sysroot=/usr/obj/data/freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
freebsd.work/amd64.amd64/tmp/usr/bin" CXX="c++  -target
x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/data/
freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
freebsd.work/amd64.amd64/tmp/usr/bin" CPP="cpp -target
x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/data/
freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
freebsd.work/amd64.amd64/tmp/usr/bin" AS="as" AR="ar" LD="ld" LLVM_LINK=""
NM=nm OBJCOPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size" INSTALL="sh
/data/freebsd.work/tools/install.sh" PATH=/usr/obj/data/
freebsd.work/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/legacy/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/sbin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin
make  -m /data/freebsd.work/share/mk  KERNEL=kernel cleandir
make[2]: "/data/freebsd.work/sys/conf/kern.pre.mk" line 125: amd64 kernel
requires linker ifunc support
*** Error code 1

Stop.
make[1]: stopped in /data/freebsd.work
*** Error code 1

Stop.
make: stopped in /data/freebsd.work
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


FreeBSD 11.2-RELEASE - mountd problem - mountd[1056]: unknown user: root

2018-07-25 Thread John Newman
Hello -

I'm having a problem with one of my FreeBSD NFS servers. It's an
11.2-RELEASE box (upgraded fairly recently from 10.1), and actually
we had the same issue even when it was on 10.x.

Basically, what is happening is several of my NFS exports that are
configured with "-maproot=root" (and they are actually ZFS NFS
exports, in /etc/zfs/exports, configured with the 'zfs set
sharenfs="..."' command - if that matters, which I don't think it
does) are generating the following error messages when the machine
first boots up -

Jul  X 15:19:58 nfs5 mountd[1094]: unknown user: root
Jul  X 15:19:58 nfs5 mountd[1094]: message repeated 14 times: [ unknown
user: root]

To fix the issue, I simply HUP the mountd process. Until I HUP the
mountd process, none of the clients that depend on being able to
write to their NFS shares as root work properly - they are read-only.
As soon as I HUP mountd, the issue goes away, no more "unknown user:
root" errors, and the mounts become writable for their clients.

I think this is tied into the fact this box uses sssd for LDAP
authentication, because I don't see this issue on another 11.2
machine configured very similarly that isn't using sssd. The LDAP
authentication works fine, the relevant lines in /etc/nsswitch.conf
look like -

$ grep sss /etc/nsswitch.conf
group: sss files
passwd: sss files

It feels like this may be some sort of ordering issue with the start
up scripts - mountd running before sssd is running? But why doesn't
it fall back to "files" and find root that way? We do *not* have a
root user in our ldap directory anyway. Someone on IRC has suggested
that I should swap the "sss files" to "files sss", but I'm not sure
if this would help or not... For now, I simply added the following
work-around to my /etc/rc.local:

  kill -s HUP `cat /var/run/mountd.pid`

Has anyone seen a similar issue, or have any ideas?  I CC'd Rick
because I understand he is the NFS maintainer.

thanks,
John


-- 
GPG fingerprint: 17FD 615A D20D AFE8 B3E4  C9D2 E324 20BE D47A 78C7


signature.asc
Description: PGP signature


Re: -STABLE can no longer build -CURRENT kernel, linker missing ifunc

2018-07-25 Thread Li-Wen Hsu
On Wed, Jul 25, 2018 at 1:37 PM Ulrich Spörlein  wrote:
>
> Hey all, as of a couple of weeks ago, neither 11.2-RELEASE nor a recent
> 11-STABLE can buildkernel from head.
>
> This has stopped the Coverity Scan runs dead in its track and I wonder how
> anyone would boostrap a move from 11.x to 12.0 then.
>
> % env __MAKE_CONF=/dev/null make buildkernel
> make[1]: "/data/freebsd.work/Makefile.inc1" line 343: SYSTEM_COMPILER:
> libclang will be built for bootstrapping a cross-compiler.
> make[1]: "/data/freebsd.work/Makefile.inc1" line 348: SYSTEM_LINKER:
> libclang will be built for bootstrapping a cross-linker.
>
> --
> >>> Kernel build for GENERIC started on Wed Jul 25 14:34:46 CEST 2018
> --
> ===> GENERIC
> mkdir -p /usr/obj/data/freebsd.work/amd64.amd64/sys
>
> --
> >>> stage 1: configuring the kernel
> --
> cd /data/freebsd.work/sys/amd64/conf;  PATH=/usr/obj/data/
> freebsd.work/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/legacy/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/sbin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin
> config  -d /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC  -I '/data/
> freebsd.work/sys/amd64/conf' '/data/freebsd.work/sys/amd64/conf/GENERIC'
> Kernel build directory is /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC
> Don't forget to do ``make cleandepend && make depend''
>
> --
> >>> stage 2.1: cleaning up the object tree
> --
> cd /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC; MACHINE_ARCH=amd64
> MACHINE=amd64 CPUTYPE= CC="cc -target x86_64-unknown-freebsd12.0
> --sysroot=/usr/obj/data/freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
> freebsd.work/amd64.amd64/tmp/usr/bin" CXX="c++  -target
> x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/data/
> freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
> freebsd.work/amd64.amd64/tmp/usr/bin" CPP="cpp -target
> x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/data/
> freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
> freebsd.work/amd64.amd64/tmp/usr/bin" AS="as" AR="ar" LD="ld" LLVM_LINK=""
> NM=nm OBJCOPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size" INSTALL="sh
> /data/freebsd.work/tools/install.sh" PATH=/usr/obj/data/
> freebsd.work/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/legacy/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/sbin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin
> make  -m /data/freebsd.work/share/mk  KERNEL=kernel cleandir
> make[2]: "/data/freebsd.work/sys/conf/kern.pre.mk" line 125: amd64 kernel
> requires linker ifunc support
> *** Error code 1
>
> Stop.
> make[1]: stopped in /data/freebsd.work
> *** Error code 1
>
> Stop.
> make: stopped in /data/freebsd.work

Hi, the job on https://ci.freebsd.org/job/FreeBSD-head-amd64-build/ is
using 11.2-RELEASE to build head and it seems fine.  Can you provide
more details about your build script and settings?


-- 
Li-Wen Hsu 
https://lwhsu.org
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: -STABLE can no longer build -CURRENT kernel, linker missing ifunc

2018-07-25 Thread Ian Lepore
On Wed, 2018-07-25 at 14:35 +0200, Ulrich Spörlein wrote:
> Hey all, as of a couple of weeks ago, neither 11.2-RELEASE nor a
> recent
> 11-STABLE can buildkernel from head.
> 
> This has stopped the Coverity Scan runs dead in its track and I
> wonder how
> anyone would boostrap a move from 11.x to 12.0 then.
> 
> % env __MAKE_CONF=/dev/null make buildkernel
> make[1]: "/data/freebsd.work/Makefile.inc1" line 343:
> SYSTEM_COMPILER:
> libclang will be built for bootstrapping a cross-compiler.
> make[1]: "/data/freebsd.work/Makefile.inc1" line 348: SYSTEM_LINKER:
> libclang will be built for bootstrapping a cross-linker.
> 
> --
> > 
> > > 
> > > > 
> > > > Kernel build for GENERIC started on Wed Jul 25 14:34:46 CEST
> > > > 2018
> --
> ===> GENERIC
> mkdir -p /usr/obj/data/freebsd.work/amd64.amd64/sys
> 
> --
> > 
> > > 
> > > > 
> > > > stage 1: configuring the kernel
> --
> cd /data/freebsd.work/sys/amd64/conf;  PATH=/usr/obj/data/
> freebsd.work/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/data/freebsd.wo
> rk/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/data/freebsd.work/amd64.am
> d64/tmp/legacy/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/sbi
> n:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/
> sbin:/usr/bin
> config  -d /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC  -I
> '/data/
> freebsd.work/sys/amd64/conf'
> '/data/freebsd.work/sys/amd64/conf/GENERIC'
> Kernel build directory is
> /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC
> Don't forget to do ``make cleandepend && make depend''
> 
> --
> > 
> > > 
> > > > 
> > > > stage 2.1: cleaning up the object tree
> --
> cd /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC;
> MACHINE_ARCH=amd64
> MACHINE=amd64 CPUTYPE= CC="cc -target x86_64-unknown-freebsd12.0
> --sysroot=/usr/obj/data/freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
> freebsd.work/amd64.amd64/tmp/usr/bin" CXX="c++  -target
> x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/data/
> freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
> freebsd.work/amd64.amd64/tmp/usr/bin" CPP="cpp -target
> x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/data/
> freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
> freebsd.work/amd64.amd64/tmp/usr/bin" AS="as" AR="ar" LD="ld"
> LLVM_LINK=""
> NM=nm OBJCOPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size"
> INSTALL="sh
> /data/freebsd.work/tools/install.sh" PATH=/usr/obj/data/
> freebsd.work/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/data/freebsd.wo
> rk/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/data/freebsd.work/amd64.am
> d64/tmp/legacy/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/sbi
> n:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/
> sbin:/usr/bin
> make  -m /data/freebsd.work/share/mk  KERNEL=kernel cleandir
> make[2]: "/data/freebsd.work/sys/conf/kern.pre.mk" line 125: amd64
> kernel
> requires linker ifunc support
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /data/freebsd.work
> *** Error code 1
> 
> Stop.
> make: stopped in /data/freebsd.work
> ___

I think you may need to do "make kernel-toolchain" first.

-- Ian
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: -STABLE can no longer build -CURRENT kernel, linker missing ifunc

2018-07-25 Thread Alan Somers
On Wed, Jul 25, 2018 at 8:49 AM, Ian Lepore  wrote:

> On Wed, 2018-07-25 at 14:35 +0200, Ulrich Spörlein wrote:
> > Hey all, as of a couple of weeks ago, neither 11.2-RELEASE nor a
> > recent
> > 11-STABLE can buildkernel from head.
> >
> > This has stopped the Coverity Scan runs dead in its track and I
> > wonder how
> > anyone would boostrap a move from 11.x to 12.0 then.
> >
> > % env __MAKE_CONF=/dev/null make buildkernel
> > make[1]: "/data/freebsd.work/Makefile.inc1" line 343:
> > SYSTEM_COMPILER:
> > libclang will be built for bootstrapping a cross-compiler.
> > make[1]: "/data/freebsd.work/Makefile.inc1" line 348: SYSTEM_LINKER:
> > libclang will be built for bootstrapping a cross-linker.
> >
> > --
> > >
> > > >
> > > > >
> > > > > Kernel build for GENERIC started on Wed Jul 25 14:34:46 CEST
> > > > > 2018
> > --
> > ===> GENERIC
> > mkdir -p /usr/obj/data/freebsd.work/amd64.amd64/sys
> >
> > --
> > >
> > > >
> > > > >
> > > > > stage 1: configuring the kernel
> > --
> > cd /data/freebsd.work/sys/amd64/conf;  PATH=/usr/obj/data/
> > freebsd.work/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/data/freebsd.wo
> > rk/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/data/freebsd.work/amd64.am
> > d64/tmp/legacy/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/sbi
> > n:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/
> > sbin:/usr/bin
> > config  -d /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC  -I
> > '/data/
> > freebsd.work/sys/amd64/conf'
> > '/data/freebsd.work/sys/amd64/conf/GENERIC'
> > Kernel build directory is
> > /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC
> > Don't forget to do ``make cleandepend && make depend''
> >
> > --
> > >
> > > >
> > > > >
> > > > > stage 2.1: cleaning up the object tree
> > --
> > cd /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC;
> > MACHINE_ARCH=amd64
> > MACHINE=amd64 CPUTYPE= CC="cc -target x86_64-unknown-freebsd12.0
> > --sysroot=/usr/obj/data/freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
> > freebsd.work/amd64.amd64/tmp/usr/bin" CXX="c++  -target
> > x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/data/
> > freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
> > freebsd.work/amd64.amd64/tmp/usr/bin" CPP="cpp -target
> > x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/data/
> > freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
> > freebsd.work/amd64.amd64/tmp/usr/bin" AS="as" AR="ar" LD="ld"
> > LLVM_LINK=""
> > NM=nm OBJCOPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size"
> > INSTALL="sh
> > /data/freebsd.work/tools/install.sh" PATH=/usr/obj/data/
> > freebsd.work/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/data/freebsd.wo
> > rk/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/data/freebsd.work/amd64.am
> > d64/tmp/legacy/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/sbi
> > n:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/
> > sbin:/usr/bin
> > make  -m /data/freebsd.work/share/mk  KERNEL=kernel cleandir
> > make[2]: "/data/freebsd.work/sys/conf/kern.pre.mk" line 125: amd64
> > kernel
> > requires linker ifunc support
> > *** Error code 1
> >
> > Stop.
> > make[1]: stopped in /data/freebsd.work
> > *** Error code 1
> >
> > Stop.
> > make: stopped in /data/freebsd.work
> > ___
>
> I think you may need to do "make kernel-toolchain" first.
>
> -- Ian
>

Would "make kernel-toolchain" also fix the "config(8) may be too old"
errors that I get whenever I try "make universe" on universe12a.freebsd.org,
which is a few months old?
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: -STABLE can no longer build -CURRENT kernel, linker missing ifunc

2018-07-25 Thread Kyle Evans
On Wed, Jul 25, 2018 at 9:52 AM, Alan Somers  wrote:
> On Wed, Jul 25, 2018 at 8:49 AM, Ian Lepore  wrote:
>
>> On Wed, 2018-07-25 at 14:35 +0200, Ulrich Spörlein wrote:
>> > Hey all, as of a couple of weeks ago, neither 11.2-RELEASE nor a
>> > recent
>> > 11-STABLE can buildkernel from head.
>> >
>> > This has stopped the Coverity Scan runs dead in its track and I
>> > wonder how
>> > anyone would boostrap a move from 11.x to 12.0 then.
>> >
>> > % env __MAKE_CONF=/dev/null make buildkernel
>> > make[1]: "/data/freebsd.work/Makefile.inc1" line 343:
>> > SYSTEM_COMPILER:
>> > libclang will be built for bootstrapping a cross-compiler.
>> > make[1]: "/data/freebsd.work/Makefile.inc1" line 348: SYSTEM_LINKER:
>> > libclang will be built for bootstrapping a cross-linker.
>> >
>> > --
>> > >
>> > > >
>> > > > >
>> > > > > Kernel build for GENERIC started on Wed Jul 25 14:34:46 CEST
>> > > > > 2018
>> > --
>> > ===> GENERIC
>> > mkdir -p /usr/obj/data/freebsd.work/amd64.amd64/sys
>> >
>> > --
>> > >
>> > > >
>> > > > >
>> > > > > stage 1: configuring the kernel
>> > --
>> > cd /data/freebsd.work/sys/amd64/conf;  PATH=/usr/obj/data/
>> > freebsd.work/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/data/freebsd.wo
>> > rk/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/data/freebsd.work/amd64.am
>> > d64/tmp/legacy/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/sbi
>> > n:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/
>> > sbin:/usr/bin
>> > config  -d /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC  -I
>> > '/data/
>> > freebsd.work/sys/amd64/conf'
>> > '/data/freebsd.work/sys/amd64/conf/GENERIC'
>> > Kernel build directory is
>> > /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC
>> > Don't forget to do ``make cleandepend && make depend''
>> >
>> > --
>> > >
>> > > >
>> > > > >
>> > > > > stage 2.1: cleaning up the object tree
>> > --
>> > cd /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC;
>> > MACHINE_ARCH=amd64
>> > MACHINE=amd64 CPUTYPE= CC="cc -target x86_64-unknown-freebsd12.0
>> > --sysroot=/usr/obj/data/freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
>> > freebsd.work/amd64.amd64/tmp/usr/bin" CXX="c++  -target
>> > x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/data/
>> > freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
>> > freebsd.work/amd64.amd64/tmp/usr/bin" CPP="cpp -target
>> > x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/data/
>> > freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
>> > freebsd.work/amd64.amd64/tmp/usr/bin" AS="as" AR="ar" LD="ld"
>> > LLVM_LINK=""
>> > NM=nm OBJCOPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size"
>> > INSTALL="sh
>> > /data/freebsd.work/tools/install.sh" PATH=/usr/obj/data/
>> > freebsd.work/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/data/freebsd.wo
>> > rk/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/data/freebsd.work/amd64.am
>> > d64/tmp/legacy/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/sbi
>> > n:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/
>> > sbin:/usr/bin
>> > make  -m /data/freebsd.work/share/mk  KERNEL=kernel cleandir
>> > make[2]: "/data/freebsd.work/sys/conf/kern.pre.mk" line 125: amd64
>> > kernel
>> > requires linker ifunc support
>> > *** Error code 1
>> >
>> > Stop.
>> > make[1]: stopped in /data/freebsd.work
>> > *** Error code 1
>> >
>> > Stop.
>> > make: stopped in /data/freebsd.work
>> > ___
>>
>> I think you may need to do "make kernel-toolchain" first.
>>
>> -- Ian
>>
>
> Would "make kernel-toolchain" also fix the "config(8) may be too old"
> errors that I get whenever I try "make universe" on universe12a.freebsd.org,
> which is a few months old?
>

Hi,

kernel-toolchain should fix most config(8) problems, but we have a
separate problem with universe invoking host config(8) [1] -- I have a
tentative patch for that that needs review, but the problem should've
gone away when I backed out the config(8) major bump in r336414 on
July 17th.

Thanks,

Kyle Evans

[1] https://svnweb.freebsd.org/base/head/Makefile?view=markup#l694
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: FreeBSD 11.2-RELEASE - mountd problem - mountd[1056]: unknown user: root

2018-07-25 Thread Rick Macklem
John Newman wrote:
>I'm having a problem with one of my FreeBSD NFS servers. It's an
>11.2-RELEASE box (upgraded fairly recently from 10.1), and actually
>we had the same issue even when it was on 10.x.
>
>Basically, what is happening is several of my NFS exports that are
>configured with "-maproot=root" (and they are actually ZFS NFS
>exports, in /etc/zfs/exports, configured with the 'zfs set
>sharenfs="..."' command - if that matters, which I don't think it
>does) are generating the following error messages when the machine
>first boots up -
>
>Jul  X 15:19:58 nfs5 mountd[1094]: unknown user: root
>Jul  X 15:19:58 nfs5 mountd[1094]: message repeated 14 times: [ unknown
>user: root]
This means that getpwnam() for "root" is failing. When an error is logged as 
above,
the export line has failed and the export hasn't happened.
(Apparently, this gets "fixed" after you have booted, since it can getpwnam() 
for
 "root" when you send mountd a SIGHUP.)

A couple of possible ways to fix this...
- Have a local password file on the server with "root" in it and edit your
   /etc/nsswitch.conf so it looks there first. "passwd: file ..." or something 
like that.
- Replace "root" with 0,0 on the exports line(s). I haven't done this recently,
  so I don't remember the exact syntax.;-)

>To fix the issue, I simply HUP the mountd process. Until I HUP the
>mountd process, none of the clients that depend on being able to
>write to their NFS shares as root work properly - they are read-only.
>As soon as I HUP mountd, the issue goes away, no more "unknown user:
>root" errors, and the mounts become writable for their clients.
>
>I think this is tied into the fact this box uses sssd for LDAP
>authentication, because I don't see this issue on another 11.2
>machine configured very similarly that isn't using sssd. The LDAP
>authentication works fine, the relevant lines in /etc/nsswitch.conf
>look like -
>
>$ grep sss /etc/nsswitch.conf
>group: sss files
>passwd: sss files
I'd suggest you change these to...
group: files sss
passwd: files sss
and just have the minimum in /etc/passwd and /etc/group to make booting happy.

>It feels like this may be some sort of ordering issue with the start
>up scripts - mountd running before sssd is running? But why doesn't
>it fall back to "files" and find root that way? We do *not* have a
>root user in our ldap directory anyway. Someone on IRC has suggested
>that I should swap the "sss files" to "files sss", but I'm not sure
>if this would help or not... For now, I simply added the following
>work-around to my /etc/rc.local:
>
>  kill -s HUP `cat /var/run/mountd.pid`
That works too. I don't know anything about the libc stuff behind getpwnam(), so
I don't know why it fails at boot, but works later. (I always put the critical 
stuff in
local files on servers and specify "files" first.)

Maybe someone else can explain why the ldap case would fail?

rick
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: -STABLE can no longer build -CURRENT kernel, linker missing ifunc

2018-07-25 Thread Alan Somers
On Wed, Jul 25, 2018 at 9:04 AM, Kyle Evans  wrote:

> On Wed, Jul 25, 2018 at 9:52 AM, Alan Somers  wrote:
> > On Wed, Jul 25, 2018 at 8:49 AM, Ian Lepore  wrote:
> >
> >> On Wed, 2018-07-25 at 14:35 +0200, Ulrich Spörlein wrote:
> >> > Hey all, as of a couple of weeks ago, neither 11.2-RELEASE nor a
> >> > recent
> >> > 11-STABLE can buildkernel from head.
> >> >
> >> > This has stopped the Coverity Scan runs dead in its track and I
> >> > wonder how
> >> > anyone would boostrap a move from 11.x to 12.0 then.
> >> >
> >> > % env __MAKE_CONF=/dev/null make buildkernel
> >> > make[1]: "/data/freebsd.work/Makefile.inc1" line 343:
> >> > SYSTEM_COMPILER:
> >> > libclang will be built for bootstrapping a cross-compiler.
> >> > make[1]: "/data/freebsd.work/Makefile.inc1" line 348: SYSTEM_LINKER:
> >> > libclang will be built for bootstrapping a cross-linker.
> >> >
> >> > --
> >> > >
> >> > > >
> >> > > > >
> >> > > > > Kernel build for GENERIC started on Wed Jul 25 14:34:46 CEST
> >> > > > > 2018
> >> > --
> >> > ===> GENERIC
> >> > mkdir -p /usr/obj/data/freebsd.work/amd64.amd64/sys
> >> >
> >> > --
> >> > >
> >> > > >
> >> > > > >
> >> > > > > stage 1: configuring the kernel
> >> > --
> >> > cd /data/freebsd.work/sys/amd64/conf;  PATH=/usr/obj/data/
> >> > freebsd.work/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/data/freebsd.wo
> >> > rk/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/data/freebsd.work/amd64.am
> >> > d64/tmp/legacy/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/sbi
> >> > n:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/
> >> > sbin:/usr/bin
> >> > config  -d /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC  -I
> >> > '/data/
> >> > freebsd.work/sys/amd64/conf'
> >> > '/data/freebsd.work/sys/amd64/conf/GENERIC'
> >> > Kernel build directory is
> >> > /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC
> >> > Don't forget to do ``make cleandepend && make depend''
> >> >
> >> > --
> >> > >
> >> > > >
> >> > > > >
> >> > > > > stage 2.1: cleaning up the object tree
> >> > --
> >> > cd /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC;
> >> > MACHINE_ARCH=amd64
> >> > MACHINE=amd64 CPUTYPE= CC="cc -target x86_64-unknown-freebsd12.0
> >> > --sysroot=/usr/obj/data/freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
> >> > freebsd.work/amd64.amd64/tmp/usr/bin" CXX="c++  -target
> >> > x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/data/
> >> > freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
> >> > freebsd.work/amd64.amd64/tmp/usr/bin" CPP="cpp -target
> >> > x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/data/
> >> > freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
> >> > freebsd.work/amd64.amd64/tmp/usr/bin" AS="as" AR="ar" LD="ld"
> >> > LLVM_LINK=""
> >> > NM=nm OBJCOPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size"
> >> > INSTALL="sh
> >> > /data/freebsd.work/tools/install.sh" PATH=/usr/obj/data/
> >> > freebsd.work/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/data/freebsd.wo
> >> > rk/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/data/freebsd.work/amd64.am
> >> > d64/tmp/legacy/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/sbi
> >> > n:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/
> >> > sbin:/usr/bin
> >> > make  -m /data/freebsd.work/share/mk  KERNEL=kernel cleandir
> >> > make[2]: "/data/freebsd.work/sys/conf/kern.pre.mk" line 125: amd64
> >> > kernel
> >> > requires linker ifunc support
> >> > *** Error code 1
> >> >
> >> > Stop.
> >> > make[1]: stopped in /data/freebsd.work
> >> > *** Error code 1
> >> >
> >> > Stop.
> >> > make: stopped in /data/freebsd.work
> >> > ___
> >>
> >> I think you may need to do "make kernel-toolchain" first.
> >>
> >> -- Ian
> >>
> >
> > Would "make kernel-toolchain" also fix the "config(8) may be too old"
> > errors that I get whenever I try "make universe" on
> universe12a.freebsd.org,
> > which is a few months old?
> >
>
> Hi,
>
> kernel-toolchain should fix most config(8) problems, but we have a
> separate problem with universe invoking host config(8) [1] -- I have a
> tentative patch for that that needs review, but the problem should've
> gone away when I backed out the config(8) major bump in r336414 on
> July 17th.
>
> Thanks,
>
> Kyle Evans
>
> [1] https://svnweb.freebsd.org/base/head/Makefile?view=markup#l694



I still get that error even with today's head, and even after running "make
kernel-toolchain".  All worlds (except riscv) complete and some kernels do,
but the sparc64 kernel fails and aborts the entire build when it does.  Is
this a related or a distinct problem?

 make[1]: "/home/asomers/freebsd/base/head/Makefile" line 697: "

Re: -STABLE can no longer build -CURRENT kernel, linker missing ifunc

2018-07-25 Thread Ian Lepore
On Wed, 2018-07-25 at 15:55 -0600, Alan Somers wrote:
> On Wed, Jul 25, 2018 at 9:04 AM, Kyle Evans 
> wrote:
> 
> > 
> > On Wed, Jul 25, 2018 at 9:52 AM, Alan Somers 
> > wrote:
> > > 
> > > On Wed, Jul 25, 2018 at 8:49 AM, Ian Lepore 
> > > wrote:
> > > 
> > > > 
> > > > On Wed, 2018-07-25 at 14:35 +0200, Ulrich Spörlein wrote:
> > > > > 
> > > > > Hey all, as of a couple of weeks ago, neither 11.2-RELEASE
> > > > > nor a
> > > > > recent
> > > > > 11-STABLE can buildkernel from head.
> > > > > 
> > > > > This has stopped the Coverity Scan runs dead in its track and
> > > > > I
> > > > > wonder how
> > > > > anyone would boostrap a move from 11.x to 12.0 then.
> > > > > 
> > > > > % env __MAKE_CONF=/dev/null make buildkernel
> > > > > make[1]: "/data/freebsd.work/Makefile.inc1" line 343:
> > > > > SYSTEM_COMPILER:
> > > > > libclang will be built for bootstrapping a cross-compiler.
> > > > > make[1]: "/data/freebsd.work/Makefile.inc1" line 348:
> > > > > SYSTEM_LINKER:
> > > > > libclang will be built for bootstrapping a cross-linker.
> > > > > 
> > > > > ---
> > > > > ---
> > > > > > 
> > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > > Kernel build for GENERIC started on Wed Jul 25 14:34:46
> > > > > > > > CEST
> > > > > > > > 2018
> > > > > ---
> > > > > ---
> > > > > ===> GENERIC
> > > > > mkdir -p /usr/obj/data/freebsd.work/amd64.amd64/sys
> > > > > 
> > > > > ---
> > > > > ---
> > > > > > 
> > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > > stage 1: configuring the kernel
> > > > > ---
> > > > > ---
> > > > > cd /data/freebsd.work/sys/amd64/conf;  PATH=/usr/obj/data/
> > > > > freebsd.work/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/data/fr
> > > > > eebsd.wo
> > > > > rk/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/data/freebsd.work/
> > > > > amd64.am
> > > > > d64/tmp/legacy/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp
> > > > > /usr/sbi
> > > > > n:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/bin:/sbin:/b
> > > > > in:/usr/
> > > > > sbin:/usr/bin
> > > > > config  -d
> > > > > /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC  -I
> > > > > '/data/
> > > > > freebsd.work/sys/amd64/conf'
> > > > > '/data/freebsd.work/sys/amd64/conf/GENERIC'
> > > > > Kernel build directory is
> > > > > /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC
> > > > > Don't forget to do ``make cleandepend && make depend''
> > > > > 
> > > > > ---
> > > > > ---
> > > > > > 
> > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > > stage 2.1: cleaning up the object tree
> > > > > ---
> > > > > ---
> > > > > cd /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC;
> > > > > MACHINE_ARCH=amd64
> > > > > MACHINE=amd64 CPUTYPE= CC="cc -target x86_64-unknown-
> > > > > freebsd12.0
> > > > > --sysroot=/usr/obj/data/freebsd.work/amd64.amd64/tmp
> > > > > -B/usr/obj/data/
> > > > > freebsd.work/amd64.amd64/tmp/usr/bin" CXX="c++  -target
> > > > > x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/data/
> > > > > freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
> > > > > freebsd.work/amd64.amd64/tmp/usr/bin" CPP="cpp -target
> > > > > x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/data/
> > > > > freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
> > > > > freebsd.work/amd64.amd64/tmp/usr/bin" AS="as" AR="ar" LD="ld"
> > > > > LLVM_LINK=""
> > > > > NM=nm OBJCOPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size"
> > > > > INSTALL="sh
> > > > > /data/freebsd.work/tools/install.sh" PATH=/usr/obj/data/
> > > > > freebsd.work/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/data/fr
> > > > > eebsd.wo
> > > > > rk/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/data/freebsd.work/
> > > > > amd64.am
> > > > > d64/tmp/legacy/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp
> > > > > /usr/sbi
> > > > > n:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/bin:/sbin:/b
> > > > > in:/usr/
> > > > > sbin:/usr/bin
> > > > > make  -m /data/freebsd.work/share/mk  KERNEL=kernel cleandir
> > > > > make[2]: "/data/freebsd.work/sys/conf/kern.pre.mk" line 125:
> > > > > amd64
> > > > > kernel
> > > > > requires linker ifunc support
> > > > > *** Error code 1
> > > > > 
> > > > > Stop.
> > > > > make[1]: stopped in /data/freebsd.work
> > > > > *** Error code 1
> > > > > 
> > > > > Stop.
> > > > > make: stopped in /data/freebsd.work
> > > > > ___
> > > > I think you may need to do "make kernel-toolchain" first.
> > > > 
> > > > -- Ian
> > > > 
> > > Would "make kernel-toolchain" also fix the "config(8) may be too
> > > old"
> > > errors that I get whenever I try "make universe" on
> > universe12a.freebsd.org,

Re: -STABLE can no longer build -CURRENT kernel, linker missing ifunc

2018-07-25 Thread Alan Somers
On Wed, Jul 25, 2018 at 4:08 PM, Ian Lepore  wrote:

> On Wed, 2018-07-25 at 15:55 -0600, Alan Somers wrote:
> > On Wed, Jul 25, 2018 at 9:04 AM, Kyle Evans 
> > wrote:
> >
> > >
> > > On Wed, Jul 25, 2018 at 9:52 AM, Alan Somers 
> > > wrote:
> > > >
> > > > On Wed, Jul 25, 2018 at 8:49 AM, Ian Lepore 
> > > > wrote:
> > > >
> > > > >
> > > > > On Wed, 2018-07-25 at 14:35 +0200, Ulrich Spörlein wrote:
> > > > > >
> > > > > > Hey all, as of a couple of weeks ago, neither 11.2-RELEASE
> > > > > > nor a
> > > > > > recent
> > > > > > 11-STABLE can buildkernel from head.
> > > > > >
> > > > > > This has stopped the Coverity Scan runs dead in its track and
> > > > > > I
> > > > > > wonder how
> > > > > > anyone would boostrap a move from 11.x to 12.0 then.
> > > > > >
> > > > > > % env __MAKE_CONF=/dev/null make buildkernel
> > > > > > make[1]: "/data/freebsd.work/Makefile.inc1" line 343:
> > > > > > SYSTEM_COMPILER:
> > > > > > libclang will be built for bootstrapping a cross-compiler.
> > > > > > make[1]: "/data/freebsd.work/Makefile.inc1" line 348:
> > > > > > SYSTEM_LINKER:
> > > > > > libclang will be built for bootstrapping a cross-linker.
> > > > > >
> > > > > > ---
> > > > > > ---
> > > > > > >
> > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Kernel build for GENERIC started on Wed Jul 25 14:34:46
> > > > > > > > > CEST
> > > > > > > > > 2018
> > > > > > ---
> > > > > > ---
> > > > > > ===> GENERIC
> > > > > > mkdir -p /usr/obj/data/freebsd.work/amd64.amd64/sys
> > > > > >
> > > > > > ---
> > > > > > ---
> > > > > > >
> > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > stage 1: configuring the kernel
> > > > > > ---
> > > > > > ---
> > > > > > cd /data/freebsd.work/sys/amd64/conf;  PATH=/usr/obj/data/
> > > > > > freebsd.work/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/data/fr
> > > > > > eebsd.wo
> > > > > > rk/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/data/freebsd.work/
> > > > > > amd64.am
> > > > > > d64/tmp/legacy/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp
> > > > > > /usr/sbi
> > > > > > n:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/bin:/sbin:/b
> > > > > > in:/usr/
> > > > > > sbin:/usr/bin
> > > > > > config  -d
> > > > > > /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC  -I
> > > > > > '/data/
> > > > > > freebsd.work/sys/amd64/conf'
> > > > > > '/data/freebsd.work/sys/amd64/conf/GENERIC'
> > > > > > Kernel build directory is
> > > > > > /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC
> > > > > > Don't forget to do ``make cleandepend && make depend''
> > > > > >
> > > > > > ---
> > > > > > ---
> > > > > > >
> > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > stage 2.1: cleaning up the object tree
> > > > > > ---
> > > > > > ---
> > > > > > cd /usr/obj/data/freebsd.work/amd64.amd64/sys/GENERIC;
> > > > > > MACHINE_ARCH=amd64
> > > > > > MACHINE=amd64 CPUTYPE= CC="cc -target x86_64-unknown-
> > > > > > freebsd12.0
> > > > > > --sysroot=/usr/obj/data/freebsd.work/amd64.amd64/tmp
> > > > > > -B/usr/obj/data/
> > > > > > freebsd.work/amd64.amd64/tmp/usr/bin" CXX="c++  -target
> > > > > > x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/data/
> > > > > > freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
> > > > > > freebsd.work/amd64.amd64/tmp/usr/bin" CPP="cpp -target
> > > > > > x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/data/
> > > > > > freebsd.work/amd64.amd64/tmp -B/usr/obj/data/
> > > > > > freebsd.work/amd64.amd64/tmp/usr/bin" AS="as" AR="ar" LD="ld"
> > > > > > LLVM_LINK=""
> > > > > > NM=nm OBJCOPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size"
> > > > > > INSTALL="sh
> > > > > > /data/freebsd.work/tools/install.sh" PATH=/usr/obj/data/
> > > > > > freebsd.work/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/data/fr
> > > > > > eebsd.wo
> > > > > > rk/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/data/freebsd.work/
> > > > > > amd64.am
> > > > > > d64/tmp/legacy/bin:/usr/obj/data/freebsd.work/amd64.amd64/tmp
> > > > > > /usr/sbi
> > > > > > n:/usr/obj/data/freebsd.work/amd64.amd64/tmp/usr/bin:/sbin:/b
> > > > > > in:/usr/
> > > > > > sbin:/usr/bin
> > > > > > make  -m /data/freebsd.work/share/mk  KERNEL=kernel cleandir
> > > > > > make[2]: "/data/freebsd.work/sys/conf/kern.pre.mk" line 125:
> > > > > > amd64
> > > > > > kernel
> > > > > > requires linker ifunc support
> > > > > > *** Error code 1
> > > > > >
> > > > > > Stop.
> > > > > > make[1]: stopped in /data/freebsd.work
> > > > > > *** Error code 1
> > > > > >
> > > > > > Stop.
> > > > > > make: stopped in /data/freebsd.work
> > > > > > ___