apple / swift-numerics

Advanced mathematical types and functions for Swift
Apache License 2.0
1.69k stars 147 forks source link

Duplicate symbols on Windows #257

Open dabrahams opened 1 year ago

dabrahams commented 1 year ago

This could conceivably be an SPM problem, but we are having problems using swift-numerics on windows. Full details here:

lld-link: error: duplicate symbol: __profcstatic (extension in RealModule):Swift.Double.log(Swift.Double) -> Swift.Double
>>> defined at D:\\a\\val\\val\\.build\\x86_64-unknown-windows-msvc\\debug\\RealModule.build\\Double+Real.swift.o
lld-link: error: duplicate symbol: __profcstatic (extension in RealModule):Swift.Double.log(onePlus: Swift.Double) -> Swift.Double
>>> defined at D:\\a\\val\\val\\.build\\x86_64-unknown-windows-msvc\\debug\\RealModule.build\\Double+Real.swift.o
lld-link: error: duplicate symbol: __profcstatic (extension in RealModule):Swift.Double.root(Swift.Double, Swift.Int) -> Swift.Double
>>> defined at D:\\a\\val\\val\\.build\\x86_64-unknown-windows-msvc\\debug\\RealModule.build\\Double+Real.swift.o
lld-link: error: duplicate symbol: __profc_D:\a\val\val\.build\checkouts\swift-numerics\Sources\RealModule\Double+Real.swift:implicit closure #1 () throws -> Swift.Bool in static (extension in RealModule):Swift.Double.root(Swift.Double, Swift.Int) -> Swift.Double
>>> defined at D:\\a\\val\\val\\.build\\x86_64-unknown-windows-msvc\\debug\\RealModule.build\\Double+Real.swift.o