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

Making runtime omunreachable static to support clang compiler #3015

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

christopherlmunoz
Copy link
Contributor

@christopherlmunoz christopherlmunoz commented Nov 19, 2024

Compiling and linking runtime files on zOS using ibm-clang compiler will error.

IEW2456E 9207 SYMBOL omUnreachable UNRESOLVED.  MEMBER COULD NOT BE INCLUDED
          FROM THE DESIGNATED CALL LIBRARY.

Following suggestions "In C99 you need to provide an alternate (non-inline) definition of the function for when the compiler can't inline."

https://stackoverflow.com/questions/69384040/why-do-i-get-a-linking-error-with-clang-when-inlining-a-function-in-a-c-program

I am open to trying alternative methods to support clang compilers if there are other suggestions.

Signed-off-by: Christopher Munoz <chrismunoz1019@gmail.com>
Copy link
Collaborator

@Sunny-Anand Sunny-Anand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@tungld tungld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Sunny-Anand Sunny-Anand merged commit f2ec420 into onnx:main Nov 20, 2024
7 checks passed
@jenkins-droid
Copy link
Collaborator

Jenkins Linux s390x Build #16024 [push] making runtime omunreach... started at 10:06

@jenkins-droid
Copy link
Collaborator

Jenkins Linux amd64 Build #16021 [push] making runtime omunreach... started at 09:06

@jenkins-droid
Copy link
Collaborator

Jenkins Linux ppc64le Build #15051 [push] making runtime omunreach... started at 10:21

@christopherlmunoz christopherlmunoz deleted the omunreachable_to_static branch November 20, 2024 15:52
@jenkins-droid
Copy link
Collaborator

Jenkins Linux s390x Build #16024 [push] making runtime omunreach... failed after 1 hr 1 min

@jenkins-droid
Copy link
Collaborator

Jenkins Linux amd64 Build #16021 [push] making runtime omunreach... passed after 1 hr 18 min

@jenkins-droid
Copy link
Collaborator

Jenkins Linux ppc64le Build #15051 [push] making runtime omunreach... passed after 2 hr 20 min

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants