Re: Signal 12 on make update (or any target in /usrc/src)

2016-08-10 Thread Konstantin Belousov
On Wed, Aug 10, 2016 at 10:49:40AM -0400, Matteo Riondato wrote:
> 
> > On Aug 10, 2016, at 10:41 AM, Konstantin Belousov  
> > wrote:
> > On Wed, Aug 10, 2016 at 10:33:23AM -0400, Matteo Riondato wrote:
> >> Hi all,
> >> 
> >> I recently upgraded from a late June (pre 11-branch, as far as I can tell) 
> >> revision to r303771.
> >> 
> >> Now, running ???make update??? (or buildworld, ???) in /usr/src fails with 
> >> a signal 12:
> >> 
> >> matteo@triton:/usr/src$ sudo make update
> >> Password:
> >> *** Signal 12
> > 
> > You did not updated, I think.  You, most likely, inly updated the kernel,
> > but left the old userspace in place, at least libc.
> 
> That would be surprising but it may have happened, as I don???t remember 
> without doubts to have run installworld :/
> 
> > Signal 12 is SIGSYS, which means that the program tries to use a syscall
> > not implemented by the kernel.  My guess is that your kernel lacks option
> > COMPAT_FREEBSD10, and the failing syscall is pipe(2).
> 
> Indeed I do not have COMPAT_FREEBSD10, because I believed my previous world 
> revision was >302092, as noted by the entry about pipe(2) in UPDATING.
> 
> Any suggestion on how to fix this?
> Boot the old kernel, add COMPAT_FREEBSD10 to kernel config, and 
> rebuild/install world and kernel perhaps?
> 

If old kernel works, then this would allow you to recover.

Take libc.so.7 from the BETA-4, and put it into /lib, taking backup of
your current libc first.  I suspect this is the easiest route if old
kernel does not match with your world.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Signal 12 on make update (or any target in /usrc/src)

2016-08-10 Thread Matteo Riondato

> On Aug 10, 2016, at 10:41 AM, Konstantin Belousov  wrote:
> On Wed, Aug 10, 2016 at 10:33:23AM -0400, Matteo Riondato wrote:
>> Hi all,
>> 
>> I recently upgraded from a late June (pre 11-branch, as far as I can tell) 
>> revision to r303771.
>> 
>> Now, running ???make update??? (or buildworld, ???) in /usr/src fails with a 
>> signal 12:
>> 
>> matteo@triton:/usr/src$ sudo make update
>> Password:
>> *** Signal 12
> 
> You did not updated, I think.  You, most likely, inly updated the kernel,
> but left the old userspace in place, at least libc.

That would be surprising but it may have happened, as I don’t remember without 
doubts to have run installworld :/

> Signal 12 is SIGSYS, which means that the program tries to use a syscall
> not implemented by the kernel.  My guess is that your kernel lacks option
> COMPAT_FREEBSD10, and the failing syscall is pipe(2).

Indeed I do not have COMPAT_FREEBSD10, because I believed my previous world 
revision was >302092, as noted by the entry about pipe(2) in UPDATING.

Any suggestion on how to fix this?
Boot the old kernel, add COMPAT_FREEBSD10 to kernel config, and rebuild/install 
world and kernel perhaps?

Thanks for the help!

Matteo



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Signal 12 on make update (or any target in /usrc/src)

2016-08-10 Thread Konstantin Belousov
On Wed, Aug 10, 2016 at 10:33:23AM -0400, Matteo Riondato wrote:
> Hi all,
> 
> I recently upgraded from a late June (pre 11-branch, as far as I can tell) 
> revision to r303771.
> 
> Now, running ???make update??? (or buildworld, ???) in /usr/src fails with a 
> signal 12:
> 
> matteo@triton:/usr/src$ sudo make update
> Password:
> *** Signal 12

You did not updated, I think.  You, most likely, inly updated the kernel,
but left the old userspace in place, at least libc.

Signal 12 is SIGSYS, which means that the program tries to use a syscall
not implemented by the kernel.  My guess is that your kernel lacks option
COMPAT_FREEBSD10, and the failing syscall is pipe(2).
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Signal 12 on make update (or any target in /usrc/src)

2016-08-10 Thread Matteo Riondato
Hi all,

I recently upgraded from a late June (pre 11-branch, as far as I can tell) 
revision to r303771.

Now, running “make update” (or buildworld, …) in /usr/src fails with a signal 
12:

matteo@triton:/usr/src$ sudo make update
Password:
*** Signal 12

Stop.
make: stopped in /usr/src
.ERROR_TARGET='update'
.ERROR_META_FILE=''
.MAKE.LEVEL='0'
MAKEFILE=''
.MAKE.MODE='normal'
.CURDIR='/usr/src'
.MAKE='make'
.OBJDIR='/usr/obj/usr/src'
.TARGETS='update'
DESTDIR=''
LD_LIBRARY_PATH=''
MACHINE='amd64'
MACHINE_ARCH='amd64'
MAKEOBJDIRPREFIX='/usr/obj'
MAKESYSPATH='/usr/src/share/mk'
MAKE_VERSION='20160606'
PATH='/sbin:/bin:/usr/sbin:/usr/bin'
SRCTOP='/usr/src'
OBJTOP='/usr/obj/usr/src

Installing ports using “make install” works.

Relevant (?) section of src.conf:
WITH_CCACHE_BUILD=y
WITH_SYSTEM_COMPILER=y

src-env.conf:
WITH_META_MODE=yes

make.conf:
KERNCONF=TRITON
CPUTYPE?=k8-sse3
SVN_UPDATE=y
COPTFLAGS=-O2 -pipe
MALLOC_PRODUCTION=y

Any hints?

Thanks,
Matteo



signature.asc
Description: Message signed with OpenPGP using GPGMail