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 X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6EBF7C5519F for ; Wed, 25 Nov 2020 12:03:29 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8802F206E5 for ; Wed, 25 Nov 2020 12:03:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8802F206E5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:44016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khtWA-0005j6-NC for qemu-devel@archiver.kernel.org; Wed, 25 Nov 2020 07:03:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khtTE-0004YV-1w for qemu-devel@nongnu.org; Wed, 25 Nov 2020 07:00:24 -0500 Received: from mx2.suse.de ([195.135.220.15]:59240) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khtTA-0003BT-BA for qemu-devel@nongnu.org; Wed, 25 Nov 2020 07:00:22 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 90093ACBD; Wed, 25 Nov 2020 12:00:18 +0000 (UTC) Subject: Re: help with a build-user and build-user-plugin failure To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= References: <19955b4e-f33a-a672-e9c6-3efdd640906a@suse.de> <48353514-8dde-0f4b-193d-fa71737d7c80@amsat.org> <871rghixhb.fsf@linaro.org> From: Claudio Fontana Message-ID: <6efbff12-a10b-8e55-908b-f2233fc8001e@suse.de> Date: Wed, 25 Nov 2020 13:00:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <871rghixhb.fsf@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=195.135.220.15; envelope-from=cfontana@suse.de; helo=mx2.suse.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , qemu-devel Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi Alex, On 11/25/20 10:42 AM, Alex Bennée wrote: > > Philippe Mathieu-Daudé writes: > >> On 11/24/20 12:04 PM, Claudio Fontana wrote: >>> Hi Alex, >>> >>> I am seeing build failures with build-user and build-user-plugin: >>> >>> https://gitlab.com/hw-claudio/qemu/-/pipelines/220245998 >>> >>> and I am trying to start investigating. >>> >>> How do I reproduce this locally? >>> >>> I am trying to run locally the check-tcg rule, but I cannot get it to work. >>> I managed to work around the problem of static libraries (disabled them), >>> >>> but then I get: >>> >>> BUILD TCG tests for x86_64-linux-user >>> BUILD x86_64-linux-user guest-tests with cc >>> /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /tmp/ccgqtAM9.o: in function `test_fops': >>> /dev/shm/cfontana/qemu/tests/tcg/i386/test-i386.c:759: undefined reference to `fmod' >>> /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /dev/shm/cfontana/qemu/tests/tcg/i386/test-i386.c:760: undefined reference to `sqrt' >>> /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /dev/shm/cfontana/qemu/tests/tcg/i386/test-i386.c:761: undefined reference to `sin' >>> /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /dev/shm/cfontana/qemu/tests/tcg/i386/test-i386.c:762: undefined reference to `cos' >>> >>> Have you seen it before? >>> Any suggestions? I'm on OpenSUSE Leap 15 SP2. >> >> Related to 3fc1aad3864 ("configure: remove unnecessary libm test") >> + tcg tests still not ported to Meson? > > Hmm so we certainly need libm for the testcase but I guess this is> failing with a local cross compiler rather than docker? I'm not sure the > global feature test should be relevant for testcases. > Probably it's my attempt to make it work with non-static libm that failed then, is it supposed to work? I see mention of BUILD_STATIC there, but it does not seem to actually work for me. If I use static libm, then it works. If I uninstall static libm, any attempt to build fails, regardless of whether I pass BUILD_STATIC='n' or so. Ciao and thanks, CLaudio