userland make build for -stable ends in Segmentation fault

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

userland make build for -stable ends in Segmentation fault

Matthias Freitag
Hi all,
i want to build 6.2-stable on a macppc. Kernel works fine and boots, no
problem.
make obj for userland works as well, but make build fails with the same
error,
at different stages though:
[...]
/usr/src/gnu/usr.bin/cc/libgcc/obj/../cc/cc -B
/usr/src/gnu/usr.bin/cc/libgcc/obj/../cc1 -c -O2 -pipe -g -DIN_GCC
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -DHAVE_GTHR_DEFAULT
-I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/include
-I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/gcc/config
-I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/gcc -I.
-I/usr/src/gnu/usr.bin/cc/libgcc/../cc_tools  -fno-stack-protector -DIN_GCC
-DHAVE_CONFIG_H -DPREFIX=\"/usr\" -DPIE_DEFAULT=2
-I/usr/src/gnu/usr.bin/cc/libgcc/obj/../cc_tools
-I/usr/src/gnu/usr.bin/cc/libgcc/../cc_tools
-I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/gcc
-I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/gcc/config
-I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/include
-I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/libcpp/include
-I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/libdecnumber -fno-pie  -MD
-MP  -fPIC  -DL_popcountsi2 -o _popcountsi2.o
/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/gcc/libgcc2.c
Segmentation fault (core dumped)
*** Error 139 in gnu/usr.bin/cc/libgcc (Makefile:282 '_popcountsi2.o')
*** Error 1 in gnu/usr.bin/cc (<bsd.subdir.mk>:48 'all')
*** Error 1 in gnu/usr.bin (<bsd.subdir.mk>:48 'all')
*** Error 1 in gnu (<bsd.subdir.mk>:48 'all')
*** Error 1 in . (<bsd.subdir.mk>:48 'all')
*** Error 1 in . (Makefile:95 'do-build')
*** Error 1 in /usr/src (Makefile:74 'build')

here's another one:
[...]
cc -I. -I/usr/src/usr.bin/awk -DHAS_ISBLANK -DNDEBUG
/usr/src/usr.bin/awk/maketab.c -o maketab
./maketab >proctab.c
Segmentation fault (core dumped)
*** Error 139 in usr.bin/awk (Makefile:17 'proctab.c')
*** Error 1 in usr.bin (<bsd.subdir.mk>:48 'all')
*** Error 1 in . (<bsd.subdir.mk>:48 'all')
*** Error 1 in . (Makefile:95 'do-build')
*** Error 1 in /usr/src (Makefile:74 'build')

Any ideas or hints what to do/where to go?

Cheers,
Matt
Reply | Threaded
Open this post in threaded view
|

Re: userland make build for -stable ends in Segmentation fault

Eric Oyen
well, doing a little searching around turned up this little gem: https://www.reddit.com/r/unix/comments/3acb61/what_does_make_run_error_139_mean/

from what I have read, it appears that gcc tried to do something and failed. there could be an underlying issue causing this. Since I am not a programmer, I am only guessing at this point.

no doubt that someone higher up the food chain might have a better answer.

-eric



On Dec 18, 2017, at 12:17 AM, Matthias Freitag wrote:

> Hi all,
> i want to build 6.2-stable on a macppc. Kernel works fine and boots, no
> problem.
> make obj for userland works as well, but make build fails with the same
> error,
> at different stages though:
> [...]
> /usr/src/gnu/usr.bin/cc/libgcc/obj/../cc/cc -B
> /usr/src/gnu/usr.bin/cc/libgcc/obj/../cc1 -c -O2 -pipe -g -DIN_GCC
> -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -DHAVE_GTHR_DEFAULT
> -I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/include
> -I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/gcc/config
> -I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/gcc -I.
> -I/usr/src/gnu/usr.bin/cc/libgcc/../cc_tools  -fno-stack-protector -DIN_GCC
> -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -DPIE_DEFAULT=2
> -I/usr/src/gnu/usr.bin/cc/libgcc/obj/../cc_tools
> -I/usr/src/gnu/usr.bin/cc/libgcc/../cc_tools
> -I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/gcc
> -I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/gcc/config
> -I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/include
> -I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/libcpp/include
> -I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/libdecnumber -fno-pie  -MD
> -MP  -fPIC  -DL_popcountsi2 -o _popcountsi2.o
> /usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/gcc/libgcc2.c
> Segmentation fault (core dumped)
> *** Error 139 in gnu/usr.bin/cc/libgcc (Makefile:282 '_popcountsi2.o')
> *** Error 1 in gnu/usr.bin/cc (<bsd.subdir.mk>:48 'all')
> *** Error 1 in gnu/usr.bin (<bsd.subdir.mk>:48 'all')
> *** Error 1 in gnu (<bsd.subdir.mk>:48 'all')
> *** Error 1 in . (<bsd.subdir.mk>:48 'all')
> *** Error 1 in . (Makefile:95 'do-build')
> *** Error 1 in /usr/src (Makefile:74 'build')
>
> here's another one:
> [...]
> cc -I. -I/usr/src/usr.bin/awk -DHAS_ISBLANK -DNDEBUG
> /usr/src/usr.bin/awk/maketab.c -o maketab
> ./maketab >proctab.c
> Segmentation fault (core dumped)
> *** Error 139 in usr.bin/awk (Makefile:17 'proctab.c')
> *** Error 1 in usr.bin (<bsd.subdir.mk>:48 'all')
> *** Error 1 in . (<bsd.subdir.mk>:48 'all')
> *** Error 1 in . (Makefile:95 'do-build')
> *** Error 1 in /usr/src (Makefile:74 'build')
>
> Any ideas or hints what to do/where to go?
>
> Cheers,
> Matt