public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* LFS V12.0-65 Chapter 8.5. Glibc-2.38 make error In function '__newlocale'
@ 2023-10-27 13:26 Will Schubert
  2023-10-27 15:08 ` Adhemerval Zanella
  0 siblings, 1 reply; 2+ messages in thread
From: Will Schubert @ 2023-10-27 13:26 UTC (permalink / raw)
  To: libc-help

[-- Attachment #1: Type: text/plain, Size: 4017 bytes --]

Hi guys!

I'm following the LFS Project, and till now I guess everything is going
fine...

But I'm having this error when compiling glibc:

(Full lines, below, here just a few lines)

/sources/glibc-2.38/build/locale/newlocale.o
during GIMPLE pass: fre
newlocale.c: In function '__newlocale':
newlocale.c:42:1: internal compiler error: Segmentation fault
   42 | __newlocale (int category_mask, const char *locale, locale_t base)
      | ^~~~~~~~~~~

newlocale.c:42:1: internal compiler error: Illegal instruction
gcc: internal compiler error: Illegal instruction signal terminated program
cc1

I followed the LFS Book instructions, like:

- Applied "patch -Np1 -i ../glibc-2.38-fhs-1.patch"
and
"patch -Np1 -i ../glibc-2.38-upstream_fixes-3.patch"

- Created a build dir

- Prepared the compilation with this params:

../configure --prefix=/usr                            \
             --disable-werror                         \
             --enable-kernel=4.14                     \
             --enable-stack-protector=strong          \
             --with-headers=/usr/include              \
             --disable-nscd                           \
             libc_cv_slibdir=/usr/lib

But at "make" had this error.

Full error below, tks and sorry for my poor en_US ;)

Will Schubert

...

gcc newlocale.c -c -std=gnu11 -fgnu89-inline  -g -O2 -Wall -Wwrite-strings
-Wundef -fmerge-all-constants -frounding-math -fstack-protector-strong
-fno-common -Wp,-U_FORTIFY_SOURCE -Wstrict-prototypes
-Wold-style-definition -fmath-errno    -fPIE     -ftls-model=initial-exec
 -DCOMPLOCALEDIR='"/usr/lib/locale"'
-DLOCALE_ALIAS_PATH='"/usr/share/locale"' -Iprograms -I../include
-I/sources/glibc-2.38/build/locale  -I/sources/glibc-2.38/build
 -I../sysdeps/unix/sysv/linux/x86_64/64
 -I../sysdeps/unix/sysv/linux/x86_64
 -I../sysdeps/unix/sysv/linux/x86/include -I../sysdeps/unix/sysv/linux/x86
 -I../sysdeps/x86/nptl  -I../sysdeps/unix/sysv/linux/wordsize-64
 -I../sysdeps/x86_64/nptl  -I../sysdeps/unix/sysv/linux/include
-I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread
 -I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv
 -I../sysdeps/unix/x86_64  -I../sysdeps/unix  -I../sysdeps/posix
 -I../sysdeps/x86_64/64  -I../sysdeps/x86_64/fpu/multiarch
 -I../sysdeps/x86_64/fpu  -I../sysdeps/x86/fpu
 -I../sysdeps/x86_64/multiarch  -I../sysdeps/x86_64
 -I../sysdeps/x86/include -I../sysdeps/x86  -I../sysdeps/ieee754/float128
 -I../sysdeps/ieee754/ldbl-96/include -I../sysdeps/ieee754/ldbl-96
 -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32
 -I../sysdeps/wordsize-64  -I../sysdeps/ieee754  -I../sysdeps/generic  -I..
-I../libio -I. -nostdinc -isystem
/usr/lib/gcc/x86_64-lfs-linux-gnu/13.2.0/include -isystem
/usr/lib/gcc/x86_64-lfs-linux-gnu/13.2.0/include-fixed -isystem
/usr/include -D_LIBC_REENTRANT -include
/sources/glibc-2.38/build/libc-modules.h -DMODULE_NAME=libc -include
../include/libc-symbols.h  -DPIC     -DTOP_NAMESPACE=glibc -o
/sources/glibc-2.38/build/locale/newlocale.o -MD -MP -MF
/sources/glibc-2.38/build/locale/newlocale.o.dt -MT
/sources/glibc-2.38/build/locale/newlocale.o
during GIMPLE pass: fre
newlocale.c: In function '__newlocale':
newlocale.c:42:1: internal compiler error: Segmentation fault
   42 | __newlocale (int category_mask, const char *locale, locale_t base)
      | ^~~~~~~~~~~

newlocale.c:42:1: internal compiler error: Illegal instruction
gcc: internal compiler error: Illegal instruction signal terminated program
cc1
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
make[2]: *** [../o-iterator.mk:9:
/sources/glibc-2.38/build/locale/newlocale.o] Error 4
make[2]: Leaving directory '/sources/glibc-2.38/locale'
make[1]: *** [Makefile:484: locale/subdir_lib] Error 2
make[1]: Leaving directory '/sources/glibc-2.38'
make: *** [Makefile:9: all] Error 2

real    0m26.978s
user    0m19.952s
sys     0m6.365s
(lfs chroot) root:/sources/glibc-2.38/build#

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: LFS V12.0-65 Chapter 8.5. Glibc-2.38 make error In function '__newlocale'
  2023-10-27 13:26 LFS V12.0-65 Chapter 8.5. Glibc-2.38 make error In function '__newlocale' Will Schubert
@ 2023-10-27 15:08 ` Adhemerval Zanella
  0 siblings, 0 replies; 2+ messages in thread
From: Adhemerval Zanella @ 2023-10-27 15:08 UTC (permalink / raw)
  To: Will Schubert; +Cc: libc-help

