Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3587891iog; Tue, 21 Jun 2022 01:41:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uinYRhiXRFQ7XIlEqz8rRUxET5dHOLKfH/Oy/IFNEcUprhvBZJ+JkfV7ZP/swHGSqXzTG1 X-Received: by 2002:a17:907:8a03:b0:711:f3c3:71a6 with SMTP id sc3-20020a1709078a0300b00711f3c371a6mr25307583ejc.659.1655800887720; Tue, 21 Jun 2022 01:41:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655800887; cv=none; d=google.com; s=arc-20160816; b=CWQEI9nGdiYuZfrI2DEm4iyPCoUFknVFxkucnH6oF0fGz24FYveOzG0CI7usuSV2s8 a5IINHvYq5NhtPBIQssFvbnJ/nzp4Qhu3i9lNK7EikypsfneAejZ+1NaNY3ZsZhdeVvS fbTfkE817C5rekVyQkYRTHe1I2/IFzkY0sxjTODxLKuAlQENr8YVrqMpiZT82m28kALO YB5M7vdRHdkSo6IH6FpPU1+chSI82tsL5cyXZQyTuTaDfNn8K0Ty7bfx2ghqKi559722 2IvjGQgF42ZyzT5yOevRZzi9RxPOAWLIFwR1UGc7pn2QCbwWsBtBghYGrYjUxszzwpqW vT7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=U4DTymAJzJ+35tPlIxji4RhmkYgZWhkrVnEK1homBN0=; b=s2LZ8S0cQD0oHFxa02WxNWmkrV6loX96mfQ9Jgb+Lf7qU4OpFDAARwSvKBAL/Z3h5u BdZlKf63688mW+iQUJH3Y250gZ6GfEao5BQkcfTDUPIAyRJ14cLLmHASh1/sqIMKoKTL QWPhHn3lYsbSSlBzEVKsez2CRA2sLW3DICy0o/opNPx6it8CZONP7i2NT60YlImnS/Kw DkOgDS3UKgKsW+ZeKPLryGh0a564at0ecSFpYYUqSg6yAcEG9WCawNUjfhVh1BuXvzV5 gSA4Tlx6QQOnXFx8YIDJIGz/qRRjM3l0+i9xAGHXa4JDnvTJHcOXty2e1TbiAWJqPwtv /PPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xDXlEOxS; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr22-20020a170907721600b006ff78d48b00si15368335ejc.534.2022.06.21.01.41.02; Tue, 21 Jun 2022 01:41:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xDXlEOxS; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347492AbiFUHcV (ORCPT + 99 others); Tue, 21 Jun 2022 03:32:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344693AbiFUHb1 (ORCPT ); Tue, 21 Jun 2022 03:31:27 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B024E65E3; Tue, 21 Jun 2022 00:30:13 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 5B2541F9C6; Tue, 21 Jun 2022 07:30:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1655796612; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U4DTymAJzJ+35tPlIxji4RhmkYgZWhkrVnEK1homBN0=; b=xDXlEOxSp1VNq0dGCbuV8cBqopmOOBe+A2BB5vgty35t9Pc/P9Zy4i4FWvAzDXkWFKrVsH pB3OKphPeQk5Zzg0nAX5T+R8q37T1TUR75oNH/oCzzYq2pELsarXQyJu0C2STfbnRBlrsk YcOuN/YP1HGwMUimbind212F/PcAhB8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1655796612; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U4DTymAJzJ+35tPlIxji4RhmkYgZWhkrVnEK1homBN0=; b=hnBmxj3WK/dvg/U4SLwzrQISzWAXPwW72yyFMPep1j5ut5MiSRm/2ycY7Kw53Tm92v7F1T uO3z7yVLSQtDwOAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 26E8613638; Tue, 21 Jun 2022 07:30:12 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 5lt1CIRzsWIJZwAAMHmgww (envelope-from ); Tue, 21 Jun 2022 07:30:12 +0000 Message-ID: <14c9839b-c015-69c1-84f0-a99d03877005@suse.cz> Date: Tue, 21 Jun 2022 09:30:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] kbuild: pass jobserver to cmd_ld_vmlinux.o Content-Language: en-US To: Nick Desaulniers , Sedat Dilek , Masahiro Yamada Cc: Linux Kbuild mailing list , LKML , Michal Marek , Nathan Chancellor , Sami Tolvanen References: <20220616104541.16289-1-jslaby@suse.cz> From: Jiri Slaby In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17. 06. 22, 18:32, Nick Desaulniers wrote: > On Fri, Jun 17, 2022 at 3:35 AM Sedat Dilek wrote: >> >> On Fri, Jun 17, 2022 at 12:53 AM Sedat Dilek wrote: >>> >>> On Thu, Jun 16, 2022 at 4:09 PM Sedat Dilek wrote: >>>> >>>> On Thu, Jun 16, 2022 at 12:45 PM Jiri Slaby wrote: >>>>> >>>>> Until the link-vmlinux.sh split (cf. the commit below), the linker was >>>>> run with jobserver set in MAKEFLAGS. After the split, the command in >>>>> Makefile.vmlinux_o is not prefixed by "+" anymore, so this information >>>>> is lost. >>>>> >>>>> Restore it as linkers working in parallel (esp. the LTO ones) make a use >>>>> of it. > > TBH, I agree with Masahiro. I didn't understand this comment "esp. the > LTO ones." Jiri, can you clarify what you mean here? Sure. clang is not the only compiler/linker that can handle kernel ;). So while rebasing gcc-LTO-kernel-patches to 5.19-rc (to upstream them later), this broke. See: https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/lto-wrapper.cc;h=26e06e77be4e0afb2bc3e913062a9c51cab5d205;hb=HEAD#l1336 gcc really parses MAKEFLAGS and looks for "--jobserver-auth=" there, if one passes specifies -flto=jobserver. thanks, -- js suse labs