From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: Will Schubert <redesistema@gmail.com>
Cc: libc-help@sourceware.org
Subject: Re: LFS V12.0-65 Chapter 8.5. Glibc-2.38 make error In function '__newlocale'
Date: Fri, 27 Oct 2023 12:08:25 -0300 [thread overview]
Message-ID: <CAMXh4bULzERWT3Yw1SxgEigaoBfo3YgB2wDBZNnosbR-nwALGQ@mail.gmail.com> (raw)
In-Reply-To: <CAMowSBbQnQBxY5gZ20WUE67YaQEi6ig8VzMh+OKKjfzBQCaywA@mail.gmail.com>
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?
prev parent reply other threads:[~2023-10-27 15:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-27 13:26 Will Schubert
2023-10-27 15:08 ` Adhemerval Zanella [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMXh4bULzERWT3Yw1SxgEigaoBfo3YgB2wDBZNnosbR-nwALGQ@mail.gmail.com \
--to=adhemerval.zanella@linaro.org \
--cc=libc-help@sourceware.org \
--cc=redesistema@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).