From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4EDC2C433EF for ; Thu, 10 Mar 2022 20:41:42 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id AD7AD3C793D for ; Thu, 10 Mar 2022 21:41:40 +0100 (CET) Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [217.194.8.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 1476F3C0F41 for ; Thu, 10 Mar 2022 21:41:30 +0100 (CET) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 06F021000644 for ; Thu, 10 Mar 2022 21:41:28 +0100 (CET) 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-out1.suse.de (Postfix) with ESMTPS id DB028210EE; Thu, 10 Mar 2022 20:41:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1646944887; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+PvNXUBd6/EPHy0XXbhFlraPyYcUL3GzFFBXIzpnmLE=; b=x7r836GBaSqFn1Xygwe6oVwMbwOEtwPQeeD7+96ZZEIPneJiRcSTSSedZW7DqLNFwWe29G xOi8XjI872u4+tWDTTgQfS6sgT3/BsZhf6eJea0kmCsPionXHwZ7qeM754lMr42duiWq8j 4/nSWtGk/3IrKfo4yhxHLyQkzm3yDyY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1646944887; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+PvNXUBd6/EPHy0XXbhFlraPyYcUL3GzFFBXIzpnmLE=; b=JjqhosxRmUsqrFH/rj6/CkBaqUqvDAzln/j+0l0ee+v8puOMKTd9DI1aX8RCjk3q/gZ1Gi SCkAQEBPxAxH9gBQ== 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 92DFF13FA3; Thu, 10 Mar 2022 20:41:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id kL8DIXdiKmJBdAAAMHmgww (envelope-from ); Thu, 10 Mar 2022 20:41:27 +0000 Date: Thu, 10 Mar 2022 21:41:25 +0100 From: Petr Vorel To: Martin Doucha Message-ID: References: <20220309164954.23751-1-mdoucha@suse.cz> <5e9807b7-3b41-8408-42d2-dffaa71741e1@suse.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5e9807b7-3b41-8408-42d2-dffaa71741e1@suse.cz> X-Virus-Scanned: clamav-milter 0.102.4 at in-4.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [PATCH 1/2] KVM test infrastructure X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Petr Vorel Cc: ltp@lists.linux.it Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" > On 09. 03. 22 20:13, Petr Vorel wrote: > > Hi Martin, > > this patchset looks really great. > > Unfortunately there are some compilation time errors [1]. Various > > Debian/Ubuntu versions (but not all) and Alpine have problem to > > compile it [1]: /usr/bin/ld: bootstrap_x86_64.o: relocation > > R_X86_64_16 against symbol `kvm_gdt32_desc' can not be used when > > making a PIE object; recompile with -fPIE > > Can you please have look into it? > Can you try whether this one-liner fixes the error? The diff will > probably get corrupted by my mail client because GUEST_CFLAGS is too > long but it's trivial to apply this by hand: > diff --git a/testcases/kernel/kvm/Makefile b/testcases/kernel/kvm/Makefile > index 139358961..24ca91fc3 100644 > --- a/testcases/kernel/kvm/Makefile > +++ b/testcases/kernel/kvm/Makefile > @@ -9,7 +9,7 @@ ASFLAGS = > CPPFLAGS += -I$(abs_srcdir)/include > GUEST_CPPFLAGS = $(CPPFLAGS) -DCOMPILE_PAYLOAD > GUEST_CFLAGS = -ffreestanding -O2 -Wall -fno-asynchronous-unwind-tables > -mno-mmx -mno-sse > -GUEST_LDFLAGS = -nostdlib -Wl,--build-id=none > +GUEST_LDFLAGS = -nostdlib -Wl,--build-id=none,-no-pie > GUEST_LDLIBS = > FILTER_OUT_MAKE_TARGETS := lib_guest lib_host lib_x86 Unfortunately, just adding -no-pie to GUEST_LDFLAGS does not help: https://github.com/pevik/ltp/actions/runs/1965302083 /usr/bin/ld: bootstrap_x86_64.o: relocation R_X86_64_16 against symbol `kvm_gdt32_desc' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: -pie: error: PHDR segment not covered by LOAD segment FYI slightly different OS failed on your original version, but that's probably not interesting: https://github.com/pevik/ltp/actions/runs/1959152447 Kind regards, Petr -- Mailing list info: https://lists.linux.it/listinfo/ltp