public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Ed ." <ej_zg@hotmail.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Cygwin 3.3.1 tgmath.h plus log10() gives "error: no matching function for type-generic call"
Date: Mon, 8 Nov 2021 06:31:14 +0000	[thread overview]
Message-ID: <DB9P194MB1385AF5261149E62FACFFD5282919@DB9P194MB1385.EURP194.PROD.OUTLOOK.COM> (raw)

Dear Cygwin folks,

As shown in this run of PDL (Perl Data Language)’s CI, our new use of tgmath.h is causing a problem with log10:

https://github.com/PDLPorters/pdl/runs/4134966240?check_suite_focus=true

The error is:

In file included from pp-log10.c:56:
1744<https://github.com/PDLPorters/pdl/runs/4134966240?check_suite_focus=true#step:11:1744>ops.pd: In function ‘pdl_log10_readdata’:
1745<https://github.com/PDLPorters/pdl/runs/4134966240?check_suite_focus=true#step:11:1745>ops.pd:321:35: error: no matching function for type-generic call

The line numbers aren’t directly meaningful due to my enthusiastic use of #line in the project, but I believe the error is triggered by calling log10() with an unsigned char. This appears to work fine on GCC on Linux (and Windows, and with clang on MacOS).

I tried for some time to find out which versions of GCC, glibc etc Cygwin 3.3.1 includes, and was unsuccessful. The best I could see was that the Choco package seems to also include “[Cygwin] 11 install gcc-core 11.2.0-1”.

Any pointers (ha!) gratefully received.

Best regards,
Ed

             reply	other threads:[~2021-11-08  6:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-08  6:31 Ed . [this message]
2021-11-08 23:33 ` Ed .

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DB9P194MB1385AF5261149E62FACFFD5282919@DB9P194MB1385.EURP194.PROD.OUTLOOK.COM \
    --to=ej_zg@hotmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).