| Message ID | 20240430164752.645521-1-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBPWBYSYQMGQEYKWZHVQ@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D576140B17 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 30 Apr 2024 18:47:59 +0200 (CEST) Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2dfea6cfc8fsf21515591fa.2 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 30 Apr 2024 09:47:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714495679; cv=pass; d=google.com; s=arc-20160816; b=Iv5L3/lQK+vTVv9Fx9pXWOTzohYh041VHtBQG8X1DqgF2QnScAW//MK6txYUTR8VRr jlBgs5AkcwJ4jgrxlZvlDu4UfEby/B6YWxsXEtiWMnF1kZ+jyY+Hv0EBJaZ6vJeRxmRT WXgWOTgt6NA2Ah3AeB2aTliTH4aFyONJxG14apESYMph1wR1DE3L7//LzK9MQXmhlxGx nr3mp7gTR/6RSalGfcgVlhh3qhEsFxDUQ1O9KKhu7QyO+PWyzfhaIsPtBcK7ukNvEpFa 6HWfd9N/fbKROaJj2GiNceZ0zolXrrAO2CURccRnIWLdegYrs8i3RmORXD8FeHE0vnJ9 2PKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=FPVJCPsmtFSRdZouyLUCHpEtf0YwKkHhLq6plxu4oHw=; fh=I1k2+le774s/B5gTeKdFAa2g5QguWt1kVYNHn534GEE=; b=KnfpvbSOMZL1n7HzZtutbE6SEGzvfLJmJsY7jceRQJGKyTKfLjZISR5Gyvb/AH/Op8 QXY1BvDcm1ScMUIxXsZPlG3JXoQJeJ0NrXb/lRSP8dGBelf8qhelRYaRFSBmQdnRj5YJ Gmw6VOR549LKUyx/3uVKXQOdyD1hXQs2YqH21bYW/hBsCoDpfgZmQkPJYI2WhwGLzcG8 +UAJ2jIEV5kPkPI0ImREoEu3LovRjxafsTFJOOA89mSloG1PC6fL1tA2vZZB2KXw+J/o tQNLREcsAOgj0EcGtWdC3oDRuRcdWHBj1PP6+ojgfeHZMy6hVJWThvKVCOHLPs0I5Vlh HkTw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Jy3VpVrs; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1714495679; x=1715100479; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=FPVJCPsmtFSRdZouyLUCHpEtf0YwKkHhLq6plxu4oHw=; b=kJUwBpi3ITkrEMqHRIxvU1SqSaebBB3fwkvUYeyBjE2XLr5wr21LLKbh06El6vwqAs jHq/rjt8CZUlqLdFA/383GLZo6ypArNwJ2yXBZ09c8R09EcWqSdUtd5XAhpA+pnJnJ/p 6pNBT/W7n1Xo+O0ykWJyPRQ/OuJ98fPSwA0AQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714495679; x=1715100479; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=FPVJCPsmtFSRdZouyLUCHpEtf0YwKkHhLq6plxu4oHw=; b=ZTydnOKw+shM5asG6YrBkt2OJ+Se+QByw6VcfOBDPKsmdcr9hYLbTWP5qZRSv7hChk tUgYeS2qT33aFy7Q5vWQc92oep3EDLEkdtl9YYnbdfry746Jp4gDXtvwMl3ljCy8IInh cnCUbEZwwk/ktCVqV8DxkusYPS+NZDbtw2qJ/beiBpfc0wOiMLNdzSPYw8twH4nLt4hy 6gw1jkX71anzBMuGn0BdyH0LQYJBQ9oTwu04hPU9BS9V/yFwnEN8ota8+YGwyCv47aae kLIX1zMZ/ZBV0YOipFJOS+4N5dqi3aHdLdV/5swJ/VJS+CPkiqhkggOEuXJLvK6f8BBv TsGg== X-Forwarded-Encrypted: i=2; AJvYcCWOsOd87Na2PrGYF6PCCzn2EI0FpVqxmDvjtFAUcEjc8zjtLSiQVmiuHsmnNWMlhYhwXsBsl/NFAxCcccVLtNsIwa4R0K2IQeupoAARHwcegNwhuKMm+B5F6xFyGA== X-Gm-Message-State: AOJu0Ywl0si62AeO1ICkSzA4m+voR6U+HS+I6EFqYWKufKpCtTT11TVH reqKLyxv3QMzWOqkbZ+zOBZWuRGXleaFzzj+3XtANm8WrbyaWWa3J5ybUW2oRmNFkg== X-Google-Smtp-Source: AGHT+IE0+Ydb2lWhSwYdKjL6jZPMnGeZ8wCKib38dANBj5GoEm7l734bzFXJ0GjXgO12ehACto0KyA== X-Received: by 2002:a2e:81c4:0:b0:2e0:5d7:a39b with SMTP id s4-20020a2e81c4000000b002e005d7a39bmr201159ljg.33.1714495678946; Tue, 30 Apr 2024 09:47:58 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:1e07:b0:41c:35c:4df2 with SMTP id 5b1f17b1804b1-41c035c4e4bls8057565e9.1.-pod-prod-08-eu; Tue, 30 Apr 2024 09:47:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVLm+fcu5ey6Qfcmm0jXIayjua8C/dWfvg+J9K+GULF/Xp7SWysSZrNENTKl7kfsY6wmvxnnZurNECEe8upoIHKZEBLjrlIGjyTltVdKNeOgTXh X-Received: by 2002:a5d:614f:0:b0:345:be70:191c with SMTP id y15-20020a5d614f000000b00345be70191cmr161872wrt.37.1714495677295; Tue, 30 Apr 2024 09:47:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714495677; cv=none; d=google.com; s=arc-20160816; b=L0zHb5QRyLqJa8pWUaq/DBkEmsWc5JiuMOXSQjHybH/ao7hnVLG6+ryazpkVp+AGhQ Yzkrzs/5Bl6J8+7wsZ+1/FW+9OcV5T+L/zvLRl723YbH1sZwSF6Ol5C+n1PTmvgSDXSd pfpgLjULmeSlce2bJMKkE4UovUCMyEWnJ3JaENf7kW7rPPP5J98U6LxRrMJyT81xUJ6m krbEsjaTkdhVhFP0+dCsiQMRo2Aa0hMExHl/JQ05lRk2AjzuC13hyXgxEloJeYWYklFg 1N4TYvT1vx5IQ9uvX6cYN4Z8aep0bLBBSaM4RFKJOiBq3MznL53srRHeFbEqKBQk9oAk G/2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=gkIQ267nvYf/ERCHKUNUMSvISDvAspB8i+k6G7ljsdc=; fh=nfv4vSEeEHF0ZaOV+g0yhTp6jYewoFEi34OpOknPA0Y=; b=KlifsIDLPvQXe0+UxLwAl0AlycfAhMkaSPKHTMUVEpPGou+NOrT4ZOCM6WnbjBlKTk joUWvRmOLAEYPXPvYTxPKsGz9eAYLFZdHuQxIrDnztw29DS2UEYrlPim4m05yG2B9wlc o0iC3OFYdjHRYCaDWpn96KKJg+12Ww0O7zx/JARXnwdRWh8fOteNGB8AShmZHaUVdQso sRXwmFUm0Me5pYHlsyoUV7i7Sbce4p3ipD1GxmxuEiGNny4kFfb99GfSO+hZYeWU/G5P IgZmX2l+H9be4diBEv9gbjKlNzthVnlXR0sJ+COiyqQSAmU/sZX7ODPN4JIZhyfTIIkT cJ4w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Jy3VpVrs; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id q14-20020adfcb8e000000b0034a80fda3a6sor6649426wrh.3.2024.04.30.09.47.57 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 30 Apr 2024 09:47:57 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCVTOEgYaCKrNV5wspoJAm3CpLLJ8oU6hHmn8ASgmLGxxW+NcgMEw71b65jIadnYu176GYMIOoWgidmDYFfbo91cH3kLv7qyDS3eJ/cwmUtPSxX1 X-Received: by 2002:a5d:614f:0:b0:345:be70:191c with SMTP id y15-20020a5d614f000000b00345be70191cmr161859wrt.37.1714495676884; Tue, 30 Apr 2024 09:47:56 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([176.201.29.105]) by smtp.gmail.com with ESMTPSA id d24-20020adfa418000000b0034ca8cdc594sm9057503wra.76.2024.04.30.09.47.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 09:47:56 -0700 (PDT) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: qemu-devel@nongnu.org Cc: Paolo Bonzini <pbonzini@redhat.com>, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, Thomas Huth <thuth@redhat.com>, michael@amarulasolutions.com, linux-amarula@amarulasolutions.com, Dario Binacchi <dario.binacchi@amarulasolutions.com> Subject: [PATCH 1/1] tests/fp/meson: don't build fp-bench test if fenv.h is missing Date: Tue, 30 Apr 2024 18:47:52 +0200 Message-ID: <20240430164752.645521-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Jy3VpVrs; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
| Series |
[1/1] tests/fp/meson: don't build fp-bench test if fenv.h is missing
|
|
Commit Message
Dario Binacchi
April 30, 2024, 4:47 p.m. UTC
The fp-bench test (i. e. tests/fp/fp-bench.c) use fenv.h that is not
always provided by the libc (uClibc). The patch disables its compilation
in case the header is not available.
The patch is based on a suggestion from Paolo Bonzini, which you can
find at the following link.
Link: https://lists.nongnu.org/archive/html/qemu-devel/2021-03/msg00492.html
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
tests/fp/meson.build | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
Comments
Dario Binacchi <dario.binacchi@amarulasolutions.com> writes: > The fp-bench test (i. e. tests/fp/fp-bench.c) use fenv.h that is not > always provided by the libc (uClibc). The patch disables its compilation > in case the header is not available. > > The patch is based on a suggestion from Paolo Bonzini, which you can > find at the following link. > > Link: https://lists.nongnu.org/archive/html/qemu-devel/2021-03/msg00492.html > Suggested-by: Paolo Bonzini <pbonzini@redhat.com> > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Acked-by: Alex Bennée <alex.bennee@linaro.org>
On 4/30/24 09:47, Dario Binacchi wrote: > The fp-bench test (i. e. tests/fp/fp-bench.c) use fenv.h that is not > always provided by the libc (uClibc). The patch disables its compilation > in case the header is not available. Since uclibc has had fenv.h since 2008, are you sure this isn't simply a case of a corrupt installation? r~ To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hello Richard, On Tue, Apr 30, 2024 at 8:15 PM Richard Henderson <richard.henderson@linaro.org> wrote: > > On 4/30/24 09:47, Dario Binacchi wrote: > > The fp-bench test (i. e. tests/fp/fp-bench.c) use fenv.h that is not > > always provided by the libc (uClibc). The patch disables its compilation > > in case the header is not available. > > Since uclibc has had fenv.h since 2008, are you sure this isn't simply a case of a corrupt > installation? > > > r~ It's not an issue of corrupted installation but rather of compilation: ../tests/fp/fp-bench.c:15:10: fatal error: fenv.h: No such file or directory 15 | #include <fenv.h> | ^~~~~~~~ compilation terminated. In Buildroot, where the error above is occurring, there already exists a patch to disable the compilation of the fp-bench test. This patch was created and applied when bumping QEMU to version 6.1.0, but it is no longer applicable to version 8.1.1. In fixing the issue, I followed the approach suggested by Paolo Bonzini, hoping that this patch can be accepted and merged into QEMU. This is the patch I just sent to Buildroot: https://patchwork.ozlabs.org/project/buildroot/patch/20240501120050.670109-1-dario.binacchi@amarulasolutions.com/ Thanks and regards, Dario
On 5/1/24 05:18, Dario Binacchi wrote: > Hello Richard, > > On Tue, Apr 30, 2024 at 8:15 PM Richard Henderson > <richard.henderson@linaro.org> wrote: >> >> On 4/30/24 09:47, Dario Binacchi wrote: >>> The fp-bench test (i. e. tests/fp/fp-bench.c) use fenv.h that is not >>> always provided by the libc (uClibc). The patch disables its compilation >>> in case the header is not available. >> >> Since uclibc has had fenv.h since 2008, are you sure this isn't simply a case of a corrupt >> installation? > >> >> >> r~ > > It's not an issue of corrupted installation but rather of compilation: Installation of your cross-compiler or buildroot, I mean. > > ../tests/fp/fp-bench.c:15:10: fatal error: fenv.h: No such file or directory > 15 | #include <fenv.h> > | ^~~~~~~~ > compilation terminated. Yes, yes. However, <fenv.h> is present in uclibc-ng, and has been since 2008. So *why* is fenv.h not present? r~ To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hello Richard, On Wed, May 1, 2024 at 3:31 PM Richard Henderson <richard.henderson@linaro.org> wrote: > > On 5/1/24 05:18, Dario Binacchi wrote: > > Hello Richard, > > > > On Tue, Apr 30, 2024 at 8:15 PM Richard Henderson > > <richard.henderson@linaro.org> wrote: > >> > >> On 4/30/24 09:47, Dario Binacchi wrote: > >>> The fp-bench test (i. e. tests/fp/fp-bench.c) use fenv.h that is not > >>> always provided by the libc (uClibc). The patch disables its compilation > >>> in case the header is not available. > >> > >> Since uclibc has had fenv.h since 2008, are you sure this isn't simply a case of a corrupt > >> installation? > > > >> > >> > >> r~ > > > > It's not an issue of corrupted installation but rather of compilation: > > Installation of your cross-compiler or buildroot, I mean. > > > > > ../tests/fp/fp-bench.c:15:10: fatal error: fenv.h: No such file or directory > > 15 | #include <fenv.h> > > | ^~~~~~~~ > > compilation terminated. > > Yes, yes. However, <fenv.h> is present in uclibc-ng, and has been since 2008. > So *why* is fenv.h not present? I found the fenv.h files here: out/emulator/host/opt/ext-toolchain/i686-buildroot-linux-uclibc/include/c++/11.3.0/tr1/fenv.h out/emulator/host/opt/ext-toolchain/i686-buildroot-linux-uclibc/include/c++/11.3.0/fenv.h But the compiler expects them in: out/emulator/host/i686-buildroot-linux-uclibc/sysroot/usr/include/ So, I think that the fenv support has not been enabled in uClibc configuration of Buildroot. Thanks and regards, Dario > > > r~
Gentle ping. Thanks, Dario On Wed, May 1, 2024 at 4:17 PM Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote: > > Hello Richard, > > On Wed, May 1, 2024 at 3:31 PM Richard Henderson > <richard.henderson@linaro.org> wrote: > > > > On 5/1/24 05:18, Dario Binacchi wrote: > > > Hello Richard, > > > > > > On Tue, Apr 30, 2024 at 8:15 PM Richard Henderson > > > <richard.henderson@linaro.org> wrote: > > >> > > >> On 4/30/24 09:47, Dario Binacchi wrote: > > >>> The fp-bench test (i. e. tests/fp/fp-bench.c) use fenv.h that is not > > >>> always provided by the libc (uClibc). The patch disables its compilation > > >>> in case the header is not available. > > >> > > >> Since uclibc has had fenv.h since 2008, are you sure this isn't simply a case of a corrupt > > >> installation? > > > > > >> > > >> > > >> r~ > > > > > > It's not an issue of corrupted installation but rather of compilation: > > > > Installation of your cross-compiler or buildroot, I mean. > > > > > > > > ../tests/fp/fp-bench.c:15:10: fatal error: fenv.h: No such file or directory > > > 15 | #include <fenv.h> > > > | ^~~~~~~~ > > > compilation terminated. > > > > Yes, yes. However, <fenv.h> is present in uclibc-ng, and has been since 2008. > > So *why* is fenv.h not present? > > I found the fenv.h files here: > out/emulator/host/opt/ext-toolchain/i686-buildroot-linux-uclibc/include/c++/11.3.0/tr1/fenv.h > out/emulator/host/opt/ext-toolchain/i686-buildroot-linux-uclibc/include/c++/11.3.0/fenv.h > > But the compiler expects them in: > out/emulator/host/i686-buildroot-linux-uclibc/sysroot/usr/include/ > > So, I think that the fenv support has not been enabled in uClibc > configuration of Buildroot. > > Thanks and regards, > Dario > > > > > > > r~ > > > > -- > > Dario Binacchi > > Senior Embedded Linux Developer > > dario.binacchi@amarulasolutions.com > > __________________________________ > > > Amarula Solutions SRL > > Via Le Canevare 30, 31100 Treviso, Veneto, IT > > T. +39 042 243 5310 > info@amarulasolutions.com > > www.amarulasolutions.com
On 5/11/24 12:11, Dario Binacchi wrote: > Gentle ping. Gentle reminder that I strongly suspect that your buildroot is corrupt. There *should* be a <fenv.h> present. r~ > > Thanks, > Dario > > On Wed, May 1, 2024 at 4:17 PM Dario Binacchi > <dario.binacchi@amarulasolutions.com> wrote: >> >> Hello Richard, >> >> On Wed, May 1, 2024 at 3:31 PM Richard Henderson >> <richard.henderson@linaro.org> wrote: >>> >>> On 5/1/24 05:18, Dario Binacchi wrote: >>>> Hello Richard, >>>> >>>> On Tue, Apr 30, 2024 at 8:15 PM Richard Henderson >>>> <richard.henderson@linaro.org> wrote: >>>>> >>>>> On 4/30/24 09:47, Dario Binacchi wrote: >>>>>> The fp-bench test (i. e. tests/fp/fp-bench.c) use fenv.h that is not >>>>>> always provided by the libc (uClibc). The patch disables its compilation >>>>>> in case the header is not available. >>>>> >>>>> Since uclibc has had fenv.h since 2008, are you sure this isn't simply a case of a corrupt >>>>> installation? >>>> >>>>> >>>>> >>>>> r~ >>>> >>>> It's not an issue of corrupted installation but rather of compilation: >>> >>> Installation of your cross-compiler or buildroot, I mean. >>> >>>> >>>> ../tests/fp/fp-bench.c:15:10: fatal error: fenv.h: No such file or directory >>>> 15 | #include <fenv.h> >>>> | ^~~~~~~~ >>>> compilation terminated. >>> >>> Yes, yes. However, <fenv.h> is present in uclibc-ng, and has been since 2008. >>> So *why* is fenv.h not present? >> >> I found the fenv.h files here: >> out/emulator/host/opt/ext-toolchain/i686-buildroot-linux-uclibc/include/c++/11.3.0/tr1/fenv.h >> out/emulator/host/opt/ext-toolchain/i686-buildroot-linux-uclibc/include/c++/11.3.0/fenv.h >> >> But the compiler expects them in: >> out/emulator/host/i686-buildroot-linux-uclibc/sysroot/usr/include/ >> >> So, I think that the fenv support has not been enabled in uClibc >> configuration of Buildroot. >> >> Thanks and regards, >> Dario >> >>> >>> >>> r~ >> >> >> >> -- >> >> Dario Binacchi >> >> Senior Embedded Linux Developer >> >> dario.binacchi@amarulasolutions.com >> >> __________________________________ >> >> >> Amarula Solutions SRL >> >> Via Le Canevare 30, 31100 Treviso, Veneto, IT >> >> T. +39 042 243 5310 >> info@amarulasolutions.com >> >> www.amarulasolutions.com > > > To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
On Sat, May 11, 2024 at 12:25 PM Richard Henderson <richard.henderson@linaro.org> wrote: > > On 5/11/24 12:11, Dario Binacchi wrote: > > Gentle ping. > > Gentle reminder that I strongly suspect that your buildroot is corrupt. > There *should* be a <fenv.h> present. I don't think so. In fact, the patch has already been merged into Buildroot: https://patchwork.ozlabs.org/project/buildroot/patch/20240502072327.741463-1-dario.binacchi@amarulasolutions.com/ As mentioned earlier: "The fenv support is not enabled in our default uClibc configurations" https://lists.buildroot.org/pipermail/buildroot/2013-May/072440.html Thanks and regards, Dario > > > r~ > > > > > Thanks, > > Dario > > > > On Wed, May 1, 2024 at 4:17 PM Dario Binacchi > > <dario.binacchi@amarulasolutions.com> wrote: > >> > >> Hello Richard, > >> > >> On Wed, May 1, 2024 at 3:31 PM Richard Henderson > >> <richard.henderson@linaro.org> wrote: > >>> > >>> On 5/1/24 05:18, Dario Binacchi wrote: > >>>> Hello Richard, > >>>> > >>>> On Tue, Apr 30, 2024 at 8:15 PM Richard Henderson > >>>> <richard.henderson@linaro.org> wrote: > >>>>> > >>>>> On 4/30/24 09:47, Dario Binacchi wrote: > >>>>>> The fp-bench test (i. e. tests/fp/fp-bench.c) use fenv.h that is not > >>>>>> always provided by the libc (uClibc). The patch disables its compilation > >>>>>> in case the header is not available. > >>>>> > >>>>> Since uclibc has had fenv.h since 2008, are you sure this isn't simply a case of a corrupt > >>>>> installation? > >>>> > >>>>> > >>>>> > >>>>> r~ > >>>> > >>>> It's not an issue of corrupted installation but rather of compilation: > >>> > >>> Installation of your cross-compiler or buildroot, I mean. > >>> > >>>> > >>>> ../tests/fp/fp-bench.c:15:10: fatal error: fenv.h: No such file or directory > >>>> 15 | #include <fenv.h> > >>>> | ^~~~~~~~ > >>>> compilation terminated. > >>> > >>> Yes, yes. However, <fenv.h> is present in uclibc-ng, and has been since 2008. > >>> So *why* is fenv.h not present? > >> > >> I found the fenv.h files here: > >> out/emulator/host/opt/ext-toolchain/i686-buildroot-linux-uclibc/include/c++/11.3.0/tr1/fenv.h > >> out/emulator/host/opt/ext-toolchain/i686-buildroot-linux-uclibc/include/c++/11.3.0/fenv.h > >> > >> But the compiler expects them in: > >> out/emulator/host/i686-buildroot-linux-uclibc/sysroot/usr/include/ > >> > >> So, I think that the fenv support has not been enabled in uClibc > >> configuration of Buildroot. > >> > >> Thanks and regards, > >> Dario > >> > >>> > >>> > >>> r~ > >> > >> > >> > >> -- > >> > >> Dario Binacchi > >> > >> Senior Embedded Linux Developer > >> > >> dario.binacchi@amarulasolutions.com > >> > >> __________________________________ > >> > >> > >> Amarula Solutions SRL > >> > >> Via Le Canevare 30, 31100 Treviso, Veneto, IT > >> > >> T. +39 042 243 5310 > >> info@amarulasolutions.com > >> > >> www.amarulasolutions.com > > > > > > >
On 11/05/2024 13.09, Dario Binacchi wrote: > On Sat, May 11, 2024 at 12:25 PM Richard Henderson > <richard.henderson@linaro.org> wrote: >> >> On 5/11/24 12:11, Dario Binacchi wrote: >>> Gentle ping. >> >> Gentle reminder that I strongly suspect that your buildroot is corrupt. >> There *should* be a <fenv.h> present. > > I don't think so. In fact, the patch has already been merged into Buildroot: > https://patchwork.ozlabs.org/project/buildroot/patch/20240502072327.741463-1-dario.binacchi@amarulasolutions.com/ > > As mentioned earlier: > "The fenv support is not enabled in our default uClibc configurations" > https://lists.buildroot.org/pipermail/buildroot/2013-May/072440.html So the missing information from that page is: It's apparently possible to build uClibc without fenv support, it's only optional there! So IMHO this patch is fine and should be included. Thomas To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Dario Binacchi <dario.binacchi@amarulasolutions.com> writes: > On Sat, May 11, 2024 at 12:25 PM Richard Henderson > <richard.henderson@linaro.org> wrote: >> >> On 5/11/24 12:11, Dario Binacchi wrote: >> > Gentle ping. >> >> Gentle reminder that I strongly suspect that your buildroot is corrupt. >> There *should* be a <fenv.h> present. > > I don't think so. In fact, the patch has already been merged into Buildroot: > https://patchwork.ozlabs.org/project/buildroot/patch/20240502072327.741463-1-dario.binacchi@amarulasolutions.com/ > > As mentioned earlier: > "The fenv support is not enabled in our default uClibc configurations" > https://lists.buildroot.org/pipermail/buildroot/2013-May/072440.html Given this is outside of the general QEMU support matrix (we have Musl but we make no comment about uClibc) and doesn't address the other users of fenv.h (check-tcg binaries built with host compiler) I think this patch probably should just live on in the downstream.
diff --git a/tests/fp/meson.build b/tests/fp/meson.build index 114b4b483ea7..0e1237be54ed 100644 --- a/tests/fp/meson.build +++ b/tests/fp/meson.build @@ -126,12 +126,14 @@ test('fp-test-mulAdd', fptest, ['f16_mulAdd', 'f32_mulAdd', 'f64_mulAdd', 'f128_mulAdd'], suite: ['softfloat-slow', 'softfloat-ops-slow', 'slow'], timeout: 180) -executable( - 'fp-bench', - ['fp-bench.c', '../../fpu/softfloat.c'], - dependencies: [qemuutil, libtestfloat, libsoftfloat], - c_args: fpcflags, -) +if cc.has_header('fenv.h') + executable( + 'fp-bench', + ['fp-bench.c', '../../fpu/softfloat.c'], + dependencies: [qemuutil, libtestfloat, libsoftfloat], + c_args: fpcflags, + ) +endif fptestlog2 = executable( 'fp-test-log2',