From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 100266 invoked by alias); 1 Jun 2018 10:45:54 -0000 Mailing-List: contact libc-help-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: libc-help-owner@sourceware.org Received: (qmail 100215 invoked by uid 89); 1 Jun 2018 10:45:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*c:MHil, 2651, disturb, nostartfiles X-HELO: mail-wr0-f173.google.com Received: from mail-wr0-f173.google.com (HELO mail-wr0-f173.google.com) (209.85.128.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 01 Jun 2018 10:45:50 +0000 Received: by mail-wr0-f173.google.com with SMTP id k16-v6so8656009wro.0 for ; Fri, 01 Jun 2018 03:45:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=miklyJ94bKeQXiesVK7AVNPBSvDOF0ZVq3tdHwOroow=; b=jK4rQPDvCW9treVtaMrETT/jHipu5fm2TTwTT5E/UVfvIwIf5k9KvDg50swhwnwSui fBLwA1T9CqNTcizVzKWFvE3+zIQ9XEg4qpEJYJNeTnAwNMRGfXe/B+2DzK16ncTugL85 Y76L6T65MZ30H/wPaEDW9lx7QWbLF36s4518jTfzqLhOapUmsCz4nr39NkXQjMfrhl/I smdUlopwL29qdcLPwTfQRfCS5RISIABD7SQ5A92tb4g0RklxUpzeL2PGlae/h5KgKbuq E+b1HT9djaDuZVcZmUz3nIDgJ0tn6KmbOF3bOC1irQfWrHxWSbkxewZmqAUNufFhrRMw F5gg== X-Gm-Message-State: ALKqPwfH+KeVMipzspBEFWspRwtiQSs9q8zHdjyyHjs4VI2PHZhg4LA5 57VPh+W/ex4ufbmFh1cBgLU= X-Google-Smtp-Source: ADUXVKISBWdtMYsn8KpNje8d4ADYXWAG7XyZXaTzoGIIeM6cU122QXrDYdLmHh7N4lcrycnT5Kcdcw== X-Received: by 2002:adf:af6b:: with SMTP id z98-v6mr8240483wrc.250.1527849937746; Fri, 01 Jun 2018 03:45:37 -0700 (PDT) Received: from [10.153.1.84] ([213.95.221.8]) by smtp.googlemail.com with ESMTPSA id x16-v6sm1130763wmc.42.2018.06.01.03.45.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jun 2018 03:45:36 -0700 (PDT) From: Andreas Hubert Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_518E2BAB-D58A-4FF3-8FE3-F57FB4E20D81"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: Building 2.27 on CentOS Date: Fri, 01 Jun 2018 10:45:00 -0000 In-Reply-To: <8B580C00-0D93-4DB3-990F-9E7EAA734358@googlemail.com> Cc: libc-help@sourceware.org To: Florian Weimer References: <73359be3-8709-5740-c0c6-63896d4106df@redhat.com> <8B580C00-0D93-4DB3-990F-9E7EAA734358@googlemail.com> X-SW-Source: 2018-06/txt/msg00000.txt.bz2 --Apple-Mail=_518E2BAB-D58A-4FF3-8FE3-F57FB4E20D81 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Content-length: 5705 To have a really clean environment for testing, I just tried it with a dock= er container based on centos/devtoolset-7-toolchain-centos7 and just added = bison and make. So that=E2=80=99s my docker file: ``` FROM centos/devtoolset-7-toolchain-centos7 USER 0 RUN yum install -y --setopt=3Dtsflags=3Dnodocs bison devtoolset-7-make && y= um clean all -y USER 1001 ``` >From there I was just running `configure =E2=80=94prefix=3D/my/new/dir` an= d then make Still facing the same error: ``` make[3]: Leaving directory '/builddir/rpmbuild/SOURCES/glibc-2.27/elf' gcc -nostdlib -nostartfiles -r -o /builddir/rpmbuild/SOURCES/glibc-build/= elf/librtld.os '-Wl,-(' /builddir/rpmbuild/SOURCES/glibc-build/elf/dl-allob= js.os /builddir/rpmbuild/SOURCES/glibc-build/elf/rtld-libc.a -lgcc '-Wl,-)'= \ -Wl,-Map,/builddir/rpmbuild/SOURCES/glibc-build/elf/librtld.os.map gcc -nostdlib -nostartfiles -shared -o /builddir/rpmbuild/SOURCES/glibc-b= uild/elf/ld.so.new \ -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=3Dboth -Wl,-z,defs= \ /builddir/rpmbuild/SOURCES/glibc-build/elf/librtld.os -Wl,--versi= on-script=3D/builddir/rpmbuild/SOURCES/glibc-build/ld.map \ -Wl,-soname=3Dld-linux-x86-64.so.2 \ -Wl,-defsym=3D_begin=3D0 /builddir/rpmbuild/SOURCES/glibc-build/elf/librtld.os: In function `process= _envvars': /builddir/rpmbuild/SOURCES/glibc-2.27/elf/rtld.c:2677: undefined reference = to `__open' /builddir/rpmbuild/SOURCES/glibc-build/elf/librtld.os: In function `dl_main= ': /builddir/rpmbuild/SOURCES/glibc-2.27/elf/rtld.c:1629: undefined reference = to `__access' /builddir/rpmbuild/SOURCES/glibc-build/elf/librtld.os: In function `process= _envvars': /builddir/rpmbuild/SOURCES/glibc-2.27/elf/rtld.c:2651: undefined reference = to `__access' /builddir/rpmbuild/SOURCES/glibc-build/elf/librtld.os: In function `lose': /builddir/rpmbuild/SOURCES/glibc-2.27/elf/dl-load.c:780: undefined referenc= e to `__close' /builddir/rpmbuild/SOURCES/glibc-build/elf/librtld.os: In function `_dl_get= _file_id': /builddir/rpmbuild/SOURCES/glibc-2.27/elf/../sysdeps/posix/dl-fileid.h:37: = undefined reference to `__GI___fxstat64' /opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: /buildd= ir/rpmbuild/SOURCES/glibc-build/elf/librtld.os: relocation R_X86_64_PC32 ag= ainst undefined symbol `__GI___fxstat64' can not be used when making a shar= ed object; recompile with -fPIC /opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: final l= ink failed: Bad value collect2: error: ld returned 1 exit status make[2]: *** [Makefile:478: /builddir/rpmbuild/SOURCES/glibc-build/elf/ld.s= o] Error 1 make[2]: Leaving directory '/builddir/rpmbuild/SOURCES/glibc-2.27/elf' make[1]: *** [Makefile:215: elf/subdir_lib] Error 2 make[1]: Leaving directory '/builddir/rpmbuild/SOURCES/glibc-2.27' make: *** [Makefile:9: all] Error 2 ``` And as a side note, if I try it with `make -j6` I get this error: ``` make[2]: Leaving directory '/builddir/rpmbuild/SOURCES/glibc-2.27/locale' make subdir=3Dlocaledata -C localedata ..=3D../ subdir_lib make[2]: Entering directory '/builddir/rpmbuild/SOURCES/glibc-2.27/localeda= ta' .././scripts/mkinstalldirs /builddir/rpmbuild/SOURCES/glibc-build/localedata .././scripts/mkinstalldirs /builddir/rpmbuild/SOURCES/glibc-build/localedata .././scripts/mkinstalldirs /builddir/rpmbuild/SOURCES/glibc-build/localedata mkdir -p -- /builddir/rpmbuild/SOURCES/glibc-build/localedata mkdir -p -- /builddir/rpmbuild/SOURCES/glibc-build/localedata rm -f /builddir/rpmbuild/SOURCES/glibc-build/localedata/stamp.o; > /builddi= r/rpmbuild/SOURCES/glibc-build/localedata/stamp.o mkdir -p -- /builddir/rpmbuild/SOURCES/glibc-build/localedata rm -f /builddir/rpmbuild/SOURCES/glibc-build/localedata/stamp.os; > /buildd= ir/rpmbuild/SOURCES/glibc-build/localedata/stamp.os rm -f /builddir/rpmbuild/SOURCES/glibc-build/localedata/stamp.oS; > /buildd= ir/rpmbuild/SOURCES/glibc-build/localedata/stamp.oS /bin/sh: /builddir/rpmbuild/SOURCES/glibc-build/localedata/stamp.oS: File e= xists make[2]: *** [../Makerules:920: /builddir/rpmbuild/SOURCES/glibc-build/loca= ledata/stamp.oS] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/builddir/rpmbuild/SOURCES/glibc-2.27/localedat= a' make[1]: *** [Makefile:215: localedata/subdir_lib] Error 2 make[1]: Leaving directory '/builddir/rpmbuild/SOURCES/glibc-2.27' make: *** [Makefile:9: all] Error 2 ``` Any suggestions what am I missing or how can make this finally compile? > Am 29.05.2018 um 14:04 schrieb Andreas Hubert : >=20 > Basically just run > configure =E2=80=94prefix=3D/somewhere/else > make >=20 > I tried with different options and CFLAGS etc. but currently I always end= up with the same error. > Currently I try with CC=3D=E2=80=9Cgcc -fPIC=E2=80=9D but make takes real= ly a while on my machine.. > When I use make -j6 then I get another error that some .os file does not = exist, which I guess in this case is because the multiple jobs disturb each= other. > I tried to attach config.log and make.log, but it seemed it didn=E2=80=99= t came through on this mailinglist then. >=20 >> Am 29.05.2018 um 13:25 schrieb Florian Weimer : >>=20 >> On 05/29/2018 11:21 AM, Andreas Hubert wrote: >>> I=E2=80=99d like to build glibc under a CentOS to be packed in a RPM an= d a different root dir. >>> But currently I have problems with my build and hope someone can help m= e. >>=20 >> I regularly build upstream glibc with DTS 7 and have not seen anything l= ike this. How do you invoke configure and make? >>=20 >> Thanks, >> Florian >=20 --Apple-Mail=_518E2BAB-D58A-4FF3-8FE3-F57FB4E20D81 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP Content-length: 873 -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIzBAEBCAAdFiEE8CEAGqeise3zVDVtyAbRQLLL3CcFAlsRI88ACgkQyAbRQLLL 3CdX8RAAzeayXzBJq57v8RI1hT+Hoj5v0nnvCGnYQIG2Koz0+ekRF8YQJlOUQDC7 e+epKvcuQgcA2xafP/fUvTWM1feWwMA3H5w2IC8v/E5Mt4m77AGcsof1YjygbI+o xarY6ioO6f2kojVJBVjMRcO+fKoQTQMRI7qeQ/SaSQ0nJQ7/YxYXLWpuFEWOopE8 A+VsnOO/xBLVQEfmlFZuKn97XxkfqFNv3oF1Q97CEQHkV3yFecsg5Q5L5FuJipCo 9fQW6TM6FzFcEcC7BZ+WD3rbPkkGlH/X9180jqtSNzDhoy/BTOwTYdARBQNkhn7n W5lECiFAbux+C/TjRiSNiX60hnIMGGAUOEd0hgtWQHDqqTRM9tFd4BVQLwtsWVD9 fyaUNagbUjPUKq3iQvxxMhzQgWH4PrN5uOiwMpqgdsWua5pwCp4U4I1iknugspUz Rv9YUGR9I0DSjjHs/ZxNfP2Zybqt4J+TalLUvwOcWbfpjZrJLBWEkEki0QXsHNId EVz1GhazTfwNRfXz+LOagPsPJgnBbsSQEEembGskZKVGGk/gT+JpTcJSlUz+u0EL Oh44F7BetNi08lJ/itzerHfkRxKhSafWyyHQyz0cU4oAmiWF6dQmzZwWAl8iku5T ZI2SegYp/awc0tjUEofsgwFQ2d0H5SlPuIBgs+yy6GQ5IUkrGBM= =WR5c -----END PGP SIGNATURE----- --Apple-Mail=_518E2BAB-D58A-4FF3-8FE3-F57FB4E20D81--