From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by sourceware.org (Postfix) with ESMTPS id 4083A3858D1E for ; Sun, 20 Nov 2022 18:15:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4083A3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ot1-x334.google.com with SMTP id t19-20020a9d7753000000b0066d77a3d474so6139600otl.10 for ; Sun, 20 Nov 2022 10:15:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=cKg1LaRblRZ9oDV/UfPyyIzw7UEIN3o67Ad+7QMdQDI=; b=RUL3ddM+k7L7gfsguJc0zGLhrVFFF1Nz6fX4/+WxGh4DOpqC8Phay8DnTQ7tZGRrpV O69GPercJQkVn+WOFMsBOYoeHl1/NQ8COadF8wNoF6QKCS3Hwn5m39qD6awXPmKfYrz5 YrXxA0mQW3JDzI7xC0tKkfHsh/3cjZKatWh07Lhr9i8TCc3Jr6CksGYQtFG0hln5uHcm edo3kRoaCqzjPdwpwSs9tIJzIN4rCf8Ye6hhuFQkZ0GING6g9j0ko4AmMWltrLIRhToF 1F162Yt9E5myWw7xfZJtZX+lospvfK50i6BPwTE15ag4Mii7tLaerv5v5CwE6XnTIMmn sr1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=cKg1LaRblRZ9oDV/UfPyyIzw7UEIN3o67Ad+7QMdQDI=; b=5dzJrzOd5Lvl5Ttrx6PyCMA6r6InP+pGE9tW8kz0lmSUXBGimIZ6uO7W0V6ShJufeD fAzrYNe1Rc++xGR0B1Vt85TA3+Qr9BQNYkAL7QzWck2G2ExyVbunjbxjBxUWr5GMDKvZ HTO9HtRi/29GtWlgNXnlGMiBgsukh2W/zjAJc6AUeb5QgbcxGt3EvS1jD3JCwod5RIgE b3GAHd6r4uXQyBKHnOXF4rBwslOMCw0PWPNlOw2I9SrhI+Vye9WYbqSnlKB7sCmRjHg7 0Ivo1fO3bDAltO2R+dZ9vwyvuJppWoKm+Mof9a1lbAY7JkJLN9++Im0u8Y3JNkmBGlV5 PKcA== X-Gm-Message-State: ANoB5pn2Ex1W4WZZVNmJxeYWWcMXA8Ov3KcWegvYq5yH1XsRLm1vIpH8 E20G5qWcqIhZEekXjp28ON9OZSWMbcFmnA84wEKEew== X-Google-Smtp-Source: AA0mqf75+bx5SznjsWxCyXz8acY2fRX8M8lllLpJJEJ9YD7myyuOX3hg0xZ/do6lX/WWp5ROXIXzQb7NM0Y2U30yuBE= X-Received: by 2002:a05:6830:54b:b0:661:958c:916c with SMTP id l11-20020a056830054b00b00661958c916cmr8253712otb.284.1668968156371; Sun, 20 Nov 2022 10:15:56 -0800 (PST) MIME-Version: 1.0 References: <20221120135532.10506.qmail@s411.sureserver.com> <20221120174104.11107.qmail@s411.sureserver.com> In-Reply-To: <20221120174104.11107.qmail@s411.sureserver.com> From: Adhemerval Zanella Date: Sun, 20 Nov 2022 15:15:45 -0300 Message-ID: Subject: =?UTF-8?B?UmU6IGVycm9yOiDigJhfX2xpYmNfc2luZ2xlX3RocmVhZGVkX2ludGVybmFs4oCZIHVuZA==?= =?UTF-8?B?ZWNsYXJlZA==?= To: Saifi Khan Cc: libc-help@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,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 Sun, Nov 20, 2022 at 2:41 PM Saifi Khan wrote: > > > -------Original Message------- > > From: Adhemerval Zanella > > > > Do you mean by 'out-of-source-tree' that you are just trying to > > compile the source without all the internal files and definitions? > > > > Adhemerval, thanks for your kind reply. > > The directory tree structure looks like this > > /opt/work/linux/glibc/ > =E2=94=9C=E2=94=80=E2=94=80 build > =E2=94=94=E2=94=80=E2=94=80 src > > In the build directory, i first execute a configure script (b02.sh) > > DIR_ONE=3D/opt/work/linux/glibc > > DIR_SRC=3D${DIR_ONE}/src > DIR_DST=3D${DIR_ONE}/root > > CC=3D"gcc-12" > CXX=3D"g++-12" > CFLAGS=3D"-O2 -pipe" > CXXFLAGS=3D"${CFLAGS}" > > CC=3D"gcc-12" CXX=3D"g++-12" CFLAGS=3D"-O2 -pipe" CXXFLAGS=3D"${CFLAGS= }" ${DIR_SRC}/configure \ > --prefix=3D${DIR_DST} \ > --exec-prefix=3D${DIR_DST} \ > --datarootdir=3D${DIR_DST}/doc/share \ > --datadir=3D${DIR_DST}/doc \ > --docdir=3D${DIR_DST}/doc \ > --htmldir=3D${DIR_DST}/doc \ > --mandir=3D${DIR_DST}/doc/man \ > --infodir=3D${DIR_DST}/doc/info \ > --enable-add-ons \ > --disable-hidden-plt \ > --disable-profile \ > --enable-stack-protector=3Dno \ > --enable-shared \ > --enable-ld=3Dyes \ > --with-gnu-ld \ > --without-selinux > exit 0; > > next i execute the build script (b04.sh) > > make -j1 > > that's when the above mentioned error was seen. > > Do you think anything needs to be changed in the options that are being p= assed to the configure script ? > > warm regards > Saifi. This is due --disable-hidden-plt option, which is a bit rotten option that I think we should remove it (it is required for Hurd, but it can handle on its internal definition). Even the following fix: diff --git a/include/libc-symbols.h b/include/libc-symbols.h index f4437ff6ad..221fa18294 100644 --- a/include/libc-symbols.h +++ b/include/libc-symbols.h @@ -599,7 +599,12 @@ for linking") extern thread __typeof (name) internal __hidden_proto_hiddenattr (attrs)= ; # else # define hidden_proto(name, attrs...) -# define hidden_proto_alias(name, alias, attrs...) +# define __hidden_proto_hiddenattr(attrs...) \ + __attribute__ ((visibility ("hidden"), ##attrs)) +# define __hidden_proto_alias(name, thread, internal, attrs...) = \ + extern thread __typeof (name) internal __hidden_proto_hiddenattr (attrs)= ; +# define hidden_proto_alias(name, alias, attrs...) \ + __hidden_proto_alias (name, , alias, ##attrs) # define hidden_tls_proto(name, attrs...) # endif # else It fails later for setrlimit64.c build (at least for aarch64). I advise just removing it, it is not actively tested. Also, --enable-add-ons is not required anymore, --enable-shared is the default, --enable-ld=3Dyes and --with-gnu-ld is also not required.