On Fri, Oct 27, 2023 at 10:27 AM Will Schubert via Libc-help
<libc-help@sourceware.org> wrote:
>
> Hi guys!
>
> I'm following the LFS Project, and till now I guess everything is going
> fine...
>
> But I'm having this error when compiling glibc:
>
> (Full lines, below, here just a few lines)
>
> /sources/glibc-2.38/build/locale/newlocale.o
> during GIMPLE pass: fre
> newlocale.c: In function '__newlocale':
> newlocale.c:42:1: internal compiler error: Segmentation fault
>    42 | __newlocale (int category_mask, const char *locale, locale_t base)
>       | ^~~~~~~~~~~
>
> newlocale.c:42:1: internal compiler error: Illegal instruction
> gcc: internal compiler error: Illegal instruction signal terminated program
> cc1
>
> I followed the LFS Book instructions, like:
>
> - Applied "patch -Np1 -i ../glibc-2.38-fhs-1.patch"
> and
> "patch -Np1 -i ../glibc-2.38-upstream_fixes-3.patch"
>
> - Created a build dir
>
> - Prepared the compilation with this params:
>
> ../configure --prefix=/usr                            \
>              --disable-werror                         \
>              --enable-kernel=4.14                     \
>              --enable-stack-protector=strong          \
>              --with-headers=/usr/include              \
>              --disable-nscd                           \
>              libc_cv_slibdir=/usr/lib
>
> But at "make" had this error.
>
> Full error below, tks and sorry for my poor en_US ;)
>
> Will Schubert
>
> ...
>
> gcc newlocale.c -c -std=gnu11 -fgnu89-inline  -g -O2 -Wall -Wwrite-strings
> -Wundef -fmerge-all-constants -frounding-math -fstack-protector-strong
> -fno-common -Wp,-U_FORTIFY_SOURCE -Wstrict-prototypes
> -Wold-style-definition -fmath-errno    -fPIE     -ftls-model=initial-exec
>  -DCOMPLOCALEDIR='"/usr/lib/locale"'
> -DLOCALE_ALIAS_PATH='"/usr/share/locale"' -Iprograms -I../include
> -I/sources/glibc-2.38/build/locale  -I/sources/glibc-2.38/build
>  -I../sysdeps/unix/sysv/linux/x86_64/64
>  -I../sysdeps/unix/sysv/linux/x86_64
>  -I../sysdeps/unix/sysv/linux/x86/include -I../sysdeps/unix/sysv/linux/x86
>  -I../sysdeps/x86/nptl  -I../sysdeps/unix/sysv/linux/wordsize-64
>  -I../sysdeps/x86_64/nptl  -I../sysdeps/unix/sysv/linux/include
> -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread
>  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv
>  -I../sysdeps/unix/x86_64  -I../sysdeps/unix  -I../sysdeps/posix
>  -I../sysdeps/x86_64/64  -I../sysdeps/x86_64/fpu/multiarch
>  -I../sysdeps/x86_64/fpu  -I../sysdeps/x86/fpu
>  -I../sysdeps/x86_64/multiarch  -I../sysdeps/x86_64
>  -I../sysdeps/x86/include -I../sysdeps/x86  -I../sysdeps/ieee754/float128
>  -I../sysdeps/ieee754/ldbl-96/include -I../sysdeps/ieee754/ldbl-96
>  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32
>  -I../sysdeps/wordsize-64  -I../sysdeps/ieee754  -I../sysdeps/generic  -I..
> -I../libio -I. -nostdinc -isystem
> /usr/lib/gcc/x86_64-lfs-linux-gnu/13.2.0/include -isystem
> /usr/lib/gcc/x86_64-lfs-linux-gnu/13.2.0/include-fixed -isystem
> /usr/include -D_LIBC_REENTRANT -include
> /sources/glibc-2.38/build/libc-modules.h -DMODULE_NAME=libc -include
> ../include/libc-symbols.h  -DPIC     -DTOP_NAMESPACE=glibc -o
> /sources/glibc-2.38/build/locale/newlocale.o -MD -MP -MF
> /sources/glibc-2.38/build/locale/newlocale.o.dt -MT
> /sources/glibc-2.38/build/locale/newlocale.o
> during GIMPLE pass: fre
> newlocale.c: In function '__newlocale':
> newlocale.c:42:1: internal compiler error: Segmentation fault
>    42 | __newlocale (int category_mask, const char *locale, locale_t base)
>       | ^~~~~~~~~~~
>
> newlocale.c:42:1: internal compiler error: Illegal instruction
> gcc: internal compiler error: Illegal instruction signal terminated program
> cc1
> Please submit a full bug report, with preprocessed source (by using
> -freport-bug).
> See <https://gcc.gnu.org/bugs/> for instructions.
> make[2]: *** [../o-iterator.mk:9:
> /sources/glibc-2.38/build/locale/newlocale.o] Error 4
> make[2]: Leaving directory '/sources/glibc-2.38/locale'
> make[1]: *** [Makefile:484: locale/subdir_lib] Error 2
> make[1]: Leaving directory '/sources/glibc-2.38'
> make: *** [Makefile:9: all] Error 2
>
> real    0m26.978s
> user    0m19.952s
> sys     0m6.365s
> (lfs chroot) root:/sources/glibc-2.38/build#

This seems to be a gcc error, could you gather the required
information (as indicated by the directions with -freport-bug) and
open a bug report on gcc?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-27 15:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-27 13:26 LFS V12.0-65 Chapter 8.5. Glibc-2.38 make error In function '__newlocale' Will Schubert
2023-10-27 15:08 ` Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).