public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
From: "Fotso, Kevin" <KEVIN.FOTSO@CUANSCHUTZ.EDU>
To: "Billie Alsup (balsup)" <balsup@cisco.com>,
	"libc-help@sourceware.org" <libc-help@sourceware.org>
Subject: Re: Issue when building glibc v2.31
Date: Wed, 14 Jun 2023 17:56:32 +0000	[thread overview]
Message-ID: <BYAPR05MB4471FCD974B038E6428C8FC08A5AA@BYAPR05MB4471.namprd05.prod.outlook.com> (raw)
In-Reply-To: <BYAPR11MB3527881E763E27102C647534D95AA@BYAPR11MB3527.namprd11.prod.outlook.com>

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

Hi Billie,

Thank you so much!
Will try that.

All the best


________________________________
From: Billie Alsup (balsup) <balsup@cisco.com>
Sent: Wednesday, June 14, 2023 11:16 AM
To: Fotso, Kevin <KEVIN.FOTSO@CUANSCHUTZ.EDU>; libc-help@sourceware.org <libc-help@sourceware.org>
Subject: Re: Issue when building glibc v2.31

[External Email - Use Caution]

Looks like the sed command uses @ as a delimiter, therefore you should not use @ in your workspace pathname.





On 6/14/23, 9:33 AM, "Libc-help" <libc-help-bounces+balsup=cisco.com@sourceware.org> wrote:



Hi,

I am trying to build glibc v2.31 and I have been running into an issue.
Our cluster is Red Hat Enterprise Linux 8.7 (Ootpa).
My gcc version is v 11.2.0 and my cmake version is 3.25.0.

My configure command is as follows:

CFLAGS="-O2 -pipe -Wno-error -Wno-zero-length-bounds ${_archflags}" ../configure --disable-werror --prefix=/projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build

Here is the error I get after running make:


gcc   -nostdlib -nostartfiles -r -o /projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/elf/librtld.map.o -Wl,--defsym='__stack_chk_fail=0' -Wl,--defsym='__stack_chk_fail_local=0' \
        '-Wl,-(' /projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/elf/dl-allobjs.os /projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/elf/librtld.mapT
rm -f /projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/elf/librtld.map.o
mv -f /projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/elf/librtld.mapT /projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/elf/librtld.map
LC_ALL=C \
sed -n 's@^/projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/\([^(]*\)(\([^)]*\.os\)) *.*$@\1 \2@p' \
    /projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/elf/librtld.map | \
while read lib file; do \
  case $lib in \
  libc_pic.a) \
    LC_ALL=C fgrep -l /$file \
          /projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/stamp.os /projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/*/stamp.os | \
    LC_ALL=C \
    sed 's@^/projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/\([^/]*\)/stamp\.os$@rtld-\1'" +=$file@"\
    ;; \
  */*.a) \
    echo rtld-${lib%%/*} += $file ;; \
  *) echo "Wasn't expecting $lib($file)" >&2; exit 1 ;; \
  esac; \
done > /projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/elf/librtld.mkT
sed: -e expression #1, char 100: unknown option to `s'
echo rtld-subdirs = `LC_ALL=C sed 's/^rtld-\([^ ]*\).*$/\1/' /projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/elf/librtld.mkT \
                     | LC_ALL=C sort -u` >> /projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/elf/librtld.mkT
mv -f /projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/elf/librtld.mkT /projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/elf/librtld.mk
make -f /projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/elf/librtld.mk -f rtld-Rules
make[3]: Entering directory '/projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/elf'
rtld-Rules:40: *** This makefile is a subroutine of elf/Makefile not to be used directly.  Stop.
make[3]: Leaving directory '/projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/elf'
make[2]: *** [Makefile:526: /projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/glibc-build/elf/rtld-libc.a] Error 2
make[2]: Leaving directory '/projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31/elf'
make[1]: *** [Makefile:470: elf/subdir_lib] Error 2
make[1]: Leaving directory '/projects/kfotso@xsede.org/nitrc/usr/local/glibc-2.31'
make: *** [Makefile:9: all] Error 2

Is there any suggestion?

All the best



      reply	other threads:[~2023-06-14 17:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-14 16:32 Fotso, Kevin
2023-06-14 17:16 ` Billie Alsup (balsup)
2023-06-14 17:56   ` Fotso, Kevin [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=BYAPR05MB4471FCD974B038E6428C8FC08A5AA@BYAPR05MB4471.namprd05.prod.outlook.com \
    --to=kevin.fotso@cuanschutz.edu \
    --cc=balsup@cisco.com \
    --cc=libc-help@sourceware.org \
    /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).