From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, PDS_RDNS_DYNAMIC_FP,RCVD_IN_DNSWL_MED,RDNS_DYNAMIC,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 213991F8C6 for ; Mon, 12 Jul 2021 19:50:57 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2BD7A3893C49 for ; Mon, 12 Jul 2021 19:50:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2BD7A3893C49 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1626119456; bh=8rc2N9kOfLaidAFXAIu7GsV8pABaRN9a4vIwqDNPlaQ=; h=To:Subject:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=LxpL1Zsx4edQvqBhNTMe/bxRSaqWnW7SJ8wTZGA6FLQqe21ETNvmvFZKqCxFBoZm6 QJOYRXWkvU6dYOrELhyjZVAwPRmxiS6mzOF2o5p9/kJVZi1hLwVlIDb2oiNl9csJq5 6lbs5sQ0KCOzZKJBzBeTJ3Miq0RmXbgFgdsnmINg= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 21085383B82C for ; Mon, 12 Jul 2021 19:50:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 21085383B82C Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-436-QI60WPRGOQelUtirH5D-xA-1; Mon, 12 Jul 2021 15:50:32 -0400 X-MC-Unique: QI60WPRGOQelUtirH5D-xA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AA3F719057A4; Mon, 12 Jul 2021 19:50:31 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-112-103.rdu2.redhat.com [10.10.112.103]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A53371037E82; Mon, 12 Jul 2021 19:50:30 +0000 (UTC) To: Maxim Kuvyrkov via Libc-alpha Subject: Re: [PATCH v5] Define PTHREAD_STACK_MIN to sysconf(_SC_THREAD_STACK_MIN) References: <20210709210918.4246-1-hjl.tools@gmail.com> <58AE31E3-6592-4E3F-8554-72836C599605@linaro.org> Date: Mon, 12 Jul 2021 21:50:27 +0200 In-Reply-To: <58AE31E3-6592-4E3F-8554-72836C599605@linaro.org> (Maxim Kuvyrkov via Libc-alpha's message of "Mon, 12 Jul 2021 22:07:16 +0300") Message-ID: <87zgur71mk.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Florian Weimer via Libc-alpha Reply-To: Florian Weimer Cc: Maxim Kuvyrkov Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" * Maxim Kuvyrkov via Libc-alpha: > Hi H.J., > > This breaks GCC=E2=80=99s libgomp build on at least aarch64-linux-gnu: > > /builds/destdir/x86_64-pc-linux-gnu/aarch64-linux-gnu/bin/ld: .libs/env.o= : in function `initialize_env': > /snapshots/gcc.git~master/libgomp/env.c:1536: undefined reference to `sys= conf' > /snapshots/gcc.git~master/libgomp/env.c:1538: undefined reference to `sys= conf' > /snapshots/gcc.git~master/libgomp/env.c:1539: undefined reference to `sys= conf' > /builds/destdir/x86_64-pc-linux-gnu/aarch64-linux-gnu/bin/ld: .libs/proc.= o: in function `gomp_init_num_threads': > /snapshots/gcc.git~master/libgomp/config/linux/proc.c:85: undefined refer= ence to `sysconf' > /snapshots/gcc.git~master/libgomp/config/linux/proc.c:143: undefined refe= rence to `sysconf' > /snapshots/gcc.git~master/libgomp/config/linux/proc.c:174: more undefined= references to `sysconf' follow > collect2: error: ld returned 1 exit status > make[4]: *** [Makefile:728: libgomp.la] Error 1 > > Both GCC and Glibc are tip of trunk. > > Would you please take a look? Please let me know if it doesn=E2=80=99t e= asily > reproduce and I=E2=80=99ll take a look. I pushed a patch today that should fix this on the glibc side: Reduce pollution due to dynamic PTHREAD_STACK_MIN It contains some magic that happens to fix GCC for now. Jakub is working on a patch that fixes the libgomp issue as well (the standard header #include within the hidden-visibility area is invalid): Thanks, Florian