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 0B5181F8C6 for ; Fri, 16 Jul 2021 22:18:36 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E5F5839ACC09 for ; Fri, 16 Jul 2021 22:18:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5F5839ACC09 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1626473914; bh=3pvWPUZpnC6laPiX5T2mJhXaN7yyCNRVom3l7LBAkRc=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=OC5jcDTJCqec8AlGUPG7+nssI+g25zDpwk0WYXM/lKHGVzpLmKY1+ai/NlMbN+nf4 FM4Kb5dAZlQrGi8Jk19nWrHXY5QzCDKGikLGywPqLRrGiT1/8BZRCveHfzoBFIs80k ZVWLQgHG7ZOnTQunkVN45x2xEFFo3Xc1JSTf/HEY= Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by sourceware.org (Postfix) with ESMTPS id A1492383D009 for ; Fri, 16 Jul 2021 22:18:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A1492383D009 Received: by mail-qt1-x829.google.com with SMTP id d1so8268322qto.4 for ; Fri, 16 Jul 2021 15:18:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=3pvWPUZpnC6laPiX5T2mJhXaN7yyCNRVom3l7LBAkRc=; b=nNfXnWiObMGUzIF+ggl1rdx6j6j0JJZeGdWrtoTQyZhj1Txl8KCFO08xFM2vgzIrqk iqMbYVMVcxk2s1SUC4z8K6bWAgud959omOG8j0gLJhNCY2LBJCa0bablDsgLSSxakza/ ZRGi5m9SoS7mWt7Cs03wF9XXrc0KS1D3eNcbnyX43dKd8W+d/vtD+eDGhXMWE50+XYKq NVueNXeuWMBqIJQtqj847iQry4UP6b12FnhVL0LZ/dtrBIs8Znko8QHEx7QPkcTc7JNR bW6hCphwMqnIEfG0EASh/IleilikXwkCP7nwAtNUknhRaBCoMcHhjP5IufZdg61CTub/ XMDg== X-Gm-Message-State: AOAM532NzxzrSaOUx494rmaHoc4YBeVRkuSMMWa1ZuwC5zr/cRfZ0jrM mownaG6djxMHtRQztkQgotDkyTQ48KMPaStL9v8= X-Google-Smtp-Source: ABdhPJyPQg9l46JVJg+xfuivQ3EJvRQkhMZEw1FnE4SMoKdrnpVyVi6mQON7/CKhbyFDsKAiyoNf9iMeOq3gc3YkXNk= X-Received: by 2002:ac8:41cd:: with SMTP id o13mr1473689qtm.289.1626473895280; Fri, 16 Jul 2021 15:18:15 -0700 (PDT) MIME-Version: 1.0 References: <20210709210918.4246-1-hjl.tools@gmail.com> <58AE31E3-6592-4E3F-8554-72836C599605@linaro.org> <87zgur71mk.fsf@oldenburg.str.redhat.com> In-Reply-To: <87zgur71mk.fsf@oldenburg.str.redhat.com> Date: Fri, 16 Jul 2021 15:17:49 -0700 Message-ID: Subject: Re: [PATCH v5] Define PTHREAD_STACK_MIN to sysconf(_SC_THREAD_STACK_MIN) To: Florian Weimer 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: Khem Raj via Libc-alpha Reply-To: Khem Raj Cc: Maxim Kuvyrkov via Libc-alpha , Maxim Kuvyrkov Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" On Mon, Jul 12, 2021 at 12:51 PM Florian Weimer via Libc-alpha wrote: > > * 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 `s= ysconf' > > /snapshots/gcc.git~master/libgomp/env.c:1538: undefined reference to `s= ysconf' > > /snapshots/gcc.git~master/libgomp/env.c:1539: undefined reference to `s= ysconf' > > /builds/destdir/x86_64-pc-linux-gnu/aarch64-linux-gnu/bin/ld: .libs/pro= c.o: in function `gomp_init_num_threads': > > /snapshots/gcc.git~master/libgomp/config/linux/proc.c:85: undefined ref= erence to `sysconf' > > /snapshots/gcc.git~master/libgomp/config/linux/proc.c:143: undefined re= ference to `sysconf' > > /snapshots/gcc.git~master/libgomp/config/linux/proc.c:174: more undefin= ed 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= easily > > 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): > > > I am seeing few packages failing since they use PTHREAD_STACK_MIN as consta= nt see https://errors.yoctoproject.org/Errors/Build/124520/ > Thanks, > Florian >