From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by sourceware.org (Postfix) with ESMTPS id 310B03858C2B for ; Fri, 27 Oct 2023 15:08:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 310B03858C2B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 310B03858C2B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::536 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698419322; cv=none; b=E4V+pdGqW65Rjue+uKz2zQ9W5AU2ROxiCDZ2Ke2z9xwhYizFPDGBYITGHymCUpDmi0JAoY4DRKB2LNwlhhzH2Ig7umryD0P0enPGlTbhj0B2uBDDZ8X0YxjfNYXCgkscuPNdnj9tYPOU8Zz4w8MGrQR/A2yttYhmzsEzabPDmhE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698419322; c=relaxed/simple; bh=Y7Ra0Hnbu1mEqcNaXJpeflEImgHcY76YazF+o3drPFA=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=IY4cy6YOqihebluIkE+8DEG7sNr0cv2lyp4KlUMKlj30y5nvJUnZlfqG/0P3Vo48AUeS8M3M5L94ZdXfGyRLvKJjcG+ecgqZp8zlwW9Di5xruyJGq/yHx61owmDkhhc7nd30z8YmOyXLwXmlJE9nThebsuaycupF0i6TCdMjBK4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-5aa481d53e5so1663865a12.1 for ; Fri, 27 Oct 2023 08:08:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698419319; x=1699024119; darn=sourceware.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=AWRbyGCVjIkhuk++JanK+K7AgeY3Qh5ojjaOX6tA/TU=; b=FSLUiuV0uLO1iePb6lEMYXPiwqvOZNcMTzsMVZOi/eL3xdJAVEQZvDr0pHkcVMDOto T7jx18JZ19d4kF0lBJoNuwnm6p1UtiSBr2HSnqtVJ6phl7eG+JB3jJ6/1QSF/uWZhj57 0/XSS/PKuBJWH75BvE6ySp5m09V9446HinfkWoEzCqbU0AzGjj5uhUjqL/zmjFub8X2O RSPkkjh28o7ohsWpq0Vdir06SE/l9gpRjDvKwWGYSmNavEJCRJ8NNLIVYBrkkzJU+ZY8 K6rox2wfyOcP5DiznaYIOenSU9N3EQTpkWG/kPxUBo139P44G8ehtl2SNRJinqzgIHOt KLug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698419319; x=1699024119; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AWRbyGCVjIkhuk++JanK+K7AgeY3Qh5ojjaOX6tA/TU=; b=OPCuYWhIRo5pwN5n26kEDMDo1mfyV+qNEPR0xDvtjCPVfK2zFiYmk8+/Wc6dblIZyW JM62vGkwejXimAr8NsqerTi3VFYdiyrmszfaP5mpviYRJIFnkFEbIwUIieSvldklng+0 znP23+qoDsiYyZJFnNYmPxdVQF+RaQITj8focOai/ZEn7jJXele40zc+LJoo7O7YzPeP Z/iJSp1VCQPL/3eHA48b1+b1U4aZ3+rR04BL1kwyoaWeykOzy2XjUdyikD7Dd7Q5Hqj1 TH2SNPybzRxUNPGJ0BLYkYqIOhmTOp5/BNFkYfLQxItLFM1wJuALeaFm21EML5A29P7D IY/Q== X-Gm-Message-State: AOJu0YwLAkHXDHxoYyQJFmNiqSB4llvZc1b9RLkxPXNOCOAocpNPDCTn 2As9cYV33P3zYFqiOsqd3fWxcoe65ACpJut5c7lHtQ== X-Google-Smtp-Source: AGHT+IFDXLE8HXCOs1YxeAFzYNKNRJGLBOaS+ajoLoc2PGzeHCmFlrUzdtCALreNgo1qWxT84QcyTD46M9wfkfy7Di0= X-Received: by 2002:a17:90a:e295:b0:27c:f483:e2da with SMTP id d21-20020a17090ae29500b0027cf483e2damr2782950pjz.5.1698419318924; Fri, 27 Oct 2023 08:08:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adhemerval Zanella Date: Fri, 27 Oct 2023 12:08:25 -0300 Message-ID: Subject: Re: LFS V12.0-65 Chapter 8.5. Glibc-2.38 make error In function '__newlocale' To: Will Schubert Cc: libc-help@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, Oct 27, 2023 at 10:27=E2=80=AFAM Will Schubert via Libc-help 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 progr= am > 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=3D/usr \ > --disable-werror \ > --enable-kernel=3D4.14 \ > --enable-stack-protector=3Dstrong \ > --with-headers=3D/usr/include \ > --disable-nscd \ > libc_cv_slibdir=3D/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=3Dgnu11 -fgnu89-inline -g -O2 -Wall -Wwrite-stri= ngs > -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=3Dinitial-ex= ec > -DCOMPLOCALEDIR=3D'"/usr/lib/locale"' > -DLOCALE_ALIAS_PATH=3D'"/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/x8= 6 > -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=3Dlibc -include > ../include/libc-symbols.h -DPIC -DTOP_NAMESPACE=3Dglibc -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 progr= am > cc1 > Please submit a full bug report, with preprocessed source (by using > -freport-bug). > See 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?