Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-9987] Test - ClangImporter/cfuncs_parse.swift failing on AArch64 #52391

Open
futurejones opened this issue Feb 23, 2019 · 3 comments
Open
Labels
arm64 Architecture: arm64 (aarch64) — any 64-bit ARM bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself Linux Platform: Linux

Comments

@futurejones
Copy link
Contributor

Previous ID SR-9987
Radar None
Original Reporter @futurejones
Type Bug
Environment

Linux Ubuntu 16.04 LTS on AArch64

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, Linux, Test, aarch64
Assignee None
Priority Medium

md5: eb3d7890020a1648c573c33a18ba09a3

Issue Description:

Swift(linux-aarch64) :: ClangImporter/cfuncs_parse.swift is failing

******************** TEST 'Swift(linux-aarch64) :: ClangImporter/cfuncs_parse.swift' FAILED ********************
Script:
--
: 'RUN: at line 1';   /home/worksonarm_test/jenkins_slave/workspace/swift-5.0-aarch64/build/buildbot_linux/swift-linux-aarch64/bin/swift -frontend -target aarch64-unknown-linux-gnu  -module-cache-path '/home/worksonarm_test/jenkins_slave/workspace/swift-5.0-aarch64/build/buildbot_linux/swift-linux-aarch64/swift-test-results/aarch64-unknown-linux-gnu/clang-module-cache' -swift-version 4   -enable-source-import -sdk '/home/worksonarm_test/jenkins_slave/workspace/swift-5.0-aarch64/swift/test/Inputs/clang-importer-sdk' -I '/home/worksonarm_test/jenkins_slave/workspace/swift-5.0-aarch64/swift/test/Inputs/clang-importer-sdk/swift-modules'   -typecheck -verify -I /home/worksonarm_test/jenkins_slave/workspace/swift-5.0-aarch64/swift/test/ClangImporter/Inputs /home/worksonarm_test/jenkins_slave/workspace/swift-5.0-aarch64/swift/test/ClangImporter/cfuncs_parse.swift
--
Exit Code: 1

Command Output (stderr):
--
/home/worksonarm_test/jenkins_slave/workspace/swift-5.0-aarch64/swift/test/ClangImporter/cfuncs_parse.swift:61:3: error: unexpected error produced: use of unresolved identifier 'powl'
  powl(1.5, 2.5)
  ^

--

********************
@futurejones
Copy link
Contributor Author

The reasons for this failure are outlined in PR #19846

@futurejones
Copy link
Contributor Author

On Linux there is no C 'long double' type unless arch==(x86_64) || arch(i386)

Therefore the "powl" test should be disabled for Linux "other archtypes" until support is added.

Or maybe it should default to "Double"?

/// The C 'long double' type.
#if os(OSX) || os(iOS) || os(watchOS) || os(tvOS)
// On Darwin, long double is Float80 on x86, and Double otherwise.
#if arch(x86_64) || arch(i386)
public typealias CLongDouble = Float80
#else
public typealias CLongDouble = Double
#endif
#elseif os(Windows)
// On Windows, long double is always Double.
public typealias CLongDouble = Double
#elseif os(Linux)
// On Linux/x86, long double is Float80.
// TODO: Fill in definitions for additional architectures as needed. IIRC
// armv7 should map to Double, but arm64 and ppc64le should map to Float128,
// which we don't yet have in Swift.
#if arch(x86_64) || arch(i386)
public typealias CLongDouble = Float80
#endif
// TODO: Fill in definitions for other OSes.
#endif

@belkadan
Copy link
Contributor

cc @stephentyrone

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm64 Architecture: arm64 (aarch64) — any 64-bit ARM bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself Linux Platform: Linux
Projects
None yet
Development

No branches or pull requests

2 participants