[SR-638] Glibc missing tgmath overlay #43255
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Linux
Platform: Linux
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: a9b902e6da826f78482414c3846d4576
Issue Description:
I ran into this issue (or at least surprise) trying to compile some code that uses math.h functions on both OSX and Linux. Here's an example:
Compiles and runs fine on OSX, but fails with the following error on Linux:
This is due to the fact that Darwin includes the additional tgmath.swift.gyb overlay that provide the overloaded
sin(x: Float) -> Float
swift function. Glibc only includes plain math.h functions:The text was updated successfully, but these errors were encountered: